fix(libSceAppContent): guard add-on list outputs #17955
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17955"
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-10T00:54:33Z.
What
Use
GuestCopyOut_nid_no_patchfor the add-on info list and hit count insceAppContentGetAddcontInfoList. An unwritable non-null list could fault the host while copying entries; an unwritable hit-count pointer could fault even with zero add-ons. Attempted writes now returnSCE_APP_CONTENT_ERROR_PARAMETERand preserveerrno. An invalid list pointer remains ignored when there are no entries, while hit count is set to zero. The error for unmapped non-null pointers is a host-safety choice, not measured console behavior.Tested
e85cfd044dbaf2fdbc5bfb06616cd95c483dc3e1based on upstream main3e089775b9a12e3d2e70ede255363c522dbf3135. Main subsequently gained unrelated AGC/Ngs2 changes at65a80a5dc7a888fcfd67d57a22c8e863a99c59b0; this PR remains mergeable.GuestAppContentEntitlements.cppadds unmapped info-list and hit-count pointers with three add-ons, verifying unchanged hit count on list failure and preservederrno.GuestAppContent.cppchecks the zero-entry list-pointer edge case.3e089775b9a12e3d2e70ede255363c522dbf3135plus all ten pinned candidate patches completed 3219/3219 incremental Ninja steps, including runtime libraries and relinker. Focused CTest passed 20/20 with no skips, includingguest_appcontentandguest_appcontent_entitlements. Earlier full integration build on main5e04f680adcompleted 4369/4369 and 20/20 focused tests. These are integrated-tree results, not an isolated full build of this branch.tools/check_conventions.py --base origin/mainandgit diff --check origin/main...HEADpassed on this branch.Download1Expandcode in the same source; #13589 and #14212 affect separate debt text. No open PR found implementing this list output guard.Checklist