Currently, llvm-readelf crashes when there is a STT_SECTION symbol for the null section
and this symbol is used in a relocation.
This patch fixes the issue.
Paths
| Differential D81840
[llvm-readelf] - Do not crash when relocation references a STT_SECTION symbol for the null section. ClosedPublic Authored by grimar on Jun 15 2020, 5:13 AM.
Details Summary Currently, llvm-readelf crashes when there is a STT_SECTION symbol for the null section This patch fixes the issue.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 16 2020, 2:00 AM Comment Actions
I was using AFL (https://lcamtuf.coredump.cx/afl/) to collect broken inputs causing crashes/hangs. Closed by commit rG3961438c7844: [llvm-readelf] - Do not crash when relocation references a STT_SECTION symbol… (authored by grimar). · Explain WhyJun 16 2020, 5:32 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 271063 llvm/test/tools/llvm-readobj/ELF/reloc-zero-name-or-value.test
llvm/tools/llvm-readobj/ELFDumper.cpp
|