hle: bounds-check audio notifications/pump, guard xg::tiling null out, and clear stale xmem::arrange owner #494

Open
github-bot wants to merge 1 commit from github-bot/gh-494 into main AGit
Owner

@⁠ahmetbagci8 on GitHub · 2026-12-01 17:11 UTC · original
ahmetbagci8:v2/fix-hle-audio-xg-xmem → main · +57 −7 · 3 files · 1 commits · open

Rebuilt on the new main line (per #468) consolidating our previously reviewed HLE fixes (#437, #460, #461):

Fixes

  1. udio.rs (submit, pump):
    • Require 4-byte alignment and full 4-byte bounds via heap_bytes(notification, size_of::()) instead of 1-byte heap_unmap before write_volatile(1).
    • Use checked_add + u32::try_from in pump() instead of truncating ddress as u32.
  2. xg.rs ( iling):
    • Guard !out.is_null() before writing SubresourceTiling entries and report the available count in *n when out is null.
  3. xmem.rs (rrange):
    • Remove the stale have entry from owner in the else branch when want has no current owner.

Verification

  • cargo test -p vice-tay-hle --lib -- audio::tests xg::tests xmem::tests::the_32_bit_heap (29 passed, 0 failed)
  • cargo clippy -p vice-tay-hle --tests (0 warnings)
**@⁠ahmetbagci8** on GitHub · 2026-12-01 17:11 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/494) `ahmetbagci8:v2/fix-hle-audio-xg-xmem` → `main` · +57 −7 · 3 files · 1 commits · open Rebuilt on the new main line (per #468) consolidating our previously reviewed HLE fixes (#437, #460, #461): ## Fixes 1. **udio.rs (submit, pump):** - Require 4-byte alignment and full 4-byte bounds via heap_bytes(notification, size_of::<u32>()) instead of 1-byte heap_unmap before write_volatile(1). - Use checked_add + u32::try_from in pump() instead of truncating ddress as u32. 2. **xg.rs ( iling):** - Guard !out.is_null() before writing SubresourceTiling entries and report the available count in *n when out is null. 3. **xmem.rs (rrange):** - Remove the stale have entry from owner in the else branch when want has no current owner. ## Verification - cargo test -p vice-tay-hle --lib -- audio::tests xg::tests xmem::tests::the_32_bit_heap (29 passed, 0 failed) - cargo clippy -p vice-tay-hle --tests (0 warnings)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 17:14:10 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/494/head:github-bot/gh-494'
git switch 'github-bot/gh-494'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-494'
git switch 'github-bot/gh-494'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-494'
git switch 'github-bot/gh-494'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-494'
git switch 'main'
git merge --squash 'github-bot/gh-494'
git switch 'main'
git merge --ff-only 'github-bot/gh-494'
git switch 'main'
git merge 'github-bot/gh-494'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.