mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 16:43:05 -05:00
Crimson Desert (PPSA25286) calls sceKernelStat with a null buffer at start-up, and main throws "sceKernelStat: sb is null", which ends the title in its first second. FreeBSD 11.4 looks the path up first and only then copies the result out, so a null buffer gets EFAULT for a path that exists and the lookup error for one that does not (sys/kern/vfs_syscalls.c, sys_stat): error = kern_statat(td, 0, AT_FDCWD, uap->path, UIO_USERSPACE, &sb, NULL); if (error == 0) error = copyout(&sb, uap->ub, sizeof (sb)); sceKernelStat now does the same: the lookup and its errors are as before, and a null buffer returns SCE_KERNEL_ERROR_EFAULT where the status would be copied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>