test(libSceAudioIn): audit open-ex format bounds, per-path silent state, and buffer guard boundaries #15899
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15899"
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 slopgobblercobbler on 2026-11-04T22:47:33Z.
What
Audit
sceAudioInOpenExparameter bounds, per-open-path silent states acrosssceAudioInOpen,sceAudioInOpenEx,sceAudioInHqOpen,sceAudioInHqOpenEx, andsceAudioInAsyncOpen, and input buffer underflow/overflow guard byte integrity incore/libs/tests/GuestAudioIn.cpp.Tested
guest_audio_in_testscovering open-ex format validation (format 0 S16 mono success, formats 3 and 4 parameter rejection), active port silent state verification, and input buffer boundary guard preservation.python tools/check_conventions.py --base upstream/main --head HEAD(0 errors).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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T23:56:27Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: fix the undefined
ReportsNotImplementedcalls and correct the invalid-handle checks in the new tests.What I ran
Reviewed head
09ea35c6887a6e694bd9c8514cacf442df21c47eusingrepo_read.pyreader calls only; no test or build commands were run.Results
Findings
Blocking
core/libs/tests/GuestAudioIn.cpp:94callsReportsNotImplementedthree times, but the changed test file contains no declaration or definition for it. The project’s test target includes this file directly, so these calls prevent the test executable from compiling. Add the helper (or use an existing helper available to this translation unit).core/libs/tests/GuestAudioIn.cpp:80andcore/libs/tests/GuestAudioIn.cpp:87assume small integers 1–8 are invalidsceAudioInGetSilentStatehandles. The implementation validates the handle encoding and then returnsAUDIO_IN_ERROR_INVALID_STATEfor an unused slot; consequently those assertions expect the wrong error.TestActivePortStatesalso expectsINVALID_HANDLEfor unused slot 9 at line 175, while the implementation returnsINVALID_STATE. Update the expected errors to match the implementation or use handles with invalid encodings.Non-blocking
None.
Not verified
No test or build was run. The review bundle’s
files.jsonwas not readable through the reader, so its reviewed/excluded classification could not be checked. The prepared bundle listscore/libs/tests/GuestAudioIn.cppanddocs/dev/debt/libSceAudioIn.mdas included; both full changed files were read. No other repository files were reviewed.To get this to a good state
Fix the compile error and the invalid-handle expectations, then run the guest audio input test target.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T20:25:37Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed test changes contain no verified blocking defect; the PR description’s reported test and convention runs were not run during this review.
What I ran
Reviewed head
f16031f454d08cc91066619e3785db1249cdb0ad. Readcore/libs/tests/GuestAudioIn.cppand the relevant audio input implementation incore/libs/prx/libSceAudioIn/Export.cppthroughrepo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The standalone
guest_audio_in_testsand convention check were not run. Onlycore/libs/tests/GuestAudioIn.cppwas read among the changed files;files.jsonwas unavailable through the reader, so the complete reviewed-file set could not be confirmed. Hardware and console behavior were not tested.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T04:46:24Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this test-only change; no tests were run in this review, and the prepared inputs include the complete changed file.
What I ran
Reviewed head
f0b7460688e65ea4e9e3c3984d6ea94f88e366fefrom the prepared diff and the pinned head copy ofcore/libs/tests/GuestAudioIn.cpp. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The standalone guest audio tests and convention check reported in the description were not run or independently confirmed. No files were excluded by the manifest;
files.jsonwas not available through the reader. The prepared diff and complete changed file were read.To get this to a good state
Nothing is required.