Recover chained x64 function ranges and validate a cross-range early return #28
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#28
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@R0Y00 on GitHub · 2026-11-21 10:06 UTC · original
The CPU translator currently takes one PE runtime-function interval as the function body. In the locally inventoried FidelityFX loader, the ffxDestroyContext export has a 33-byte primary interval and three additional unwind records chained to it. Two early checks branch outside the primary interval into a shared return block. Static inspection predicts a return value of 6 for a null first argument and for a valid pointer to a null context. These are local static observations; a Windows execution comparison is still open.
Build a source-owned PE fixture with a primary interval, chained ranges, a shared return and an adjacent unrelated function. Reconcile the ranges using unwind metadata and actual branch targets. Preserve single-interval behavior and reject inconsistent chains or a jump into a neighboring function. Exercise the two early returns and a distinct non-null control on Windows, comparing native fixture and translated results and preserved state. Classify any unhandled indirect-call path explicitly. Keep package bytes local and the CI fixture reproducible from source.