mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
Don't assert if materializing before seeing any function bodies
This assert was reachable from user input. A minimized test case (no FUNCTION_BLOCK_ID record) is attached. Bug found with afl-fuzz git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251667 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -207,3 +207,8 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-alias-type-mismatch.bc 2>&1
|
||||
RUN: FileCheck --check-prefix=ALIAS-TYPE-MISMATCH %s
|
||||
|
||||
ALIAS-TYPE-MISMATCH: Alias and aliasee types don't match
|
||||
|
||||
RUN: not llvm-dis -disable-output %p/Inputs/invalid-no-function-block.bc 2>&1 | \
|
||||
RUN: FileCheck --check-prefix=NO-FUNCTION-BLOCK %s
|
||||
|
||||
NO-FUNCTION-BLOCK: Trying to materialize functions before seeing function blocks
|
||||
|
||||
Reference in New Issue
Block a user