⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 102089 in webkit


Ignore:
Timestamp:
Dec 5, 2011, 8:46:01 PM (15 years ago)
Author:
commit-queue@webkit.org
Message:

Heap-buffer-overflow in WebCore::HTMLTreeBuilder::processEndTag
https://bugs.webkit.org/show_bug.cgi?id=73765

Patch by Florin Malita <fmalita@google.com> on 2011-12-05
Reviewed by Adam Barth.

Source/WebCore:

Test: fast/parser/foreign-content-crash.html

Use m_tree.currentNode() instead of m_tree.currentElement() as the top node is not always an Element.

  • html/parser/HTMLTreeBuilder.cpp:

(WebCore::HTMLTreeBuilder::processEndTag):

LayoutTests:

  • fast/parser/foreign-content-crash-expected.txt: Added.
  • fast/parser/foreign-content-crash.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r102079 r102089  
     12011-12-05  Florin Malita  <fmalita@google.com>
     2
     3        Heap-buffer-overflow in WebCore::HTMLTreeBuilder::processEndTag
     4        https://bugs.webkit.org/show_bug.cgi?id=73765
     5
     6        Reviewed by Adam Barth.
     7
     8        * fast/parser/foreign-content-crash-expected.txt: Added.
     9        * fast/parser/foreign-content-crash.html: Added.
     10
    1112011-12-05  Tim Horton  <timothy_horton@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r102088 r102089  
     12011-12-05  Florin Malita  <fmalita@google.com>
     2
     3        Heap-buffer-overflow in WebCore::HTMLTreeBuilder::processEndTag
     4        https://bugs.webkit.org/show_bug.cgi?id=73765
     5
     6        Reviewed by Adam Barth.
     7
     8        Test: fast/parser/foreign-content-crash.html
     9
     10        Use m_tree.currentNode() instead of m_tree.currentElement() as the top node is not always an Element.
     11
     12        * html/parser/HTMLTreeBuilder.cpp:
     13        (WebCore::HTMLTreeBuilder::processEndTag):
     14
    1152011-12-05  Stephen White  <senorblanco@chromium.org>
    216
  • trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp

    r100157 r102089  
    23142314        break;
    23152315    case InForeignContentMode:
    2316         if (m_tree.currentElement()->namespaceURI() == SVGNames::svgNamespaceURI)
     2316        if (m_tree.currentNode()->namespaceURI() == SVGNames::svgNamespaceURI)
    23172317            adjustSVGTagNameCase(token);
    23182318
Note: See TracChangeset for help on using the changeset viewer.