Repository navigation
fix(libSceAudioOut): copy volume array elements through GuestCopyIn - #29179
Sheikh-Bilal65 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
THEMANnt
left a comment
There was a problem hiding this comment.
Could we test that a failed volume update leaves every channel unchanged? The setter stages the new gains before applying them, but the new fixture checks the return code and errno without checking the gains afterward. A unit test with an injected copy failure can assert the old gains are still in place. That would catch a regression back to applying each gain as it is read.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The change safely stages selected volume reads before updating the port, and I found no blocking defects.
What I ran
Reviewed head 13e16ae344f67a9c4918b32c8fbeb4734b8dce86. I read the prepared description, commits, manifest, diff, and both changed files; used repo_read.py to inspect the changed function and relevant channel definitions. I did not run tests or compile anything.
cat description.md commits.md manifest.json diff.patch files.json
rg --files files
python3 repo_read.py cat core/libs/prx/libSceAudioOut/src/AudioOut.cpp 660 730
python3 repo_read.py cat core/libs/prx/libSceAudioOut/src/AudioOut.cpp 1 190
python3 repo_read.py cat core/libs/prx/libc/src/General.cpp 1108 1120
Files read: core/libs/prx/libSceAudioOut/src/AudioOut.cpp and core/libs/tests/GuestAudioOutVolumeBounds.cpp. files.json lists no excluded files.
Results
| Check | Result | Note |
|---|---|---|
| Source review | passed | Staged updates preserve existing values on copy failure |
| Runtime tests | not run | CI execution was pending per the description |
| Compilation | not run | No build or compile was requested |
Negative control
Not run; no test execution was performed.
Findings
Blocking
None.
Non-blocking
core/libs/tests/GuestAudioOutVolumeBounds.cpp:139checks the invalid-pointer result anderrno, but does not assert that the port's existing volume settings remain unchanged after the failed read. Consider checking the state after this call to directly cover the transactional behavior described in the PR.
Sources
Not verified
Runtime CTest behavior and platform-specific execution were not verified. The PR description reports local compiler and script checks; I did not run them.
To get this to a good state
Nothing required.
|
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.
|
|
Closing as duplicate of #24632, which has been rebased onto main with per-channel GuestCopyIn staging and unchanged-gain checks. |
What
Copy selected
volentries viaGuestCopyIn_nid_no_patchbefore mutatingport->volume(returning-2144993276and preservingerrnoon invalid pointers) insceAudioOutSetVolume, and add unmapped and page-boundary volume tests inGuestAudioOutVolumeBounds.cpp.Tested
MSYS2
g++-std=c++23 -Wall -Wextra(-WerroronGuestAudioOutVolumeBounds.cpp, zero new warnings onAudioOut.cpp),guest_pointer_audit.py,debt_fold.py --check, andcheck_conventions.pypassed locally; runtime CTest execution pending CI.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
errnovalue when input reads fail.