[BitcodeReader] Diagnose type mismatches with aliases
authorFilipe Cabecinhas <me@filcab.net>
Wed, 3 Jun 2015 01:30:13 +0000 (01:30 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Wed, 3 Jun 2015 01:30:13 +0000 (01:30 +0000)
commita3a2cab504a693ad926e93696ae9cadafba460ca
treeb9d331c4b526ed1326684153bbb08d12557256bf
parent1a2a0ee8a0b53eb690475c85a746fafdc2688102
[BitcodeReader] Diagnose type mismatches with aliases

Bug found with AFL fuzz.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238895 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
test/Bitcode/Inputs/invalid-alias-type-mismatch.bc [new file with mode: 0644]
test/Bitcode/invalid.test