curl-library
[PATCH] Missing NULL strdup() check in multi.c:1327
From: Andre Guibert de Bruet <andy_at_siliconlandmark.com>
Date: Wed, 19 Aug 2009 13:15:40 -0400
Received on 2009-08-19
Date: Wed, 19 Aug 2009 13:15:40 -0400
Hi,
There appears to be a missing NULL-allocation check in
multi_runsingle() for the newurl parameter that is passed to
Curl_retry_request() (Where the allocation is actually performed).
Presently, this NULL pointer ends up being passed to sscanf() in
is_absolute_url(), through the Curl_follow() call.
The attached patch addresses the issue. Could it be committed upon
review?
Cheers,
/* Andre Guibert de Bruet * 436f 6465 2070 6f65 742e 2042 6974 206a */
/* Managing Partner * 6f63 6b65 792e 2053 7973 4164 6d69 6e2e */
/* GSM: +1 734 846 8758 * 2055 4e49 5820 736c 6575 7468 2e00 0000 */
/* WWW: siliconlandmark.com * C/C++, Java, Perl, PHP, SQL, XHTML, XML */
- application/octet-stream attachment: multi.c.diff