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

Issue 2635533002: net: fix multiple use-after-scope issues in net_unittests. (Closed)

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

Description

net: fix multiple use-after-scope issues in net_unittests. Most of the issues are due to the fact that Transaction destructor accesses the request reference that is stack allocated and has a shorter lifespan, which causes an invalid access to a potentially reused memory. 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 Review-Url: https://codereview.chromium.org/2635533002 Cr-Commit-Position: refs/heads/master@{#443685} Committed: https://chromium.googlesource.com/chromium/src/+/0bfeb6b121c5cfd7658c485dcf2077826bad2f2b

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -12 lines) Patch
M net/http/http_network_transaction_ssl_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 5 chunks +15 lines, -8 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (5 generated)
krasin1
3 years, 11 months ago (2017-01-13 19:46:16 UTC) #2
krasin1
3 years, 11 months ago (2017-01-13 19:50:07 UTC) #4
mmenke
LGTM! Just for future reference, if you add someone after you publish your first comment, ...
3 years, 11 months ago (2017-01-13 20:04:39 UTC) #5
krasin1
On 2017/01/13 20:04:39, mmenke wrote: > LGTM! > > Just for future reference, if you ...
3 years, 11 months ago (2017-01-13 21:14:01 UTC) #6
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/2635533002/1
3 years, 11 months ago (2017-01-13 21:14:50 UTC) #8
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 21:49:07 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/0bfeb6b121c5cfd7658c485dcf20...

Powered by Google App Engine
This is Rietveld 408576698