Skip to content

Commit 4f2c30f

Browse files
Fix crash when pTargetMD is null (#110651)
Co-authored-by: Thays Grazia <[email protected]>
1 parent d801ec5 commit 4f2c30f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/debug/ee/controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5662,7 +5662,7 @@ static bool IsTailCall(const BYTE * ip, ControllerStackInfo* info, TailCallFunct
56625662

56635663
if (type == TailCallFunctionType::StoreTailCallArgs)
56645664
{
5665-
return (pTargetMD->IsDynamicMethod() && pTargetMD->AsDynamicMethodDesc()->GetILStubType() == DynamicMethodDesc::StubTailCallStoreArgs);
5665+
return (pTargetMD && pTargetMD->IsDynamicMethod() && pTargetMD->AsDynamicMethodDesc()->GetILStubType() == DynamicMethodDesc::StubTailCallStoreArgs);
56665666
}
56675667

56685668
if (pTargetMD != pTailCallDispatcherMD)

0 commit comments

Comments
 (0)