mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 04:22:57 +02:00
64f5482e1d
Without this check LLD crashes when SHT_GROUP section has invalid symbol index because of next code: template <class ELFT> StringRef elf::ObjectFile<ELFT>::getShtGroupSignature(const Elf_Shdr &Sec) { .. const Elf_Sym *Sym = Obj.getSymbol(Symtab, Sec.sh_info); .. } If sh_info is too large, &Symbols[Index] just asserts. No testcases provided because llvm-objdump/llvm-readelf does not use getSymbol() function. I`ll commit testcase for LLD separatelly. Differential revision: https://reviews.llvm.org/D25516 llvm-svn: 284702 |
||
---|---|---|
.. | ||
Archive.h | ||
ArchiveWriter.h | ||
Binary.h | ||
COFF.h | ||
COFFImportFile.h | ||
ELF.h | ||
ELFObjectFile.h | ||
ELFTypes.h | ||
Error.h | ||
IRObjectFile.h | ||
MachO.h | ||
MachOUniversal.h | ||
ModuleSummaryIndexObjectFile.h | ||
ObjectFile.h | ||
RelocVisitor.h | ||
StackMapParser.h | ||
SymbolicFile.h | ||
SymbolSize.h |