Bug 1864488 - Avoid reply message types in IPC fuzzing. r=truber

Differential Revision: https://phabricator.services.mozilla.com/D193451
This commit is contained in:
Christian Holler (:decoder) 2023-11-13 19:52:46 +00:00
Родитель 48833f3a86
Коммит bec852555c
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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;
}