nasm/test/strlen.asm
Cyrill Gorcunov 4e1d5ab0cf 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>
2010-07-23 18:51:51 +04:00

5 lines
91 B
NASM

%macro strlen_test 1
%strlen len %2 ; not existing argument
%endmacro
strlen_test 'a'