<?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>19515</bug_id>
          
          <creation_ts>2008-06-12 04:16:15 -0700</creation_ts>
          <short_desc>DOM modification causes stack exhaustion (Caused by colGroup?)</short_desc>
          <delta_ts>2008-06-20 16:46:04 -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>New Bugs</component>
          <version>525.x (Safari 3.1)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows Vista</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>19519</dup_id>
          
          <bug_file_loc>http://skypher.com/SkyLined/Repro/Safari/Stack%20exhaustion%20colGroup/repro.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, PlatformOnly</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 name="Nobody">webkit-unassigned</assigned_to>
          <cc>aroben</cc>
    
    <cc>mitz</cc>
          

      

      

      

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

&lt;BODY onload=&quot;go()&quot;&gt;&lt;SCRIPT&gt;
    var i=0;
    function go() {
        oColGroup=document.createElement(&apos;colGroup&apos;);
        document.body.appendChild(oColGroup);
        oComment=document.createElement(&apos;b&apos;);
        document.body.insertAdjacentElement(&apos;afterBegin&apos;, oComment);
    }
&lt;/SCRIPT&gt;&lt;/BODY&gt;

Something tells me the colGroup is the culprit, but I have no way of backing that up.
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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83197</commentid>
    <comment_count>1</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2008-06-13 06:29:07 -0700</bug_when>
    <thetext>Changing priority and security flag</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83260</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-06-13 14:52:34 -0700</bug_when>
    <thetext>&lt;rdar://problem/6007110&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83322</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2008-06-14 08:51:20 -0700</bug_when>
    <thetext>Why is this bug marked PlatformOnly?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84015</commentid>
    <comment_count>4</comment_count>
    <who name="Kevin McCullough">kmccullough</who>
    <bug_when>2008-06-20 16:12:42 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 19519 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>