[all-commits] [llvm/llvm-project] 455d5a: [llvm-readobj/elf] - Refine the code for broken PT...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Thu Aug 20 02:38:52 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 455d5a8a065b4b93df11d1696dc1546c403465a5
      https://github.com/llvm/llvm-project/commit/455d5a8a065b4b93df11d1696dc1546c403465a5
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-08-20 (Thu, 20 Aug 2020)

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

  Log Message:
  -----------
  [llvm-readobj/elf] - Refine the code for broken PT_DYNAMIC segment diagnostic.

The code that reports "PT_DYNAMIC segment offset + size exceeds the size of the file"
has an issue: it is possible to bypass the validation by overflowing the size + offset result.

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




More information about the All-commits mailing list