mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
quote: Fix returning out of string pointer
In case if string is a single grave accent we return the pointer to uninitialized space. http://bugzilla.nasm.us/show_bug.cgi?id=3392292 Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
5c0b082c92
commit
a45febd767
1 changed files with 3 additions and 1 deletions
4
quote.c
4
quote.c
|
|
@ -441,8 +441,10 @@ char *nasm_skip_string(char *str)
|
|||
return p;
|
||||
} else if (bq == '`') {
|
||||
/* `...` string */
|
||||
p = str+1;
|
||||
state = st_start;
|
||||
p = str+1;
|
||||
if (!*p)
|
||||
return p;
|
||||
|
||||
while ((c = *p++)) {
|
||||
switch (state) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue