Message-ID: <email address hidden> Date: Wed, 5 Jan 2005 19:11:41 +0100 From: Moritz Muehlenhoff <email address hidden> To: <email address hidden> Cc: <email address hidden> Subject: [patch] KDE ftp kioslave applies to woody as well
--NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline
Hi, this applies to woody as well. Attached you can find the backported upstream patch against 2.2.2. BTW, this is CAN-2004-1165.
Cheers, Moritz
--NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="kdelibs-kioslave-ftp-CAN-2004-1156.patch"
diff -Naur kdelibs-2.2.2.orig/kio/ftp/ftp.cc kdelibs-2.2.2/kio/ftp/ftp.cc --- kdelibs-2.2.2.orig/kio/ftp/ftp.cc Wed Jan 5 12:29:07 2005 +++ kdelibs-2.2.2/kio/ftp/ftp.cc Wed Jan 5 12:28:25 2005 @@ -596,6 +596,14 @@ { assert( sControl > 0 );
+ if ( cmd.find( '\r' ) != -1 || cmd.find( '\n' ) != -1) + { + kdWarning(7102) << "Invalid command received (contains CR or LF): " + << cmd.data() << endl; + error( ERR_UNSUPPORTED_ACTION, m_host ); + return false; + } + QCString buf = cmd; buf += "\r\n";
--NzB8fVQJ5HfG6fxh--
Message-ID: <email address hidden>
Date: Wed, 5 Jan 2005 19:11:41 +0100
From: Moritz Muehlenhoff <email address hidden>
To: <email address hidden>
Cc: <email address hidden>
Subject: [patch] KDE ftp kioslave applies to woody as well
--NzB8fVQJ5HfG6fxh Disposition: inline
Content-Type: text/plain; charset=us-ascii
Content-
Hi,
this applies to woody as well. Attached you can find the backported upstream
patch against 2.2.2. BTW, this is CAN-2004-1165.
Cheers,
Moritz
--NzB8fVQJ5HfG6fxh Disposition: attachment; filename= "kdelibs- kioslave- ftp-CAN- 2004-1156. patch"
Content-Type: text/plain; charset=us-ascii
Content-
diff -Naur kdelibs- 2.2.2.orig/ kio/ftp/ ftp.cc kdelibs- 2.2.2/kio/ ftp/ftp. cc 2.2.2.orig/ kio/ftp/ ftp.cc Wed Jan 5 12:29:07 2005 2.2.2/kio/ ftp/ftp. cc Wed Jan 5 12:28:25 2005
--- kdelibs-
+++ kdelibs-
@@ -596,6 +596,14 @@
{
assert( sControl > 0 );
+ if ( cmd.find( '\r' ) != -1 || cmd.find( '\n' ) != -1) _ACTION, m_host );
+ {
+ kdWarning(7102) << "Invalid command received (contains CR or LF): "
+ << cmd.data() << endl;
+ error( ERR_UNSUPPORTED
+ return false;
+ }
+
QCString buf = cmd;
buf += "\r\n";
--NzB8fVQJ5HfG6 fxh--