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

Issue 2188173003: Fix nullptr deref in remote interface acquisition (Closed)

Created:
4 years, 4 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 4 months ago
Reviewers:
yzshen1
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix nullptr deref in remote interface acquisition Changes MessagePipeReader to drop remote associated interface requests if the pipe has been closed. This avoids dereferencing a null |sender_| instance. Also adds a sanity check to ChannelProxy::GetGenericRemoteAssociatedInterface() to ensure it's never called before Init(). We aren't hitting this today but it clarifies that the method has the same expectations as ChannelProxy::Send(). BUG=632263 R=yzshen@chromium.org Committed: https://crrev.com/5a90895a195ff140b0b355754807944f6824bd90 Cr-Commit-Position: refs/heads/master@{#408458}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M ipc/ipc_channel_proxy.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_message_pipe_reader.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Ken Rockot(use gerrit already)
Please take a look!
4 years, 4 months ago (2016-07-28 17:35:23 UTC) #2
yzshen1
On 2016/07/28 17:35:23, Ken Rockot wrote: > Please take a look! Lgtm
4 years, 4 months ago (2016-07-28 17:45:47 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2188173003/1
4 years, 4 months ago (2016-07-28 17:46:31 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-28 20:08:34 UTC) #6
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 20:10:02 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5a90895a195ff140b0b355754807944f6824bd90
Cr-Commit-Position: refs/heads/master@{#408458}

Powered by Google App Engine
This is Rietveld 408576698