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

Issue 724563003: Avoid touching members in InterfaceImpl::ErrorHandlerImpl after calling OnConnectionError (Closed)

Created:
6 years, 1 month ago by jamesr
Modified:
6 years, 1 month ago
Reviewers:
DaveMoore
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Avoid touching members in InterfaceImpl::ErrorHandlerImpl after calling OnConnectionError The impl_'s OnConnectionError may end up deleting the InterfaceImpl, so save off any member variables we wanna look at (like delete_on_error_) in a local before firing the connection error handler. Fixes asan-detected use after frees in view_manager_unittests. R=davemoore@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/db4745be24823b326b9eeef09d47a1307c4d7726

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M mojo/public/cpp/bindings/binding.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/interface_impl.h View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
jamesr
This is the exact same logic InterfaceImpl<> used to have in weak binding that I ...
6 years, 1 month ago (2014-11-13 01:43:10 UTC) #1
DaveMoore
lgtm
6 years, 1 month ago (2014-11-13 01:45:43 UTC) #2
jamesr
6 years, 1 month ago (2014-11-13 01:47:28 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
db4745be24823b326b9eeef09d47a1307c4d7726 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698