1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/tools/llvm-readobj
Georgii Rymar cdad2ab091 [llvm-readobj] - Do not crash when GnuHashTable->symndx is greater than the dynamic symbols count.
`Elf_GnuHash_Impl` has the following method:

```
ArrayRef<Elf_Word> values(unsigned DynamicSymCount) const {
  return ArrayRef<Elf_Word>(buckets().end(), DynamicSymCount - symndx);
}
```

When DynamicSymCount is less than symndx we return an array with the huge broken size.
This patch fixes the issue and adds an assert. This assert helped to fix an issue
in one of the test cases.

Differential revision: https://reviews.llvm.org/D81937
2020-06-17 14:26:36 +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 Re-land "Migrate the rest of COFFObjectFile to Error" 2020-06-11 14:46:16 -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-readobj] - Do not crash when GnuHashTable->symndx is greater than the dynamic symbols count. 2020-06-17 14:26:36 +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] Adding 64-bit version of R_WASM_MEMORY_ADDR_* relocs 2020-06-15 10:07:42 -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 Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
WindowsResourceDumper.cpp
WindowsResourceDumper.h
XCOFFDumper.cpp [NFC][XCOFF] refactor readobj/XCOFFDumper.cpp 2020-04-07 11:33:31 -04:00