summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/invalid.test
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2015-04-23 13:38:21 +0000
committerFilipe Cabecinhas <me@filcab.net>2015-04-23 13:38:21 +0000
commit6621cb7478f02fd146eb26d2b0a3adadbc09596e (patch)
tree2a5e0888048a88ececbe862f7a0f50ffbd200f82 /llvm/test/Bitcode/invalid.test
parentee48feadfde407206eecce83ce460cccfeeffe10 (diff)
downloadbcm5719-llvm-6621cb7478f02fd146eb26d2b0a3adadbc09596e.tar.gz
bcm5719-llvm-6621cb7478f02fd146eb26d2b0a3adadbc09596e.zip
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
Diffstat (limited to 'llvm/test/Bitcode/invalid.test')
-rw-r--r--llvm/test/Bitcode/invalid.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/invalid.test b/llvm/test/Bitcode/invalid.test
index b6c2ed3e8d6..1d8e14230ff 100644
--- a/llvm/test/Bitcode/invalid.test
+++ b/llvm/test/Bitcode/invalid.test
@@ -73,3 +73,8 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-fixed-size-too-big.bc
RUN: FileCheck --check-prefix=HUGE-ABBREV-OP %s
HUGE-ABBREV-OP: Fixed or VBR abbrev record with size > MaxChunkData
+
+RUN: not llvm-dis -disable-output %p/Inputs/invalid-array-type.bc 2>&1 | \
+RUN: FileCheck --check-prefix=ARRAY-TYPE %s
+
+ARRAY-TYPE: Array element type can't be an Array or a Blob
OpenPOWER on IntegriCloud