PR27849, heap-buffer-overflow on readelf -w
authorAlan Modra <amodra@gmail.com>
Tue, 11 May 2021 23:21:22 +0000 (08:51 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 12 May 2021 06:11:10 +0000 (15:41 +0930)
commit5ab3907543816d62a8dfd0f7f342ae66814bb0eb
tree2cb6e87bbfdf6d037ccb8f771269920ba830efaa
parent425b0b1a98456359084466b755aad51c462603df
PR27849, heap-buffer-overflow on readelf -w

PR 27849
* dwarf.c (fetch_indexed_string): Correct length sanity checks.
Sanity check section size for version and padding too.  Correct
index sanity check.  Handle multiple tables in .debug_str_offsets.
binutils/ChangeLog
binutils/dwarf.c