1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/include/llvm/Bitcode
Bruno Cardoso Lopes 9f87bc51d4 [Bitcode] Fix an unsigned integer overflow while parsing bitcode wrapper header
Specially crafted bitcode wrapper headers can cause unsigned interger
overflow and lead to crashes when wrapping around. Fix the offset check
and avoid such scenarios.

Writing a testcase for this would involve editing the binary to generate
values that trigger the overflow, since this would never happen while
generating the bitcode in regular compilation flows, so there's
currently no feasible way add one.

llvm-svn: 268881
2016-05-08 21:27:39 +00:00
..
BitCodes.h Bitcode reader: replace DecodeChar6() with a lookup table (NFC) 2016-02-10 22:47:48 +00:00
BitcodeWriterPass.h Plumb the option to emit the ModuleHash in the bitcode through the bitcode writer APIs 2016-04-10 21:07:19 +00:00
BitstreamReader.h Add a module Hash in the bitcode and the combined index, implementing a kind of "build-id" 2016-04-01 05:33:11 +00:00
BitstreamWriter.h BitcodeWriter: Simplify and test writing blobs, NFC 2016-03-27 23:04:04 +00:00
LLVMBitCodes.h [ThinLTO] Use valueid instead of bitcode offsets in combined index file 2016-04-27 13:28:35 +00:00
ReaderWriter.h [Bitcode] Fix an unsigned integer overflow while parsing bitcode wrapper header 2016-05-08 21:27:39 +00:00