Commit Diff
- Commit:
d48e440a722cb56fd3c2996d2d3c87ce7f471042
- From:
- Alexander Barton <alex@barton.de>
- Date:
- Message:
- 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".
- Actions:
- Patch | Tree
--- 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, "");