fix(libSceVideoOut): validate open parameters and resolution status outputs #14106

Open
slopgobblercobbler wants to merge 1 commit from upstream-pr/14106 into main
slopgobblercobbler commented 2026-10-31 19:11:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by slopgobblercobbler on 2026-10-31T19:11:44Z.


What

  • In core/libs/prx/libSceVideoOut/src/Output.cpp, return VIDEO_OUT_ERROR_INVALID_HANDLE from sceVideoOutGetResolutionStatus for unopened or closed handles matching console measurements, while retaining an exception for null status output pointers as unmeasured.
  • In core/libs/tests/GuestVideoOutResolutionStatus.cpp, assert VIDEO_OUT_ERROR_INVALID_HANDLE for unopened and closed handles, and verify null status output pointers reject with an exception.

Tested

  • Unit tests in core/libs/tests/GuestVideoOutResolutionStatus.cpp verify VIDEO_OUT_ERROR_INVALID_HANDLE on unopened and closed handles and exception rejection on null status pointers.
  • Verified python tools/check_conventions.py --base upstream/main --head HEAD: 0 findings.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5100684283 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14106). Originally posted by [slopgobblercobbler](https://github.com/slopgobblercobbler) on 2026-10-31T19:11:44Z. --- ### What - In `core/libs/prx/libSceVideoOut/src/Output.cpp`, return `VIDEO_OUT_ERROR_INVALID_HANDLE` from `sceVideoOutGetResolutionStatus` for unopened or closed handles matching console measurements, while retaining an exception for null status output pointers as unmeasured. - In `core/libs/tests/GuestVideoOutResolutionStatus.cpp`, assert `VIDEO_OUT_ERROR_INVALID_HANDLE` for unopened and closed handles, and verify null status output pointers reject with an exception. ### Tested - Unit tests in `core/libs/tests/GuestVideoOutResolutionStatus.cpp` verify `VIDEO_OUT_ERROR_INVALID_HANDLE` on unopened and closed handles and exception rejection on null status pointers. - Verified `python tools/check_conventions.py --base upstream/main --head HEAD`: 0 findings. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current main; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation .md files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-31 19:13:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T19:13:56Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The parameter-validation paths look consistent with the stated measurements, but the new null-attribute behavior is unmeasured and contradicts the repository rule for unknown behavior.

What I ran

Reviewed head f26371a44f658eea16d5e2382e39d05d98b863e4 against base e30f38577c79f16747eee745a145ff6b37a2dede; both PR-specific merge previews were clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0 (c++). No build or C++ tests were run.

git diff --check e30f38577c79f16747eee745a145ff6b37a2dede...f26371a44f658eea16d5e2382e39d05d98b863e4
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14106

Results

Check Result
Diff check Passed; no whitespace errors.
Conventions and PR template Passed.
Dependency and mergeability preview Passed; #14106 and its declared dependencies preview cleanly against current main.
ABI audit and test-quality helper Could not execute in the isolated PR worktree: these local-only helper scripts are not part of the PR checkout. This is not a product failure.
C++ tests/build Not run; initial review is no-build.
Hosted CI Pending at the final snapshot; no job result is claimed.
Unedited precheck output
All conventions checks passed.

Findings

Blocking

  • sceVideoOutSetBufferAttribute and sceVideoOutSetBufferAttribute2 now return successfully for null pointers (Buffer.cpp at the reviewed head, second helper). The debt entry calls this behavior unmeasured, while the repository instructs that unknown general behavior must throw and be recorded (AGENTS.md at the reviewed base). The test only invokes these void functions with null and does not establish what the console does. Please keep the throw until console behavior is measured, or add pinned measurement evidence and a regression assertion for the measured behavior.

Non-blocking

None found in the inspected diff.

Not verified

The C++ tests, build, console behavior, and pending hosted CI were not verified locally.

To get this to a good state

Either restore the throw for these unmeasured null cases or provide reproducible console evidence and test the measured result; I will rerun the same checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5724473040 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14106#pullrequestreview-5724473040). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T19:13:56Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The parameter-validation paths look consistent with the stated measurements, but the new null-attribute behavior is unmeasured and contradicts the repository rule for unknown behavior. ## What I ran Reviewed head `f26371a44f658eea16d5e2382e39d05d98b863e4` against base `e30f38577c79f16747eee745a145ff6b37a2dede`; both PR-specific merge previews were clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0 (`c++`). No build or C++ tests were run. ```sh git diff --check e30f38577c79f16747eee745a145ff6b37a2dede...f26371a44f658eea16d5e2382e39d05d98b863e4 python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14106 ``` ## Results | Check | Result | |---|---| | Diff check | Passed; no whitespace errors. | | Conventions and PR template | Passed. | | Dependency and mergeability preview | Passed; #14106 and its declared dependencies preview cleanly against current `main`. | | ABI audit and test-quality helper | Could not execute in the isolated PR worktree: these local-only helper scripts are not part of the PR checkout. This is not a product failure. | | C++ tests/build | Not run; initial review is no-build. | | Hosted CI | Pending at the final snapshot; no job result is claimed. | <details><summary>Unedited precheck output</summary> ```text All conventions checks passed. ``` </details> ## Findings ### Blocking - `sceVideoOutSetBufferAttribute` and `sceVideoOutSetBufferAttribute2` now return successfully for null pointers ([Buffer.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/f26371a44f658eea16d5e2382e39d05d98b863e4/core/libs/prx/libSceVideoOut/src/Buffer.cpp#L102-L105), [second helper](https://github.com/boykopovar/AnyPS5/blob/f26371a44f658eea16d5e2382e39d05d98b863e4/core/libs/prx/libSceVideoOut/src/Buffer.cpp#L165-L168)). The debt entry calls this behavior unmeasured, while the repository instructs that unknown general behavior must throw and be recorded ([AGENTS.md at the reviewed base](https://github.com/boykopovar/AnyPS5/blob/e30f38577c79f16747eee745a145ff6b37a2dede/AGENTS.md#L7)). The test only invokes these void functions with null and does not establish what the console does. Please keep the throw until console behavior is measured, or add pinned measurement evidence and a regression assertion for the measured behavior. ### Non-blocking None found in the inspected diff. ## Not verified The C++ tests, build, console behavior, and pending hosted CI were not verified locally. ## To get this to a good state Either restore the throw for these unmeasured null cases or provide reproducible console evidence and test the measured result; I will rerun the same checks on the updated head.
MarcZX10 commented 2026-11-01 09:12:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T09:12:09Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The null-attribute throws are restored as requested, but sceVideoOutOpen and sceVideoOutGetResolutionStatus now return error codes for cases the debt file does not record as measured, which AGENTS.md says must throw and be recorded.

What I ran

  • Head cff4acf301ba1f7a352eec62a4852499d017b3af (the single rebased commit). Base for the precheck: 59bd3b677d67cb5cfdb4a0092ffe644d27cf1a56. The live stack check reports the PR as mergeable, and GitHub reports the merge state as clean.
  • No build, configure or compile.
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14106 --output-dir /dev/shm/reviewer-run-20261101-14106
python3 tools/pr_abi_audit.py --repo . --base 59bd3b677d67cb5cfdb4a0092ffe644d27cf1a56 --head cff4acf301ba1f7a352eec62a4852499d017b3af --json
git archive cff4acf301ba1f7a352eec62a4852499d017b3af core/libs | tar -x -C <scratch dir>
python3 -I tools/pr_test_quality.py --root <scratch dir> --json core/libs/tests/GuestVideoOutOutputMode.cpp core/libs/tests/GuestVideoOutResolutionStatus.cpp
git show 59bd3b677d67cb5cfdb4a0092ffe644d27cf1a56:core/libs/prx/libSceVideoOut/src/Output.cpp
git show cff4acf301ba1f7a352eec62a4852499d017b3af:docs/dev/debt/libSceVideoOut.md

The precheck's ABI and test-quality helpers failed because the head tree has no tools/ directory, so both were run by hand as listed above.

Results

Check Result
Diff check Passed (precheck)
Conventions and PR template Passed (precheck)
Live dependency and mergeability Passed (precheck)
ABI audit (manual) Passed. The PR changes no exports; the audit covered 10 symbols with 0 findings
Test-quality heuristic (manual) Two possible-unregistered-cpp-test findings, both false positives: guest_video_out_output_mode_tests and guest_video_out_resolution_status_tests are registered in core/libs/prx/libSceVideoOut/CMakeLists.txt lines 253 and 240
Hosted CI at cff4acf301 Success: conventions, eligibility, library-portability, labels, report, windows. Skipped: linux, relinker, relinker-asan, write-watch, register-context
Build and C++ tests Not run (no-build rule)
Test-quality heuristic, unedited output (manual)
{
  "findings": [
    {
      "path": "core/libs/tests/GuestVideoOutOutputMode.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    },
    {
      "path": "core/libs/tests/GuestVideoOutResolutionStatus.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}

Findings

Blocking

  1. sceVideoOutOpen now returns instead of throwing for unmeasured inputs. At head, an unknown userId, busType or index (Output.cpp lines 95-103) and every open-param check in validateOpenParam (lines 67-89) return VIDEO_OUT_ERROR_INVALID_VALUE. On main these paths threw std::runtime_error (Output.cpp in 59bd3b677d). The debt entry (docs/dev/debt/libSceVideoOut.md line 25) gives the return codes but cites no measurement, and it says that whether invalid parameters continue past offset 24 is unknown. AGENTS.md says that when general behaviour is unknown the code must throw and the gap goes in the debt file. Please restore the throws for these cases, or cite a measurement for each return code and pin it in a test.
  2. sceVideoOutGetResolutionStatus returns codes for a null output and an invalid handle, with no source. At head, a null output on an open handle returns 0x80290002 (line 223) and an invalid handle returns 0x8029000B (line 225). The debt entry (line 23) says these were confirmed on a PS5 at firmware 13.40, but unlike the other measurement claims in that file it has no link or capture. Please either link the measurement record for these codes, or restore the throws until it is linked.

Non-blocking

  • The null-attribute throws in sceVideoOutSetBufferAttribute and sceVideoOutSetBufferAttribute2 are restored, and their debt entry is removed. This addresses the request in my earlier review of this PR.
  • The new assertions in GuestVideoOutResolutionStatus.cpp pin the new codes. Whichever way item 2 is resolved, those assertions should follow the decision.

Sources

Permalinks, pinned to commits:

Not verified

  • No build and no C++ test run at cff4acf301. The new GuestVideoOutOutputMode and GuestVideoOutResolutionStatus assertions were not run.
  • The PS5 measurement described in the debt entry was not checked, because no link or capture is given.
  • The ABI audit is lexical and was not confirmed by a compiler or the build.
  • Linux and relinker jobs are skipped on this head; the Windows job is the only product-side hosted result.

To get this to a good state

Restore the throws for the unmeasured sceVideoOutOpen and null-output cases, or add the measurement links and keep the returns with the debt text updated to match. I will rerun the same checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5727331803 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14106#pullrequestreview-5727331803). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T09:12:09Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The null-attribute throws are restored as requested, but `sceVideoOutOpen` and `sceVideoOutGetResolutionStatus` now return error codes for cases the debt file does not record as measured, which AGENTS.md says must throw and be recorded. ## What I ran - Head `cff4acf301ba1f7a352eec62a4852499d017b3af` (the single rebased commit). Base for the precheck: `59bd3b677d67cb5cfdb4a0092ffe644d27cf1a56`. The live stack check reports the PR as mergeable, and GitHub reports the merge state as clean. - No build, configure or compile. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14106 --output-dir /dev/shm/reviewer-run-20261101-14106 python3 tools/pr_abi_audit.py --repo . --base 59bd3b677d67cb5cfdb4a0092ffe644d27cf1a56 --head cff4acf301ba1f7a352eec62a4852499d017b3af --json git archive cff4acf301ba1f7a352eec62a4852499d017b3af core/libs | tar -x -C <scratch dir> python3 -I tools/pr_test_quality.py --root <scratch dir> --json core/libs/tests/GuestVideoOutOutputMode.cpp core/libs/tests/GuestVideoOutResolutionStatus.cpp git show 59bd3b677d67cb5cfdb4a0092ffe644d27cf1a56:core/libs/prx/libSceVideoOut/src/Output.cpp git show cff4acf301ba1f7a352eec62a4852499d017b3af:docs/dev/debt/libSceVideoOut.md ``` The precheck's ABI and test-quality helpers failed because the head tree has no `tools/` directory, so both were run by hand as listed above. ## Results | Check | Result | |---|---| | Diff check | Passed (precheck) | | Conventions and PR template | Passed (precheck) | | Live dependency and mergeability | Passed (precheck) | | ABI audit (manual) | Passed. The PR changes no exports; the audit covered 10 symbols with 0 findings | | Test-quality heuristic (manual) | Two `possible-unregistered-cpp-test` findings, both false positives: `guest_video_out_output_mode_tests` and `guest_video_out_resolution_status_tests` are registered in `core/libs/prx/libSceVideoOut/CMakeLists.txt` lines 253 and 240 | | Hosted CI at `cff4acf301` | Success: conventions, eligibility, library-portability, labels, report, windows. Skipped: linux, relinker, relinker-asan, write-watch, register-context | | Build and C++ tests | Not run (no-build rule) | <details><summary>Test-quality heuristic, unedited output (manual)</summary> ```text { "findings": [ { "path": "core/libs/tests/GuestVideoOutOutputMode.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." }, { "path": "core/libs/tests/GuestVideoOutResolutionStatus.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." } ], "negative_control_candidates": [], "limits": [ "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.", "A test that passes against base is not by itself proof that the PR test is inadequate.", "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error." ] } ``` </details> ## Findings ### Blocking 1. **`sceVideoOutOpen` now returns instead of throwing for unmeasured inputs.** At head, an unknown `userId`, `busType` or `index` (`Output.cpp` lines 95-103) and every open-param check in `validateOpenParam` (lines 67-89) return `VIDEO_OUT_ERROR_INVALID_VALUE`. On `main` these paths threw `std::runtime_error` (`Output.cpp` in `59bd3b677d`). The debt entry (`docs/dev/debt/libSceVideoOut.md` line 25) gives the return codes but cites no measurement, and it says that whether invalid parameters continue past offset 24 is unknown. AGENTS.md says that when general behaviour is unknown the code must throw and the gap goes in the debt file. Please restore the throws for these cases, or cite a measurement for each return code and pin it in a test. 2. **`sceVideoOutGetResolutionStatus` returns codes for a null output and an invalid handle, with no source.** At head, a null output on an open handle returns `0x80290002` (line 223) and an invalid handle returns `0x8029000B` (line 225). The debt entry (line 23) says these were confirmed on a PS5 at firmware 13.40, but unlike the other measurement claims in that file it has no link or capture. Please either link the measurement record for these codes, or restore the throws until it is linked. ### Non-blocking - The null-attribute throws in `sceVideoOutSetBufferAttribute` and `sceVideoOutSetBufferAttribute2` are restored, and their debt entry is removed. This addresses the request in my earlier review of this PR. - The new assertions in `GuestVideoOutResolutionStatus.cpp` pin the new codes. Whichever way item 2 is resolved, those assertions should follow the decision. ## Sources Permalinks, pinned to commits: - `main` before this PR, `sceVideoOutOpen` and its checks threw: https://github.com/boykopovar/AnyPS5/blob/59bd3b677d67cb5cfdb4a0092ffe644d27cf1a56/core/libs/prx/libSceVideoOut/src/Output.cpp#L72-L100 - Head, the same checks now return: https://github.com/boykopovar/AnyPS5/blob/cff4acf301ba1f7a352eec62a4852499d017b3af/core/libs/prx/libSceVideoOut/src/Output.cpp#L67-L103 - Head, `sceVideoOutGetResolutionStatus` returns for a null output and an invalid handle: https://github.com/boykopovar/AnyPS5/blob/cff4acf301ba1f7a352eec62a4852499d017b3af/core/libs/prx/libSceVideoOut/src/Output.cpp#L217-L225 - Head, the debt entries for both functions: https://github.com/boykopovar/AnyPS5/blob/cff4acf301ba1f7a352eec62a4852499d017b3af/docs/dev/debt/libSceVideoOut.md#L23-L25 - Rule that unknown behaviour throws and is recorded in the debt file, `AGENTS.md`: https://github.com/boykopovar/AnyPS5/blob/59bd3b677d67cb5cfdb4a0092ffe644d27cf1a56/AGENTS.md#L7 ## Not verified - No build and no C++ test run at `cff4acf301`. The new `GuestVideoOutOutputMode` and `GuestVideoOutResolutionStatus` assertions were not run. - The PS5 measurement described in the debt entry was not checked, because no link or capture is given. - The ABI audit is lexical and was not confirmed by a compiler or the build. - Linux and relinker jobs are skipped on this head; the Windows job is the only product-side hosted result. ## To get this to a good state Restore the throws for the unmeasured `sceVideoOutOpen` and null-output cases, or add the measurement links and keep the returns with the debt text updated to match. I will rerun the same checks on the updated head.
adriadam10 commented 2026-11-06 15:02:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-11-06T15:02:40Z.

Review: CHANGES_REQUESTED


Thanks for the updates; the test coverage of each validateOpenParam branch and the restored debt evidence look good. Two points from the earlier review are still open (same as @MarcZX10's last review):

  • sceVideoOutOpen (Output.cpp:112-142): on main these cases threw because the console's answer isn't known. The debt entry now states VIDEO_OUT_ERROR_INVALID_VALUE but cites no measurement for the invalid userId, bus type, bus index or open-param cases, and the references we checked (KytyPS5, shadPS4) don't establish them. Either link a console measurement for each case (title/firmware/capture) and keep the returns, or restore the throws and record the gap in docs/dev/debt/libSceVideoOut.md.
  • sceVideoOutGetResolutionStatus (Output.cpp:276-283): the debt entry says a null output on an open handle returning 0x80290002 was confirmed on a PS5 (13.40), but gives no link or capture; only 0x8029000B for handles 0-8 was measured before. Please link the record for the null-output case, or keep the throw for it. The 0x8029000B path is fine as is, and the test assertions should follow whichever way this goes.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5802067682 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14106#pullrequestreview-5802067682). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-11-06T15:02:40Z. **Review:** CHANGES_REQUESTED --- Thanks for the updates; the test coverage of each `validateOpenParam` branch and the restored debt evidence look good. Two points from the earlier review are still open (same as @MarcZX10's last review): - `sceVideoOutOpen` (`Output.cpp:112-142`): on `main` these cases threw because the console's answer isn't known. The debt entry now states `VIDEO_OUT_ERROR_INVALID_VALUE` but cites no measurement for the invalid userId, bus type, bus index or open-param cases, and the references we checked (KytyPS5, shadPS4) don't establish them. Either link a console measurement for each case (title/firmware/capture) and keep the returns, or restore the throws and record the gap in `docs/dev/debt/libSceVideoOut.md`. - `sceVideoOutGetResolutionStatus` (`Output.cpp:276-283`): the debt entry says a null output on an open handle returning `0x80290002` was confirmed on a PS5 (13.40), but gives no link or capture; only `0x8029000B` for handles 0-8 was measured before. Please link the record for the null-output case, or keep the throw for it. The `0x8029000B` path is fine as is, and the test assertions should follow whichever way this goes.
MarcZX10 commented 2026-11-14 05:49:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T05:49:20Z.

Review: APPROVED


Reviewed — looks good

The review covers the four changed files at head 0a145847d4a3a3c2f2dbd3753a8f5f6e7814b30c; no checks were run, and no concrete blocking defect was verified.

What I ran

  • Read the prepared description, commit summary, manifest and diff for the exact head above.
  • Read all changed files listed in the manifest. Read targeted function and test context through repo_read.py; no build, tests or other checks were run.

Results

Check Result Note
Changed-file review passed All four changed files were read
Build and tests not run No commands were run
Console behavior not run Hardware measurements were not confirmed

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

Build and test results reported in the PR description were not independently confirmed. Console measurements and behavior were not independently confirmed. No files were excluded: all four files marked reviewed in manifest.json were read; files.json was not inspected.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5902057076 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14106#pullrequestreview-5902057076). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T05:49:20Z. **Review:** APPROVED --- # Reviewed — looks good The review covers the four changed files at head `0a145847d4a3a3c2f2dbd3753a8f5f6e7814b30c`; no checks were run, and no concrete blocking defect was verified. ## What I ran - Read the prepared description, commit summary, manifest and diff for the exact head above. - Read all changed files listed in the manifest. Read targeted function and test context through `repo_read.py`; no build, tests or other checks were run. ## Results | Check | Result | Note | |---|---|---| | Changed-file review | passed | All four changed files were read | | Build and tests | not run | No commands were run | | Console behavior | not run | Hardware measurements were not confirmed | ## Findings ### Blocking None verified. ### Non-blocking None. ## Not verified Build and test results reported in the PR description were not independently confirmed. Console measurements and behavior were not independently confirmed. No files were excluded: all four files marked `reviewed` in `manifest.json` were read; `files.json` was not inspected. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-17 00:10:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T00:10:45Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: restore the null-attribute behavior described in the PR, or remove that claim from the scope if it was not intended for this change.

What I ran

Reviewed head f478ad158b80fa1fc6a5a76b4a741c03cd364b7f from the prepared diff and pinned repository source using repo_read.py. No commands or tests were run.

Results

Check Result Note
Diff and changed files passed Four files included and read
Tests not run No test commands run
Reader context passed Targeted source ranges read

Findings

Blocking

  • The PR description says sceVideoOutSetBufferAttribute and sceVideoOutSetBufferAttribute2 now return early on null pointers without modifying memory, but the prepared manifest and diff contain no Buffer.cpp change. At this head, both functions still throw on null (Buffer.cpp:127-130, 191-194), so the stated behavior is not implemented. Add the guards and suitable coverage, or revise the scope if these changes were not intended. The changed-line citation for the scope mismatch is docs/dev/debt/libSceVideoOut.md:37, which documents the changed sceVideoOutOpen behavior; no changed line for Buffer.cpp exists in the supplied diff.

Non-blocking

  • None.

Sources

Not verified

  • Tests and builds were not run.
  • files.json was not accessible through the reader; manifest lists four included changed files, all of which were read. The changed-file manifest and diff do not include Buffer.cpp.
  • Console behavior beyond the measurements recorded in the repository was not independently verified.

To get this to a good state

Implement and test the null attribute handling described in the PR, or update the PR description and related claims to match the intended scope. Rerun the relevant tests on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5930270216 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14106#pullrequestreview-5930270216). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-17T00:10:45Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: restore the null-attribute behavior described in the PR, or remove that claim from the scope if it was not intended for this change. ## What I ran Reviewed head `f478ad158b80fa1fc6a5a76b4a741c03cd364b7f` from the prepared diff and pinned repository source using `repo_read.py`. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff and changed files | passed | Four files included and read | | Tests | not run | No test commands run | | Reader context | passed | Targeted source ranges read | ## Findings ### Blocking - The PR description says `sceVideoOutSetBufferAttribute` and `sceVideoOutSetBufferAttribute2` now return early on null pointers without modifying memory, but the prepared manifest and diff contain no `Buffer.cpp` change. At this head, both functions still throw on null (`Buffer.cpp:127-130`, `191-194`), so the stated behavior is not implemented. Add the guards and suitable coverage, or revise the scope if these changes were not intended. The changed-line citation for the scope mismatch is `docs/dev/debt/libSceVideoOut.md:37`, which documents the changed `sceVideoOutOpen` behavior; no changed line for `Buffer.cpp` exists in the supplied diff. ### Non-blocking - None. ## Sources - [Output.cpp at reviewed head](https://github.com/boykopovar/AnyPS5/blob/f478ad158b80fa1fc6a5a76b4a741c03cd364b7f/core/libs/prx/libSceVideoOut/src/Output.cpp) - [Buffer.cpp at reviewed head](https://github.com/boykopovar/AnyPS5/blob/f478ad158b80fa1fc6a5a76b4a741c03cd364b7f/core/libs/prx/libSceVideoOut/src/Buffer.cpp) - [GuestVideoOutOutputMode.cpp at reviewed head](https://github.com/boykopovar/AnyPS5/blob/f478ad158b80fa1fc6a5a76b4a741c03cd364b7f/core/libs/tests/GuestVideoOutOutputMode.cpp) - [GuestVideoOutResolutionStatus.cpp at reviewed head](https://github.com/boykopovar/AnyPS5/blob/f478ad158b80fa1fc6a5a76b4a741c03cd364b7f/core/libs/tests/GuestVideoOutResolutionStatus.cpp) - [libSceVideoOut.md at reviewed head](https://github.com/boykopovar/AnyPS5/blob/f478ad158b80fa1fc6a5a76b4a741c03cd364b7f/docs/dev/debt/libSceVideoOut.md) ## Not verified - Tests and builds were not run. - `files.json` was not accessible through the reader; manifest lists four included changed files, all of which were read. The changed-file manifest and diff do not include `Buffer.cpp`. - Console behavior beyond the measurements recorded in the repository was not independently verified. ## To get this to a good state Implement and test the null attribute handling described in the PR, or update the PR description and related claims to match the intended scope. Rerun the relevant tests on the updated head.
MarcZX10 commented 2026-11-20 19:00:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T19:00:08Z.

Review: APPROVED


Reviewed — looks good

The changed resolution status path now returns the invalid handle code for unopened or closed handles, and its null-pointer behavior remains the documented unmeasured exception.

What I ran

Reviewed head 9e98beb1e424264373e0ccbbb4b9b3a02c7a703a using repo_read.py. No tests or prechecks were run; no merged-preview check was performed.

Results

Check Result Note
Source review passed Both changed files read
Tests and precheck not run Only author-reported in description
Merged preview not run No merge check performed

Findings

Blocking

None.

Non-blocking

None.

Not verified

The unit tests and conventions check reported in the PR description were not run during this review. No hardware or console measurements were performed. The review bundle’s files.json was unavailable; the manifest lists both changed files as included, and both full source files were read.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5997902751 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14106#pullrequestreview-5997902751). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T19:00:08Z. **Review:** APPROVED --- # Reviewed — looks good The changed resolution status path now returns the invalid handle code for unopened or closed handles, and its null-pointer behavior remains the documented unmeasured exception. ## What I ran Reviewed head `9e98beb1e424264373e0ccbbb4b9b3a02c7a703a` using `repo_read.py`. No tests or prechecks were run; no merged-preview check was performed. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Both changed files read | | Tests and precheck | not run | Only author-reported in description | | Merged preview | not run | No merge check performed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The unit tests and conventions check reported in the PR description were not run during this review. No hardware or console measurements were performed. The review bundle’s `files.json` was unavailable; the manifest lists both changed files as included, and both full source files were read. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 22:49:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:49:55Z.

Review: COMMENTED


The trial merge onto c1601e56d5 was clean. HasConfig, IsOpen, and GetConfig acquire and release the driver lock separately, and IsOpen itself calls the throwing GetConfig. A close between the checks can therefore still throw the invalid-handle error this change is meant to return. Please use one lookup that returns the live configuration or the guest error, then check closing under its mutex before filling the output. The current fixture checks handles before and after close sequentially. Paired display-backed controls are pending.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6180012465 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14106#pullrequestreview-6180012465). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T22:49:55Z. **Review:** COMMENTED --- The trial merge onto `c1601e56d5` was clean. `HasConfig`, `IsOpen`, and `GetConfig` acquire and release the driver lock separately, and `IsOpen` itself calls the throwing `GetConfig`. A close between the checks can therefore still throw the invalid-handle error this change is meant to return. Please use one lookup that returns the live configuration or the guest error, then check `closing` under its mutex before filling the output. The current fixture checks handles before and after close sequentially. Paired display-backed controls are pending. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/14106:upstream-pr/14106'
git switch 'upstream-pr/14106'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/14106'
git switch 'upstream-pr/14106'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/14106'
git switch 'upstream-pr/14106'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/14106'
git switch 'main'
git merge --squash 'upstream-pr/14106'
git switch 'main'
git merge --ff-only 'upstream-pr/14106'
git switch 'main'
git merge 'upstream-pr/14106'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!14106
No description provided.