fix(libSceSaveData.native): validate null arguments in sceSaveDataDirNameSearchPs4 and sceSaveDataMount #11080
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11080"
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:15:21Z.
What
sceSaveDataDirNameSearchPs4and returnsSAVE_DATA_ERROR_PARAMETERinstead of throwing a C++ exception.sceSaveDataDirNameSearchPs4trace log whencondis null.mount_resultinsceSaveDataMountand returnsSAVE_DATA_ERROR_PARAMETERinstead of forwarding null tosceSaveDataMount3.GuestSaveDataPs4.cppto expectSAVE_DATA_ERROR_PARAMETERon null pointer inputs.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/GuestSaveDataPs4.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:18:46Z.
Review: DISMISSED
I found no code defect in the null checks or trace-safe argument handling on this static pass. The current
Testedsection only namesGuestSaveDataPs4.cppand the convention script; it omits the OS/toolchain and exact build/test command, while the hosted feature test jobs are skipped. Please make the local test result reproducible (or state it was not run), and update the new debt entry to say the null-pointer error behavior is an implementation assumption and has not been checked on a PS5. The current tests establish the emulator behavior, not the console error contract.