COM_Parse: Fix buffer overflow in long quoted strings.

This commit is contained in:
svdijk 2012-11-17 14:59:38 +01:00 committed by Yamagi Burmeister
parent 561add00a8
commit 1dd083cd7d
1 changed files with 2 additions and 3 deletions

View File

@ -987,9 +987,7 @@ skipwhite:
if ((c == '\"') || !c)
{
com_token[len] = 0;
*data_p = data;
return com_token;
goto done;
}
if (len < MAX_TOKEN_CHARS)
@ -1014,6 +1012,7 @@ skipwhite:
}
while (c > 32);
done:
if (len == MAX_TOKEN_CHARS)
{
len = 0;