FTP SYST NULL dereferencing crash (found by someone else)

2006-12-19 Thread Ulf Harnhammar
2006-12-19  Ulf Harnhammar  [EMAIL PROTECTED]

* ftp-basic.c (ftp_syst): Fixes NULL dereferencing crash bug
when parsing SYST replies from FTP servers. Originally
reported by Federico L. Bossi Bonin:
http://www.milw0rm.com/exploits/2947


Index: src/ftp-basic.c
===
--- src/ftp-basic.c (revision 2197)
+++ src/ftp-basic.c (working copy)
@@ -1038,6 +1038,11 @@
   /* Which system type has been reported (we are interested just in the
  first word of the server response)?  */
   request = strtok (NULL,  );
+  if (request == NULL)
+{
+  xfree (respline);
+  return FTPSRVERR;
+}
 
   if (!strcasecmp (request, VMS))
 *server_type = ST_VMS;




Re: Small bug in Wget manual page

2005-06-15 Thread Ulf Harnhammar
On Wed, Jun 15, 2005 at 03:53:40PM -0500, Mauro Tortonesi wrote:
 the web pages (including the documentation) on gnu.org have just been updated.

Nice! I have found some broken links and strange grammar, though:

* index.html: There are archives of the main GNU Wget list at
** fly.cc.fer.hr
** www.geocrawler.com
(neither works)

* wgetdev.html
** Translation Project page
(doesn't work)

* faq.html
** 3.1 [..]
Yes, starting from version 1.10, GNU Wget support files larger than 2GB.
(should be supports)

// Ulf



Re: Small bug in Wget manual page

2005-06-15 Thread Ulf Harnhammar
On Wed, Jun 15, 2005 at 11:57:42PM +0200, Ulf Harnhammar wrote:
 * faq.html
 ** 3.1 [..]
 Yes, starting from version 1.10, GNU Wget support files larger than 2GB.
 (should be supports)

** 2.0 How I compile GNU Wget?
(should be How do I)

// Ulf



Re: links conversion; non-existent index.html

2005-05-01 Thread Ulf Harnhammar
The following Unix command removes all files called index.html
in the current and below directories:

find . -type f -name 'index.html' -print -exec rm -f {} \;

That might be one way to solve your problem.

// Ulf Härnhammar