preproc: Fix the token in expanding the %+/%- macro-parameters
commit6e3f3411a1686e554beca3e766edb0a8efb6d617
authorChang S. Bae <chang.seok.bae@intel.com>
Wed, 25 Mar 2020 22:13:21 +0000 (25 15:13 -0700)
committerChang S. Bae <chang.seok.bae@intel.com>
Wed, 1 Apr 2020 22:42:16 +0000 (1 15:42 -0700)
treef643a5944f26cbc65bded31332cbab2465ed1e29
parent53ca4bb19cc4f3147891c03d10959d57e0edcc01
preproc: Fix the token in expanding the %+/%- macro-parameters

The code looked to be unintentionally always nullifying the
token pointer at first place in handling those macro-parameters.
Remove it to avoid segfault.

Fixes: de7acc3a46cb ("preproc: defer %00, %? and %??
expansion for nested macros, cleanups")

Reported-by: C. Masloch <pushbx@ulukai.org>
Link: https://bugzilla.nasm.us/show_bug.cgi?id=3392640
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
asm/preproc.c