[BitcodeReader] Make sure the type of the inserted value matches the type of the...
authorFilipe Cabecinhas <me@filcab.net>
Mon, 18 May 2015 22:27:11 +0000 (22:27 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Mon, 18 May 2015 22:27:11 +0000 (22:27 +0000)
commitb2bf278152eb79ac805414f39cf78207fc506dc5
tree38a5091ea9355094044b96f6c3eca27e56a28537
parent4d632b44e218f13d86d0f45c6b94f0a37fe8097e
[BitcodeReader] Make sure the type of the inserted value matches the type of the aggregate at those indices

Bug found with AFL-fuzz.

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