[PATCH] D83037: [llvm-readobj] - Fix a crash scenario in GNUStyle<ELFT>::printHashSymbols().

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 2 04:48:18 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: rupprecht, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

We might crash when the dynamic symbols table is empty and --hash-symbols
is requested. Both .hash and .gnu.hash logic is affected.

The patch fixes this issue.


https://reviews.llvm.org/D83037

Files:
  llvm/test/tools/llvm-readobj/ELF/hash-symbols.test
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83037.275061.patch
Type: text/x-patch
Size: 5426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200702/e8adc468/attachment.bin>


More information about the llvm-commits mailing list