mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
Make sure the CastInst is valid before trying to create it
Bug found with afl-fuzz. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249396 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -113,6 +113,11 @@ RUN: FileCheck --check-prefix=ELEMENT-TYPE %s
|
||||
|
||||
ELEMENT-TYPE: Invalid type
|
||||
|
||||
RUN: not llvm-dis -disable-output %p/Inputs/invalid-cast.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=INVALID-CAST %s
|
||||
|
||||
INVALID-CAST: Invalid cast
|
||||
|
||||
RUN: not llvm-dis -disable-output %p/Inputs/invalid-array-op-not-2nd-to-last.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=ARRAY-NOT-2LAST %s
|
||||
|
||||
|
||||
Reference in New Issue
Block a user