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

Issue 2042493002: Fix use-before-new issue in TestCastSocket. (Closed)

Created:
4 years, 6 months ago by krasin
Modified:
4 years, 6 months ago
Reviewers:
Kevin M, Wez
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, kcc2, pcc1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix use-before-new issue in TestCastSocket. A reference to capturing_net_log_ was passed into the base class constructor and used before it was fully initialized. For the derived class the initialization of the members happens stronly after the base constructors completed. This fixes a bug found by UBSan Vptr. BUG=617206 Committed: https://crrev.com/ce674bd826bdfc05b1b091ab062c386d56018d76 Cr-Commit-Position: refs/heads/master@{#397846}

Patch Set 1 #

Total comments: 2

Patch Set 2 : drop explicit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -8 lines) Patch
M extensions/browser/api/cast_channel/cast_socket_unittest.cc View 1 3 chunks +22 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
krasin
4 years, 6 months ago (2016-06-03 21:42:57 UTC) #2
Wez
LGTM as a quick-fix. Looking at TestCastSocket, it seems that it only overrides two CastSocket ...
4 years, 6 months ago (2016-06-03 22:12:18 UTC) #4
krasin
Thank you, James. I've dropped explicit clauses. Also, I've taken a quick look at the ...
4 years, 6 months ago (2016-06-03 22:20:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2042493002/20001
4 years, 6 months ago (2016-06-03 22:21:51 UTC) #8
Wez
On 2016/06/03 22:20:58, krasin wrote: > Thank you, James. I've dropped explicit clauses. Great - ...
4 years, 6 months ago (2016-06-03 22:21:58 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-03 23:52:35 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 23:55:02 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ce674bd826bdfc05b1b091ab062c386d56018d76
Cr-Commit-Position: refs/heads/master@{#397846}

Powered by Google App Engine
This is Rietveld 408576698