objdump: file name table entry count check
authorAlan Modra <amodra@gmail.com>
Tue, 22 Aug 2023 02:11:37 +0000 (11:41 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 22 Aug 2023 02:11:37 +0000 (11:41 +0930)
commit8032f75b2994816e87e9d2ab7c46ad86601c999b
tree2f48d92005fd089aa183e48df2dab5a2f7ea0ac8
parent5bf26ab7cb82c2e6308b269af44b989a51ee7903
objdump: file name table entry count check

Fuzzers have found that objdump -W takes a really long time if
the entry count uleb is ridiculously large, and format attributes
don't consume data (which doesn't make sense for a table of names).

* dwarf.c (display_formatted_table): Sanity check count of
table entries.
binutils/dwarf.c