fix(libSceSigninDialog): return ARG_NULL from sceSigninDialogGetResult for unwritable result #15391
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15391"
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 szambonurek-88 on 2026-11-03T04:55:11Z.
What
Return COMMON_DIALOG_ERROR_ARG_NULL (
0x80B8000D) fromsceSigninDialogGetResultwhen destination memory cannot be written, rather than crashing with SIGSEGV in host space.GuestCopyOut_nid_no_patch.errnoacross copy check.core/libs/tests/GuestSigninDialog.cppasserting thatsceSigninDialogGetResultreturns expected error and preserveserrnowhen passed0x10.docs/dev/debt/libSceSigninDialog.md.Tested
python tools/check_conventions.py --base origin/main: passed with 0 findings.main, passingreinterpret_cast<void*>(0x10)tosceSigninDialogGetResultfaults on direct pointer dereference.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-03T05:26:43Z.
Review: APPROVED
Reviewed — looks good
The exact reviewed head safely copies the complete sign-in result to guest memory, preserves
errno, and passes its focused hosted test.What I ran
Reviewed all three changed files at head
5ba917e89a8b78d950b46b69ed3cc06650384065against PR basef6232fcfda70644495273f6b8dd88cf0603463d6. The no-build merge preview was clean against currentmaind1ae628bc2f62459cce1e9872ba5632c938c71f2. Local environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. No local compilation or CTest was run; the Windows build/test below are hosted CI evidence.Results
d1ae628.guest_signin_dialogpassed 1/1.Precheck results and raw output
The precheck deliberately does not configure, build, or compile AnyPS5.git diff --check f6232fcfda70644495273f6b8dd88cf0603463d6...5ba917e89a8b78d950b46b69ed3cc06650384065/usr/bin/python3 tools/check_conventions.py --base f6232fcfda70644495273f6b8dd88cf0603463d6 --head 5ba917e89a8b78d950b46b69ed3cc06650384065 --title fix(libSceSigninDialog): return ARG_NULL from sceSigninDialogGetResult for unwritable result --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15391-5ba917e89a8b/pr-body.md/usr/bin/python3 tools/pr_abi_audit.py --base f6232fcfda70644495273f6b8dd88cf0603463d6 --head 5ba917e89a8b78d950b46b69ed3cc06650384065 --jsonNo changed Python implementation files.No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.No changed test_*.py files./usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15391 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15391-5ba917e89a8b/stackNot run: C++ tests need exact-head binaries, which require a build; the precheck does not build./usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15391-5ba917e89a8b/head-5ba917e89a8b-c19b3dcf/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15391-5ba917e89a8b/head-5ba917e89a8b-c19b3dcf --json core/libs/prx/libSceSigninDialog/Export.cpp core/libs/tests/GuestSigninDialog.cpp docs/dev/debt/libSceSigninDialog.mdNo changed Python test module in tools/ can be run as a no-build source control.The two
failedhelper invocations could not launch because those scripts are absent from the isolated PR snapshot; they did not report code findings. Raw precheck output:gh pr checksoutput:Unedited hosted Windows log lines:
Negative control
The assertion is that an unwritable result pointer returns
COMMON_DIALOG_ERROR_ARG_NULLand leaveserrnounchanged. The author reports that the old direct-write path faults on unmodifiedmain; I did not independently reproduce that control.Findings
Blocking
None found in the complete three-file diff.
Non-blocking
The invalid-pointer return is documented as a host-safety fallback; console behavior remains unmeasured.
Sources
Not verified
No local build, CTest, independent negative control, Linux runtime or console behavior was run. The negative control is author-reported only; Linux and specialized hosted jobs were skipped.
To get this to a good state
No code change is requested. If the head changes, I will rerun the same precheck and diff checks and review the new diff.