From: Marcus Eggenberger Date: Wed, 20 Feb 2008 23:23:15 +0000 (+0000) Subject: fixed crashes when invalid data is received by the signalProxy and added debug inform... X-Git-Tag: 0.2.0-alpha1~14 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=ae97a322751547af21a637ead6c75ddc0162869b;hp=dcba0652ac1275877b98b06d6482924ee6df0cd1 fixed crashes when invalid data is received by the signalProxy and added debug information --- diff --git a/src/common/signalproxy.cpp b/src/common/signalproxy.cpp index 8d9d8b36..968bf425 100644 --- a/src/common/signalproxy.cpp +++ b/src/common/signalproxy.cpp @@ -593,6 +593,11 @@ void SignalProxy::dispatchSignal(const RequestType &requestType, const QVariantL void SignalProxy::receivePeerSignal(QIODevice *sender, const QVariant &packedFunc) { QVariantList params(packedFunc.toList()); + if(params.isEmpty()) { + qWarning() << "SignalProxy::receivePeerSignal(): received incompatible Data:" << packedFunc; + return; + } + int callType = params.takeFirst().value(); switch(callType) {