summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/Inputs/invalid-unexpected-eof.bc
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2015-01-24 04:15:05 +0000
committerFilipe Cabecinhas <me@filcab.net>2015-01-24 04:15:05 +0000
commitde968ecb05bd92f14105bbe3b7a19c6bfd69be39 (patch)
tree6767d94927e4ce8c3d33287c6e9ae2264f279eb3 /llvm/test/Bitcode/Inputs/invalid-unexpected-eof.bc
parentd1787adcec7f0ffa9ac002c1c04c7fc9c907f245 (diff)
downloadbcm5719-llvm-de968ecb05bd92f14105bbe3b7a19c6bfd69be39.tar.gz
bcm5719-llvm-de968ecb05bd92f14105bbe3b7a19c6bfd69be39.zip
[Bitcode] Diagnose errors instead of asserting from bad input
Eventually we can make some of these pass the error along to the caller. Reports a fatal error if: We find an invalid abbrev record We try to get an invalid abbrev number We can't fill the current word due to an EOF Fixed an invalid bitcode test to check for output with FileCheck Bugs found with afl-fuzz llvm-svn: 226986
Diffstat (limited to 'llvm/test/Bitcode/Inputs/invalid-unexpected-eof.bc')
-rw-r--r--llvm/test/Bitcode/Inputs/invalid-unexpected-eof.bc1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/Inputs/invalid-unexpected-eof.bc b/llvm/test/Bitcode/Inputs/invalid-unexpected-eof.bc
new file mode 100644
index 00000000000..a487393d066
--- /dev/null
+++ b/llvm/test/Bitcode/Inputs/invalid-unexpected-eof.bc
@@ -0,0 +1 @@
+BCÀÞ! 000000 00000000000000 \ No newline at end of file
OpenPOWER on IntegriCloud