preproc: Don't access out of bound data on malformed input
commit4b5b737d4991578b1918303dc0fd9c9ab5c7ce4f
authorCyrill Gorcunov <gorcunov@gmail.com>
Mon, 29 Oct 2018 19:54:08 +0000 (29 22:54 +0300)
committerCyrill Gorcunov <gorcunov@gmail.com>
Mon, 29 Oct 2018 19:54:34 +0000 (29 22:54 +0300)
tree920043d8e0ecabf12ee8b831e709761d110def07
parentb756372b0668092f1e189ef097889df0f40dee79
preproc: Don't access out of bound data on malformed input

There are a number of places still where we test text
data which is potentially may be an empty string. This
is known to happen on fuzzer input but usually doesn't
take place in regular valid programs. Surely we need
to revisit preprocessor code for this kind of errors.

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

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