There is no nasm_malloc_error set in ndisasm.c, thus if
the parameter to -e cannot fit in a 32-bit integer, the
call nasm_malloc_error (ERR_WARNING | ERR_PASS1 |
ERR_WARN_NOV, "numeric constant %s does not fit in 32
bits", str) in readnum fails with a segmentation
violation.
Attached is a diff that adds an error handler.
Fix for missing nasm_malloc error handler.
Logged In: YES
user_id=804543
This is a duplicate of SF bug #677170.
The proposed fix looks good to me.