mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 23:23:38 -04:00
Revert [BitcodeReader] Validate OpNum, before accessing Record array.
This reverts r365750 (git commit 8b222ecf2769ee133691f208f6166ce118c4a164) llvm-dis runs out of memory while opening invalid-fcmp-opnum.bc on llvm-hexagon-elf, probably because the bitcode file contains other suspicious values. http://lab.llvm.org:8011/builders/llvm-hexagon-elf/builds/21949 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365757 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -235,8 +235,3 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-nonpointer-atomicrmw.bc 2>&1
|
||||
RUN: FileCheck --check-prefix=NONPOINTER-ATOMICRMW %s
|
||||
|
||||
NONPOINTER-ATOMICRMW: Invalid record
|
||||
|
||||
RUN: not llvm-dis -disable-output %p/Inputs/invalid-fcmp-opnum.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=INVALID-FCMP-OPNUM %s
|
||||
|
||||
INVALID-FCMP-OPNUM: Invalid record: operand number exceeded available operands
|
||||
|
||||
Reference in New Issue
Block a user