mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	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".
			
			
This commit is contained in:
		| @@ -653,7 +653,7 @@ static void | |||||||
| Set_Defaults(bool InitServers) | Set_Defaults(bool InitServers) | ||||||
| { | { | ||||||
| 	int i; | 	int i; | ||||||
| 	char random[RANDOM_SALT_LEN]; | 	char random[RANDOM_SALT_LEN + 1]; | ||||||
|  |  | ||||||
| 	/* Global */ | 	/* Global */ | ||||||
| 	strcpy(Conf_ServerName, ""); | 	strcpy(Conf_ServerName, ""); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton