[all-commits] [llvm/llvm-project] 0d5461: [llvm-readelf] - Do not crash when the PT_INTERP h...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Fri May 1 08:52:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d54612164519c874eecf5a1be68597b96410628
      https://github.com/llvm/llvm-project/commit/0d54612164519c874eecf5a1be68597b96410628
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-05-01 (Fri, 01 May 2020)

  Changed paths:
    M llvm/test/tools/llvm-readobj/ELF/gnu-phdrs.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readelf] - Do not crash when the PT_INTERP has a broken offset.

We do not verify the p_offset of the PT_INTERP header and tool may
crash when a program interpreter name string goes past the end of the file.

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




More information about the All-commits mailing list