diff options
author | Filipe Cabecinhas <me@filcab.net> | 2015-04-23 13:38:21 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2015-04-23 13:38:21 +0000 |
commit | 6621cb7478f02fd146eb26d2b0a3adadbc09596e (patch) | |
tree | 2a5e0888048a88ececbe862f7a0f50ffbd200f82 /llvm/test/Bitcode | |
parent | ee48feadfde407206eecce83ce460cccfeeffe10 (diff) | |
download | bcm5719-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')
-rw-r--r-- | llvm/test/Bitcode/Inputs/invalid-array-type.bc | bin | 0 -> 612 bytes | |||
-rw-r--r-- | llvm/test/Bitcode/invalid.test | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/Inputs/invalid-array-type.bc b/llvm/test/Bitcode/Inputs/invalid-array-type.bc Binary files differnew file mode 100644 index 00000000000..3a4b635dd0e --- /dev/null +++ b/llvm/test/Bitcode/Inputs/invalid-array-type.bc 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 |