runtime: verify page boundaries across a partial decommit #183
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/184"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T18:10:01Z.
Change
Extend the existing
desktop_memory_queryfixture to cover a two-byte request crossing a page boundary. It dirties four committed pages, decommits the two middle pages, and queries both bytes of the request. The fixture now checks the containing page address and the exact length of each contiguous region. After recommit it checks all four pages for the expected contents.Verification
Commit
2ebbd84onccfa703, Windows build 26200 x64, MSVC 19.44.35230, Debug.All 11 selected CTests passed with zero skips. The page size was 4,096 bytes. The two-byte request decommitted 8,192 bytes. After recommit, all 8,192 bytes read zero and both neighboring pages retained their 8,192 marker bytes.
Before changing the region checker, the new fixture built successfully and failed
ctest --preset dev --no-tests=error -R '^desktop_memory_query$' -VwithTwo-byte decommit: expected two reserved pages between committed neighbors. The old assertion compared the unaligned query pointer to Windows' page-aligned result.Evidence and follow-up
This is an original, MIT-licensed C++ fixture using anonymous private memory in its own process. The two-byte decommit and page-aligned query semantics follow Microsoft's VirtualFree and VirtualQueryEx documentation. The result measures desktop Windows behavior.
This contribution was AI-assisted.
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T18:10:12Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
2ebbd84ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.