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)
commit6621cb7478f02fd146eb26d2b0a3adadbc09596e
tree2a5e0888048a88ececbe862f7a0f50ffbd200f82
parentee48feadfde407206eecce83ce460cccfeeffe10
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

llvm-svn: 235596
llvm/lib/Bitcode/Reader/BitstreamReader.cpp
llvm/test/Bitcode/Inputs/invalid-array-type.bc [new file with mode: 0644]
llvm/test/Bitcode/invalid.test