Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Issue 725733002: IPC::ChannelMojo: Make IPC handling robust against bad messages. (Closed)

Created:
6 years, 1 month ago by Hajime Morrita
Modified:
5 years, 10 months ago
Reviewers:
viettrungluu
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

IPC::ChannelMojo: Make IPC handling robust against bad messages. This change replaces some DCHECK()s with real error handling. They happen when it receives broken messages. BUG=428800 R=viettrungluu@chromium.org Committed: https://crrev.com/185ffdf58f85e47db9666d2ad9b80ff9bd7fa54b Cr-Commit-Position: refs/heads/master@{#304102}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Updated #

Total comments: 1

Patch Set 3 : Landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M ipc/mojo/ipc_mojo_bootstrap.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ipc/mojo/ipc_mojo_bootstrap.cc View 1 2 2 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (1 generated)
Hajime Morrita
6 years, 1 month ago (2014-11-13 20:23:36 UTC) #1
Hajime Morrita
This is a speculative fix for ipz_fuzzer based crash
6 years, 1 month ago (2014-11-13 20:24:17 UTC) #2
viettrungluu
https://codereview.chromium.org/725733002/diff/1/ipc/mojo/ipc_mojo_bootstrap.cc File ipc/mojo/ipc_mojo_bootstrap.cc (right): https://codereview.chromium.org/725733002/diff/1/ipc/mojo/ipc_mojo_bootstrap.cc#newcode103 ipc/mojo/ipc_mojo_bootstrap.cc:103: if (state() != STATE_WAITING_ACK) { You should probably document ...
6 years, 1 month ago (2014-11-13 20:27:59 UTC) #3
Hajime Morrita
Thanks for the review Trung! PTAL? https://codereview.chromium.org/725733002/diff/1/ipc/mojo/ipc_mojo_bootstrap.cc File ipc/mojo/ipc_mojo_bootstrap.cc (right): https://codereview.chromium.org/725733002/diff/1/ipc/mojo/ipc_mojo_bootstrap.cc#newcode103 ipc/mojo/ipc_mojo_bootstrap.cc:103: if (state() != ...
6 years, 1 month ago (2014-11-13 21:01:19 UTC) #4
viettrungluu
LGTM https://codereview.chromium.org/725733002/diff/20001/ipc/mojo/ipc_mojo_bootstrap.cc File ipc/mojo/ipc_mojo_bootstrap.cc (right): https://codereview.chromium.org/725733002/diff/20001/ipc/mojo/ipc_mojo_bootstrap.cc#newcode105 ipc/mojo/ipc_mojo_bootstrap.cc:105: DLOG(ERROR) << "Got inconsistent message from client."; I ...
6 years, 1 month ago (2014-11-13 21:15:26 UTC) #5
Hajime Morrita
On 2014/11/13 21:15:26, viettrungluu wrote: > LGTM > > https://codereview.chromium.org/725733002/diff/20001/ipc/mojo/ipc_mojo_bootstrap.cc > File ipc/mojo/ipc_mojo_bootstrap.cc (right): > ...
6 years, 1 month ago (2014-11-13 21:18:26 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/725733002/40001
6 years, 1 month ago (2014-11-13 21:19:48 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-11-13 22:54:22 UTC) #9
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/185ffdf58f85e47db9666d2ad9b80ff9bd7fa54b Cr-Commit-Position: refs/heads/master@{#304102}
6 years, 1 month ago (2014-11-13 22:55:11 UTC) #10
inferno
On 2014/11/13 22:55:11, I haz the power (commit-bot) wrote: > Patchset 3 (id:??) landed as ...
5 years, 10 months ago (2015-01-29 20:34:22 UTC) #11
inferno
5 years, 10 months ago (2015-01-29 20:34:48 UTC) #12
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/883373002/ by inferno@chromium.org.

The reason for reverting is: Broke ipc fuzzer.

Powered by Google App Engine
This is Rietveld 408576698