PR29846, segmentation fault in objdump.c compare_symbols
authorAlan Modra <amodra@gmail.com>
Sun, 4 Dec 2022 11:45:40 +0000 (22:15 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 4 Dec 2022 12:02:20 +0000 (22:32 +1030)
commit3d3af4ba39e892b1c544d667ca241846bc3df386
tree52aa9ab7856c17a6ec366a91b8f92b5f2687d5c3
parent2fa250529bb42e00433528c763d2bef245787ed1
PR29846, segmentation fault in objdump.c compare_symbols

Fixes a fuzzed object file problem where plt relocs were manipulated
in such a way that two synthetic symbols were generated at the same
plt location.  Won't occur in real object files.

PR 29846
PR 20337
* objdump.c (compare_symbols): Test symbol flags to exclude
section and synthetic symbols before attempting to check flavour.
binutils/objdump.c