From c6e3eb7f6150133ae5491dd401641d7dc25b4486 Mon Sep 17 00:00:00 2001 From: Noah Falk Date: Fri, 18 Oct 2024 08:58:54 -0700 Subject: [PATCH] Initialize m_fInPlaceSS (#109008) A recent fix added a new field to the DebuggerPatchSkip object and missed initializing it false. This causes the new in-place patch skipping logic activate at random depending on the value of uninitialized memory. Fixing this by initializing the variable. --- src/coreclr/debug/ee/controller.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/coreclr/debug/ee/controller.cpp b/src/coreclr/debug/ee/controller.cpp index 2d01f1904436e..ac87a49e0e658 100644 --- a/src/coreclr/debug/ee/controller.cpp +++ b/src/coreclr/debug/ee/controller.cpp @@ -4413,6 +4413,9 @@ DebuggerPatchSkip::DebuggerPatchSkip(Thread *thread, DebuggerControllerPatch *patch) : DebuggerController(thread, AppDomain::GetCurrentDomain()), m_address(patch->address) +#ifdef OUT_OF_PROCESS_SETTHREADCONTEXT + ,m_fInPlaceSS(false) +#endif { LOG((LF_CORDB, LL_INFO10000, "DPS::DPS: Patch skip 0x%p\n", patch->address));