fix(savedata): return parameter error on null arguments in umount2, loadIcon and saveIcon #7785
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7785"
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 pushkarreddyy on 2026-10-19T07:23:08Z.
What
In
libSceSaveData.native, returnSAVE_DATA_ERROR_PARAMETER(0x809F0000) when null pointermount_pointarguments are passed tosceSaveDataUmount2,sceSaveDataLoadIcon, andsceSaveDataSaveIconinstead of throwing C++ exceptions across the guest boundary, consistent withsceSaveDataGetMountInfoandsceSaveDataGetParamfrom #7144. Unit tests inGuestSaveDataMountStatus.cppand technical debt documentation are updated.Tested
Built and verified on Windows with
python tools/check_conventions.py --base origin/main. Added unit test assertions inGuestSaveDataMountStatus.cppvalidatingSaveDataErrorParameteron null arguments andSaveDataErrorNotMountedon unmounted targets forsceSaveDataUmount2,sceSaveDataLoadIcon, andsceSaveDataSaveIcon.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 github-actions[bot] on 2026-10-19T07:44:13Z.
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.cppcore/libs/prx/libSceSaveData.native/Export.cppImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T14:02:19Z.
Rebased onto current
main(the test declarations/checks and the TechnicalDebt line conflicted with thesceSaveDataSetParamchange; kept both sides and merged the function list into one line). The three nullmount_pointpaths returnSAVE_DATA_ERROR_PARAMETERbefore the slot lookup, the null checks would throw onmain, and the not-mounted and mounted cases are covered; the SaveData tests pass after the rebase; merged.