[Nearby] Fix UAF in FastInitiationManager
When FastInitiationManager calls the |error_callback_| from StartAdvertising we destroy the instance in NearbySharingServiceImpl. After that we can't access local fields anymore as they point to freed memory. Bug: b:154846208, 1109581 Change-Id: Ibdecd4c5759051b778ce833a0f70debd2b9b8e3f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2320174 Commit-Queue: Richard Knoll <knollr@chromium.org> Reviewed-by:Ryan Hansberry <hansberry@chromium.org> Cr-Commit-Position: refs/heads/master@{#791948}
Showing
Please register or sign in to comment