feat(libSceAudioOut): implement 13.60 validation gates for AudioOut2 inventory exports #27282
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27282"
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 gurtgg on 2026-11-25T18:35:08Z.
What
InventoryExports.hppandInventoryExports.cppwith firmware 13.60-verified parameter lists and deterministic validation gates forsceAudioOut2GetSystemDebugState,sceAudioOut2SetHrtfIdForCronos,sceAudioOut2AssignHRTF, andsceAudioOut2SetTvCorrectionInfo.sceAudioOut2GetSystemDebugState(float*)checksAudioOut2IsInitialized_nid_no_patch()and returns0x80268006before initialization.sceAudioOut2SetHrtfIdForCronos(int32_t, int32_t)andsceAudioOut2AssignHRTF(int32_t, int32_t)validatehrtfId(-1,0x80,1..5-> else0x80268001) before rejectinguserIdvalues0xfe,0xff, and-1with0x80268010.sceAudioOut2SetTvCorrectionInfo(uint32_t, const void*)checks nullinfo(0x8026800c) beforemode > 1(0x80268001).docs/dev/debt/changes/feat-audioout-inventory-1360.md.Tested
Added
TestInventoryExportValidationGatestocore/libs/prx/libSceAudioOut/tests/AudioOut2PortBuffers.cpp(audio_out2_port_buffers_tests), exercising pre-init, null-pointer, invalid-argument, invalid-user, and validation precedence behavior across all four exports.Negative control: unpatched
InventoryExports.cppaborts viaNotImplemented_nid_no_patchon every assertion inTestInventoryExportValidationGates.Local Windows Ninja/GCC 15.2.0 Release build (
libSceAudioOut,audio_out2_port_buffers_tests,audio_out2_timing_tests,guest_audio_out_tests,guest_audio_out2_latency_attributes_bounds_tests) +ctestpassed (4/4 in 8.10s total); signature negative control fails to compile againstorigin/mainheaders;tools/check_conventions.pypassed.Checklist
tools/check_conventions.pyrules verified (zero added C++ comments, UTF-8 LF, Conventional Commit title)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T18:50:29Z.
Review: APPROVED
Reviewed — looks good
The reviewed change at
462d51ee0c95159fd80855eb6effb79ad355f7beadds validation gates for four AudioOut2 exports; no verified blocking defects were found in the changed code inspected.What I ran
No build or tests were run. I read the prepared diff and changed files through
repo_read.py, and checked the initialization helper used by the new gate. The author reports adding tests and running a negative control; those runs were not independently verified.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
files.jsonwas unavailable through the reader, so excluded files and the reviewed-versus-excluded inventory could not be confirmed. No build, test, firmware, or physical-console behavior was independently checked. The author’s firmware disassembly evidence and reported negative control were not independently verified.Files read:
core/libs/prx/libSceAudioOut/include/InventoryExports.hpp,core/libs/prx/libSceAudioOut/src/InventoryExports.cpp,core/libs/prx/libSceAudioOut/tests/AudioOut2PortBuffers.cpp,docs/dev/debt/changes/feat-audioout-inventory-1360.md, andcore/libs/prx/libSceAudioOut/src/AudioOut.cpp(initialization helper). The complete contents for all changed files were provided in the prepared bundle; no changed files were excluded in the manifest.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T20:48:57Z.
Review: APPROVED
Reviewed — looks good
The changed validation gates match the stated argument and error precedence; I reviewed all four changed files at head
320b3a170f57c57a26fa9778bd7cfa664a1e0d6f.What I ran
Read the prepared diff and all changed files, plus the initialization-state implementation and declaration. No build or tests were run in this review; reported build and test results are author-provided.
Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Firmware 13.60 disassembly claims, physical-console behavior, and the author-reported Windows build, test, signature negative-control, and convention-check results were not independently verified. No files were excluded from review.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T11:17:29Z.
Review: COMMENTED
Ran the submitted
audio_out2_port_buffersCTest on Linux. It passed, including the new invalid-pointer, user and parameter cases for the AudioOut2 exports. I checked the debt entries that record where valid calls still require implementation.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.