https://sourceware.org/bugzilla/show_bug.cgi?id=33351
Bug ID: 33351
Summary: binutils/readelf.c:21026:3: runtime error: null
pointer passed as argument 1, which is declared to
never be null
Product: binutils
Version: 2.46 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: pheeck at gcc dot gnu.org
Target Milestone: ---
For many targets, if you compile binutils with undefined behaviour sanitizer
and run the testsuite...
configure --build=x86_64-linux --disable-gdb --disable-gdbserver
--disable-werror --target=alpha-linux CFLAGS="-g -O2
-fsanitize=address,undefined -Wno-error"CXXLAGS="-g -O2
-fsanitize=address,undefined -Wno-error"LDFLAGS="-ldl"
make -j64
make -j64 -k check
...the sanitizer reports UB in readelf:
grep 'runtime error' binutils/binutils.log
binutils/readelf.c:21026:3: runtime error: null pointer passed as argument 1,
which is declared to never be null
This must have started happening in the last two weeks.
This happens for the following targets:
alpha-linux
alpha-unknown-freebsd4.7
am33_2.0-linux
arm-linuxeabi
armeb-linuxeabi
avr-elf
bfin-elf
bfin-linux-uclibc
cr16-elf
cris-elf
csky-elf
d10v-elf
dlx-elf
epiphany-elf
fr30-elf
ft32-elf
hppa-linux
hppa64-linux
ia64-elf
ip2k-elf
lm32-elf
m32r-elf
m68hc11-elf
mcore-elf
mep-elf
metag-linux
microblaze-elf
mmix
mn10200-elf
moxie-elf
mt-elf
or1k-elf
powerpc-eabisim
powerpc-freebsd
powerpc64-freebsd
pru-elf
riscv32-elf
sh-linux
sparc-sun-solaris2
spu-elf
vax-netbsdelf
xstormy16-elf
xtensa-elf
--
You are receiving this mail because:
You are on the CC list for the bug.