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

Issue 2589363002: Fix use-after-scope issues in HttpNetworkTransactionTest. (Closed)

Created:
4 years ago by krasin1
Modified:
4 years ago
Reviewers:
eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix use-after-scope issues in HttpNetworkTransactionTest. Network transaction keeps a reference to the request and accesses it from the destructor. That adds a requirement that the life scope of request must be wider than the scope of transaction. This CL fixes the cases where it was not true. 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/c06a72a8cb9d22ed8606f1a48ec881aeeb1f7891 Cr-Commit-Position: refs/heads/master@{#440000}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -12 lines) Patch
M net/http/http_network_transaction_unittest.cc View 12 chunks +12 lines, -12 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
krasin1
4 years ago (2016-12-21 01:18:40 UTC) #2
eroman
LGTM, good find!
4 years ago (2016-12-21 01:27:05 UTC) #5
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/2589363002/1
4 years ago (2016-12-21 03:38:39 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-21 03:43:14 UTC) #12
commit-bot: I haz the power
4 years ago (2016-12-21 03:45:13 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c06a72a8cb9d22ed8606f1a48ec881aeeb1f7891
Cr-Commit-Position: refs/heads/master@{#440000}

Powered by Google App Engine
This is Rietveld 408576698