bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] inetutils 1.8: Crash of the FTP server in debug mode


From: Mats Erik Andersson
Subject: Re: [bug-inetutils] inetutils 1.8: Crash of the FTP server in debug mode
Date: Fri, 4 Mar 2011 12:23:04 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

fredag den  4 mars 2011 klockan 09:37 skrev Rachid Koucha detta:
> Hi,
> 
> When we run ftpd in debug mode (option --debug on the command line), the
> server crashes upon incoming connections. The bug comes from the
> functions reply() and lreply() in the file ftpd/ftpd.c: The functions do
> not "reset" the "va_list" before calling syslog(). So, the latter gets
> the end of the list of arguments. This triggers a crash on my PowerPc
> based target !

This is correct. I myself resolved the identical error in Debian's
package linux-ftpd with an almost identical patching. It is the common
origin in netkit-ftpd that is the cause. The variation uses

     #ifdef __STDC__
             va_start(ap, fmt);
     #else
             va_start(ap);
     #end

in two passages.

Regards,
  Mats Erik Andersson



reply via email to

[Prev in Thread] Current Thread [Next in Thread]