[all-commits] [llvm/llvm-project] d5cbf7: [llvm-readobj] - Fix a crash scenario in GNUStyle<...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Tue Jul 7 02:07:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d5cbf7ba32527dba53fa673ff7fd7f7fbb0b82fc
      https://github.com/llvm/llvm-project/commit/d5cbf7ba32527dba53fa673ff7fd7f7fbb0b82fc
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

  Changed paths:
    M llvm/test/tools/llvm-readobj/ELF/hash-symbols.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

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

We might crash when the dynamic symbols table is empty (or not found)
and --hash-symbols is requested. Both .hash and .gnu.hash logic is affected.

The patch fixes this issue.

Differential revision: https://reviews.llvm.org/D83037




More information about the All-commits mailing list