Changeset 215845 in webkit


Ignore:
Timestamp:
Apr 26, 2017 5:12:02 PM (7 years ago)
Author:
achristensen@apple.com
Message:

REGRESSION (r215686): ASSERTION FAILED: data seen with webarchive/loading tests
https://bugs.webkit.org/show_bug.cgi?id=171340

Reviewed by Brady Eidson.

This fixes a flaky assertion in webarchive/loading/missing-data.html

  • platform/cf/SharedBufferCF.cpp:

(WebCore::SharedBuffer::append):
If there's no CFDataRef, there's no need to append data.
This happens sometimes.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r215842 r215845  
     12017-04-26  Alex Christensen  <achristensen@webkit.org>
     2
     3        REGRESSION (r215686): ASSERTION FAILED: data seen with webarchive/loading tests
     4        https://bugs.webkit.org/show_bug.cgi?id=171340
     5
     6        Reviewed by Brady Eidson.
     7
     8        This fixes a flaky assertion in webarchive/loading/missing-data.html
     9
     10        * platform/cf/SharedBufferCF.cpp:
     11        (WebCore::SharedBuffer::append):
     12        If there's no CFDataRef, there's no need to append data.
     13        This happens sometimes.
     14
    1152017-04-26  Ryan Haddad  <ryanhaddad@apple.com>
    216
  • trunk/Source/WebCore/platform/cf/SharedBufferCF.cpp

    r215686 r215845  
    6969void SharedBuffer::append(CFDataRef data)
    7070{
    71     ASSERT(data);
    72     m_size += CFDataGetLength(data);
    73     m_segments.append(DataSegment::create(data));
     71    if (data) {
     72        m_size += CFDataGetLength(data);
     73        m_segments.append(DataSegment::create(data));
     74    }
    7475}
    7576
Note: See TracChangeset for help on using the changeset viewer.