kern/147226: read(fd, buffer, len) returns -1 immediately, if len >=2147483648

Bruce Cran bruce at cran.org.uk
Sun May 30 22:00:14 UTC 2010


The following reply was made to PR kern/147226; it has been noted by GNATS.

From: Bruce Cran <bruce at cran.org.uk>
To: bug-followup at FreeBSD.org, eugene.kharitonov at gmail.com
Cc:  
Subject: Re: kern/147226: read(fd, buffer, len) returns -1 immediately,  if
 len &gt;=2147483648
Date: Sun, 30 May 2010 22:51:51 +0100

 According to read(2), EINVAL is returned if the nbytes parameter is
 more than INT_MAX; that is, it appears to specifically disallow reading
 more than 2GB in a single call.
 
 -- 
 Bruce


More information about the freebsd-bugs mailing list