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

Issue 2779443002: Fix nullptr deref in ChildThreadImpl (Closed)

Created:
3 years, 9 months ago by Ken Rockot(use gerrit already)
Modified:
3 years, 9 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix nullptr deref in ChildThreadImpl It's possible that a child process has no Service Manager connection. This avoids dereferencing a null |service_manager_connection_| in that case. BUG=705175, 704747 TBR=ben@chromium.org Review-Url: https://codereview.chromium.org/2779443002 Cr-Commit-Position: refs/heads/master@{#459634} Committed: https://chromium.googlesource.com/chromium/src/+/7844edf8040581364b3651ac6e0f4ddbc27efe9a

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -7 lines) Patch
M content/child/child_thread_impl.cc View 1 1 chunk +8 lines, -7 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
Ken Rockot(use gerrit already)
3 years, 9 months ago (2017-03-25 01:44:48 UTC) #4
Lei Zhang
70474 -> 704747 BTW
3 years, 9 months ago (2017-03-25 01:50:50 UTC) #5
Ken Rockot(use gerrit already)
Thanks. Fixing reeeeally old bugs.
3 years, 9 months ago (2017-03-25 01:52:11 UTC) #7
Lei Zhang
https://codereview.chromium.org/2779443002/diff/1/content/child/child_thread_impl.cc File content/child/child_thread_impl.cc (right): https://codereview.chromium.org/2779443002/diff/1/content/child/child_thread_impl.cc#newcode506 content/child/child_thread_impl.cc:506: if (GetConnector()) { GetConnector() is service_manager_connection_->GetConnector() underneath. So maybe ...
3 years, 9 months ago (2017-03-25 01:56:34 UTC) #10
Ken Rockot(use gerrit already)
And that's what I get for TBRing... https://codereview.chromium.org/2779443002/diff/1/content/child/child_thread_impl.cc File content/child/child_thread_impl.cc (right): https://codereview.chromium.org/2779443002/diff/1/content/child/child_thread_impl.cc#newcode506 content/child/child_thread_impl.cc:506: if (GetConnector()) ...
3 years, 9 months ago (2017-03-25 02:02:48 UTC) #13
Lei Zhang
Works for me, so LGTM
3 years, 9 months ago (2017-03-25 02:13:26 UTC) #15
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/2779443002/20001
3 years, 9 months ago (2017-03-25 02:59:33 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-25 03:05:54 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7844edf8040581364b3651ac6e0f...

Powered by Google App Engine
This is Rietveld 408576698