Changeset 147598 in webkit


Ignore:
Timestamp:
Apr 3, 2013 5:45:23 PM (11 years ago)
Author:
andersca@apple.com
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):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r147593 r147598  
     12013-04-03  Anders Carlsson  <andersca@apple.com>
     2
     3        Don't try to set the exception port for server connections
     4        https://bugs.webkit.org/show_bug.cgi?id=113910
     5        <rdar://problem/11248925>
     6
     7        Reviewed by Darin Adler.
     8
     9        Treat a SetExceptionPort message to the server connection as an invalid message.
     10
     11        * Platform/CoreIPC/mac/ConnectionMac.cpp:
     12        (CoreIPC::Connection::receiveSourceEventHandler):
     13
    1142013-04-02  Mark Rowe  <mrowe@apple.com>
    215
  • trunk/Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp

    r141497 r147598  
    421421
    422422    if (decoder->messageReceiverName() == "IPC" && decoder->messageName() == "SetExceptionPort") {
     423        if (m_isServer) {
     424            // Server connections aren't supposed to have their exception ports overriden. Treat this as an invalid message.
     425            m_clientRunLoop->dispatch(bind(&Connection::dispatchDidReceiveInvalidMessage, this, decoder->messageReceiverName().toString(), decoder->messageName().toString()));
     426            return;
     427        }
    423428        MachPort exceptionPort;
    424429        if (!decoder->decode(exceptionPort))
Note: See TracChangeset for help on using the changeset viewer.