cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: invalid free after an http redirect to ftp

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 23 Oct 2007 14:25:47 -0700

I found a related issue to this when performing a HTTP request followed
by a FTP request followed by a FILE request. The ftp connection is not
closed so no QUIT is sent, and ftpc->prevpath and ftpc->entrypath are
not freed resulting in a memory leak. I suspect Curl_ftp_disconnect should
be called (through the handler struct) when the protocol changes.

I'm hesistant to check in the test because of the code freeze (some trivial
changes to the FTP server are required). A whole raft of these multiple
protocols on one handle test could be created (and probably should) since
this is an area that several bugs have crept in recently. Is it worthwhile
creating a new numeric section for these? I count 40320 potential new tests
involving different ordering of all 8 testable protocols. But fewer, more
carefully-chosen tests would be almost as effective :^)

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-10-23