diff options
author | Georgii Rymar <grimar@accesssoftek.com> | 2020-05-21 17:29:18 +0300 |
---|---|---|
committer | Georgii Rymar <grimar@accesssoftek.com> | 2020-05-27 16:41:09 +0300 |
commit | 4ab03e62fd040efdbde4b6c310e5abbda5363abd (patch) | |
tree | 44f813554c683bdaf31264e0374b0662dbe89981 /llvm/unittests/Support/FileCheckTest.cpp | |
parent | ad5d319ee85d31ee2b1ca5c29b3a10b340513fec (diff) | |
download | llvm-4ab03e62fd040efdbde4b6c310e5abbda5363abd.zip llvm-4ab03e62fd040efdbde4b6c310e5abbda5363abd.tar.gz llvm-4ab03e62fd040efdbde4b6c310e5abbda5363abd.tar.bz2 |
[llvm-readobj] - Do not crash when an invalid .eh_frame_hdr is dumped using --unwind.
When the p_offset/p_filesz of the PT_GNU_EH_FRAME is invalid
(e.g larger than the file size) then llvm-readobj might crash.
This patch fixes the issue. I've introduced `ELFFile<ELFT>::getSegmentContent`
method, which is very similar to `ELFFile<ELFT>::getSectionContentsAsArray` one.
Differential revision: https://reviews.llvm.org/D80380
Diffstat (limited to 'llvm/unittests/Support/FileCheckTest.cpp')
0 files changed, 0 insertions, 0 deletions