[all-commits] [llvm/llvm-project] 80bf29: [llvm-readobj] - Fix possible crashes related to d...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Thu Oct 8 06:22:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 80bf29f00cc84374a0c2081a25b7c75e527eecb5
      https://github.com/llvm/llvm-project/commit/80bf29f00cc84374a0c2081a25b7c75e527eecb5
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-10-08 (Thu, 08 Oct 2020)

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

  Log Message:
  -----------
  [llvm-readobj] - Fix possible crashes related to dumping gnu hash symbols.

It fixes possible scenarios when we crash/assert with `--hash-symbols` when
dumping an invalid GNU hash table which has a broken value in the buckets array.

This fixes a crash reported in comments for
https://bugs.llvm.org/show_bug.cgi?id=47681

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




More information about the All-commits mailing list