Title: [147598] trunk/Source/WebKit2
Revision
147598
Author
ander...@apple.com
Date
2013-04-03 17:45:23 -0700 (Wed, 03 Apr 2013)

Log Message

Don't try to set the exception port for server connections
https://bugs.webkit.org/show_bug.cgi?id=113910
<rdar://problem/11248925>

Reviewed by Darin Adler.

Treat a SetExceptionPort message to the server connection as an invalid message.

* Platform/CoreIPC/mac/ConnectionMac.cpp:
(CoreIPC::Connection::receiveSourceEventHandler):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (147597 => 147598)


--- trunk/Source/WebKit2/ChangeLog	2013-04-04 00:05:54 UTC (rev 147597)
+++ trunk/Source/WebKit2/ChangeLog	2013-04-04 00:45:23 UTC (rev 147598)
@@ -1,3 +1,16 @@
+2013-04-03  Anders Carlsson  <ander...@apple.com>
+
+        Don't try to set the exception port for server connections
+        https://bugs.webkit.org/show_bug.cgi?id=113910
+        <rdar://problem/11248925>
+
+        Reviewed by Darin Adler.
+
+        Treat a SetExceptionPort message to the server connection as an invalid message.
+
+        * Platform/CoreIPC/mac/ConnectionMac.cpp:
+        (CoreIPC::Connection::receiveSourceEventHandler):
+
 2013-04-02  Mark Rowe  <mr...@apple.com>
 
         <http://webkit.org/b/113898> Eliminate some code duplication by introducing an array of handlers to register / unregister.

Modified: trunk/Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp (147597 => 147598)


--- trunk/Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp	2013-04-04 00:05:54 UTC (rev 147597)
+++ trunk/Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp	2013-04-04 00:45:23 UTC (rev 147598)
@@ -420,6 +420,11 @@
     }
 
     if (decoder->messageReceiverName() == "IPC" && decoder->messageName() == "SetExceptionPort") {
+        if (m_isServer) {
+            // Server connections aren't supposed to have their exception ports overriden. Treat this as an invalid message.
+            m_clientRunLoop->dispatch(bind(&Connection::dispatchDidReceiveInvalidMessage, this, decoder->messageReceiverName().toString(), decoder->messageName().toString()));
+            return;
+        }
         MachPort exceptionPort;
         if (!decoder->decode(exceptionPort))
             return;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to