Changeset 194526 in webkit


Ignore:
Timestamp:
Jan 3, 2016, 7:48:49 PM (10 years ago)
Author:
ddkilzer@apple.com
Message:

-[WebCoreResourceHandleAsOperationQueueDelegate connection:didReceiveResponse:] is missing an m_handle->client() NULL check
<https://webkit.org/b/152673>
<rdar://problem/23560530>

Reviewed by Daniel Bates.

  • platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm:

(-[WebCoreResourceHandleAsOperationQueueDelegate connection:didReceiveResponse:]):
Add NULL check for m_handle->client() so we don't crash due to a
NULL dereference inside the dispatch_async() block.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r194525 r194526  
     12016-01-03  David Kilzer  <ddkilzer@apple.com>
     2
     3        -[WebCoreResourceHandleAsOperationQueueDelegate connection:didReceiveResponse:] is missing an m_handle->client() NULL check
     4        <https://webkit.org/b/152673>
     5        <rdar://problem/23560530>
     6
     7        Reviewed by Daniel Bates.
     8
     9        * platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm:
     10        (-[WebCoreResourceHandleAsOperationQueueDelegate connection:didReceiveResponse:]):
     11        Add NULL check for m_handle->client() so we don't crash due to a
     12        NULL dereference inside the dispatch_async() block.
     13
    1142016-01-03  Michael Catanzaro  <mcatanzaro@igalia.com>
    215
  • trunk/Source/WebCore/platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm

    r187609 r194526  
    197197
    198198    dispatch_async(dispatch_get_main_queue(), ^{
    199         if (!m_handle) {
     199        if (!m_handle || !m_handle->client()) {
    200200            dispatch_semaphore_signal(m_semaphore);
    201201            return;
Note: See TracChangeset for help on using the changeset viewer.