cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: invalid free after an http redirect to ftp

From: Michal Marek <mmarek_at_suse.cz>
Date: Tue, 16 Oct 2007 15:27:31 +0200

Michal Marek wrote:
> Hmm, another (much simpler) option would be to move FTP::file to struct
> connectdata.

OK, it took me longer that expected, but I finally have a working patch.
Two patches actually, a short description is on the beginning of each
file. It can be that there're still some more bugs, this data->reqdata
struct being (re)used by different connections is just asking for it :)

With the two patches applied, curl successfully downloaded various
combinations of http and ftp url, and passed the testsuite:
TESTDONE: 354 tests out of 354 reported OK: 100%
TESTDONE: 395 tests were considered during 147 seconds.
TESTINFO: 41 tests were skipped due to these restraints:
TESTINFO: "curl lacks any scp support" 4 times (601, 603, 605, 607)
TESTINFO: "no stunnel" 18 times (300, 301, 302, 303, 304, 305, 306, 307,
308, 400, 401, 403, 404, 406, 407, 408, 409, 509)
TESTINFO: "Resolving 'ip6-localhost' didn't work" 1 times (241)
TESTINFO: "curl lacks any sftp support" 12 times (600, 602, 604, 606,
608, 609, 610, 611, 612, 613, 614, 615)
TESTINFO: "curl lacks netrc_debug support" 6 times (130, 131, 132, 133,
134, 257)

Michal

Received on 2007-10-16