curl-library
Re: Potential integer overflow with write callback
From: Brad Hards <bradh_at_frogmouth.net>
Date: Sun, 27 Mar 2011 20:51:13 +1100
Date: Sun, 27 Mar 2011 20:51:13 +1100
On Sun, 27 Mar 2011 06:38:10 pm Daniel Stenberg wrote:
> On Sat, 26 Mar 2011, richardcavell_at_mail.com wrote:
> > size_t is guaranteed only to be at least 16 bits according to the
> > standard
>
> Have you ever seen libcurl run on a system with size_t being 16 bit?
It would seem unlikely that the callback will be the point of failure.
Presumably malloc will overflow (somewhere) long before that if you're trying
to transfer 64K chunks on a 16 bit machine.
Brad
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-27