KDE 3.1.0 RC2
Matthias Welwarsky
matze at stud.fbi.fh-darmstadt.de
Tue Nov 5 08:23:33 GMT 2002
On Monday 04 November 2002 22:39, Dirk Mueller wrote:
> I've just finished uploading the KDE 3.1.0 RC2 tarballs.
I still have this patch for kdelibs/kio/kio/connection.cpp on my local copy.
This patch fixes a possible endless loop and thus a hang of an application. I
posted this patch a few weeks ago but noone confirmed it. There was a short
discussion about it not fixing the real problem, but I cannot come up with a
better solution.
I've seen it happening at least once in kmail, probably because the imap
ioslave just closed it's data connection to the application. I'd like to see
this patch in, sorry that I'm such a late bird again.
I've appended the patch, please review and commit, I will be offline until
friday.
regards,
matze
--
Matthias Welwarsky
Fachschaft Informatik FH Darmstadt
Email: matze at stud.fbi.fh-darmstadt.de
"all software sucks equally, but some software is more equal"
Index: connection.cpp
===================================================================
RCS file: /home/kde/kdelibs/kio/kio/connection.cpp,v
retrieving revision 1.47
diff -u -3 -p -r1.47 connection.cpp
--- connection.cpp 2002/06/19 17:46:00 1.47
+++ connection.cpp 2002/11/05 08:16:35
@@ -244,6 +244,11 @@ int Connection::read( int* _cmd, QByteAr
return -1;
}
+ if ( n == 0 ) {
+ kdError( 7017 ) << "Unexpected end of data" << endl;
+ return -1;
+ }
+
bytesRead += n;
bytesToGo -= n;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021105/2a9e3867/attachment.sig>
More information about the kde-core-devel
mailing list