From 51fd1e2a44e5167170b4aaba823474c2d2e33743 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:55:59 -0300 Subject: [PATCH] Fix crash when pTargetMD is null (#110652) Co-authored-by: Thays Grazia --- src/coreclr/debug/ee/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/debug/ee/controller.cpp b/src/coreclr/debug/ee/controller.cpp index 882561cb9b6d3..1738eb5862fee 100644 --- a/src/coreclr/debug/ee/controller.cpp +++ b/src/coreclr/debug/ee/controller.cpp @@ -5657,7 +5657,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)