[Nasm-bugs] [Bug 3392789] New: Null Pointer Dereference in asm/preproc.c:4335

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Wed Dec 8 17:58:29 PST 2021


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

            Bug ID: 3392789
           Summary: Null Pointer Dereference in asm/preproc.c:4335
           Product: NASM
           Version: 2.16 (development)
          Hardware: PC
                OS: Linux
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: wyxaidai at gmail.com
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Built from git using configure

Created attachment 411840
  --> https://bugzilla.nasm.us/attachment.cgi?id=411840&action=edit
nasm -f bin nasm_poc

gdb nasm
run -f bin nasm_poc
Program received signal SIGSEGV, Segmentation fault.
0x00005555555c489e in do_directive (tline=0x7ffff7d8ba90,
output=0x7fffffffdd90) at asm/preproc.c:4335
4335            list_for_each(l, istk->expansion) {

backtrace
#0  0x00005555555c489e in do_directive (tline=0x7ffff7d8ba90,
output=0x7fffffffdd90) at asm/preproc.c:4335
#1  0x00005555555c74a3 in pp_tokline () at asm/preproc.c:7264
#2  pp_getline () at asm/preproc.c:7328
#3  0x00005555555b197f in assemble_file (fname=0x5555557027e0 "nasm_poc",
depend_list=0x0) at asm/nasm.c:1722
#4  0x00005555555aef39 in main (argc=argc at entry=4,
argv=argv at entry=0x7fffffffe258) at asm/nasm.c:717
#5  0x00007ffff7de90b3 in __libc_start_main (main=0x5555555aea40 <main>,
argc=4, argv=0x7fffffffe258, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffe248) at ../csu/libc-start.c:308
#6  0x00005555555af8fe in _start () at asm/nasm.c:512

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list