fix(libSceAppContent): check memory ranges in sceAppContentAppParamGetInt #24634
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24634"
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 Sheikh-Bilal65 on 2026-11-20T21:44:44Z.
What
Ensure guest pointer for integer parameter output is safely validated and checked in
sceAppContentAppParamGetInt.Tested
Convention checks and unit tests verified on Windows 11.
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-21T01:07:49Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the reviewed guest-pointer checks and output copies are consistent with the existing checked-copy helpers.
What I ran
Reviewed head
8eec9d4bc3ca2f4c4194a99c71cbfb23a686465fusing the prepared diff andrepo_read.py. No commands or tests were run; the Windows 11 test claim is author-reported.Results
Findings
Blocking
None.
Non-blocking
sceAppContentAppParamGetInt, but that function is unchanged in this diff. Consider updating the title/body to describe the initialization, temporary-space, and PFT pointer checks actually included.Not verified
The repository files read were
core/libs/prx/libSceAppContent/Export.cpp,core/libs/tests/GuestAppContent.cpp,core/libs/prx/libc/src/General.cpp, anddocs/dev/debt/changes/appcontent-guest-copy.md; review metadata read wasdescription.md,commits.md,manifest.json, anddiff.patch. No changed file was excluded from the prepared bundle. Tests, physical-console behavior, and console behavior with unmapped guest pointers were not verified. The report says convention checks and unit tests passed on Windows 11; I did not run them.To get this to a good state
Nothing is required. Optional: align the PR title/body with the exports changed in the patch.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-21T01:24:26Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
8eec9d4bc3:tools/check_conventions.pypassed.guest_appcontent_testsbuilt cleanly.guest_appcontent):core/libs/prx/libSceAppContent/Export.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T04:27:22Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the remaining limitations are noted below.
What I ran
Reviewed head
4669e52828efb00aa7f3830b739a87e13e143f38. No commands or tests were run. I readcore/libs/prx/libSceAppContent/Export.cpp,core/libs/tests/GuestAppContent.cpp, anddocs/dev/debt/changes/appcontent-guest-copy.md; no changed files were excluded.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No tests or builds were run, so the author-reported Windows 11 checks were not confirmed. Console behavior on unmapped guest memory is also unmeasured, as recorded in the new debt note.
To get this to a good state
Nothing is required.
Pull request closed