Files
AnyPS5/docs/dev/debt/changes/fix-libSceFont-attach-device-cache-buffer.md
CocoandClaude Fable 5.2 9248e3fe27 fix(libSceFont): write the device cache header through a guest copy in sceFontAttachDeviceCacheBuffer
sceFontAttachDeviceCacheBuffer wrote the 24-byte cache header straight
into the caller's buffer, so a non-null pointer to unmapped or read-only
memory faulted the host process. The header is now built locally and
copied out with CopyOutGuest; an unwritable buffer returns
SCE_FONT_ERROR_INVALID_PARAMETER with host errno unchanged and no cache
attached. A buffer the library allocates itself is filled as before, and
a writable caller buffer receives the same bytes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 12:22:11 +05:30

480 B

libSceFont

add Functional

  • sceFontAttachDeviceCacheBuffer guest buffer (libSceFont) - returning SCE_FONT_ERROR_INVALID_PARAMETER with caller errno preserved and no cache attached when the caller's buffer cannot take the 24-byte cache header is a host-safety fallback; whether the console faults or returns an argument error on unmapped memory is unmeasured. Only the header is probed, not the rest of the size bytes.