diff options
author | Filipe Cabecinhas <me@filcab.net> | 2015-04-30 04:09:41 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2015-04-30 04:09:41 +0000 |
commit | f8a16a952dddaf1d38d6f596b78b1041ce5ea2eb (patch) | |
tree | e5ea984643f7e00e6a756f212c64494e9e1e1565 /llvm/test | |
parent | d8a029c81ba59fa53847ab7784ff5fb81ea0d1fe (diff) | |
download | bcm5719-llvm-f8a16a952dddaf1d38d6f596b78b1041ce5ea2eb.tar.gz bcm5719-llvm-f8a16a952dddaf1d38d6f596b78b1041ce5ea2eb.zip |
Don't overflow GCTable
Summary: Bug found with AFL fuzz.
Reviewers: rafael, dexonsmith
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D9361
llvm-svn: 236200
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/Bitcode/Inputs/invalid-GCTable-overflow.bc | bin | 0 -> 452 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-GCTable-overflow.bc b/llvm/test/Bitcode/Inputs/invalid-GCTable-overflow.bc Binary files differnew file mode 100644 index 00000000000..a9e9c52e1c0 --- /dev/null +++ b/llvm/test/Bitcode/Inputs/invalid-GCTable-overflow.bc diff --git a/llvm/test/Bitcode/invalid.test b/llvm/test/Bitcode/invalid.test index 4aff5c00501..2fe77989b2a 100644 --- a/llvm/test/Bitcode/invalid.test +++ b/llvm/test/Bitcode/invalid.test @@ -122,3 +122,8 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-load-pointer-type.bc 2>&1 | RUN: FileCheck --check-prefix=LOAD-BAD-TYPE %s LOAD-BAD-TYPE: Load operand is not a pointer type + +RUN: not llvm-dis -disable-output %p/Inputs/invalid-GCTable-overflow.bc 2>&1 | \ +RUN: FileCheck --check-prefix=GCTABLE-OFLOW %s + +GCTABLE-OFLOW: Invalid ID |