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

Issue 2166163003: Fix a Use-after-free bug (Closed)

Created:
4 years, 5 months ago by qinmin
Modified:
4 years, 5 months ago
Reviewers:
svaldez, sky
CC:
chromium-reviews, asanka, Randy Smith (Not in Mondays)
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 bug CancelOnFailureAndDeleteSelf() should be the last call DownloadTargetDeterminer can make. After that, it is deleted. Reporting the UMA first, then call CancelOnFailureAndDeleteSelf(). BUG=630370 Committed: https://crrev.com/98fd60a637e0cd2609cb8fb909503bb6cb9b40c6 Cr-Commit-Position: refs/heads/master@{#407585}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix another violation missed earlier #

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

Messages

Total messages: 14 (4 generated)
qinmin
PTAL, very tiny change
4 years, 5 months ago (2016-07-21 22:47:50 UTC) #2
sky
I'm not a good reviewer for this.
4 years, 5 months ago (2016-07-21 23:03:00 UTC) #3
Randy Smith (Not in Mondays)
Handing over to svaldez@ as I'm going on vacation and already have a backlog of ...
4 years, 5 months ago (2016-07-22 15:39:42 UTC) #5
qinmin
https://codereview.chromium.org/2166163003/diff/1/chrome/browser/download/download_target_determiner.cc File chrome/browser/download/download_target_determiner.cc (right): https://codereview.chromium.org/2166163003/diff/1/chrome/browser/download/download_target_determiner.cc#newcode327 chrome/browser/download/download_target_determiner.cc:327: CancelOnFailureAndDeleteSelf(); On 2016/07/22 15:39:41, Randy Smith - Not in ...
4 years, 5 months ago (2016-07-22 15:54:40 UTC) #6
svaldez
lgtm.
4 years, 5 months ago (2016-07-25 15:35:07 UTC) #7
qinmin
sky@, can you give OWNERs approval? Thx
4 years, 5 months ago (2016-07-25 19:47:46 UTC) #8
sky
Rubber stamp LGTM given Randy signed off on having svaldez review.
4 years, 5 months ago (2016-07-25 20:21:34 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/2166163003/20001
4 years, 5 months ago (2016-07-25 20:29:32 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-25 21:31:22 UTC) #12
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 21:33:13 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/98fd60a637e0cd2609cb8fb909503bb6cb9b40c6
Cr-Commit-Position: refs/heads/master@{#407585}

Powered by Google App Engine
This is Rietveld 408576698