[all-commits] [llvm/llvm-project] 327c44: [llvm-readobj] - Verify the location of program he...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Jul 15 02:37:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 327c4450353309ea97cbd9f56b46f099f3b0a1f9
      https://github.com/llvm/llvm-project/commit/327c4450353309ea97cbd9f56b46f099f3b0a1f9
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-07-15 (Wed, 15 Jul 2020)

  Changed paths:
    M llvm/include/llvm/Object/ELF.h
    M llvm/test/tools/llvm-readobj/ELF/gnu-phdrs.test

  Log Message:
  -----------
  [llvm-readobj] - Verify the location of program headers better.

This improves condition in the ELFFile::program_headers().
Previously if was possible to read the headers from the wrong place when
the value of e_phoff was so large that computation overflowed.

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




More information about the All-commits mailing list