mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
sceKernelGetdirentries/sceKernelGetdents wrote up to nbytes into buf and 8 bytes into *basep with only null checks, unlike sceKernelRead, pread and readv which all gate on GuestArena::HostWrite. Validate both buffers the same way so a forged pointer fails with EFAULT instead of writing to an arbitrary host address.