[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    PATCH: DCOPClient
From:       Waldo Bastian <bastian () kde ! org>
Date:       2001-01-25 23:41:51
[Download RAW message or body]

DCOPClient crashes if a nameless object is called and the function doesn't 
exist..

The following patch prevents the crash.

Cheers,
Waldo
-- 
bastian@kde.org | SuSE Labs KDE Developer | bastian@suse.com

["dcopclient.patch" (text/x-c++)]

Index: dcopclient.cpp
===================================================================
RCS file: /home/kde/kdelibs/dcop/dcopclient.cpp,v
retrieving revision 1.99
diff -u -r1.99 dcopclient.cpp
--- dcopclient.cpp	2000/12/02 23:48:34	1.99
+++ dcopclient.cpp	2001/01/25 23:16:24
@@ -1202,7 +1202,7 @@
 	// fall through and send to object proxies
     }
 
-    if (objId[objId.length()-1] == '*') {
+    if (!objId.isEmpty() && objId[objId.length()-1] == '*') {
 	// handle a multicast to several objects.
 	// doesn't handle proxies currently.  should it?
 	QList<DCOPObject> matchList =


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic