peproc: Fix sigsevg in smacro expansion
commit59ce1c67b16967c652765e62aa130b7e43f21dd4
authorCyrill Gorcunov <gorcunov@gmail.com>
Sun, 22 Oct 2017 15:42:07 +0000 (22 18:42 +0300)
committerCyrill Gorcunov <gorcunov@gmail.com>
Sun, 22 Oct 2017 15:54:20 +0000 (22 18:54 +0300)
tree1e50f223c400c2cc84c8e5626213d593893d5393
parentc9244eaadd05b27637cde06021bac3fa1d920aa3
peproc: Fix sigsevg in smacro expansion

In case if smacro is called with inapropriate
number of arguments exit early. Actually we have
to handle this situation more gracefully but
this requires a way more efforts than two
line patches (need to refactor macro expansion).

https://bugzilla.nasm.us/show_bug.cgi?id=3392431

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
asm/preproc.c