fix(libSceAppContent): guard mount output #18598
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18598"
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 DonRyuzaki on 2026-11-11T22:40:58Z.
What
sceAppContentTemporaryDataMount2now checks its guest mount-point output before creating or formatting temporary storage, registering/temp0, or changing mount state. If the non-null output is inaccessible, it returnsSCE_APP_CONTENT_ERROR_PARAMETER, consistent with the other checked copy-out in this module. The technical debt entry identifies that return as a host-safety fallback; the console's invalid-memory result has not been measured. A later host filesystem failure could still leave the output set without a completed mount.The focused test covers initialization, option validation and BUSY precedence, the inaccessible-output error, unchanged pre-existing files, no alias or mount after failure, and a later valid mount. This addresses Dean's review without changing Addcont or AppParam mount output behavior.
Tested
Committed head
59ccf512f0d622789d17c53a21023e627f425cb4includes upstream81a6da926403aedd2d5f88d0324c52dfe854e0e0; branch working tree clean.tools/check_conventions.py --base origin/mainandgit diff --checkpass. An earlier Windows GCC 15.2 object compilation and separate baseline reproduction are described in the prior revision of this PR; they were not rerun on this head.Ubuntu 24.04 WSL2, Release,
BUILD_TESTING=ON: with the exact branch versions ofExport.cpp,GuestAppContent.cpp, and the debt entry overlaid on clean pinned upstream81a6da9, the fulllibstarget andguest_appcontent_testsbuilt successfully (1,307 Ninja steps, including NID-patchedlibSceAppContent.prx).guest_appcontentpassed three consecutive CTest runs, no skips. SHA-256: unpatchedlibSceAppContent.prx8336b9a75f0f366fdc2a39c162c1f1f1e172b6213547f4235646b1d89b4d376f; patched76b743bad5c7e2cfce7a7442072b307b8601d697b510514e4c89d78d2d08345e. The temporary build source was restored clean after validation.The overlap bot could not compare #14212's debt file because that PR conflicts with main. I compared its patch manually: it edits separate AppContent debt entries and does not implement or modify
sceAppContentTemporaryDataMount2. Open #18516, #17955 and #18116 change other AppContent exports in the same files; their patches and discussion were reviewed. Full project CTest, console behavior and game behavior are not claimed.Checklist
main; no other open PR implements the same function.mdfiles or images added to the repository