cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Bug in curl 7.19 for CURLINFO_CONTENT_LENGTH_DOWNLOAD?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 25 Oct 2009 19:54:18 +0100 (CET)

On Wed, 21 Oct 2009, Gabriel Kuri wrote:

> Previously, this code simply returned data->progress.size_dl. Now, if the
> PGRS_DL_SIZE_KNOWN bit is not set, it returns -1 instead. As the FUSE driver
> driver casts the returned value into an unsigned variable, the result ends
> up becoming MAXINT.

Thanks for the report.

Can you provide a recipe for how to (easily) repeat this bug/problem so that
we can write up a test case for it?

Does the attached patch fix the problem for you?

-- 
  / daniel.haxx.se


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2009-10-25