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

Issue 2373753002: Avoid dereferencing nullptr during ProfileIOData destruction (Closed)

Created:
4 years, 2 months ago by Eran Messeri
Modified:
4 years, 2 months ago
Reviewers:
mmenke
CC:
chromium-reviews, Rob Percival, Ryan Sleevi
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid dereferencing nullptr during ProfileIOData destruction Do not de-reference the cert_transparency_verifier_ field during destruction if it was not initialized, as that would lead to a crash. The original assumption was that ProfileIOData::Init() is always called so the cert_transparency_verifier_ is always initialized. However that assumption proved to be wrong - ProfileIOData::Init is only called once a ChromeURLRequestContextFactory is created with the ProfileIOData instance and a URLRequestContext is created using the Create method (see: https://cs.chromium.org/chromium/src/chrome/browser/net/chrome_url_request_context_getter.cc?sq=package:chromium&dr=C&rcl=1474946434&l=55) If that did not happen and ProfileIOData::Init was not called, de-referencing cert_transparency_verifier_ during destruction would lead to a crash. BUG=648507 Committed: https://crrev.com/13d5499a28455449c3a108a05d695ecae8d881e0 Cr-Commit-Position: refs/heads/master@{#421304}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M chrome/browser/profiles/profile_io_data.cc View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
Eran Messeri
Matt, please review this small fix to a release-blocking crash bug.
4 years, 2 months ago (2016-09-27 11:18:33 UTC) #3
mmenke
LGTM. I do wonder if this codepath is really worth keeping, it's caused similar issues ...
4 years, 2 months ago (2016-09-27 15:09:59 UTC) #8
Eran Messeri
On 2016/09/27 15:09:59, mmenke wrote: > LGTM. I do wonder if this codepath is really ...
4 years, 2 months ago (2016-09-27 19:42:41 UTC) #9
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/2373753002/1
4 years, 2 months ago (2016-09-27 19:43:17 UTC) #11
mmenke
On 2016/09/27 19:42:41, Eran Messeri wrote: > On 2016/09/27 15:09:59, mmenke wrote: > > LGTM. ...
4 years, 2 months ago (2016-09-27 19:45:54 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-09-27 19:49:31 UTC) #14
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 19:52:11 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/13d5499a28455449c3a108a05d695ecae8d881e0
Cr-Commit-Position: refs/heads/master@{#421304}

Powered by Google App Engine
This is Rietveld 408576698