PR29169, invalid read displaying fuzzed .gdb_index
authorAlan Modra <amodra@gmail.com>
Tue, 24 May 2022 00:02:14 +0000 (09:32 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 24 May 2022 00:20:17 +0000 (09:50 +0930)
commit244e19c79111eed017ee38ab1d44fb2a6cd1b636
tree4fb1557846f4cb3dd5df716ee1ffa1dc68d2466f
parent9e0f6329352ab9c5e2f278181a3875918cff3b27
PR29169, invalid read displaying fuzzed .gdb_index

PR 29169
* dwarf.c (display_gdb_index): Combine sanity checks.  Calculate
element counts, not word counts.
binutils/dwarf.c