mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-18 20:15:56 +00:00
ExitThread went back to the thread start with longjmp on a buffer from a non-unwinding setjmp, whose frame field is 0. When Control Flow Guard is on for the process, ucrtbase's longjmp checks the buffer first and ends the process with fast fail 13 (0xc0000409) on a frame of 0: offset 0xb373c of ucrtbase 10.0.26100.9711, the offset in the event logs of #222, #176 and #75. Exploit protection can force CFG on any program, and the first guest thread to exit, right after the game's first six-axis read, killed the process with no line in the log; the abort and invalid-parameter handlers never run for a fast fail. plat_jmp_save and plat_jmp_go keep and restore the Win64 callee-saved registers, MXCSR and the x87 control word themselves and validate nothing; Linux keeps setjmp and longjmp. Started with CFG forced on, the build before this change ends with 0xc0000409 at the same log line and in --probe-kernel; this one reaches gameplay and passes the probe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>