<?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>19516</bug_id>
          
          <creation_ts>2008-06-12 04:21:55 -0700</creation_ts>
          <short_desc>DOM modification causes Access Violation (NULL pointer?)</short_desc>
          <delta_ts>2008-08-29 01:29:36 -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>FIXED</resolution>
          
          
          <bug_file_loc>http://skypher.com/SkyLined/Repro/Safari/6f164b90%20NULL%203C/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 name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83101</commentid>
    <comment_count>0</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2008-06-12 04:21:55 -0700</bug_when>
    <thetext>I found that the following javascript causes an Access Violation. This appears to be a NULL pointer:

&lt;BODY onload=&quot;go()&quot;&gt;&lt;SCRIPT&gt;
    function go() {
        var oEmbed=document.createElement(&apos;embed&apos;);
        document.body.appendChild(oEmbed);
        var oEmbed2 = oEmbed.cloneNode();
        oEmbed2.appendChild(document.body.parentElement);
        var oA = document.createElement(&apos;a&apos;);
        document.title = &apos;&apos;;
        oA.innerHTML = &apos;&lt;x&gt;&lt;html&gt;&lt;/html&gt;&apos;;
    }
&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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83198</commentid>
    <comment_count>1</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2008-06-13 06:29:15 -0700</bug_when>
    <thetext>Changing priority and security flag</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83261</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-06-13 14:52:38 -0700</bug_when>
    <thetext>&lt;rdar://problem/6007111&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84424</commentid>
    <comment_count>3</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2008-06-25 10:31:53 -0700</bug_when>
    <thetext>Thank you very much for the reduced test case!

Committed revision 34795.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89644</commentid>
    <comment_count>4</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2008-08-28 09:10:25 -0700</bug_when>
    <thetext>This appears fixed in nightly until you drag and drop the repro URL into Safari twice:

(4a8.13c): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
WebKit!WebCore::DragController::concludeDrag+0x3a:
00000000`6ccf0cda 8b03            mov     eax,dword ptr [ebx] ds:002b:00000000`00000000=????????

This exact same problem can be triggered with bug 20540</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89730</commentid>
    <comment_count>5</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2008-08-29 01:29:36 -0700</bug_when>
    <thetext>I opened bug 20565 to track this new issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>