fix(savedata): return parameter error on null arguments in getMountInfo and getParam #7144
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7144"
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 voidlakhan on 2026-10-17T13:47:26Z.
What
In
libSceSaveData.native, returnSAVE_DATA_ERROR_PARAMETER(0x809F0000) when null pointer arguments are passed tosceSaveDataGetMountInfoandsceSaveDataGetParamrather than throwing C++ runtime exceptions across the guest ABI boundary. Added regression tests covering null argument validation, unmounted mount points, buffer bounds, and the optional nullgot_sizeoutput parameter.Tested
Windows 10 x64, MinGW GCC 15.2.0:
guest_savedata_search: Passedguest_savedata_delete: Passedguest_savedata_convert: Passedguest_savedata_mount_status: Passed (covers new unmounted, null parameter, and null got_size tests)guest_savedata_ps4: Passedguest_savedata_cancel: Passedguest_savedata_dialog: Passedpython tools/check_conventions.py --base upstream/main: Passedgit diff --check: CleanChecklist
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 github-actions[bot] on 2026-10-17T14:34:58Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/tests/GuestSaveDataMountStatus.cppcore/libs/prx/libSceSaveData.native/Export.cppdocs/dev/debt/libSceSaveData.native.mdImported from boykopovar/AnyPS5. Originally posted by voidlakhan on 2026-10-17T14:39:48Z.
Manually reviewed the shared files against the conflicting PRs:
GuestSaveDataMountStatus.cpp.sceSaveDataCancelandsceSaveDataPrepareForTransferring(lines 880+) and the Unknown function info debt section; it does not overlap withsceSaveDataGetMountInfoorsceSaveDataGetParam(lines 404–438) or the Functional debt entry.Confirmed there is zero code overlap with either PR.