Skip to content

Fix Windows exception callback argument passing - #1256

Merged
Weiteng Chen (CvvT) merged 2 commits into
mainfrom
weiteng/windows-exception-callback-argument-fix
Sep 2, 2026
Merged

Fix Windows exception callback argument passing#1256
Weiteng Chen (CvvT) merged 2 commits into
mainfrom
weiteng/windows-exception-callback-argument-fix

Conversation

@CvvT

Copy link
Copy Markdown
Contributor

The old code assumed that rsp is restored to host_sp and then read thread context via *rsp to rcx, but rsp is actually assigned to host_sp - EXCEPTION_RECORD. This PR fixes it by directly assigning *host_sp to rcx.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

🤖 SemverChecks 🤖 No breaking API changes detected

Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered.

@CvvT
Weiteng Chen (CvvT) marked this pull request as ready for review September 2, 2026 01:01

@wdcui Weidong Cui (wdcui) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@CvvT
Weiteng Chen (CvvT) added this pull request to the merge queue Sep 2, 2026
Merged via the queue into main with commit 831b301 Sep 2, 2026
15 checks passed
@CvvT
Weiteng Chen (CvvT) deleted the weiteng/windows-exception-callback-argument-fix branch September 2, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants