Chromium Code Reviews
DescriptionFixing 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 #
Messages
Total messages: 13 (9 generated)
|
|||||||||||||||||||