We have scenarios when the logic of --elf-hash-histogram/--hash-symbols/--hash-table
options might crash when given a broken hash table.
This patch adds pre-checks for tables for these 3 options
and provides test cases.
Paths
| Differential D77147
[llvm-readobj] - Do not crash when SHT_HASH table is broken. ClosedPublic Authored by grimar on Mar 31 2020, 7:54 AM.
Details Summary We have scenarios when the logic of --elf-hash-histogram/--hash-symbols/--hash-table This patch adds pre-checks for tables for these 3 options
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 31 2020, 10:38 AM
grimar marked 10 inline comments as done. Comment Actions
Closed by commit rGf527e6f2e11d: [llvm-readobj] - Do not crash when SHT_HASH table is broken. (authored by grimar). · Explain WhyApr 1 2020, 8:15 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 254208 llvm/test/tools/llvm-readobj/ELF/hash-histogram.test
llvm/test/tools/llvm-readobj/ELF/hash-symbols.test
llvm/test/tools/llvm-readobj/ELF/hash-table.test
llvm/tools/llvm-readobj/ELFDumper.cpp
|
starts with