Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
VSadov committed May 28, 2024
1 parent c31f163 commit 42c2838
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/nativeaot/Runtime/EHHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,8 @@ int32_t __stdcall RhpVectoredExceptionHandler(PEXCEPTION_POINTERS pExPtrs)
// Undo the "pop", but fix the return to point to the original caller,
// so that the ret could now succeed.
interruptedContext->SetSp(interruptedContext->GetSp() - 8);
// CONSIDER: According to docs, the OS should fix the SP value to match one from SSP,
// so this could be an assert instead.
*(size_t *)interruptedContext->GetSp() = interruptedContext->GetIp();
interruptedContext->SetIp(origIp);
}
Expand Down

0 comments on commit 42c2838

Please sign in to comment.