1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/unittests/Object
Georgii Rymar 6ae506ec2d [libObject, llvm-readobj] - Reimplement ELFFile<ELFT>::getEntry.
Currently, `ELFFile<ELFT>::getEntry` does not check an index of
an entry. Because of that the code might read past the end of the symbol
table silently. I've added a test to `llvm-readobj\ELF\relocations.test`
to demonstrate the possible issue. Also, I've added a unit test for
this method.

After this change, `getEntry` stops reporting the section index and
reuses the `getSectionContentsAsArray` method, which already has
all the validation needed. Our related warnings now provide
more and better context sometimes.

Differential revision: https://reviews.llvm.org/D93209
2020-12-18 16:52:27 +03:00
..
ArchiveTest.cpp [Object][unittest] Skip tests on machines with non-64 bit size_t 2020-03-11 15:31:30 +00:00
CMakeLists.txt [llvm-readobj/libObject] - Allow dumping objects that has a broken SHT_SYMTAB_SHNDX section. 2020-11-03 11:30:28 +03:00
ELFObjectFileTest.cpp [libObject, llvm-readobj] - Reimplement ELFFile<ELFT>::getEntry. 2020-12-18 16:52:27 +03:00
ELFTest.cpp [VE] Implements minimum MC layer for VE (3/4) 2020-05-28 10:07:48 +02:00
ELFTypesTest.cpp [ELF] Fixing an issue in Elf_Note_Impl::getDescAsStringRef 2020-06-16 10:08:31 +00:00
MinidumpTest.cpp [unittests] Fix "comparison of integers of different signs" warnings 2020-01-14 13:24:51 +01:00
ObjectFileTest.cpp Add operator<< for object::SectionedAddress 2019-11-19 10:34:30 +01:00
SymbolicFileTest.cpp
SymbolSizeTest.cpp
XCOFFObjectFileTest.cpp [AIX][XCOFF][NFC] Change geNumberOfVRSaved function name to getNumberOfVRSaved. 2020-11-27 13:37:43 -05:00