commit d48e440a722cb56fd3c2996d2d3c87ce7f471042 from: Alexander Barton date: Thu Aug 16 21:51:28 2012 UTC Fix a buffer overflow when initializing the random salt for "+x" This "off by one" buffer overflow has been introduced in commit 49385a98, "Implemented hashed cloaked hostnames for +x". commit - 0709a0f050044db2d76a3142f02f7efd86321898 commit + d48e440a722cb56fd3c2996d2d3c87ce7f471042 blob - b09113730ef185dff831ca6a0392c4a8d757ddcf blob + 923cdc025bf50be6bad356ff56e802b3e1a8dc14 --- src/ngircd/conf.c +++ src/ngircd/conf.c @@ -653,7 +653,7 @@ static void Set_Defaults(bool InitServers) { int i; - char random[RANDOM_SALT_LEN]; + char random[RANDOM_SALT_LEN + 1]; /* Global */ strcpy(Conf_ServerName, "");