[PATCH] D77147: [llvm-readobj] - Do not crash when SHT_HASH table is broken.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 31 08:16:43 PDT 2020
grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: rupprecht, emaste.
Herald added a reviewer: espindola.
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.
Depends on D76834 <https://reviews.llvm.org/D76834>
https://reviews.llvm.org/D77147
Files:
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77147.253889.patch
Type: text/x-patch
Size: 16225 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200331/272bfde3/attachment-0001.bin>
More information about the llvm-commits
mailing list