cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: yangtse: curl/lib url.c,1.673,1.674

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Fri, 09 Nov 2007 06:06:11 +0100

> diff -u -d -r1.673 -r1.674
> --- url.c 5 Nov 2007 09:45:09 -0000 1.673
> +++ url.c 8 Nov 2007 19:28:25 -0000 1.674
> @@ -1059,7 +1059,7 @@
> result = CURLE_OUT_OF_MEMORY;
> else {
> if(data->set.postfieldsize)
> - memcpy(p, argptr, data->set.postfieldsize);
> + memcpy(p, argptr, (size_t)data->set.postfieldsize);

'postfieldsize' is 64-bit signed on my platform (Win32), but memcpy()
cannot cope with more than 32-bit of it (allthough this should be
plenty). But it leaves me wondering why 'postfieldsize' needs to be
so large....

--gv
Received on 2007-11-09