- Fix bug #4769 remote server crash
- Fix potential 1-byte-buffer overflow in gamecode
This commit is contained in:
1 parent
16c83ae2c5
commit
cf791d14c5
2 files changed
+13
-4
No files matched your search
@@ -155,7 +155,7 @@ static void UpdateIPBans (void)
|
||||
Q_strcat(ip, sizeof(ip), va("%i", b[j]));
|
||||
Q_strcat(ip, sizeof(ip), (j<3) ? "." : " ");
|
||||
}
|
||||
if (strlen(iplist_final)+strlen(ip) < MAX_CVAR_VALUE_STRING)
|
||||
if (strlen(iplist_final)+strlen(ip) < MAX_CVAR_VALUE_STRING - 1)
|
||||
{
|
||||
Q_strcat( iplist_final, sizeof(iplist_final), ip);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user