1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/tools/llvm-readobj
Georgii Rymar 42f802871d [llvm-readelf] - Do not try to read past the end of the file when dumping the the SHT_GNU_HASH.
We have unobvious issue in the condition that is used to check
that we do not read past the EOF.

The problem is that the result of "GnuHashTable->nbuckets * 4" expression is uint32.
Because of that it was still possible to overflow it and pass the check.

There was no such problem with the "GnuHashTable->maskwords * sizeof(typename ELFT::Off)"
condition, because of `sizeof` on the right (which gives 64-bits value on x64),
but I've added an explicit conversion to 64-bit value for `GnuHashTable->maskwords` too.

Differential revision: https://reviews.llvm.org/D81103
2020-06-04 12:00:44 +03:00
..
ARMEHABIPrinter.h
ARMWinEHPrinter.cpp [llvm-readobj] Fix/improve printing WinEH unwind info for linked PE images 2019-12-11 10:20:34 +02:00
ARMWinEHPrinter.h
CMakeLists.txt
COFFDumper.cpp [COFF] Migrate COFFObjectFile to Expected<T> 2020-05-08 14:01:39 -07:00
COFFImportDumper.cpp
DwarfCFIEHPrinter.h [llvm-readobj] - Cleanup the DwarfCFIEH::PrinterContext class. NFCI. 2020-05-29 16:45:18 +03:00
ELFDumper.cpp [llvm-readelf] - Do not try to read past the end of the file when dumping the the SHT_GNU_HASH. 2020-06-04 12:00:44 +03:00
Error.cpp
Error.h
llvm-readobj.cpp [llvm-readelf] - Split GNUStyle<ELFT>::printHashHistogram. NFC. 2020-05-27 13:59:20 +03:00
llvm-readobj.h
LLVMBuild.txt
MachODumper.cpp
ObjDumper.cpp Make bugpoint work with gcc5 again. 2020-01-29 03:11:00 +01:00
ObjDumper.h [llvm-readelf] - Split GNUStyle<ELFT>::printHashHistogram. NFC. 2020-05-27 13:59:20 +03:00
StackMapPrinter.h
WasmDumper.cpp [WebAssembly] Add int32 DW_OP_WASM_location variant 2020-04-16 16:32:17 -07:00
Win64EHDumper.cpp [llvm-readobj] Fix/improve printing WinEH unwind info for linked PE images 2019-12-11 10:20:34 +02:00
Win64EHDumper.h
WindowsResourceDumper.cpp
WindowsResourceDumper.h
XCOFFDumper.cpp [NFC][XCOFF] refactor readobj/XCOFFDumper.cpp 2020-04-07 11:33:31 -04:00