curl-library
Re: Potential integer overflow with write callback
From: Kamil Dudka <kdudka_at_redhat.com>
Date: Sun, 27 Mar 2011 11:43:30 +0100
Date: Sun, 27 Mar 2011 11:43:30 +0100
On Sunday 27 March 2011 10:55:45 richardcavell_at_mail.com wrote:
> This is what you need:
>
> if (CURL_MAX_WRITE_SIZE > (size_t) -1)
> {
> // potential buffer overflow
> }
Such a condition is unsatisfiable unless you change CURL_MAX_WRITE_SIZE
manually. You should not change the define unless you know exactly what
you are doing.
Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-27