diff options
| author | Florian Hahn <flo@fhahn.com> | 2019-07-14 14:06:25 +0000 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2019-07-14 14:06:25 +0000 |
| commit | 19d3fdb08b722a4a66b21b3e08d2008c95f968e8 (patch) | |
| tree | 4efb73ea758e4fb0dacc1632e08db3181ffbf018 /llvm/test/Bitcode/Inputs | |
| parent | 864474c9c72a647e1d9bc7546df86103ce043f4f (diff) | |
| download | bcm5719-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.bc | bin | 0 -> 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 Binary files differnew file mode 100644 index 00000000000..454a14b8611 --- /dev/null +++ b/llvm/test/Bitcode/Inputs/invalid-fcmp-opnum.bc |

