Files
6gbvram---16gb-ram/crates/victory-hle
Diego Casares 4902d45680 hle: pending_with completes the call it began, not the block's
pending_with ran its work on a thread that completed the call by its block
address. A title that cancels the call and begins another on the same block
(zeroed, as a new block is) had the old work finish the new call. The thread
also read the shared state through a raw pointer that cleanup had already
freed when the cancel ended the call, so a result returned after a cancel
was a use-after-free.

The thread now holds an Arc of the state and the call it began with, and
completes that call directly. A call a cancel ended is left alone.

Adds a regression test for the stale completion and a test for the
successful path.

(cherry picked from commit d3fb9dc0df8133003b2777944cfef613f6546bff)
2026-11-27 17:51:23 -08:00
..
2026-11-23 01:15:26 +01:00