Files
AnyPS5/docs/dev/debt/changes/docs-libscepad-uninit-pointer.md

1.6 KiB

libScePad

change [scePadGetTriggerEffectState]

  • scePadGetTriggerEffectState (libScePad) - returning PAD_ERROR_INVALID_ARG for an unwritable output pointer via GuestCopyOut_nid_no_patch with caller errno preserved is a host-safety fallback; whether the console faults or returns an argument error on unmapped memory is unmeasured. A PS5 (firmware 11.60, payload process; a title process may differ) answered 0x80920005 without scePadInit or scePadOpen for the handles 0, -1 and 0x1234 with a valid buffer, a null pointer and the unmapped address 0x10, left the buffer unchanged and did not fault; the answer comes before the pointer is read, so the pointer question stays unmeasured, and AnyPS5 answers the same PAD_ERROR_NOT_INITIALIZED first in that state.

change [scePadGetMotionTimerUnit]

  • scePadGetMotionTimerUnit (libScePad) - returning PAD_ERROR_INVALID_ARG with caller errno preserved for an unwritable unit pointer via GuestCopyOut_nid_no_patch is a host-safety fallback; whether the console faults or returns an argument error on unmapped memory is unmeasured. A PS5 (firmware 11.60, payload process; a title process may differ) answered 0x80920005 without scePadInit or scePadOpen for the handles 0, -1 and 0x1234 with a valid buffer, a null pointer and the unmapped address 0x10, left the buffer unchanged and did not fault; the answer comes before the pointer is read, so the pointer question stays unmeasured, and AnyPS5 answers the same PAD_ERROR_NOT_INITIALIZED first in that state.