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

Unified Diff: remoting/host/desktop_session_proxy.cc

Issue 12390027: Crash the network or desktop process when an unknown IPC message is received. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
Index: remoting/host/desktop_session_proxy.cc
diff --git a/remoting/host/desktop_session_proxy.cc b/remoting/host/desktop_session_proxy.cc
index 55f7fc597df2d4f4ff9ab5b4185dd584fbf81fb3..44b213f53b48c720784816a8959684ebc3884213 100644
--- a/remoting/host/desktop_session_proxy.cc
+++ b/remoting/host/desktop_session_proxy.cc
@@ -94,6 +94,8 @@ bool DesktopSessionProxy::OnMessageReceived(const IPC::Message& message) {
DisconnectSession);
IPC_END_MESSAGE_MAP()
+ CHECK(handled) << "An unexpected IPC message received: type="
+ << message.type();
return handled;
}

Powered by Google App Engine
This is Rietveld 408576698