<?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>54730</bug_id>
          
          <creation_ts>2011-02-18 01:02:45 -0800</creation_ts>
          <short_desc>chrome.dll!WebCore::findPlaceForCounter+1 RecursionSOV (a5da9b73c78c638758c4402f7beabe57)</short_desc>
          <delta_ts>2011-05-06 09:09:54 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows Vista</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>60323</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></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>abarth</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>353468</commentid>
    <comment_count>0</comment_count>
      <attachid>82932</attachid>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2011-02-18 01:02:45 -0800</bug_when>
    <thetext>Created attachment 82932
Repro

Chromium: http://code.google.com/p/chromium/issues/detail?id=73379
findPlaceForCounter &amp; makeCounterNode can call eachother recursively:

static bool findPlaceForCounter(RenderObject* counterOwner, const AtomicString&amp; identifier, bool isReset, CounterNode*&amp; parent, CounterNode*&amp; previousSibling)
&lt;snip&gt;
    RenderObject* currentRenderer = previousInPreOrder(counterOwner);
    previousSibling = 0;
    while (currentRenderer) {
        CounterNode* currentCounter = makeCounterNode(currentRenderer, identifier, false);
&lt;snip&gt;

static CounterNode* makeCounterNode(RenderObject* object, const AtomicString&amp; identifier, bool alwaysCreateCounter)
&lt;snip&gt;
    CounterNode* newParent = 0;
    CounterNode* newPreviousSibling = 0;
    RefPtr&lt;CounterNode&gt; newNode = CounterNode::create(object, isReset, value);
    if (findPlaceForCounter(object, identifier, isReset, newParent, newPreviousSibling))
&lt;snip&gt;

id:             chrome.dll!WebCore::findPlaceForCounter+1 RecursionSOV (a5da9b73c78c638758c4402f7beabe57)
description:    Recursive function calls in chrome.dll!WebCore::findPlaceForCounter and chrome.dll!WebCore::makeCounterNode: 9205 loops
application:    Chromium 11.0.671.0

Repro:
&lt;html&gt;
  &lt;head&gt;
    &lt;script&gt;
      function go() {
        document.write(&apos;x&lt;dd&gt;&lt;strike style=&quot;counter-increment:r&quot;&gt;&lt;/dd&gt;x&apos;);
        document.open();
      }
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload=&quot;go()&quot;&gt;&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399541</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-05-06 09:09:54 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 60323 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>82932</attachid>
            <date>2011-02-18 01:02:45 -0800</date>
            <delta_ts>2011-02-18 01:02:45 -0800</delta_ts>
            <desc>Repro</desc>
            <filename>repro.html</filename>
            <type>text/html</type>
            <size>220</size>
            <attacher name="Berend-Jan Wever">skylined</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgPGhlYWQ+CiAgICA8c2NyaXB0PgogICAgICBmdW5jdGlvbiBnbygpIHsKICAgICAg
ICBkb2N1bWVudC53cml0ZSgneDxkZD48c3RyaWtlIHN0eWxlPSJjb3VudGVyLWluY3JlbWVudDpy
Ij48L2RkPngnKTsKICAgICAgICBkb2N1bWVudC5vcGVuKCk7CiAgICAgIH0KICAgIDwvc2NyaXB0
PgogIDwvaGVhZD4KICA8Ym9keSBvbmxvYWQ9ImdvKCkiPjwvYm9keT4KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>