Brandon Casey
6beb0eeea1
Ensure progress.size_dl/progress.size_ul are always >= 0
...
Historically the default "unknown" value for progress.size_dl and
progress.size_ul has been zero, since these values are initialized
implicitly by the calloc that allocates the curl handle that these
variables are a part of. Users of curl that install progress
callbacks may expect these values to always be >= 0.
Currently it is possible for progress.size_dl and progress.size_ul
to by set to a value of -1, if Curl_pgrsSetDownloadSize() or
Curl_pgrsSetUploadSize() are passed a "size" of -1 (which a few
places currently do, and a following patch will add more). So
lets update Curl_pgrsSetDownloadSize() and Curl_pgrsSetUploadSize()
so they make sure that these variables always contain a value that
is >= 0.
Updates test579 and test599.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
2014-09-07 23:23:12 +02:00
..
2013-05-08 14:35:45 +02:00
2013-01-09 00:49:50 +01:00
2013-07-17 00:26:58 +02:00
2014-05-09 16:50:42 +02:00
2014-05-01 11:00:30 +02:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2014-06-18 01:17:23 +02:00
2014-07-16 00:09:58 +02:00
2013-01-06 18:20:27 +01:00
2014-06-18 01:17:23 +02:00
2013-03-13 21:50:40 +01:00
2014-06-18 01:17:23 +02:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2014-06-18 01:17:23 +02:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-03-13 23:55:24 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-17 19:40:35 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2014-06-18 01:17:23 +02:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-12-31 11:10:42 +00:00
2013-03-15 19:59:51 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-07-22 21:40:45 +02:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-07-22 21:40:45 +02:00
2013-07-22 21:40:45 +02:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2014-06-18 01:17:23 +02:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-07-22 21:40:45 +02:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2014-09-07 23:23:12 +02:00
2014-05-05 15:30:05 +02:00
2013-01-06 18:20:27 +01:00
2013-01-06 18:20:27 +01:00
2014-05-09 16:50:42 +02:00
2014-01-29 00:40:33 +01:00
2013-02-10 22:57:58 +01:00
2013-04-04 16:31:27 +02:00
2014-01-29 00:40:33 +01:00
2013-07-11 17:01:02 +02:00
2013-09-02 20:39:53 +01:00
2014-05-05 15:29:23 +02:00
2014-01-22 01:49:55 +01:00
2014-02-19 20:36:36 +00:00
2014-04-04 17:03:43 +02:00
2014-04-22 22:43:57 +02:00
2014-04-22 22:43:57 +02:00
2014-04-04 17:03:43 +02:00
2014-01-29 00:19:34 +01:00
2014-01-30 23:18:20 +01:00
2013-07-22 21:40:45 +02:00
2013-03-12 00:27:47 +01:00
2014-07-24 15:19:46 +02:00
2012-06-05 20:20:40 +02:00
2013-01-09 00:49:50 +01:00
2013-03-12 00:27:47 +01:00
2010-02-16 13:32:45 +00:00
2010-02-16 13:32:45 +00:00
2010-02-16 13:32:45 +00:00
2010-02-16 13:32:45 +00:00
2014-07-24 23:46:11 +02:00
2011-04-21 14:47:35 -07:00
2014-05-09 16:50:42 +02:00
2013-01-06 18:20:27 +01:00
2012-01-17 21:32:05 +01:00
2013-01-09 00:49:50 +01:00
2013-01-09 00:49:50 +01:00