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

Issue 2591913002: Fix use-after-free issues in UpgradeDetectorImplTest. (Closed)

Created:
4 years ago by krasin1
Modified:
4 years ago
Reviewers:
Nico
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix use-after-free issues in UpgradeDetectorImplTest. UpgradeDetectorImpl posts a task to check for unstable channel onto FILE thread. We need to give this task to be executed before the detector goes out of scope. The bug was found by AddressSanitizer with use-after-free check enabled. It's currently being rolled out into Chrome, and this CL is a part of a larger cleanup of existing failures. BUG=649897 Committed: https://crrev.com/b7bb99fe5dfd71c08bbe4dfa23a1cce39929af22 Cr-Commit-Position: refs/heads/master@{#440016}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Improve comments #

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

Messages

Total messages: 12 (6 generated)
krasin1
4 years ago (2016-12-20 23:42:25 UTC) #2
Nico
lgtm https://codereview.chromium.org/2591913002/diff/1/chrome/browser/upgrade_detector_impl_unittest.cc File chrome/browser/upgrade_detector_impl_unittest.cc (right): https://codereview.chromium.org/2591913002/diff/1/chrome/browser/upgrade_detector_impl_unittest.cc#newcode94 chrome/browser/upgrade_detector_impl_unittest.cc:94: // Run pending checks. This isn't a good ...
4 years ago (2016-12-21 03:55:59 UTC) #3
krasin1
https://codereview.chromium.org/2591913002/diff/1/chrome/browser/upgrade_detector_impl_unittest.cc File chrome/browser/upgrade_detector_impl_unittest.cc (right): https://codereview.chromium.org/2591913002/diff/1/chrome/browser/upgrade_detector_impl_unittest.cc#newcode94 chrome/browser/upgrade_detector_impl_unittest.cc:94: // Run pending checks. On 2016/12/21 03:55:59, Nico (swamped ...
4 years ago (2016-12-21 04:05:22 UTC) #4
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/2591913002/20001
4 years ago (2016-12-21 04:05:53 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-21 04:36:12 UTC) #10
commit-bot: I haz the power
4 years ago (2016-12-21 04:38:30 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b7bb99fe5dfd71c08bbe4dfa23a1cce39929af22
Cr-Commit-Position: refs/heads/master@{#440016}

Powered by Google App Engine
This is Rietveld 408576698