fix(libSceSaveData.native): return SAVE_DATA_ERROR_PARAMETER on null argument in sceSaveDataConvert #11083
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11083"
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 slopgobblercobbler on 2026-10-25T17:18:31Z.
What
sceSaveDataConvert(converthelper) and returnsSAVE_DATA_ERROR_PARAMETERwhenparam == nullptr || param->dir_name == nullptrinstead of throwing a C++ exception.core/libs/tests/GuestSaveDataConvert.cppassertingsceSaveDataConvert(nullptr) == SaveDataErrorParameterandsceSaveDataConvert(&nullDir) == SaveDataErrorParameter.docs/dev/debt/libSceSaveData.native.mdto document the null argument handling.Tested
Ran
tools/check_conventions.py --base upstream/main --head HEAD(0 findings). Tested viacore/libs/tests/GuestSaveDataConvert.cpp.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-10-25T17:19:28Z.
Review: DISMISSED
The code change is small and I found no direct defect on this static pass, but the PR body only names
GuestSaveDataConvert.cppand the convention script; it omits the OS/toolchain and exact build/test command, while hosted feature tests are skipped. Please make that local result reproducible (or state it was not run), and state in the new debt entry that the null-pointer error behavior is an implementation assumption not checked on a PS5. Also coordinate the shared debt-row conflict with #11080 as noted in the comment.