fix(libSceSaveData.native): return SAVE_DATA_ERROR_PARAMETER from sceSaveDataSetupSaveDataMemory2 for invalid pointers #18674
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18674"
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 Kikoarl on 2026-11-12T01:45:28Z.
What
Safely copy in
setup_param(and its nestedinit_paramwhen required) withGuestCopyIn_nid_no_patchand validateresultwriteability withGuestCopyIn_nid_no_patch/GuestCopyOut_nid_no_patchinsceSaveDataSetupSaveDataMemory2, preserving callererrnoacross copy failures and returningSAVE_DATA_ERROR_PARAMETER(0x809f0000). Guard trace logging against unmapped guest pointer dereferences.Tested
Linux (x86_64). Built in RAM-disk
/tmp/anyps5_build(ninja -C /tmp/anyps5_build savedata_memory_growth_tests), verified unit test suitesavedata_memory_growthandsavedata_memory_growth_read_failureboth passing (100% tests passed out of 2), and ran fullctest -R savedatawith 35/35 tests passing cleanly. Verifiedpython3 tools/check_conventions.py --base origin/mainwith zero errors.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 PrivacyOnion on 2026-11-12T06:11:40Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
72bad97e2e:tools/check_conventions.pypassed;git diff --checkclean.savedata_memory_growth_testsbuilt cleanly.savedata_memory_growth,savedata_memory_growth_read_failure):core/libs/prx/libSceSaveData.native/Export.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me
Pull request closed