cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: httpput.c

From: Tor Arntsen <tor_at_spacetec.no>
Date: Fri, 30 Jun 2006 12:18:47 +0200

On Jun 29, 23:00, "Parvinder Singh Arora" wrote:
>Content-Length: 154619015241

>*** We read 16384 bytes from file
>*** We read 16384 bytes from file
>*** We read 16384 bytes from file
>*** We read 16384 bytes from file
>*** We read 16384 bytes from file
>*** We read 16384 bytes from file
>*** We read 16384 bytes from file
>*** We read 16384 bytes from file
>*** We read 16384 bytes from file
>*** We read 16384 bytes from file
>*** We read 16384 bytes from file
>*** We read 12361 bytes from file
>*** We read 0 bytes from file

The sum of 11*16384+12361 is 192585 which is 0x2f049 in hex, and
the number 154619015241 is _also_ 0x2f049.. except that it's totally
overflowed. 154619015241 = (unsigned) 0xffffffff + 1 + 192585
Something goes wrong somewhere.

-Tor
Received on 2006-06-30