mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
preproc: Fix nil dereference on error paths
https://bugzilla.nasm.us/show_bug.cgi?id=3392562 Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
0bddd0f1b1
commit
982186a1a3
@ -4198,7 +4198,8 @@ again:
|
||||
do {
|
||||
t = tline->next;
|
||||
while (tok_type_(t, TOK_SMAC_END)) {
|
||||
t->a.mac->in_progress = false;
|
||||
if (t->a.mac)
|
||||
t->a.mac->in_progress = false;
|
||||
t->text = NULL;
|
||||
t = tline->next = delete_Token(t);
|
||||
}
|
||||
@ -4228,7 +4229,8 @@ again:
|
||||
*/
|
||||
t = tline->next;
|
||||
while (tok_type_(t, TOK_SMAC_END)) {
|
||||
t->a.mac->in_progress = false;
|
||||
if (t->a.mac)
|
||||
t->a.mac->in_progress = false;
|
||||
t->text = NULL;
|
||||
t = tline->next = delete_Token(t);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user