fix(libSceFreeType): copy FT_Get_PS_Font_Value output safely #23127
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23127"
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 plentilha on 2026-11-18T19:00:10Z.
What
FT_Longscalars throughGuestCopyOut_nid_no_patchwhile preserving hosterrnoinFT_Get_PS_Font_Value_nid_postfix, removing uncheckedGuestArena::HostWrite/std::memcpywrites and returning-1on unwritable outputs.static const) and unmapped (0x10) output tests preservingerrnoinGuestFreeTypePsFontValue.cpp, and record the change indocs/dev/debt/changes/fix-freetype-ps-value-guest-copy.md.Tested
guest_freetype_ps_font_value(1/1passed)tools/guest_pointer_audit.py libSceFreeType(0findings insrc/PsFontValue.cpp)tools/debt_fold.py --checkcore/libs/tests/test_public_headers.py --audit-onlyChecklist
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-18T19:02:50Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
430b458e8d:tools/check_conventions.pypassed.guest_freetype_ps_font_value_testsbuilt cleanly.guest_freetype_ps_font_value):core/libs/prx/libSceFreeType/src/PsFontValue.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-23T01:29:50Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the prepared description reports successful tests, but I did not run them.
What I ran
Reviewed head
430b458e8d8275f128737ecd60d5deee4e82fa9dusingrepo_read.pyreader access. No tests or prechecks were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Did not run the reported
guest_freetype_ps_font_value, pointer audit, debt check, or public-header audit. Reviewed files:core/libs/prx/libSceFreeType/src/PsFontValue.cpp,core/libs/tests/GuestFreeTypePsFontValue.cpp, anddocs/dev/debt/changes/fix-freetype-ps-value-guest-copy.md. The review listing showed all three changed files included; no changed files were excluded. Other repository files were not read, so their behavior is not verified.To get this to a good state
Nothing is required.