Changeset 74321 in webkit


Ignore:
Timestamp:
Dec 18, 2010 10:51:21 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-12-18 Tom Sepez <tsepez@chromium.org>

Reviewed by David Levin.

https://bugs.webkit.org/show_bug.cgi?id=51055
Fix a null de-reference when an XML file contains a malformed entity
of the form "&:;".

  • fast/parser/resources/xml-colon-entity.xml: Added.
  • fast/parser/xml-colon-entity-expected.txt: Added.
  • fast/parser/xml-colon-entity.html: Added.

2010-12-18 Tom Sepez <tsepez@chromium.org>

Reviewed by David Levin.

https://bugs.webkit.org/show_bug.cgi?id=51055
Fix a null de-reference when an XML file contains a malformed entity
of the form "&:;".

Test: fast/parser/xml-colon-entity.html

  • html/parser/HTMLEntitySearch.cpp: (WebCore::HTMLEntitySearch::advance):
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r74319 r74321  
     12010-12-18  Tom Sepez  <tsepez@chromium.org>
     2
     3        Reviewed by David Levin.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=51055
     6        Fix a null de-reference when an XML file contains a malformed entity
     7        of the form "&:;".
     8
     9        * fast/parser/resources/xml-colon-entity.xml: Added.
     10        * fast/parser/xml-colon-entity-expected.txt: Added.
     11        * fast/parser/xml-colon-entity.html: Added.
     12
    1132010-12-18  Dan Bernstein  <mitz@apple.com>
    214
  • trunk/WebCore/ChangeLog

    r74320 r74321  
     12010-12-18  Tom Sepez  <tsepez@chromium.org>
     2
     3        Reviewed by David Levin.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=51055
     6        Fix a null de-reference when an XML file contains a malformed entity
     7        of the form "&:;".
     8
     9        Test: fast/parser/xml-colon-entity.html
     10
     11        * html/parser/HTMLEntitySearch.cpp:
     12        (WebCore::HTMLEntitySearch::advance):
     13
    1142010-12-18  Noel Gordon  <noel.gordon@gmail.com>
    215
  • trunk/WebCore/html/parser/HTMLEntitySearch.cpp

    r66277 r74321  
    115115        m_first = HTMLEntityTable::firstEntryStartingWith(nextCharacter);
    116116        m_last = HTMLEntityTable::lastEntryStartingWith(nextCharacter);
     117        if (!m_first || !m_last)
     118            return fail();
    117119    } else {
    118120        m_first = findFirst(nextCharacter);
Note: See TracChangeset for help on using the changeset viewer.