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

Issue 1179543004: Fix XmppLoginHandler to handle destruction from delegate methods. (Closed)

Created:
5 years, 6 months ago by Sergey Ulanov
Modified:
5 years, 6 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix XmppLoginHandler to handle destruction from delegate methods. XmppLoginHandler was crashing when it's destroyed from SendMessage(). E.g. it can happen when Write() fails after TLS handshake. Also added unittests to test this scenario. BUG=498989 Committed: https://crrev.com/56988978ff675e340927da78f65c123f8b6a0008 Cr-Commit-Position: refs/heads/master@{#333877}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -4 lines) Patch
M remoting/signaling/xmpp_login_handler.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/signaling/xmpp_login_handler.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M remoting/signaling/xmpp_login_handler_unittest.cc View 5 chunks +41 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Sergey Ulanov
5 years, 6 months ago (2015-06-10 21:25:24 UTC) #2
Jamie
AIUI, a crash is not guaranteed when accessing data members of a deleted object, so ...
5 years, 6 months ago (2015-06-10 22:13:40 UTC) #3
Wez
On 2015/06/10 22:13:40, Jamie wrote: > AIUI, a crash is not guaranteed when accessing data ...
5 years, 6 months ago (2015-06-10 22:17:52 UTC) #4
Wez
On 2015/06/10 22:17:52, Wez wrote: > On 2015/06/10 22:13:40, Jamie wrote: > > AIUI, a ...
5 years, 6 months ago (2015-06-10 22:20:30 UTC) #5
Sergey Ulanov
On 2015/06/10 22:13:40, Jamie wrote: > AIUI, a crash is not guaranteed when accessing data ...
5 years, 6 months ago (2015-06-11 00:54:57 UTC) #6
Jamie
ASAN goes a long way to mitigating my concerns about this, especially since it seems ...
5 years, 6 months ago (2015-06-11 00:59:31 UTC) #7
Sergey Ulanov
On 2015/06/10 22:20:30, Wez wrote: > On 2015/06/10 22:17:52, Wez wrote: > > On 2015/06/10 ...
5 years, 6 months ago (2015-06-11 01:17:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1179543004/1
5 years, 6 months ago (2015-06-11 01:35:46 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 6 months ago (2015-06-11 02:23:41 UTC) #11
commit-bot: I haz the power
5 years, 6 months ago (2015-06-11 02:24:42 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/56988978ff675e340927da78f65c123f8b6a0008
Cr-Commit-Position: refs/heads/master@{#333877}

Powered by Google App Engine
This is Rietveld 408576698