mirror of
https://github.com/Pharaoh2k/ps5debug-NG.git
synced 2026-10-22 11:53:13 -05:00
The variadic __crt_syscall reads each argument as a 64-bit long; a bare int (e.g. the -1 mmap fd) leaves the upper 32 bits undefined and can fail call-site-dependently. Route the remaining bare sites through the typed ps5debug_syscall wrapper (behavior-preserving): net.c select(93), debug.c wait4(7), proc_remote.c ptrace(26) + wait4(7), installer find_pid.c sysctl(202), installer proc_remote.c ptrace(26).