зеркало из https://github.com/mozilla/gecko-dev.git
Bug 981393 - Crash the child process if we get invalid Compositable updates. r=nical
This commit is contained in:
Родитель
bf7cbaf262
Коммит
6b22cbdbb7
|
@ -86,7 +86,9 @@ ImageBridgeParent::RecvUpdate(const EditArray& aEdits, EditReplyArray* aReply)
|
|||
|
||||
EditReplyVector replyv;
|
||||
for (EditArray::index_type i = 0; i < aEdits.Length(); ++i) {
|
||||
ReceiveCompositableUpdate(aEdits[i], replyv);
|
||||
if (!ReceiveCompositableUpdate(aEdits[i], replyv)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
aReply->SetCapacity(replyv.size());
|
||||
|
|
|
@ -495,8 +495,10 @@ LayerTransactionParent::RecvUpdate(const InfallibleTArray<Edit>& cset,
|
|||
break;
|
||||
}
|
||||
case Edit::TCompositableOperation: {
|
||||
ReceiveCompositableUpdate(edit.get_CompositableOperation(),
|
||||
replyv);
|
||||
if (!ReceiveCompositableUpdate(edit.get_CompositableOperation(),
|
||||
replyv)) {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Edit::TOpAttachCompositable: {
|
||||
|
|
Загрузка…
Ссылка в новой задаче