HomeFreeBSD

There are times when a len==0 parameter to mmap is okay. But on a

Description

There are times when a len==0 parameter to mmap is okay. But on a
32-bit machine, a len parameter just a few bytes short of 4G, rounded
up to a page boundary and hitting zero then, is not okay. Return
failure in that case.

Reported by: pho
Reviewed by: alc, kib (mentor)
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D20580

Details

Provenance
dougmAuthored on
Reviewer
alc
Differential Revision
D20580: Make mmap fail when len parameter, round up to page size, becomes zero
Parents
rS348842: tail: fix the checks if the file was rotated
Branches
Unknown
Tags
Unknown