Commit 42a17e37 authored by mark a. foltz's avatar mark a. foltz Committed by Commit Bot

[Presentation API] Fix use-after-free.

This fixes a potential UAF in PresentationConnectionCallbacks::OnSuccess.

Bug: 1116706
Change-Id: I25fc55edf968f41bfedecbeb2054a5eae56d0de7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2361025Reviewed-by: default avatarMounir Lamouri <mlamouri@chromium.org>
Commit-Queue: mark a. foltz <mfoltz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799342}
parent 6ae37050
......@@ -64,9 +64,10 @@ void PresentationConnectionCallbacks::OnSuccess(
resolver_.Get(), presentation_info, request_);
}
resolver_->Resolve(connection_);
connection_->Init(std::move(connection_remote),
std::move(connection_receiver));
resolver_->Resolve(connection_);
}
void PresentationConnectionCallbacks::OnError(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment