mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Fix handle_dot_label heap-out-of-bound (#243)
This commit is contained in:
parent
84be2ee6c3
commit
ecb47f1c87
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ handle_dot_label(YYSTYPE *lvalp, char *tok, size_t toklen, size_t zeropos,
|
|||
lvalp->str_val = yasm__xstrndup(tok+zeropos+(parser_nasm->tasm?2:0),
|
||||
toklen-zeropos-(parser_nasm->tasm?2:0));
|
||||
/* check for special non-local ..@label */
|
||||
if (lvalp->str_val[zeropos+2] == '@')
|
||||
if (lvalp->str_val[2] == '@')
|
||||
return NONLOCAL_ID;
|
||||
return SPECIAL_ID;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue