1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/lib/Bitcode/Reader
Florian Hahn 7d4455d586 [BitcodeReader] Check if we can create a null constant for type.
We cannot create null constants for certain types, e.g. VoidTy,
FunctionTy or LabelTy. getNullValue asserts if we pass in an
unsupported type. We should also check for opaque types, but I'm not
sure how.

This fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14795.

Reviewers: t.p.northover, jfb, vsk

Reviewed By: vsk

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65897

llvm-svn: 369557
2019-08-21 18:20:11 +00:00
..
BitcodeAnalyzer.cpp Reland: [Remarks] Add an LLVM-bitstream-based remark serializer 2019-07-31 00:13:51 +00:00
BitcodeReader.cpp [BitcodeReader] Check if we can create a null constant for type. 2019-08-21 18:20:11 +00:00
BitReader.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt [llvm-bcanalyzer] Refactor and move to libLLVMBitReader 2019-07-08 02:06:34 +00:00
LLVMBuild.txt [Bitcode] Move Bitstream to a separate library 2019-07-03 22:40:07 +00:00
MetadataLoader.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
MetadataLoader.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ValueList.cpp [BitcodeReader] Use tighter upper bound to validate forward references. 2019-07-14 12:35:50 +00:00
ValueList.h [BitcodeReader] Use tighter upper bound to validate forward references. 2019-07-14 12:35:50 +00:00