Skip to content

Commit

Permalink
Fix crash when pTargetMD is null (#110651)
Browse files Browse the repository at this point in the history
Co-authored-by: Thays Grazia <[email protected]>
  • Loading branch information
github-actions[bot] and thaystg authored Dec 16, 2024
1 parent d801ec5 commit 4f2c30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/debug/ee/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5662,7 +5662,7 @@ static bool IsTailCall(const BYTE * ip, ControllerStackInfo* info, TailCallFunct

if (type == TailCallFunctionType::StoreTailCallArgs)
{
return (pTargetMD->IsDynamicMethod() && pTargetMD->AsDynamicMethodDesc()->GetILStubType() == DynamicMethodDesc::StubTailCallStoreArgs);
return (pTargetMD && pTargetMD->IsDynamicMethod() && pTargetMD->AsDynamicMethodDesc()->GetILStubType() == DynamicMethodDesc::StubTailCallStoreArgs);
}

if (pTargetMD != pTailCallDispatcherMD)
Expand Down

0 comments on commit 4f2c30f

Please sign in to comment.