llvm-6502/test/Bitcode/Inputs
Filipe Cabecinhas 9a1030a4d6 Error out of ParseBitcodeInto(Module*) if we haven't read a Module
Summary:
Without this check the following case failed:

Skip a SubBlock which is not a MODULE_BLOCK_ID nor a BLOCKINFO_BLOCK_ID
Got to end of file

TheModule would still be == nullptr, and we would subsequentially fail
when materializing the Module (assert at the start of
BitcodeReader::MaterializeModule).

Bug found with AFL.

Reviewers: dexonsmith, rafael

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D9014

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234887 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-14 14:07:15 +00:00
..
invalid-abbrev.bc
invalid-align.bc Use common parse routine to read alignment values from bitcode 2015-02-22 19:32:03 +00:00
invalid-bad-abbrev-number.bc
invalid-bitwidth.bc Check bit widths before trying to get a type. 2015-01-30 18:13:50 +00:00
invalid-extractval-array-idx.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-extractval-struct-idx.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-extractval-too-many-idxs.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-gep-mismatched-explicit-type.bc Test bitcode parsing error-handling for incorrect explicit type 2015-03-16 21:35:48 +00:00
invalid-gep-operator-mismatched-explicit-type.bc Add testing for mismatched explicit type on a gep operator when loading from bitcode 2015-03-16 22:03:50 +00:00
invalid-insertval-array-idx.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-insertval-struct-idx.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-insertval-too-many-idxs.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-load-mismatched-explicit-type.bc Add testing for mismatched explicit type on a load instruction when loading from bitcode 2015-03-16 21:48:46 +00:00
invalid-no-proper-module.bc Error out of ParseBitcodeInto(Module*) if we haven't read a Module 2015-04-14 14:07:15 +00:00
invalid-pr20485.bc
invalid-type-table-forward-ref.bc [bitcode reader] Fix an assert on invalid type tables 2015-01-30 10:57:58 +00:00
invalid-unexpected-eof.bc