Skip to content

Commit 51fd1e2

Browse files
Fix crash when pTargetMD is null (#110652)
Co-authored-by: Thays Grazia <[email protected]>
1 parent fc3708f commit 51fd1e2

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
@@ -5657,7 +5657,7 @@ static bool IsTailCall(const BYTE * ip, ControllerStackInfo* info, TailCallFunct
56575657

56585658
if (type == TailCallFunctionType::StoreTailCallArgs)
56595659
{
5660-
return (pTargetMD->IsDynamicMethod() && pTargetMD->AsDynamicMethodDesc()->GetILStubType() == DynamicMethodDesc::StubTailCallStoreArgs);
5660+
return (pTargetMD && pTargetMD->IsDynamicMethod() && pTargetMD->AsDynamicMethodDesc()->GetILStubType() == DynamicMethodDesc::StubTailCallStoreArgs);
56615661
}
56625662

56635663
if (pTargetMD != pTailCallDispatcherMD)

0 commit comments

Comments
 (0)