mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-04 16:40:32 +00:00
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>
480 B
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
sizebytes.