mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Make sure that isValidElementType(Type) before calling {Array,Struct}Type::get(Type)
Bug found with AFL fuzz. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236073 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
BIN
test/Bitcode/Inputs/invalid-array-element-type.bc
Normal file
BIN
test/Bitcode/Inputs/invalid-array-element-type.bc
Normal file
Binary file not shown.
BIN
test/Bitcode/Inputs/invalid-vector-element-type.bc
Normal file
BIN
test/Bitcode/Inputs/invalid-vector-element-type.bc
Normal file
Binary file not shown.
@@ -98,3 +98,10 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-fwdref-type-mismatch.bc 2>&1
|
||||
RUN: FileCheck --check-prefix=FWDREF-TYPE %s
|
||||
|
||||
FWDREF-TYPE: Invalid record
|
||||
|
||||
RUN: not llvm-dis -disable-output %p/Inputs/invalid-array-element-type.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=ELEMENT-TYPE %s
|
||||
RUN: not llvm-dis -disable-output %p/Inputs/invalid-vector-element-type.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=ELEMENT-TYPE %s
|
||||
|
||||
ELEMENT-TYPE: Invalid type
|
||||
|
Reference in New Issue
Block a user