[Webkit-unassigned] [Bug 30314] New: Two ASSERTS and a NULL ptr read AV in WebCore::Node::document

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 12 14:43:36 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=30314

           Summary: Two ASSERTS and a NULL ptr read AV in
                    WebCore::Node::document
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Keywords: GoogleBug
          Severity: Normal
          Priority: P1
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: skylined at chromium.org
                CC: eric at webkit.org


Created an attachment (id=41060)
 --> (https://bugs.webkit.org/attachment.cgi?id=41060)
Repro

Repro:
<HTML>
  <BODY onload="go()"></BODY>
  <SCRIPT>
    function go() {
      document.execCommand("selectall");
      document.designMode="on";
      document.execCommand("insertimage");
      document.execCommand("indent");
      setTimeout(go, 1);
    }
  </SCRIPT>
</HTML>

1st ASSERT: "start == end" in WebCore::CompositeEditCommand::splitTreeToNode

PassRefPtr<Node> CompositeEditCommand::splitTreeToNode(Node* start, Node* end,
bool splitAncestor)
{
    ASSERT(start != end);

2nd ASSERT: "this == 0" and NULL ptr read AV in WebCore::Node::document

    Document* document() const
    {
        ASSERT(this);
        ASSERT(m_document || (nodeType() == DOCUMENT_TYPE_NODE &&
!inDocument()));

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list