fix(libSceNpTrophy2): copy icon size outputs via GuestCopyOut #20612
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20612"
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 PrivacyOnion on 2026-11-15T11:04:37Z.
What
sizeoutputs insceNpTrophy2GetRewardIcon,sceNpTrophy2GetGameIcon,sceNpTrophy2GetGroupIcon, andsceNpTrophy2GetTrophyIconviaGuestCopyOut_nid_no_patchand throwAPS5_INVALID_ARG_EXon invalid guest pointers instead of dereferencingsizedirectly.core/libs/tests/GuestNpTrophy2.cpp.Tested
python tools/guest_pointer_audit.py libSceNpTrophy2->0 direct guest pointer accesses in 0 exported functionsg++.exe -std=gnu++20 -fsyntax-onlyon all 5 modified.cppfiles -> exit code 0python tools/check_conventions.py --base upstream/main --head fix/nptrophy2-guest-copy->All conventions checks passed.(exit code 0)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-11-15T11:41:51Z.
Review: APPROVED
Reviewed — looks good
Nothing in the reviewed changes blocks merging; the four icon exports now copy size through the guest memory helper and reject invalid destinations.
What I ran
Reviewed head
d0893df77c8d5c1db0afab4f62e1546730d65895. I readdescription.md,commits.md,manifest.json,diff.patch, and all five changed source files usingrepo_read.py. No commands or tests were run; the checks in the description are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The author-reported syntax, convention, and guest pointer audit checks were not independently run. No runtime or console behavior was verified. No files were excluded from this review.
To get this to a good state
Nothing is required.