https://sourceware.org/bugzilla/show_bug.cgi?id=33744
Bug ID: 33744
Summary: As crashes with an internal “Segmentation fault” and
triggers a BFD assertion failure
Product: binutils
Version: 2.45.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: xkittener at gmail dot com
Target Milestone: ---
Created attachment 16536
--> https://sourceware.org/bugzilla/attachment.cgi?id=16536&action=edit
Poc
When invoking gas/as-new with DWARF debug generation enabled, the assembler
crashes on a malformed/fuzzed input file. The run produces a warning about a
missing trailing newline, then reports a Segmentation fault, followed by an
assertion failure in BFD’s ELF handling code.
Reproduce:
# export CFLAGS="-g -O0 -fsanitize=address"
# ./configure
# make -j
# gas/as-new -g --gdwarf-2 --nocompress-debug-sections Poc
Description:
/home/Downloads/as_fuzz/1/id:000000,sig:11,src:009372+001596,time:144018304,execs:9468563,op:splice,rep:1:
Assembler messages:
/home/Downloads/as_fuzz/1/id:000000,sig:11,src:009372+001596,time:144018304,execs:9468563,op:splice,rep:1:
Warning: end of file not at end of a line; newline inserted
/home/Downloads/as_fuzz/1/id:000000,sig:11,src:009372+001596,time:144018304,execs:9468563,op:splice,rep:1:
Internal error (Segmentation fault).
Please report this bug. gas/as-new: BFD (GNU Binutils) 2.45.1 assertion fail
elf.c:3507 Segmentation fault (core dumped)
Credit:
Kaiyu Xie(UCAS)
--
You are receiving this mail because:
You are on the CC list for the bug.