[all-commits] [llvm/llvm-project] f527e6: [llvm-readobj] - Do not crash when SHT_HASH table ...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Apr 1 08:03:27 PDT 2020


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

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

  Log Message:
  -----------
  [llvm-readobj] - Do not crash when SHT_HASH table is broken.

We have scenarios when the logic of --elf-hash-histogram/--hash-symbols/--hash-table
options might crash when given a broken hash table.

This patch adds pre-checks for tables for these 3 options
and provides test cases.

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




More information about the All-commits mailing list