<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>19519</bug_id>
          
          <creation_ts>2008-06-12 08:19:10 -0700</creation_ts>
          <short_desc>DOM modification causes stack exhaustion (BUTTON OBJECT COLGROUP)</short_desc>
          <delta_ts>2008-06-20 16:12:42 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>525.x (Safari 3.1)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://skypher.com/SkyLined/Repro/Safari/Stack%20exhaustion%20BUTTON%20OBJECT%20COLGROUP/repro.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Berend-Jan Wever">skylined</reporter>
          <assigned_to>mitz</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83110</commentid>
    <comment_count>0</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2008-06-12 08:19:10 -0700</bug_when>
    <thetext>I found that the following javascript causes a stack exhaustion:

&lt;BODY onload=&quot;go()&quot;&gt;&lt;SCRIPT&gt;
    function go() {
		oButton=document.createElement(&apos;button&apos;);
		document.body.appendChild(oButton);
		oButton.outerHTML=&apos;&apos;;
		oButton.innerHTML=&apos;&lt;object&gt;x&lt;colGroup&gt;&lt;/colGroup&gt;&lt;/object&gt;&apos;;
		document.body.insertAdjacentElement(&apos;beforeBegin&apos;, oButton);
    }
&lt;/SCRIPT&gt;&lt;/BODY&gt;

Tested with Safari 3.1.1.

Marked as security, I&apos;m not sure if you treat DoS as a security issue, so
erring on the safe side.

Stack exhaustion appears to be in WebKit!JSValueMakeNull. This may be the same bug as 19514 and/or 19515</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83146</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-06-12 21:17:57 -0700</bug_when>
    <thetext>We don&apos;t treat denial of service attacks as security issues (unless the bugs are exploitable for remote code execution), but reproducible crashes are P1.

On a local debug build, I&apos;m hitting an assertion:
ASSERTION FAILED: beforeChild-&gt;parent()-&gt;isAnonymousBlock()
0   com.apple.WebCore             	0x02b4b35d WebCore::RenderBlock::addChildToFlow(WebCore::RenderObject*, WebCore::RenderObject*) + 297 (RenderBlock.cpp:162)

See also: bug 19220.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83277</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-06-13 15:54:08 -0700</bug_when>
    <thetext>&lt;rdar://problem/6007345&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83985</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-06-20 12:16:15 -0700</bug_when>
    <thetext>Fixed in &lt;http://trac.webkit.org/changeset/34692&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84016</commentid>
    <comment_count>4</comment_count>
    <who name="Kevin McCullough">kmccullough</who>
    <bug_when>2008-06-20 16:12:42 -0700</bug_when>
    <thetext>*** Bug 19515 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>