summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/recursion/main.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2019-07-11 09:57:00 +0000
committerFlorian Hahn <flo@fhahn.com>2019-07-11 09:57:00 +0000
commit8b222ecf2769ee133691f208f6166ce118c4a164 (patch)
tree69f82fb87e1eb3297bfb14e264c7126b97cb6b53 /lldb/packages/Python/lldbsuite/test/functionalities/recursion/main.cpp
parent08b4a8da07aa2335c44a40aa5a9951c2ee909e6b (diff)
downloadbcm5719-llvm-8b222ecf2769ee133691f208f6166ce118c4a164.tar.gz
bcm5719-llvm-8b222ecf2769ee133691f208f6166ce118c4a164.zip
[BitcodeReader] Validate OpNum, before accessing Record array.
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: 365750
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/recursion/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud