<?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>15805</bug_id>
          
          <creation_ts>2007-11-02 14:50:50 -0700</creation_ts>
          <short_desc>crash reports seen in isLoadingMultipartContent</short_desc>
          <delta_ts>2008-02-05 17:56:42 -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>Page Loading</component>
          <version>523.x (Safari 3)</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>InRadar</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>scott</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60090</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-11-02 14:50:50 -0700</bug_when>
    <thetext>Apple&apos;s crash tracer has reports of crashes that look like this:

&gt;#0   com.apple.WebCore          0x95417289  WebCore::DocumentLoader::isLoadingMultipartContent() const + 9
  #1   com.apple.WebCore          0x95416eea  WebCore::ImageTokenizer::finish() + 138
  #2   com.apple.WebCore          0x95658b44  WebCore::FrameLoader::endIfNotLoadingMainResource() + 116
  #3   com.apple.WebCore          0x95260053  WebCore::Document::close() + 35
  #4   com.apple.WebCore          0x953134cc  WebCore::JSHTMLDocumentPrototypeFunction::callAsFunction(KJS::ExecState*, KJS::JSObject*, KJS::List const&amp;) + 732

I think it&apos;s just a simple missing null check. Lets do a speculative fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60091</commentid>
    <comment_count>1</comment_count>
      <attachid>17001</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-11-02 14:53:57 -0700</bug_when>
    <thetext>Created attachment 17001
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60097</commentid>
    <comment_count>2</comment_count>
      <attachid>17001</attachid>
    <who name="">mitz</who>
    <bug_when>2007-11-02 15:17:01 -0700</bug_when>
    <thetext>Comment on attachment 17001
patch

r=me, although I&apos;d keep the ASSERT in hope of some day encountering the bug in a debug build and understanding it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60107</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-11-02 16:22:49 -0700</bug_when>
    <thetext>Committed revision 27379.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62750</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-11-29 20:44:02 -0800</bug_when>
    <thetext>It would appear this isn&apos;t fixed.  See Bug 16097.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62884</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-12-01 09:43:25 -0800</bug_when>
    <thetext>More precisely, it appears there&apos;s another crash that now happens in the same circumstance now that the first crash is fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69529</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-02-05 17:56:42 -0800</bug_when>
    <thetext>*** Bug 17187 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>17001</attachid>
            <date>2007-11-02 14:53:57 -0700</date>
            <delta_ts>2007-11-02 15:17:01 -0700</delta_ts>
            <desc>patch</desc>
            <filename>MultipartNullCheckPatch.txt</filename>
            <type>text/plain</type>
            <size>1276</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAyNzM3NikKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTMgQEAKKzIwMDctMTEtMDIgIERhcmluIEFkbGVyICA8ZGFyaW5AYXBwbGUuY29t
PgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIC0gc3Bl
Y3VsYXRpdmUgZml4IGZvciBodHRwOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0x
NTgwNQorICAgICAgICAgIDxyZGFyOi8vcHJvYmxlbS81NTEwNzc5PiBjcmFzaGVzIGluIGlzTG9h
ZGluZ011bHRpcGFydENvbnRlbnQKKworICAgICAgICAqIGxvYWRlci9Eb2N1bWVudExvYWRlci5j
cHA6IChXZWJDb3JlOjpEb2N1bWVudExvYWRlcjo6aXNMb2FkaW5nTXVsdGlwYXJ0Q29udGVudCk6
CisgICAgICAgIEluc3RlYWQgb2YgYXNzZXJ0aW5nIHRoZSBmcmFtZSBsb2FkZXIgaXMgbm9uLTAs
IHJldHVybiBmYWxzZSBpZiBpdCBpcyAwLgorCiAyMDA3LTExLTAxICBPbGl2ZXIgSHVudCAgPG9s
aXZlckBhcHBsZS5jb20+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgQWxleGV5LgpJbmRleDogV2Vi
Q29yZS9sb2FkZXIvRG9jdW1lbnRMb2FkZXIuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvbG9h
ZGVyL0RvY3VtZW50TG9hZGVyLmNwcAkocmV2aXNpb24gMjczNzUpCisrKyBXZWJDb3JlL2xvYWRl
ci9Eb2N1bWVudExvYWRlci5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTY3Miw4ICs2NzIsNyBAQCBi
b29sIERvY3VtZW50TG9hZGVyOjppc0xvYWRpbmdQbHVnSW5zKCkgCiAKIGJvb2wgRG9jdW1lbnRM
b2FkZXI6OmlzTG9hZGluZ011bHRpcGFydENvbnRlbnQoKSBjb25zdAogewotICAgIEFTU0VSVCht
X21haW5SZXNvdXJjZUxvYWRlcik7Ci0gICAgcmV0dXJuIG1fbWFpblJlc291cmNlTG9hZGVyLT5p
c0xvYWRpbmdNdWx0aXBhcnRDb250ZW50KCk7CisgICAgcmV0dXJuIG1fbWFpblJlc291cmNlTG9h
ZGVyICYmIG1fbWFpblJlc291cmNlTG9hZGVyLT5pc0xvYWRpbmdNdWx0aXBhcnRDb250ZW50KCk7
CiB9CiAKIGJvb2wgRG9jdW1lbnRMb2FkZXI6OnN0YXJ0TG9hZGluZ01haW5SZXNvdXJjZSh1bnNp
Z25lZCBsb25nIGlkZW50aWZpZXIpCg==
</data>
<flag name="review"
          id="7214"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>