Avoid needless resource usage when processing a corrupt DWARF directory or file name...
authorNick Clifton <nickc@redhat.com>
Tue, 26 Sep 2017 13:37:47 +0000 (14:37 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 26 Sep 2017 13:37:47 +0000 (14:37 +0100)
commit30d0157a2ad64e64e5ff9fcc0dbe78a3e682f573
tree1e50d97c37058f5709f64f5683a017591a438126
parent281c4447738409888d9659924937da182a65b4e1
Avoid needless resource usage when processing a corrupt DWARF directory or file name table.

PR 22210
* dwarf2.c (read_formatted_entries): Fail early if we know that
the loop parsing data entries will overflow the end of the
section.
bfd/ChangeLog
bfd/dwarf2.c