mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
75930147a7
PR50160: we currently ignore non-PT_PHDR segments with no sections, not accounting for its p_offset and p_filesz: this can cause an out-of-bounds write in `writeSegmentData` if the p_offset+p_filesz is larger than the total file size. This can be fixed by setting p_offset=p_filesz=0. The logic nicely unifies with the logic added in D90897. Reviewed By: jhenderson, rupprecht Differential Revision: https://reviews.llvm.org/D101560 |
||
---|---|---|
.. | ||
COFF | ||
ELF | ||
MachO | ||
wasm | ||
BitcodeStripOpts.td | ||
CMakeLists.txt | ||
CommonOpts.td | ||
CopyConfig.cpp | ||
CopyConfig.h | ||
InstallNameToolOpts.td | ||
llvm-objcopy.cpp | ||
llvm-objcopy.h | ||
ObjcopyOpts.td | ||
StripOpts.td |