[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/18708] integer overflow in readelf and invalid shift in ob
From: |
amodra at gmail dot com |
Subject: |
[Bug binutils/18708] integer overflow in readelf and invalid shift in objdump |
Date: |
Thu, 23 Jul 2015 03:23:35 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18708
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amodra at gmail dot com
--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
I believe the first two readelf ubsan errors have been fixed both in master
binutils and on the 2.25 branch.
The third readelf ubsan error is on this line
section.sh_size = ftell (file) - section.sh_offset;
ftell returns a signed type, and section.sh_offset is also a signed type, thus
the ubsan error about signed integer overflow. I don't consider this sort of
"error" worth fixing by adding casts or changing the type of sh_offset, since
it was induced by a fuzzed binary.
The i386-dis.c ubsan errors are technically correct, but in reality just so
much useless noise.
--
You are receiving this mail because:
You are on the CC list for the bug.