[all-commits] [llvm/llvm-project] 30c1f9: [llvm-readobj] - Fix a crash when DT_STRTAB is bro...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Fri Mar 27 03:18:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 30c1f9a5584eaf8d7571cc3e18edf1691a88ae7b
      https://github.com/llvm/llvm-project/commit/30c1f9a5584eaf8d7571cc3e18edf1691a88ae7b
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-03-27 (Fri, 27 Mar 2020)

  Changed paths:
    M llvm/lib/Object/ELF.cpp
    M llvm/test/tools/llvm-readobj/ELF/loadname.test

  Log Message:
  -----------
  [llvm-readobj] - Fix a crash when DT_STRTAB is broken.

We might have a crash scenario when we have an invalid DT_STRTAB value
that is larger than the file size. I've added a test case to demonstrate.

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




More information about the All-commits mailing list