<?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>4716</bug_id>
          
          <creation_ts>2005-08-28 11:18:38 -0700</creation_ts>
          <short_desc>NodeIterator will crash if the filter function removes the current node from the document</short_desc>
          <delta_ts>2019-02-06 09:02:35 -0800</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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darin Adler">darin</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          <cc>cdumez</cc>
    
    <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17813</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-28 11:18:38 -0700</bug_when>
    <thetext>Code inspection of functions like NodeIteratorImpl::findNextNode make it clear that the NodeIterator does 
not do correct memory management of the nodes. As it iterates through nodes, the function holds a node 
pointer across a call to arbitrary JavaScript without calling ref() on that node. Clearly that can lead to a 
crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66636</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-01-08 22:52:26 -0800</bug_when>
    <thetext>Bug 3492 now has a patch that addresses this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69760</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-02-08 02:36:13 -0800</bug_when>
    <thetext>Committed revision 30089.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1502803</commentid>
    <comment_count>3</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:02:35 -0800</bug_when>
    <thetext>Mass moving XML DOM bugs to the &quot;DOM&quot; Component.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>