cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-823423 ] curl_easy_duphandle and CURLDEBUG causes crash on free

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 14 Oct 2003 05:57:48 -0700

Bugs item #823423, was opened at 2003-10-14 05:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=823423&group_id=976

Category: libcurl
Group: crash
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: curl_easy_duphandle and CURLDEBUG causes crash on free

Initial Comment:
There's a problem with curl_easy_duphandle using
standard malloc even if CURLDEBUG is defined.
Duplicated handles freed with curl_easy_cleanup use
debug-version of free, and it may cause libcurl to
crash, atleast with some linux/glibc combo running on
arm. curl version 7.10.6 tested, but should exist in
current versions too.

Solution is to do #include "memdebug.h" ind lib/easy.c
if debuging is enabled.

Trivial diff to CVS version included.
                            
                                                      
                                                           
Kimmo Kinnunen, ktkinnun_at_niksula.cs.hut.fi

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=823423&group_id=976

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
Received on 2003-10-14