Fix an infinite loop in the DWARF decoder when parsing a corrupt string table.
authorNick Clifton <nickc@redhat.com>
Thu, 13 May 2021 13:31:09 +0000 (14:31 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 13 May 2021 13:31:09 +0000 (14:31 +0100)
commitc4375dd764b2e28b585048c55014d4d8fbe2e820
treeab64600686b12d827b95e7afd58c92fb71399818
parentb96a1bcb81078d6443666a59d6a91368ac03767f
Fix an infinite loop in the DWARF decoder when parsing a corrupt string table.

PR 27861
* dwarf.c (display_debug_str_offsets): Warn if the length field is
larger than the amount of data remaining in the section.
binutils/ChangeLog
binutils/dwarf.c