Menu

#210 Missing error handler in ndisasm.c - diff attached.

open-accepted
nobody
None
1
2007-10-10
2004-12-27
No

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.

Discussion

  • Andrei Warkentin

    Fix for missing nasm_malloc error handler.

     
  • nasm64developer

    nasm64developer - 2004-12-28
    • status: open --> open-accepted
     
  • nasm64developer

    nasm64developer - 2004-12-28

    Logged In: YES
    user_id=804543

    This is a duplicate of SF bug #677170.

    The proposed fix looks good to me.

     
  • nasm64developer

    nasm64developer - 2007-10-10
    • priority: 5 --> 1
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.