mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 12:41:21 +00:00
Merge pull request #845 from maraakate/master
Check >= maxsize in Info_SetValueForKey(). Found by ASAN.
This commit is contained in:
commit
c1212875b2
1 changed files with 1 additions and 1 deletions
|
@ -1398,7 +1398,7 @@ Info_SetValueForKey(char *s, char *key, char *value)
|
|||
|
||||
Com_sprintf(newi, sizeof(newi), "\\%s\\%s", key, value);
|
||||
|
||||
if (strlen(newi) + strlen(s) > maxsize)
|
||||
if (strlen(newi) + strlen(s) >= maxsize)
|
||||
{
|
||||
Com_Printf("Info string length exceeded\n");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue