]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/readelf.c
Fix memory access violations discovered by running readelf compiled with undefined...
authorNick Clifton <nickc@redhat.com>
Tue, 10 Feb 2015 17:53:53 +0000 (17:53 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 10 Feb 2015 17:53:53 +0000 (17:53 +0000)
commit834f871cdc6e5d9f5bda9ce607fd3c47f41a2ade
treec215907e04d8ef3cac4e7c952d817e38a2383fac
parent03a91817f163986f10cb843f58e2f2cd9186e4f0
Fix memory access violations discovered by running readelf compiled with undefined memory access sanitization on fuzzed binaries.

PR binutils/17531
* dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
offset.
* readelf.c (dump_relocations): Handle printing offsets which are
MIN_INT.
(process_corefile_note_segment): Add range check of the namesz
field.
binutils/ChangeLog
binutils/dwarf.c
binutils/readelf.c