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

Unified Diff: ipc/ipc_channel_proxy.cc

Issue 2188173003: Fix nullptr deref in remote interface acquisition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ipc/ipc_message_pipe_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_proxy.cc
diff --git a/ipc/ipc_channel_proxy.cc b/ipc/ipc_channel_proxy.cc
index 2f4b7cfb275c336506e40a14d051456990e497da..2e601f2364acb2df30fd625cba3045802b330468 100644
--- a/ipc/ipc_channel_proxy.cc
+++ b/ipc/ipc_channel_proxy.cc
@@ -571,6 +571,7 @@ mojo::AssociatedGroup* ChannelProxy::GetAssociatedGroup() {
void ChannelProxy::GetGenericRemoteAssociatedInterface(
const std::string& name,
mojo::ScopedInterfaceEndpointHandle handle) {
+ DCHECK(did_init_);
context_->ipc_task_runner()->PostTask(
FROM_HERE, base::Bind(&Context::GetRemoteAssociatedInterface,
context_.get(), name, base::Passed(&handle)));
« no previous file with comments | « no previous file | ipc/ipc_message_pipe_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698