seh(native): VICTORY_PEEK reads a register as an address and faulted inside the fault dispatch #632

Closed
opened 2026-11-28 16:34:55 +00:00 by github-bot · 3 comments
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 16:32 UTC · original

The VICTORY_PEEK block in native/seh/dispatch.rs printed the qwords rcx points at whenever rcx was large enough to look like a pointer, with a plain read_unaligned. A register is not a pointer for being large.

Seen on a real run: at a breakpoint the title held rcx = 0xfffffffd, the diagnostic read through it inside the dispatch that reports faults, and one 20-second run wrote 1 812 812 victory: fatal signal 11 (code 01) at address 0x00000000fffffffd lines (118 MB of log) instead of dying on the title's own fault. The call chain the switch exists for was never printed.

Both the RVA list and rcx now read through dump::read_checked (the kernel-checked read the dump already uses), so an address that names nothing prints as not mapped.

**@⁠AnastasisKon** on GitHub · 2026-11-28 16:32 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/628) The `VICTORY_PEEK` block in `native/seh/dispatch.rs` printed the qwords `rcx` points at whenever `rcx` was large enough to look like a pointer, with a plain `read_unaligned`. A register is not a pointer for being large. Seen on a real run: at a breakpoint the title held `rcx = 0xfffffffd`, the diagnostic read through it inside the dispatch that reports faults, and one 20-second run wrote **1 812 812** `victory: fatal signal 11 (code 01) at address 0x00000000fffffffd` lines (118 MB of log) instead of dying on the title's own fault. The call chain the switch exists for was never printed. Both the RVA list and `rcx` now read through `dump::read_checked` (the kernel-checked read the dump already uses), so an address that names nothing prints as `not mapped`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 16:34:55 +00:00
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 16:32 UTC · original

/claim

**@⁠AnastasisKon** on GitHub · 2026-11-28 16:32 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/628#issuecomment-7242319784) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 16:32 UTC · original

Claimed by @⁠AnastasisKon. Open a draft pull request with Refs #628 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 16:32 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/628#issuecomment-7242323501) Claimed by @⁠AnastasisKon. Open a draft pull request with `Refs #628` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 16:35 UTC · original

Merged in #49.

**@⁠AnastasisKon** on GitHub · 2026-11-28 16:35 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/628#issuecomment-7242354628) Merged in #49.
This discussion has been locked. Commenting is limited to contributors.
No description provided.