Be more strict about the operand for the array type in BitcodeReader
authorFilipe Cabecinhas <me@filcab.net>
Thu, 23 Apr 2015 13:38:21 +0000 (13:38 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Thu, 23 Apr 2015 13:38:21 +0000 (13:38 +0000)
commit023602239049dfeaa6eb898ddad9cfce790dc16e
tree2725dedb79104cd8b24dd617fc8a238e9de1eea6
parent81f9bd3e1997bde935f834ed7be143b4b91088d1
Be more strict about the operand for the array type in BitcodeReader

Summary: Bug found with AFL fuzz.

Reviewers: rafael

Subscribers: llvm-commits

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

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