Patch an arbitrary code execution vulnerability.

svn path=/trunk/KDE/kdebase/workspace/; revision=1063707
This commit is contained in:
Lucas Murray 2009-12-19 09:39:01 +00:00
parent 167e663a35
commit 24f6bec610

View file

@ -247,6 +247,11 @@ void Bridge::moveItemInClientGroup( int index, int before )
void Bridge::moveItemToClientGroup( long itemId, int before ) void Bridge::moveItemToClientGroup( long itemId, int before )
{ {
Client* item = reinterpret_cast<Client*>( itemId ); Client* item = reinterpret_cast<Client*>( itemId );
if( !c->workspace()->hasClient( item ))
{
kWarning(1212) << "****** ARBITRARY CODE EXECUTION ATTEMPT DETECTED ******";
return;
}
c->workspace()->moveItemToClientGroup( item->clientGroup(), item->clientGroup()->indexOfClient( item ), c->workspace()->moveItemToClientGroup( item->clientGroup(), item->clientGroup()->indexOfClient( item ),
c->clientGroup(), before ); c->clientGroup(), before );
} }