mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Relax an assert when there's a type mismatch in forward references
Summary: We don't seem to need to assert here, since this function's callers expect to get a nullptr on error. This way we don't assert on user input. Bug found with AFL fuzz. Reviewers: rafael Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9308 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236027 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
BIN
test/Bitcode/Inputs/invalid-fwdref-type-mismatch.bc
Normal file
BIN
test/Bitcode/Inputs/invalid-fwdref-type-mismatch.bc
Normal file
Binary file not shown.
@ -93,3 +93,8 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-non-vector-shufflevector.bc
|
||||
RUN: FileCheck --check-prefix=INVALID-TYPE %s
|
||||
|
||||
INVALID-TYPE: Invalid type for value
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user