readelf: DO not load section headers from file offset zero
commit907b52f4ceb6d15b00a0ac5fc7a7029f8a80b97d
authorNick Clifton <nickc@redhat.com>
Mon, 3 Oct 2022 12:19:21 +0000 (3 13:19 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 3 Oct 2022 12:19:21 +0000 (3 13:19 +0100)
treeb4be74498a3db6a60a7a27f0796dbd3aaee2bc49
parent01292987969e807f3c5861c75723d5532bf42f12
readelf: DO not load section headers from file offset zero

* readelf.c (get_32bit_section_headers): Return false if the
e_shoff field is zero.
(get_64bit_section_headers): Likewise.
binutils/ChangeLog
binutils/readelf.c