cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Bad data in (FTP) URLs

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 19 Jan 2005 19:56:46 +0100 (CET)

On Wed, 19 Jan 2005, Stephan Bergmann wrote:

> 1 FTP URLs passed to curl may contain CR (0x0D) and LF (0x0A)

...

> A quick-and-dirty patch to ftp.c 1.274 is attached.

I applied it and added a note in the TODO about the need to make the check
earlier on.

> 2 FTP URLs passed to curl may contain NUL (0x00)

I added this description to the KNOWN_BUGS document. I'm not up to fixing this
for the moment. I have two rather involved FTP works going already.

Thanks for your analysis and patch. I wrote two test cases (225 and 226) that
verify that your patch works.

Committing this within shortly.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-01-19