Patch an arbitrary code execution vulnerability.
svn path=/trunk/KDE/kdebase/workspace/; revision=1063707
This commit is contained in:
parent
167e663a35
commit
24f6bec610
1 changed files with 5 additions and 0 deletions
|
@ -247,6 +247,11 @@ void Bridge::moveItemInClientGroup( int index, int before )
|
|||
void Bridge::moveItemToClientGroup( long itemId, int before )
|
||||
{
|
||||
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->clientGroup(), before );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue