aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/FileCheckTest.cpp
diff options
context:
space:
mode:
authorGeorgii Rymar <grimar@accesssoftek.com>2020-05-21 17:29:18 +0300
committerGeorgii Rymar <grimar@accesssoftek.com>2020-05-27 16:41:09 +0300
commit4ab03e62fd040efdbde4b6c310e5abbda5363abd (patch)
tree44f813554c683bdaf31264e0374b0662dbe89981 /llvm/unittests/Support/FileCheckTest.cpp
parentad5d319ee85d31ee2b1ca5c29b3a10b340513fec (diff)
downloadllvm-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