summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/Inputs
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2015-04-23 13:25:35 +0000
committerFilipe Cabecinhas <me@filcab.net>2015-04-23 13:25:35 +0000
commitee48feadfde407206eecce83ce460cccfeeffe10 (patch)
tree7a08f69e1f632ea98049529acac14692ffa7ec69 /llvm/test/Bitcode/Inputs
parent9316d89d55a16b2d30c0622de55aa1e73bb33b1a (diff)
downloadbcm5719-llvm-ee48feadfde407206eecce83ce460cccfeeffe10.tar.gz
bcm5719-llvm-ee48feadfde407206eecce83ce460cccfeeffe10.zip
Verify sizes when trying to read a BitcodeAbbrevOp
Summary: Make sure the abbrev operands are valid and that we can read/skip them afterwards. Bug found with AFL fuzz. Reviewers: rafael Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9030 llvm-svn: 235595
Diffstat (limited to 'llvm/test/Bitcode/Inputs')
-rw-r--r--llvm/test/Bitcode/Inputs/invalid-abbrev-fixed-size-too-big.bcbin0 -> 612 bytes
-rw-r--r--llvm/test/Bitcode/Inputs/invalid-abbrev-vbr-size-too-big.bcbin0 -> 612 bytes
2 files changed, 0 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/Inputs/invalid-abbrev-fixed-size-too-big.bc b/llvm/test/Bitcode/Inputs/invalid-abbrev-fixed-size-too-big.bc
new file mode 100644
index 00000000000..8fa28960d72
--- /dev/null
+++ b/llvm/test/Bitcode/Inputs/invalid-abbrev-fixed-size-too-big.bc
Binary files differ
diff --git a/llvm/test/Bitcode/Inputs/invalid-abbrev-vbr-size-too-big.bc b/llvm/test/Bitcode/Inputs/invalid-abbrev-vbr-size-too-big.bc
new file mode 100644
index 00000000000..35d00ba154b
--- /dev/null
+++ b/llvm/test/Bitcode/Inputs/invalid-abbrev-vbr-size-too-big.bc
Binary files differ
OpenPOWER on IntegriCloud