Skip to content

Commit

Permalink
Bug 1864488 - Avoid reply message types in IPC fuzzing. r=truber
Browse files Browse the repository at this point in the history
  • Loading branch information
choller committed Nov 13, 2023
1 parent 0ad118d commit 04bd154
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/fuzzing/ipc/IPCFuzzController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 04bd154

Please sign in to comment.