[Nasm-bugs] [Bug 3392518] Malformed input file leads to invalid read and NASM segmentation fault
noreply-nasm at gorcunov.org
noreply-nasm at gorcunov.org
Thu Sep 13 09:12:01 PDT 2018
https://bugzilla.nasm.us/show_bug.cgi?id=3392518
--- Comment #3 from Jordan Zebor <j.zebor at f5.com> ---
Core file backtrace (memory address removed for space saving)
$ gdb ~/nasm-2.14rc15/nasm core
Core was generated by `/home/fuzzer/nasm-2.14rc15/nasm -f bin
expand_mmac_params_range_crash.asm'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000559f281fca79 in expand_mmac_params_range (mac=0x559f29537940,
tline=0x7fe9b9f17190, last=0x7ffd813256a0) at asm/preproc.c:3951
3951 head = new_Token(NULL, tm->type, tm->text, 0);
(gdb) set print addr off
(gdb) bt
#0 expand_mmac_params_range (mac=, tline=, last=) at asm/preproc.c:3951
#1 expand_mmac_params (tline=) at asm/preproc.c:4114
#2 pp_getline () at asm/preproc.c:5204
#3 assemble_file (fname="expand_mmac_params_range_crash.asm", depend_ptr=) at
asm/nasm.c:1435
#4 main (argc=4, argv=) at asm/nasm.c:566
(gdb) f 0
#0 expand_mmac_params_range (mac=, tline=, last=) at asm/preproc.c:3951
3951 head = new_Token(NULL, tm->type, tm->text, 0);
(gdb) p tm->type
Cannot access memory at address 0x18
(gdb) p tm->text
Cannot access memory at address 0x8
--
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