read() cant read files larger than 2.1 gig on a 64 bit system

Kees Cook kees at ubuntu.com
Sat Dec 26 09:43:49 GMT 2009


On Sat, Dec 26, 2009 at 01:28:06AM -0800, Kees Cook wrote:
>  if ((fd = fopen(infile,"r")) < 0)

Sorry was typing too fast.  Above should be:
     if (!(fd = fopen(infile,"r")))

-- 
Kees Cook
Ubuntu Security Team



More information about the ubuntu-devel mailing list