Skip to content

fix(libSceVoiceQoS): guard endpoint outputs - #18043

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
DonRyuzaki:fix/voiceqos-endpoint-guest-output
Nov 12, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
DonRyuzaki:fix/voiceqos-endpoint-guest-output

Conversation

@DonRyuzaki

Copy link
Copy Markdown
Contributor

What

Guard sceVoiceQoSGetLocalEndpoint and sceVoiceQoSGetRemoteEndpoint output pointers with GuestCopyOut_nid_no_patch. An unwritable non-null output now returns the existing invalid-argument error without crashing the host, while preserving errno. Normal endpoint values and unused-slot -1 results are unchanged. Console behavior for invalid guest memory is unmeasured and recorded in debt.

Open #8656 changes attribute functions, #12104 changes packet-stub debt, and #14212 reformats debt. None changes these two getters; a later shared-file rebase may be needed.

Tested

  • WSL2 Linux, GNU 13.3.0, Release: full default runtime build passed, exit 0 (3,090/3,090 steps). Tested upstream 53bb9927828957e110557a9eb710c7ba954f8732 plus commit 5a654208b129c3f3aa98f9365d853275a7a76a67, exact tree f8dd61619a53dac9777303f664d6094fd3fd1388.
  • Test-only baseline on that upstream source SIGSEGVed on the invalid 0x10 output. Fixed source returned invalid argument and preserved errno.
  • guest_voice_qos and guest_voice_qos_app_type_0x10000000 passed 2/2 registered CTests with --repeat until-fail:3.
  • Publication head a8076a0cbaab50566be01da0bd6272ab24b1dfd0 is rebased on 98afc0b8cf8819bb86147ff9e51093a4b1f855d4. Intervening upstream changes did not touch VoiceQoS source, tests or debt; this rebased head did not receive a separate full build. Conventions and git diff --check passed against that base.
  • pr_overlap.py could not run because gh is unavailable. I manually compared open feat(libSceVoiceQoS): keep connection attributes and read stored attributes back #8656, docs(debt): correct eight entries that no longer match the code #12104 and docs(debt): separate entries with blank lines and drop derived export totals #14212 patches, comments and reviews; no same-function claim was found.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One branch and one topic; follow-ups go in a new PR
  • No code comments except technical debt
  • Unimplemented paths throw; remaining gaps are recorded in debt
  • No investigation notes, images or logs added to the repository
  • No third-party code added
  • Generic behavior, not title-specific
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@JJenkx

JJenkx commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Windows check of head a8076a0cba, merged onto main 164ac9b078 (68330516f0, clean merge).

Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.

  • guest_voice_qos, guest_voice_qos_app_type_0x10000000 pass in 3 of 3 runs, none skipped.

AI-assisted: yes.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

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.

Pull request Shared files not compared
PR 8656 core/libs/prx/libSceVoiceQoS/Export.cpp
core/libs/tests/GuestVoiceQoS.cpp
docs/dev/debt/libSceVoiceQoS.md
PR 14212 docs/dev/debt/libSceVoiceQoS.md

@ycbuzi

ycbuzi commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Tested a8076a0cba merged into main, with the whole ctest suite on each machine below. Nothing fails that does not also fail on main on the same machine.

  • Windows Server 2022 (GitHub-hosted runner), full build, WinLibs GCC 15.2.0: 99% tests passed, 41 tests failed out of 4891; 99% tests passed, 41 tests failed out of 4891. 41 of the failing tests fail on main too. run
  • Windows Server 2025 (GitHub-hosted runner), full build, WinLibs GCC 15.2.0: 99% tests passed, 15 tests failed out of 4891; 99% tests passed, 15 tests failed out of 4891. 15 of the failing tests fail on main too. run

AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports.

@gabichuuuuu

Copy link
Copy Markdown
Contributor

Windows check of head a8076a0cba, merged onto main f57c971559 (clean merge, built together with other open PRs that touch different files).

Setup: Windows 11 x64, WinLibs GCC 15.2.0 (r7), Ninja, Release, BUILD_TESTING=ON, Python 3.15.

  • Tests built from this PR's test files: guest_voice_qos, guest_voice_qos_app_type_0x10000000.
  • All of them pass in 3 of 3 runs.
  • Negative control: with this PR's code reverted to main (files it adds removed) and rebuilt, guest_voice_qos, guest_voice_qos_app_type_0x10000000 fail in 2 of 2 runs, so the tests detect the change.

AI-assisted: yes.

@oneandonlydean
oneandonlydean merged commit 88047b2 into boykopovar:main Nov 12, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants