<?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>44178</bug_id>
          
          <creation_ts>2010-08-18 08:45:51 -0700</creation_ts>
          <short_desc>WebCore::ResourceLoader::setShouldBufferData WriteAV@NULL</short_desc>
          <delta_ts>2010-09-29 12:12:20 -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>FIXED</resolution>
          
          
          <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>
    
    <cc>tonyg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>266131</commentid>
    <comment_count>0</comment_count>
      <attachid>64715</attachid>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2010-08-18 08:45:51 -0700</bug_when>
    <thetext>Created attachment 64715
Repro

The following repro causes a NULL pointer write AV in latest Chromium on Windows with QuickTime installed.
&lt;script&gt;
  var win = window.open(&apos;repro.wav&apos;, &apos;test&apos;);
  setTimeout(function () {
    win.document.open();
    win.document.close();
  }, 100);
&lt;/script&gt;
Note: you should make a &quot;repro.wav&quot; file available with the right mime-type to cause the QuickTime plugin to load. The content of the .wav file is not important: it can be empty and you can also use a &quot;repro.mp3&quot; file, as long as the QuickTime plugin gets loaded. I guess that if QuickTime is installed, the plugin is opened in the window without an actual &quot;document&quot; (or a stub that is missing certain features). This causes problems when you try to open/close the document.

id:             WebCore::ResourceLoader::setShouldBufferData WriteAV@NULL (f6f1dbd366ffad2e955db625bd543082)
description:    Attempt to write to NULL pointer (+0x25D) in WebCore::ResourceLoader::setShouldBufferData
stack:          WebCore::ResourceLoader::setShouldBufferData
                WebCore::PluginDocumentParser::appendBytes
                WebCore::DocumentWriter::endIfNotLoadingMainResource
                WebCore::Document::close
                WebCore::HTMLDocumentInternal::closeCallback
                v8::internal::HandleApiCallHelper&lt;...&gt;
                v8::internal::Builtin_HandleApiCall
                v8::internal::Invoke
                v8::internal::Execution::Call
                ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>266152</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-08-18 09:12:50 -0700</bug_when>
    <thetext>I like that your&apos;e fuzzing with open/close!  We definitely have a bunch of bugs here.

I don&apos;t think this is realted to bug 43055, or at least not directly.  But we should wait to try and fix it until after bug 43055 lands as the open/close landscape will dramatically change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>287052</commentid>
    <comment_count>2</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2010-09-29 12:12:20 -0700</bug_when>
    <thetext>This no longer reproduces in Chrome/Chromium, marking as fixed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>64715</attachid>
            <date>2010-08-18 08:45:51 -0700</date>
            <delta_ts>2010-08-18 08:45:51 -0700</delta_ts>
            <desc>Repro</desc>
            <filename>repro.html</filename>
            <type>text/html</type>
            <size>153</size>
            <attacher name="Berend-Jan Wever">skylined</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KICB2YXIgd2luID0gd2luZG93Lm9wZW4oJ3JlcHJvLndhdicsICd0ZXN0Jyk7CiAg
c2V0VGltZW91dChmdW5jdGlvbiAoKSB7CiAgICB3aW4uZG9jdW1lbnQub3BlbigpOwogICAgd2lu
LmRvY3VtZW50LmNsb3NlKCk7CiAgfSwgMTAwKTsKPC9zY3JpcHQ+
</data>

          </attachment>
      

    </bug>

</bugzilla>