Skip to content

Client: guard wand-tool scan against level-load teardown crash#62

Merged
Kheartz merged 1 commit into
mainfrom
wand_scan_guard
Jun 28, 2026
Merged

Client: guard wand-tool scan against level-load teardown crash#62
Kheartz merged 1 commit into
mainfrom
wand_scan_guard

Conversation

@Kheartz

@Kheartz Kheartz commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

WandToolFor walks the live GUObjectArray every frame; during a streaming/level load an entry can be freed mid-walk, faulting in GetClass()/FindFunctionInChain. Split the walk into ScanForWandTool and SEH-guard it (SafeScanForWandTool) so a stale-pointer fault yields no-wand-this-frame instead of crashing.

WandToolFor walks the live GUObjectArray every frame; during a streaming/level load an entry can be freed mid-walk, faulting in GetClass()/FindFunctionInChain. Split the walk into ScanForWandTool and SEH-guard it (SafeScanForWandTool) so a stale-pointer fault yields no-wand-this-frame instead of crashing.
@Kheartz Kheartz merged commit 6495c87 into main Jun 28, 2026
2 checks passed
@Kheartz Kheartz deleted the wand_scan_guard branch June 28, 2026 06:11
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.

1 participant