mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
BR 3392669: in expand_one_smacro(), we may reach EOL before tafter
If the rest of the line is consumed, we may never see tafter, so we have to test for end of line at line 5412. We already do at 5397, so it clearly should have been there all along. Reported-by: <puppet@zju.edu.cn> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
parent
7cfd01868c
commit
6e71496e3c
@ -5409,7 +5409,7 @@ static SMacro *expand_one_smacro(Token ***tpp)
|
||||
}
|
||||
|
||||
**tpp = tline;
|
||||
for (t = tline; t != tafter; t = t->next)
|
||||
for (t = tline; t && t != tafter; t = t->next)
|
||||
*tpp = &t->next;
|
||||
|
||||
m->in_progress = false;
|
||||
|
BIN
test/br3392669-57.asm
Normal file
BIN
test/br3392669-57.asm
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user