fix(libSceVideoOut): guard settings in sceVideoOutColorSpaceConversionSettingsSetSdrToHdrConversion with HostWrite #28902
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28902"
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 NobleBrains on 2026-12-04T14:50:16Z.
What
sceVideoOutColorSpaceConversionSettingsSetSdrToHdrConversioncheckedsettingswithGuestWritableonly. A new test,video_out_color_space_conversion_host_write_tests, checks that the hook is called once for the settings struct.The pointer is now checked through
GuestArena::HostWritefirst, as in the merged #28246 and #28267: the result ofOpen()is not ignored,errnois saved and restored, and the guard covers only the check. Behaviour for writable pointers is unchanged.Tested
On Linux x86_64 (Release, container),
ctest -R video_out_color_space_conversion_host_write_tests: 1/1 passed. Without theHostWriteguard it aborts ("HostWrite hook called once for settings").check_conventions.pypasses.Not run: Windows, macOS and any title.
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)🤖 Generated with Claude Code
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-04T14:58:25Z.
Review: COMMENTED
Actionable comments
db8895a1-a908-477a-bbb5-838194acf463Reviewing files that changed from the base of the PR and between
8037ad561danddb1be4945c.core/libs/prx/libSceVideoOut/CMakeLists.txtcore/libs/prx/libSceVideoOut/src/Output.cppcore/libs/prx/libSceVideoOut/tests/ColorSpaceConversionHostWrite.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T15:05:16Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
db1be4945c9624e098b28cf2c66153a7d880c45efrom the prepared diff and files. Environment: review container; no toolchain checks were run.The first reader search returned matches; subsequent source reads were blocked because the reader could not write its read log. No tests or conventions checks were run; the Linux test and conventions results in the description are author-reported.
Results
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
The full text of all three files in
files.jsonunderreviewedwas read;files.jsonlists no excluded files. HostWrite implementation details and other callers were not verified because the pinned reader could not return source after its read-log write failed. Tests, conventions checks, other operating systems, and console behavior were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-04T16:25:10Z.
Review: COMMENTED
Actionable comments
e4103063-3412-4efd-b94f-d5b449cf8bb6Reviewing files that changed from the base of the PR and between
db1be4945cand50bea8c4aa.core/libs/prx/libSceVideoOut/tests/ColorSpaceConversionHostWrite.cppcore/libs/tests/GuestVideoOutColorSpace.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
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.