diff --git a/bridge.cpp b/bridge.cpp index 7e529f2c6e..0f138c5ca1 100644 --- a/bridge.cpp +++ b/bridge.cpp @@ -247,6 +247,11 @@ void Bridge::moveItemInClientGroup( int index, int before ) void Bridge::moveItemToClientGroup( long itemId, int before ) { Client* item = reinterpret_cast( itemId ); + if( !c->workspace()->hasClient( item )) + { + kWarning(1212) << "****** ARBITRARY CODE EXECUTION ATTEMPT DETECTED ******"; + return; + } c->workspace()->moveItemToClientGroup( item->clientGroup(), item->clientGroup()->indexOfClient( item ), c->clientGroup(), before ); }