Skip to content

Commit

Permalink
Bug 1881584 - Disable additional IPC port security checks for fuzzing…
Browse files Browse the repository at this point in the history
…. r=nika

Differential Revision: https://phabricator.services.mozilla.com/D202485
  • Loading branch information
choller committed Feb 22, 2024
1 parent 2a2d3e7 commit 1b53745
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ipc/chromium/src/mojo/core/ports/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ int Node::AcceptEvent(const NodeName& from_node, ScopedEvent event) {
return AcceptEventInternal(port_ref, from_node, std::move(event));
}

#ifndef FUZZING_SNAPSHOT
// Before processing the event, verify the sender and sequence number.
{
SinglePortLocker locker(&port_ref);
Expand All @@ -532,6 +533,7 @@ int Node::AcceptEvent(const NodeName& from_node, ScopedEvent event) {
return OK;
}
}
#endif

int ret = AcceptEventInternal(port_ref, from_node, std::move(event));

Expand Down

0 comments on commit 1b53745

Please sign in to comment.