]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/ChangeLog
Re: readelf section reading
authorAlan Modra <amodra@gmail.com>
Sat, 12 Jun 2021 01:24:21 +0000 (10:54 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 12 Jun 2021 01:30:32 +0000 (11:00 +0930)
commite331b18d42d38fa4542f4c50536717a43546290b
tree1da359f3de751d289b763bd1473318af59effe19
parent6fe7f5c4161053d663d1be34308be2e5f1531fbc
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.
binutils/ChangeLog
binutils/readelf.c