Skip to content

Commit

Permalink
Bug 1863732 - Fix divide by zero error in IPCFuzzController. r=truber
Browse files Browse the repository at this point in the history
  • Loading branch information
choller committed Nov 13, 2023
1 parent 0cf27dd commit 44d64cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/fuzzing/ipc/IPCFuzzController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ void IPCFuzzController::InitializeIPCTypes() {
}
}

validMsgTypes[(ProtocolId)start] = i - ((start << 16) + 1);
uint32_t msgCount = i - ((start << 16) + 1);
if (msgCount) {
validMsgTypes[(ProtocolId)start] = msgCount;
}
}
}

Expand Down

0 comments on commit 44d64cc

Please sign in to comment.