preproc.: Fix NULL dereference on broken %strlen argument
commit4e1d5ab0cff00aa6d7bc39c8bc871d6c9621c16f
authorCyrill Gorcunov <gorcunov@gmail.com>
Fri, 23 Jul 2010 14:51:51 +0000 (23 18:51 +0400)
committerCyrill Gorcunov <gorcunov@gmail.com>
Fri, 23 Jul 2010 14:51:51 +0000 (23 18:51 +0400)
tree2692f9aace7c78a2c65fba87e7438af0ae04ea9a
parent077fb93d2bfaf2d4acb356535026efe56c0e120e
preproc.: Fix NULL dereference on broken %strlen argument

Under particular circumstances %strlen may cause SIGSEG. A typical
example is %strlen with nonexistent macro argument.

[ Testcase test/strlen.asm ]

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
preproc.c
test/strlen.asm [new file with mode: 0644]