mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Make sure Op->getType() is a PointerType before we cast<> it.
Bug found with AFL fuzz. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236193 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
BIN
test/Bitcode/Inputs/invalid-load-pointer-type.bc
Normal file
BIN
test/Bitcode/Inputs/invalid-load-pointer-type.bc
Normal file
Binary file not shown.
@@ -117,3 +117,8 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-too-big-fwdref.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=HUGE-FWDREF %s
|
||||
|
||||
HUGE-FWDREF: Invalid record
|
||||
|
||||
RUN: not llvm-dis -disable-output %p/Inputs/invalid-load-pointer-type.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=LOAD-BAD-TYPE %s
|
||||
|
||||
LOAD-BAD-TYPE: Load operand is not a pointer type
|
||||
|
Reference in New Issue
Block a user