fix(libSceGameCustomDataDialog): return ARG_NULL from sceGameCustomDataDialogGetResultA for unwritable result #15392
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15392"
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:22Z.
What
Return COMMON_DIALOG_ERROR_ARG_NULL (
0x80B8000D) fromsceGameCustomDataDialogGetResultAwhen destination memory cannot be written, rather than crashing with SIGSEGV in host space.GuestCopyOut_nid_no_patch.errnoacross copy check.core/libs/tests/GuestGameCustomDataDialog.cppasserting thatsceGameCustomDataDialogGetResultAreturns expected error and preserveserrnowhen passed0x10.docs/dev/debt/libSceGameCustomDataDialog.md.Tested
python tools/check_conventions.py --base origin/main: passed with 0 findings.main, passingreinterpret_cast<void*>(0x10)tosceGameCustomDataDialogGetResultAfaults 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:25:50Z.
Review: APPROVED
Reviewed — looks good
The exact reviewed head safely copies the dialog result to guest memory, preserves
errno, and passes its focused hosted test.What I ran
Reviewed all three changed files at head
95514547ed5458729d6840402264e807d86012c3against 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. I did not compile locally; the Windows build and test are hosted CI results.Results
d1ae628.guest_game_custom_data_dialogpassed 1/1.Precheck results and raw output
The precheck deliberately does not configure, build, or compile AnyPS5.git diff --check f6232fcfda70644495273f6b8dd88cf0603463d6...95514547ed5458729d6840402264e807d86012c3/usr/bin/python3 tools/check_conventions.py --base f6232fcfda70644495273f6b8dd88cf0603463d6 --head 95514547ed5458729d6840402264e807d86012c3 --title fix(libSceGameCustomDataDialog): return ARG_NULL from sceGameCustomDataDialogGetResultA for unwritable result --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15392-95514547ed54/pr-body.md/usr/bin/python3 tools/pr_abi_audit.py --base f6232fcfda70644495273f6b8dd88cf0603463d6 --head 95514547ed5458729d6840402264e807d86012c3 --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 15392 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15392-95514547ed54/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-15392-95514547ed54/head-95514547ed54-cea41b25/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15392-95514547ed54/head-95514547ed54-cea41b25 --json core/libs/prx/libSceGameCustomDataDialog/Export.cpp core/libs/tests/GuestGameCustomDataDialog.cpp docs/dev/debt/libSceGameCustomDataDialog.mdNo changed Python test module in tools/ can be run as a no-build source control.The two
failedhelper invocations could not launch because the corresponding 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 non-null 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 run that control.Findings
Blocking
None found in the complete three-file diff.
Non-blocking
The new invalid-pointer return is documented as a host-safety fallback; its console behavior remains unmeasured.
Sources
Not verified
No local build, CTest, 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.