summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2015-04-30 04:09:41 +0000
committerFilipe Cabecinhas <me@filcab.net>2015-04-30 04:09:41 +0000
commitf8a16a952dddaf1d38d6f596b78b1041ce5ea2eb (patch)
treee5ea984643f7e00e6a756f212c64494e9e1e1565 /llvm/test
parentd8a029c81ba59fa53847ab7784ff5fb81ea0d1fe (diff)
downloadbcm5719-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.bcbin0 -> 452 bytes
-rw-r--r--llvm/test/Bitcode/invalid.test5
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
new file mode 100644
index 00000000000..a9e9c52e1c0
--- /dev/null
+++ b/llvm/test/Bitcode/Inputs/invalid-GCTable-overflow.bc
Binary files differ
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
OpenPOWER on IntegriCloud