зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1864488 - Avoid reply message types in IPC fuzzing. r=truber
Differential Revision: https://phabricator.services.mozilla.com/D193451
This commit is contained in:
Родитель
48833f3a86
Коммит
bec852555c
|
@ -142,6 +142,11 @@ bool IPCFuzzController::GetRandomIPCMessageType(ProtocolId pId,
|
|||
|
||||
*type =
|
||||
((uint32_t)pIdEntry->first << 16) + 1 + (typeOffset % pIdEntry->second);
|
||||
|
||||
if (strstr(IPC::StringFromIPCMessageType(*type), "::Reply_")) {
|
||||
*type = *type - 1;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче