preproc: Fix out of bound access on malformed input
commit661f723d39e03ca6eb05d7376a43ca33db478354
authorCyrill Gorcunov <gorcunov@gmail.com>
Sun, 28 Oct 2018 17:39:34 +0000 (28 20:39 +0300)
committerCyrill Gorcunov <gorcunov@gmail.com>
Sun, 28 Oct 2018 17:39:34 +0000 (28 20:39 +0300)
treed7c2e9eba19ac11397f6b72f5dc06d4557c9a9b1
parentfe2e1d469ac163a076e5cbc760cc3f4f051ee615
preproc: Fix out of bound access on malformed input

A fuzzer revealed a problem in preproc code.

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

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