curl-users
reading cookies from a header file core
Date: Tue, 30 Oct 2001 13:15:36 +0100 (MET)
On Tue, 30 Oct 2001, Paul Harrington wrote:
(I changed the subject to match the actual topic)
> It looks like this beta is core dumping on my FreeBSD box:
>
> Program terminated with signal 11, Segmentation fault.
> Cannot access memory at address 0x200c2080.
> #0 0x20103b2d in ?? ()
> (gdb) where
> #0 0x20103b2d in ?? ()
> #1 0xefbfc6a0 in ?? ()
> #2 0x1defd in Curl_cookie_add (c=0xc2bb0, httpheader=1 '\001',
> lineptr=0xefbfcedc "vgnvisitor=Dlcl0g00a9g0000feZWd0MH001; path= /;
> expires=Saturday, 06-Sep-2014 23:50:08 GMT\r\n", domain=0x0) at cookie.c:201
Doh! Of course. It strdup()s a NULL point there. This bug was introduced in
the 7.9.1-series and isn't present in 7.9.
This patch should correct this:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/curl/curl/lib/cookie.c.diff?r1=1.25&r2=1.26
Thanks for reporting.
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2001-10-30