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

Issue 2857983008: Fixing a crash in our native messaging host binaries (Closed)

Created:
3 years, 7 months ago by joedow
Modified:
3 years, 7 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing a crash in our native messaging host binaries This CL fixes a crash which can occur if the native messaging pipeline is torn down immediately after a message is sent. The LogMessageHandler class will run a messaging delegate and then attempt to update a member variable. If the instance is destroyed, then an AV will occur. The fix is to check if the instance is still alive using a WeakPtr skip the member variable assignment if it has been torn down. BUG=718871 Review-Url: https://codereview.chromium.org/2857983008 Cr-Commit-Position: refs/heads/master@{#469646} Committed: https://chromium.googlesource.com/chromium/src/+/e0ca3279b3b7ba5053a56f03fd57f7feb03d93ba

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M remoting/host/native_messaging/log_message_handler.cc View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 13 (9 generated)
joedow
PTAL!
3 years, 7 months ago (2017-05-04 23:46:48 UTC) #3
Jamie
lgtm
3 years, 7 months ago (2017-05-05 00:38:11 UTC) #7
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/2857983008/1
3 years, 7 months ago (2017-05-05 14:32:39 UTC) #10
commit-bot: I haz the power
3 years, 7 months ago (2017-05-05 14:37:28 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/e0ca3279b3b7ba5053a56f03fd57...

Powered by Google App Engine
This is Rietveld 408576698