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

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 09:06:34 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: rupprecht, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

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.

Depends on D78805 <https://reviews.llvm.org/D78805>.


https://reviews.llvm.org/D79013

Files:
  llvm/test/tools/llvm-readobj/ELF/gnu-phdrs.test
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79013.260653.patch
Type: text/x-patch
Size: 5972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200428/55eed91f/attachment.bin>


More information about the llvm-commits mailing list