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.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D83774
[llvm-readobj] - Verify the location of program headers better. ClosedPublic Authored by grimar on Jul 14 2020, 7:28 AM.
Details Summary This improves condition in the ELFFile::program_headers().
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jul 14 2020, 10:47 AM jhenderson added inline comments. Closed by commit rG327c44503533: [llvm-readobj] - Verify the location of program headers better. (authored by grimar). · Explain WhyJul 15 2020, 2:37 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 277829 llvm/include/llvm/Object/ELF.h
llvm/test/tools/llvm-readobj/ELF/gnu-phdrs.test
|
Maybe Offset rather than Off (I'd also take PhOff).