Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Bug in Curl_fillreadbuffer

From: Daniel Stenberg <>
Date: Mon, 9 Jun 2008 09:29:22 +0200 (CEST)

On Sun, 8 Jun 2008, Brock Noland wrote:

> I seem to have found a bug in Curl_fillreadbuffer.


> else if((size_t)nread > buffersize)
> /* the read function returned a too large value */

> If nread is -1, when cast to size_t, its a very large number.

Yes, but why is that a bug in libcurl? In what legitimate use case does the
read function return -1?

It is evem documented to return a 'size_t' which on all modern operation
systems is an unsigned type.

Received on 2008-06-09

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET