[Nasm-bugs] [Bug 3392742] New: segv fault in preproc.c
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Tue Feb 23 04:23:57 PST 2021
https://bugzilla.nasm.us/show_bug.cgi?id=3392742
Bug ID: 3392742
Summary: segv fault in preproc.c
Product: NASM
Version: 2.16 (development)
Hardware: All
OS: All
Status: OPEN
Severity: normal
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: dz1833006 at smail.nju.edu.cn
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 411811
--> https://bugzilla.nasm.us/attachment.cgi?id=411811&action=edit
poc file
Version: github-master branch commit:6d95cc8 (2021.2.22)
Cmd: nasm poc -o tmp
Build options:
1. sh autogen.sh
2. CC=clang CXX=clang++ CFLAGS="-fsanitize=address" ./configure --enable-gdb
3. make
ASAN:
==113890==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc
0x000000553517 bp 0x7fffc59cb270 sp 0x7fffc59c9e00 T0)
==113890==The signal is caused by a READ memory access.
==113890==Hint: address points to the zero page.
#0 0x553517 in do_directive /nasm/nasm-master/asm/preproc.c:4336:29
#1 0x536b3a in pp_tokline /nasm/nasm-master/asm/preproc.c:7258:13
#2 0x534ad9 in pp_getline /nasm/nasm-master/asm/preproc.c:7322:17
#3 0x4f0937 in assemble_file /nasm/nasm-master/asm/nasm.c:1722:24
#4 0x4eed0d in main /nasm/nasm-master/asm/nasm.c:717:9
#5 0x7fa9666e20b2 in __libc_start_main
/build/glibc-ZN95T4/glibc-2.31/csu/../csu/libc-start.c:308:16
#6 0x41c42d in _start (/nasm/nasm-master/nasm+0x41c42d)
--
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