mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-04 16:40:32 +00:00
The positioned reads refused a negative offset with EINVAL on every descriptor. FreeBSD 11.4's kern_preadv refuses it only when the file is not a character device; for a character device it passes the offset to the driver, and random(4) ignores it. pread, preadv, sceKernelPread and sceKernelPreadv on the modelled random devices now read whatever the offset; a null buffer still fails with EFAULT. On Windows, the vector path's offset overflow check now skips a negative offset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.1 KiB
1.1 KiB
libkernel
change [readv, writev, preadv, pwritev and their sceKernel forms]
- readv, writev, preadv, pwritev and their sceKernel forms (libkernel) - unreadable iovec-table errors follow FreeBSD 11.4's
copyinuio, not console measurements. The table is copied before inspecting its entries; payload-buffer validation is unchanged. A total length aboveSSIZE_MAXfails withEINVALbefore the descriptor is looked up, and the positioned forms,preadandpwriteincluded, reportEBADFfor a descriptor not open in that direction, thenESPIPEfor a pipe, socket or kqueue, beforeEINVALorEFAULT, askern_preadvdoes. FreeBSD passes a negative offset on a character device to the driver; here only the random devices take it. A Linuxprocess_vm_readvfailure other thanEFAULTthrows, including when the host denies that API.