Files
AnyPS5/core/libs/prx/libkernel/File
valenciana-nc 5d9a6483b5 fix(libkernel): validate getdirentries output buffers in the guest arena
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.
2026-10-19 00:18:25 +00:00
..