Repository navigation
fix(audioout2): guard user guest outputs - #18011
Merged
oneandonlydean merged 1 commit intoNov 12, 2026
Merged
Conversation
12 tasks done
Contributor
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
Contributor
|
Windows check of head Setup: Windows 11 x64, WinLibs GCC 15.2.0 (r7), Ninja, Release,
AI-assisted: yes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
sceAudioOut2UserCreate and sceAudioOut2UserGetSupportedAttributes directly wrote to non-null guest pointers. An unwritable pointer could terminate the host. This change uses GuestCopyOut_nid_no_patch while preserving host errno. A failed create copy removes the candidate handle without advancing the counter. sceAudioOut2UserCreateEx gets the same protection through its existing call to Create.
The console result for an unwritable non-null pointer is unmeasured. Existing invalid-argument codes are used as host-safety fallbacks and the uncertainty is recorded in technical debt. If the second attribute output fails, the first may already have been copied.
No open PR found in the current upstream search implements these AudioOut2User exports. #16614 changes a separate AudioOut port-state function; #14997 changes AudioOut2 context grain validation. Other audio PRs may edit the technical-debt file, especially format-only #14212, so a documentation rebase may be needed if those land first.
Tested
Checklist