cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Segmentation fault/bug in cookie.c

From: Chris Conroy <Chris.Conroy_at_hillcrestlabs.com>
Date: Thu, 21 Jan 2010 16:33:27 -0500

On Thu, 2010-01-21 at 13:22 -0800, Pablo Pissanetzky wrote:
> In cookie.c, line 912, version 7.19.7
>
> It reads:
>
> if(!cookies->cookies || !cookies->cookies)
> return;
>
> It should read:
>
> if(!cookies || !cookies->cookies)
> return;
>
> I can be demonstrated by a segmentation fault if you do this:
>
> CURL * eh=curl_easy_init();
> curl_easy_setopt(eh,CURLOPT_COOKIELIST,"SESS");

Looks like this was already fixed in CVS:

----------------------------
revision 1.113
date: 2009-12-19 14:20:26 -0500; author: bagder; state: Exp; lines:
+2 -2; commitid: 5AUrTHFwBghEd1gu;
fixed a precaution check in the cookie code, pointed out by Julien
Chaffraix

--Chris
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-21