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

Issue 554363004: ChannelMojo: Handle errors in pending message processing. (Closed)

Created:
6 years, 3 months ago by Hajime Morrita
Modified:
6 years, 3 months ago
Reviewers:
yzshen1, 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

ChannelMojo: Handle errors in pending message processing. ChannelMojo::OnConnect() ignores errors in Send() but the error results deleting |message_readrer_| which causes null access. This CL add an error check for that. This also adds some hooks to make this testable by faking lower level API. TEST=ipc_channel_mojo_unittest.cc BUG=410813 R=yzshen@chromium.org, viettrungluu@chromium.org Committed: https://crrev.com/0a24cfc91484cc092603abf3863690dafe61311e Cr-Commit-Position: refs/heads/master@{#294997}

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -1 line) Patch
M ipc/mojo/ipc_channel_mojo.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M ipc/mojo/ipc_channel_mojo_unittest.cc View 1 2 3 2 chunks +126 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
Hajime Morrita
Trung, Yuzhu, Could you take a look at this crash fix? The fix itself is ...
6 years, 3 months ago (2014-09-12 20:21:58 UTC) #1
Hajime Morrita
Trung, could you take a look at this crash fix? On 2014/09/12 20:21:58, morrita wrote: ...
6 years, 3 months ago (2014-09-15 17:06:31 UTC) #2
yzshen1
https://codereview.chromium.org/554363004/diff/1/ipc/mojo/ipc_channel_mojo.cc File ipc/mojo/ipc_channel_mojo.cc (right): https://codereview.chromium.org/554363004/diff/1/ipc/mojo/ipc_channel_mojo.cc#newcode228 ipc/mojo/ipc_channel_mojo.cc:228: ChannelMojo::CreateMessageReader( nit: you could merge this line onto the ...
6 years, 3 months ago (2014-09-15 17:26:08 UTC) #3
Hajime Morrita
Thanks for the review Yuzhu! PTAL? https://codereview.chromium.org/554363004/diff/1/ipc/mojo/ipc_channel_mojo.cc File ipc/mojo/ipc_channel_mojo.cc (right): https://codereview.chromium.org/554363004/diff/1/ipc/mojo/ipc_channel_mojo.cc#newcode228 ipc/mojo/ipc_channel_mojo.cc:228: ChannelMojo::CreateMessageReader( On 2014/09/15 ...
6 years, 3 months ago (2014-09-15 18:16:54 UTC) #4
yzshen1
Thanks! Only a few more nits. https://codereview.chromium.org/554363004/diff/40001/ipc/mojo/ipc_channel_mojo_unittest.cc File ipc/mojo/ipc_channel_mojo_unittest.cc (right): https://codereview.chromium.org/554363004/diff/40001/ipc/mojo/ipc_channel_mojo_unittest.cc#newcode153 ipc/mojo/ipc_channel_mojo_unittest.cc:153: const IPC::ChannelHandle &channel_handle, ...
6 years, 3 months ago (2014-09-15 18:26:22 UTC) #5
Hajime Morrita
Thanks for helping me polish it! PTAL? https://codereview.chromium.org/554363004/diff/40001/ipc/mojo/ipc_channel_mojo_unittest.cc File ipc/mojo/ipc_channel_mojo_unittest.cc (right): https://codereview.chromium.org/554363004/diff/40001/ipc/mojo/ipc_channel_mojo_unittest.cc#newcode153 ipc/mojo/ipc_channel_mojo_unittest.cc:153: const IPC::ChannelHandle ...
6 years, 3 months ago (2014-09-15 19:59:39 UTC) #6
yzshen1
lgtm
6 years, 3 months ago (2014-09-15 20:01:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/554363004/60001
6 years, 3 months ago (2014-09-15 20:05:27 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/66982) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/56111) android_arm64_dbg_recipe ...
6 years, 3 months ago (2014-09-15 20:22:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/554363004/60001
6 years, 3 months ago (2014-09-15 22:55:52 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/13935)
6 years, 3 months ago (2014-09-16 00:44:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/554363004/60001
6 years, 3 months ago (2014-09-16 02:19:10 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 72f8c225ea39c0743a9665441c92aa0678bf3bd7
6 years, 3 months ago (2014-09-16 03:21:45 UTC) #18
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 03:23:21 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0a24cfc91484cc092603abf3863690dafe61311e
Cr-Commit-Position: refs/heads/master@{#294997}

Powered by Google App Engine
This is Rietveld 408576698