diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /tools/fuzzing | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/fuzzing')
-rw-r--r-- | tools/fuzzing/ipc/IPCFuzzController.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/fuzzing/ipc/IPCFuzzController.cpp b/tools/fuzzing/ipc/IPCFuzzController.cpp index 54856e9f2c..7eee9102c0 100644 --- a/tools/fuzzing/ipc/IPCFuzzController.cpp +++ b/tools/fuzzing/ipc/IPCFuzzController.cpp @@ -895,14 +895,12 @@ NS_IMETHODIMP IPCFuzzController::IPCFuzzLoop::Run() { uint8_t portIndex = controlData[0]; uint8_t actorIndex = controlData[1]; uint16_t typeOffset = *(uint16_t*)(&controlData[2]); - bool isSync = controlData[4] > 127; uint8_t portInstanceIndex = controlData[5]; UniquePtr<IPC::Message> msg(new IPC::Message(ipcMsgData, ipcMsgLen)); if (preserveHeader) { isConstructor = msg->is_constructor(); - isSync = msg->is_sync(); msgType = msg->header()->type; if (!msgType) { @@ -941,7 +939,7 @@ NS_IMETHODIMP IPCFuzzController::IPCFuzzLoop::Run() { msg->header()->flags.SetConstructor(); } - if (!isConstructor && isSync) { + if (IPC::IPCMessageTypeIsSync(msgType)) { MOZ_FUZZING_NYX_DEBUG("INFO: Sending sync message...\n"); msg->header()->flags.SetSync(); } |