When we deriving the number of symbols from the DT_HASH table, we can crash when
calculate the number of symbols in the symbol table when SHT_DYNSYM
has sh_entsize == 0.
The patch fixes the issue.
Paths
| Differential D82877
[llvm-readobj] - Don't crash when checking the number of dynamic symbols. ClosedPublic Authored by grimar on Jun 30 2020, 7:20 AM.
Details Summary When we deriving the number of symbols from the DT_HASH table, we can crash when The patch fixes the issue.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jul 1 2020, 1:47 AM Closed by commit rG61f967dccaba: [llvm-readobj] - Don't crash when checking the number of dynamic symbols. (authored by grimar). · Explain WhyJul 1 2020, 2:39 AM This revision was automatically updated to reflect the committed changes. grimar marked 2 inline comments as done.
Revision Contents
Diff 274467 llvm/test/tools/llvm-readobj/ELF/dyn-symbols-size-from-hash-table.test
llvm/tools/llvm-readobj/ELFDumper.cpp
|
null -> zero
Also below in file names.