[all-commits] [llvm/llvm-project] 61f967: [llvm-readobj] - Don't crash when checking the num...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Jul 1 02:21:25 PDT 2020


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

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

  Log Message:
  -----------
  [llvm-readobj] - Don't crash when checking the number of dynamic symbols.

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.

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




More information about the All-commits mailing list