fix(libSceCdlgPlayerReview): return INVALID_ARGUMENT from scePlayerReviewDialogGetResult for an unwritable result #14959
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14959"
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 fogydes on 2026-11-02T05:06:11Z.
What
Validate the destination pointer in
scePlayerReviewDialogGetResultviaGuestCopyOut_nid_no_patchpreservingerrno, returningCOMMON_DIALOG_ERROR_INVALID_ARGUMENT(0x80B8000Au) when the output buffer is unwritable rather than causing an unhandled host access violation.Tested
Windows 11 x86_64,
ctest --test-dir build -R guest_player_review_dialog -V(100% pass). Verified unwritable pointerreinterpret_cast<CommonDialogResultPrefix*>(0x10)returnsCOMMON_DIALOG_ERROR_INVALID_ARGUMENT.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 BunnyFl on 2026-11-02T16:06:50Z.
Review: COMMENTED
A firmware note for the debt entry, not a blocker. The checked copy keeps the host from faulting.
Firmware 13.42's
libSceCdlgPlayerReview.sprx(sha25609339a41ceea4297c6ad8b7e5761aa6eb3a60e0139f05805f2542f52f18c1737) at0x500(VuKbx6zlEG4), read from disassembly only, not measured on a console:The module tests only for null, then stores straight through the pointer, so the console faults on an unwritable non-null pointer. The new debt sentence says console behaviour "has not" been established, but the module settles it. Could it say instead: "Firmware 13.42 checks only for null and stores directly, so the console faults on an unwritable non-null pointer; AnyPS5 returns COMMON_DIALOG_ERROR_INVALID_ARGUMENT instead."?