diff options
author | Alan Modra <amodra@gmail.com> | 2021-06-12 10:54:21 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-06-12 11:00:32 +0930 |
commit | e331b18d42d38fa4542f4c50536717a43546290b (patch) | |
tree | 1da359f3de751d289b763bd1473318af59effe19 /binutils/ChangeLog | |
parent | 6fe7f5c4161053d663d1be34308be2e5f1531fbc (diff) | |
download | gdb-e331b18d42d38fa4542f4c50536717a43546290b.zip gdb-e331b18d42d38fa4542f4c50536717a43546290b.tar.gz gdb-e331b18d42d38fa4542f4c50536717a43546290b.tar.bz2 |
Re: readelf section reading
Fix commit 4de91c10cdd9, which cached the single section header read
to pick up file header extension fields. Also, testing e_shoff in
get_section_headers opened a hole for fuzzers where we'd end up with
segfaults due to non-zero e_shnum but NULL section_headers.
* readelf.c (get_section_headers): Don't test e_shoff here, leave
that to get_32bit_section_headers or get_64bit_section_headers.
(process_object): Throw away section header read to print file
header extension.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e84f5d3..fcf6056 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,10 @@ +2021-06-12 Alan Modra <amodra@gmail.com> + + * readelf.c (get_section_headers): Don't test e_shoff here, leave + that to get_32bit_section_headers or get_64bit_section_headers. + (process_object): Throw away section header read to print file + header extension. + 2021-06-11 Alan Modra <amodra@gmail.com> * readelf.c (struct filedata): Move archive_file_offset and |