Fixes for crashes running readelf.
authorNick Clifton <nickc@redhat.com>
Tue, 4 Nov 2014 11:58:16 +0000 (11:58 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 4 Nov 2014 11:58:16 +0000 (11:58 +0000)
commit049b0c3a2467c785f9068915d81fdba4985470bf
tree65d2a6eeaf2ddeb0125c9cac82a819a6015a8d64
parente0f52461c2467b6610391681fa27cd9b3c5def57
Fixes for crashes running readelf.

PR binutils/17531
* readelf.c (get_data): If the reason parameter is null, do not
print any error messages.
(get_32bit_section_headers): Verify section header entry size
before reading in the section headers.
(get_64bit_section_headers): Likewise.
(process_section_headers): Pass FALSE to get_section_headers.
(get_file_header): Pass TRUE to get_section_headers.
(process_dynamic_section): Change an assert to an error message.
(process_symbol_table): Handle corrupt histograms.
binutils/ChangeLog
binutils/readelf.c