summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/Inputs
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2019-07-14 14:06:25 +0000
committerFlorian Hahn <flo@fhahn.com>2019-07-14 14:06:25 +0000
commit19d3fdb08b722a4a66b21b3e08d2008c95f968e8 (patch)
tree4efb73ea758e4fb0dacc1632e08db3181ffbf018 /llvm/test/Bitcode/Inputs
parent864474c9c72a647e1d9bc7546df86103ce043f4f (diff)
downloadbcm5719-llvm-19d3fdb08b722a4a66b21b3e08d2008c95f968e8.tar.gz
bcm5719-llvm-19d3fdb08b722a4a66b21b3e08d2008c95f968e8.zip
Recommit "[BitcodeReader] Validate OpNum, before accessing Record array."
This recommits r365750 (git commit 8b222ecf2769ee133691f208f6166ce118c4a164) Original message: Currently invalid bitcode files can cause a crash, when OpNum exceeds the number of elements in Record, like in the attached bitcode file. The test case was generated by clusterfuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15698 Reviewers: t.p.northover, thegameg, jfb Reviewed By: jfb Differential Revision: https://reviews.llvm.org/D64507 llvm-svn: 365750jkkkk llvm-svn: 366018
Diffstat (limited to 'llvm/test/Bitcode/Inputs')
-rw-r--r--llvm/test/Bitcode/Inputs/invalid-fcmp-opnum.bcbin0 -> 908 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/Inputs/invalid-fcmp-opnum.bc b/llvm/test/Bitcode/Inputs/invalid-fcmp-opnum.bc
new file mode 100644
index 00000000000..454a14b8611
--- /dev/null
+++ b/llvm/test/Bitcode/Inputs/invalid-fcmp-opnum.bc
Binary files differ
OpenPOWER on IntegriCloud