Skip to content

Commit

Permalink
preproc: Don't access offsting byte on unterminated strings
Browse files Browse the repository at this point in the history
https://bugzilla.nasm.us/show_bug.cgi?id=3392446

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
  • Loading branch information
cyrillos committed Oct 22, 2017
1 parent 53259e8 commit 3144e84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion asm/preproc.c
Expand Up @@ -948,7 +948,9 @@ static Token *tokenize(char *line)
case '\'':
case '\"':
case '`':
p = nasm_skip_string(p - 1) + 1;
p = nasm_skip_string(p - 1);
if (*p)
p++;
break;
default:
break;
Expand Down

0 comments on commit 3144e84

Please sign in to comment.