[BitstreamReader] Make sure the Array operand type is an encoding
authorFilipe Cabecinhas <me@filcab.net>
Wed, 27 May 2015 00:48:43 +0000 (00:48 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Wed, 27 May 2015 00:48:43 +0000 (00:48 +0000)
commit316f9e05ced58a19a4388ee8e3bf51f0372a0117
treefb768c96200f3358c737abb496e7a986a863fbbe
parentba7ccd4201383fbcb02806ce957e8813668465b0
[BitstreamReader] Make sure the Array operand type is an encoding

Bug found with AFL fuzz.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238269 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitstreamReader.cpp
test/Bitcode/Inputs/invalid-array-operand-encoding.bc [new file with mode: 0644]
test/Bitcode/invalid.test