Files
AnyPS5/core/libs/prx/libkernel
MarcZX10 807f376f90 fix(libkernel): reject msync lengths that wrap the page rounding
msync rounded start + length up to the page size before checking the
length, so a length close to SIZE_MAX wrapped to a small or zero size and
the call succeeded on a mapped address instead of failing. mincore already
guards the same rounding.

Check the length against the remaining address space, including the
offset into the first page and the page mask, before computing the size,
and fail with EINVAL.
2026-10-28 03:09:48 +00:00
..