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

Issue 1341113002: Fix a use-after-free in ProfileDownloader. (Closed)

Created:
5 years, 3 months ago by anthonyvd
Modified:
5 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a use-after-free in ProfileDownloader. Some consumers of the ProfileDownloader class dispose of it in the OnProfileDownloadSuccess callback. When the profile image is cached and the image fetch is synchronous, this caused a use-after-free in ProfileDownloader::OnAccountUpdated(). BUG=518866 Committed: https://crrev.com/643eff5a2fe5ecc38bcb782e36e8cc8ffc5885fd Cr-Commit-Position: refs/heads/master@{#348724}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add comments #

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

Messages

Total messages: 9 (3 generated)
anthonyvd
Hi Roger, can you please take a look at this small fix? Thanks!
5 years, 3 months ago (2015-09-14 19:45:38 UTC) #2
Roger Tawa OOO till Jul 10th
lgtm, see below. https://codereview.chromium.org/1341113002/diff/1/chrome/browser/profiles/profile_downloader.cc File chrome/browser/profiles/profile_downloader.cc (right): https://codereview.chromium.org/1341113002/diff/1/chrome/browser/profiles/profile_downloader.cc#newcode233 chrome/browser/profiles/profile_downloader.cc:233: FetchImageData(); Maybe add comment here and ...
5 years, 3 months ago (2015-09-14 20:03:02 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1341113002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1341113002/20001
5 years, 3 months ago (2015-09-14 20:18:54 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-09-14 21:18:23 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/643eff5a2fe5ecc38bcb782e36e8cc8ffc5885fd Cr-Commit-Position: refs/heads/master@{#348724}
5 years, 3 months ago (2015-09-14 21:19:05 UTC) #8
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:37:28 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/643eff5a2fe5ecc38bcb782e36e8cc8ffc5885fd
Cr-Commit-Position: refs/heads/master@{#348724}

Powered by Google App Engine
This is Rietveld 408576698