Changeset 173635 in webkit


Ignore:
Timestamp:
Sep 15, 2014 3:52:47 PM (10 years ago)
Author:
ap@apple.com
Message:

Crash when logging in to optionshouse.com
https://bugs.webkit.org/show_bug.cgi?id=136834

Reviewed by Anders Carlsson.

No test, because I couldn't make one. I don't have a way to reproduce first-hand.

  • platform/network/cf/SocketStreamHandleCFNet.cpp:

(WebCore::SocketStreamHandle::readStreamCallback):
(WebCore::SocketStreamHandle::writeStreamCallback):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r173634 r173635  
     12014-09-15  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Crash when logging in to optionshouse.com
     4        https://bugs.webkit.org/show_bug.cgi?id=136834
     5
     6        Reviewed by Anders Carlsson.
     7
     8        No test, because I couldn't make one. I don't have a way to reproduce first-hand.
     9
     10        * platform/network/cf/SocketStreamHandleCFNet.cpp:
     11        (WebCore::SocketStreamHandle::readStreamCallback):
     12        (WebCore::SocketStreamHandle::writeStreamCallback):
     13
    1142014-09-15  Jer Noble  <jer.noble@apple.com>
    215
  • trunk/Source/WebCore/platform/network/cf/SocketStreamHandleCFNet.cpp

    r169782 r173635  
    425425    SocketStreamHandle* handle = static_cast<SocketStreamHandle*>(clientCallBackInfo);
    426426    ASSERT_UNUSED(stream, stream == handle->m_readStream.get());
     427    // Workaround for <rdar://problem/17727073>. Keeping this below the assertion as we'd like better steps to reproduce this.
     428    if (!handle->m_readStream)
     429        return;
     430
    427431#if PLATFORM(WIN)
    428432    callOnMainThreadAndWait([&] {
     
    439443    SocketStreamHandle* handle = static_cast<SocketStreamHandle*>(clientCallBackInfo);
    440444    ASSERT_UNUSED(stream, stream == handle->m_writeStream.get());
     445    // This wasn't seen happening in practice, yet it seems like it could, due to symmetry with read stream callback.
     446    if (!handle->m_writeStream)
     447        return;
     448
    441449#if PLATFORM(WIN)
    442450    callOnMainThreadAndWait([&] {
Note: See TracChangeset for help on using the changeset viewer.