mirror of
https://github.com/ZDoom/acc.git
synced 2025-03-13 03:42:17 +00:00
- Fixed: When ACC encountered a bad numeric constant, it could infinite loop
trying to get past it if it was a string without an opening quote, because it didn't check for TK_EOF. SVN r501 (trunk)
This commit is contained in:
parent
1e12f4404d
commit
1e63067140
1 changed files with 4 additions and 0 deletions
4
parse.c
4
parse.c
|
@ -3432,6 +3432,10 @@ static void ConstExprFactor(void)
|
|||
tk_Token != TK_SEMICOLON &&
|
||||
tk_Token != TK_RPAREN)
|
||||
{
|
||||
if(tk_Token == TK_EOF)
|
||||
{
|
||||
ERR_Exit(ERR_EOF, YES);
|
||||
}
|
||||
TK_NextToken();
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue