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

Bruce Cran bruce at cran.org.uk
Mon May 31 15:30:04 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: Mon, 31 May 2010 16:21:05 +0100

 This actually looks like a 64-bit bug.
 http://opengroup.org/onlinepubs/007908775/xsh/read.html says that up to
 SSIZE_MAX bytes must be accepted, whereas FreeBSD only accepts up to
 INT_MAX bytes.
 
 -- 
 Bruce Cran


More information about the freebsd-bugs mailing list