fix(audioout2): guard queue-level guest outputs #18040
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18040"
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 boykopovar/AnyPS5. Originally posted by DonRyuzaki on 2026-11-10T07:18:42Z.
What
Use guarded guest copies for both optional output pointers of sceAudioOut2ContextGetQueueLevel, including the path used by the low-level wrapper. Valid callers still receive the same queue depth values. An unwritable non-null output now returns the existing invalid-argument code and preserves host errno. Poll counters advance only after both requested copies succeed. The console error for an unwritable output is unmeasured and is recorded as a host-safety fallback. Open #14997 changes ContextCreate and #12863 changes a context callback; our #18039 changes a different output in the same source file, so a later documentation rebase may be needed.
Tested
53bb992782passed the full default Linux runtime build, 3095/3095 Ninja steps. audio_out2_context_handles passed three consecutive focused CTest runs. The full suite was not run.925a544a26on reviewed main1539313883has byte-identical changed AudioOut2 source, test and debt files to the tested head. Its rebase incorporated unrelated AGC, library and debt changes; the full build was not repeated on the submitted head.Checklist