Changeset 153086 in webkit


Ignore:
Timestamp:
Jul 24, 2013 8:44:51 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

WebVTTParser's identifier buffering can ignore subsequent lines
https://bugs.webkit.org/show_bug.cgi?id=118483

Patch by Brendan Long <b.long@cablelabs.com> on 2013-07-24
Reviewed by Eric Carlson.

No new tests since this bug can't be reproduced in layout tests.

  • html/track/WebVTTParser.cpp:

(WebCore::WebVTTParser::parseBytes): Only buffer the identifier if we haven't read an entire line.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r153072 r153086  
     12013-07-24  Brendan Long  <b.long@cablelabs.com>
     2
     3        WebVTTParser's identifier buffering can ignore subsequent lines
     4        https://bugs.webkit.org/show_bug.cgi?id=118483
     5
     6        Reviewed by Eric Carlson.
     7
     8        No new tests since this bug can't be reproduced in layout tests.
     9
     10        * html/track/WebVTTParser.cpp:
     11        (WebCore::WebVTTParser::parseBytes): Only buffer the identifier if we haven't read an entire line.
     12
    1132013-07-23  Andreas Kling  <akling@apple.com>
    214
  • trunk/Source/WebCore/html/track/WebVTTParser.cpp

    r152741 r153086  
    152152        switch (m_state) {
    153153        case Initial:
    154             // Buffer up at least 9 bytes before proceeding with checking for the file identifier.
     154            // Buffer up at least 9 bytes or a full line before proceeding with checking for the file identifier.
    155155            m_identifierData.append(data, length);
    156             if (m_identifierData.size() < bomLength + fileIdentifierLength)
     156            if (position == line.sizeInBytes() && m_identifierData.size() < bomLength + fileIdentifierLength)
    157157                return;
    158158
Note: See TracChangeset for help on using the changeset viewer.