[all-commits] [llvm/llvm-project] e19628: [llvm-readobj] - Fix crashes and misbehaviors when...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Mon Apr 20 04:23:47 PDT 2020


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

  Changed paths:
    M llvm/test/tools/llvm-readobj/ELF/dynamic-malformed.test
    M llvm/test/tools/llvm-readobj/ELF/loadname.test
    M llvm/test/tools/llvm-readobj/ELF/needed-libs.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] - Fix crashes and misbehaviors when reading strings from broken string tables.

There are cases when we either might print garbage or crash when
reading strings for dumping dynamic tags.

For example when a string table is not null-terminated or goes past the EOF.
This patch fixes issues mentioned.

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




More information about the All-commits mailing list