1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/lib/Object
Jonas Devlieghere b42f11290d [WASM] Fix overflow when reading custom section
When reading a custom WASM section, it was possible that its name
extended beyond the size of the section. This resulted in a bogus value
for the section size due to the size overflowing.

Fixes heap buffer overflow detected by OSS-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8190

Differential revision: https://reviews.llvm.org/D50387

llvm-svn: 339269
2018-08-08 16:34:03 +00:00
..
Archive.cpp Object: Find terminator correctly when reading long filenames in GNU archives (PR37244) 2018-05-08 08:22:58 +00:00
ArchiveWriter.cpp [COFF] Adjust how we flag weak externals 2018-07-20 20:48:29 +00:00
Binary.cpp Update a few switch statements to handle file_magic::pdb. 2018-03-07 18:58:33 +00:00
CMakeLists.txt
COFFImportFile.cpp [COFF] Use symbolic constants instead of hardcoded numbers. NFCI. 2018-07-20 20:48:33 +00:00
COFFModuleDefinition.cpp [COFF] Improve correctness of def parsing for GNU features 2018-05-09 09:21:53 +00:00
COFFObjectFile.cpp Remove trailing space 2018-07-30 19:41:25 +00:00
Decompressor.cpp
ELF.cpp [llvm-objdump] Add dynamic section printing to private-headers option 2018-07-25 11:09:20 +00:00
ELFObjectFile.cpp [RISCV] Add ELFObjectFileBase::getRISCVFeatures let llvm-objdump could get RISCV target feature 2018-02-02 06:01:02 +00:00
Error.cpp
IRObjectFile.cpp
IRSymtab.cpp Put "built-in" function definitions in global Used list, for LTO. (fix bug 34169) 2018-07-24 19:34:37 +00:00
LLVMBuild.txt
MachOObjectFile.cpp [llvm-readobj] Add -hex-dump (-x) option 2018-07-11 10:00:29 +00:00
MachOUniversal.cpp
ModuleSymbolTable.cpp LowerTypeTests: Propagate symver directives 2018-04-20 01:36:48 +00:00
Object.cpp Report fatal error in the case of out of memory 2018-02-20 05:41:26 +00:00
ObjectFile.cpp Update a few switch statements to handle file_magic::pdb. 2018-03-07 18:58:33 +00:00
RecordStreamer.cpp [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
RecordStreamer.h [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
SymbolicFile.cpp Update a few switch statements to handle file_magic::pdb. 2018-03-07 18:58:33 +00:00
SymbolSize.cpp Fix computeSymbolSizes SEGFAULT on invalid file 2018-04-23 16:08:01 +00:00
WasmObjectFile.cpp [WASM] Fix overflow when reading custom section 2018-08-08 16:34:03 +00:00
WindowsResource.cpp [Support] Add WritableMemoryBuffer::getNewMemBuffer 2018-01-09 17:26:06 +00:00