<?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>17506</bug_id>
          
          <creation_ts>2008-02-23 22:35:25 -0800</creation_ts>
          <short_desc>REGRESSION (r30535): ASSERTION FAILED: i &lt; size()</short_desc>
          <delta_ts>2008-02-23 23:30:22 -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>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://studentmail.jjc.edu/exchange/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Lilek">dev+webkit</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          <cc>darin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71678</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2008-02-23 22:35:25 -0800</bug_when>
    <thetext>Just loading the URL hits the following ASSERT:

ASSERTION FAILED: i &lt; size()
(/Users/matt/Code/WebKit/WebKitBuild/Debug/JavaScriptCore.framework/PrivateHeaders/Vector.h:429 T&amp; WTF::Vector&lt;T, inlineCapacity&gt;::at(size_t) [with T = char, long unsigned int inlineCapacity = 64ul])

Thread 0 Crashed:
0   com.apple.WebCore             	0x020a5b4d WTF::Vector&lt;char, 64ul&gt;::at(unsigned long) + 81 (Vector.h:429)
1   com.apple.WebCore             	0x020a5b88 WTF::Vector&lt;char, 64ul&gt;::operator[](unsigned long) + 24 (Vector.h:438)
2   com.apple.WebCore             	0x020a49b4 WebCore::findTextEncoding(char const*, int) + 82 (TextResourceDecoder.cpp:87)
3   com.apple.WebCore             	0x020a523f WebCore::TextResourceDecoder::checkForHeadCharset(char const*, unsigned long, bool&amp;) + 2135 (TextResourceDecoder.cpp:695)
4   com.apple.WebCore             	0x020a57e4 WebCore::TextResourceDecoder::decode(char const*, unsigned long) + 216 (TextResourceDecoder.cpp:750)
5   com.apple.WebCore             	0x01ccdad1 WebCore::FrameLoader::write(char const*, int, bool) + 607 (FrameLoader.cpp:978)
6   com.apple.WebCore             	0x01ccdd62 WebCore::FrameLoader::addData(char const*, int) + 278 (FrameLoader.cpp:1747)
7   com.apple.WebCore             	0x020bc52c -[WebCoreFrameBridge addData:] + 148 (WebCoreFrameBridge.mm:297)
8   com.apple.WebCore             	0x020c13d4 -[WebCoreFrameBridge receivedData:textEncodingName:] + 252 (WebCoreFrameBridge.mm:1233)
9   com.apple.WebKit              	0x001bf6e2 -[WebHTMLRepresentation receivedData:withDataSource:] + 200 (WebHTMLRepresentation.mm:175)
10  com.apple.WebKit              	0x0019c6b0 -[WebDataSource(WebInternal) _receivedData:] + 90 (WebDataSource.mm:198)
11  com.apple.WebKit              	0x001b2c02 WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char const*, int) + 128 (WebFrameLoaderClient.mm:703)
12  com.apple.WebCore             	0x01cc9071 WebCore::FrameLoader::committedLoad(WebCore::DocumentLoader*, char const*, int) + 53 (FrameLoader.cpp:3228)
13  com.apple.WebCore             	0x01c6d619 WebCore::DocumentLoader::commitLoad(char const*, int) + 87 (DocumentLoader.cpp:354)
14  com.apple.WebCore             	0x01c6d838 WebCore::DocumentLoader::receivedData(char const*, int) + 76 (DocumentLoader.cpp:367)
15  com.apple.WebCore             	0x01cc887d WebCore::FrameLoader::receivedData(char const*, int) + 41 (FrameLoader.cpp:2194)
16  com.apple.WebCore             	0x01ea0c0a WebCore::MainResourceLoader::addData(char const*, int, bool) + 80 (MainResourceLoader.cpp:139)
17  com.apple.WebCore             	0x01f965a9 WebCore::ResourceLoader::didReceiveData(char const*, int, long long, bool) + 83 (ResourceLoader.cpp:240)
18  com.apple.WebCore             	0x01ea0f18 WebCore::MainResourceLoader::didReceiveData(char const*, int, long long, bool) + 282 (MainResourceLoader.cpp:299)
19  com.apple.WebCore             	0x01f96180 WebCore::ResourceLoader::didReceiveData(WebCore::ResourceHandle*, char const*, int, int) + 62 (ResourceLoader.cpp:368)
20  com.apple.WebCore             	0x01f93a3d -[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:] + 201 (ResourceHandleMac.mm:450)
21  com.apple.Foundation          	0x90dea3b7 -[NSURLConnection(NSURLConnectionReallyInternal) sendDidReceiveData:originalLength:] + 119
22  com.apple.Foundation          	0x90dea31e _NSURLConnectionDidReceiveData + 94
23  com.apple.CFNetwork           	0x92c500af sendDidReceiveDataCallback + 518
24  com.apple.CFNetwork           	0x92c4d76d _CFURLConnectionSendCallbacks + 1559
25  com.apple.CFNetwork           	0x92c4d0d9 muxerSourcePerform + 283
26  com.apple.CoreFoundation      	0x943af62e CFRunLoopRunSpecific + 3166
27  com.apple.CoreFoundation      	0x943afd18 CFRunLoopRunInMode + 88
28  com.apple.HIToolbox           	0x910986a0 RunCurrentEventLoopInMode + 283
29  com.apple.HIToolbox           	0x910984b9 ReceiveNextEventCommon + 374
30  com.apple.HIToolbox           	0x9109832d BlockUntilNextEventMatchingListInMode + 106
31  com.apple.AppKit              	0x917047d9 _DPSNextEvent + 657
32  com.apple.AppKit              	0x9170408e -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
33  com.apple.Safari              	0x0000965e 0x1000 + 34398
34  com.apple.AppKit              	0x916fd0c5 -[NSApplication run] + 795
35  com.apple.AppKit              	0x916ca30a NSApplicationMain + 574
36  com.apple.Safari              	0x00002a76 0x1000 + 6774</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71679</commentid>
    <comment_count>1</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2008-02-23 22:38:52 -0800</bug_when>
    <thetext>&lt;http://trac.webkit.org/projects/webkit/changeset/30538&gt; more than likely caused this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71683</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-02-23 23:08:02 -0800</bug_when>
    <thetext>What&apos;s new in that check-in is the assertion. The code in question isn&apos;t new. My guess is that we had code reading off the end of the buffer, but just didn&apos;t catch it until now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71684</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-02-23 23:12:32 -0800</bug_when>
    <thetext>I can&apos;t access that URL without a username or password, so I can&apos;t reproduce this. I&apos;ll try to fix it based on the backtrace alone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71686</commentid>
    <comment_count>4</comment_count>
      <attachid>19313</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-02-23 23:16:54 -0800</bug_when>
    <thetext>Created attachment 19313
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71687</commentid>
    <comment_count>5</comment_count>
      <attachid>19313</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2008-02-23 23:20:33 -0800</bug_when>
    <thetext>Comment on attachment 19313
patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71689</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-02-23 23:25:08 -0800</bug_when>
    <thetext>It was actually r30535 that caused this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71691</commentid>
    <comment_count>7</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-02-23 23:30:22 -0800</bug_when>
    <thetext>LOL. I see this same assertion when running the regression tests. How did I miss it!?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>19313</attachid>
            <date>2008-02-23 23:16:54 -0800</date>
            <delta_ts>2008-02-23 23:20:33 -0800</delta_ts>
            <desc>patch</desc>
            <filename>TextEncodingBufferOverrunPatch.txt</filename>
            <type>text/plain</type>
            <size>1111</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAzMDU0NCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTQgQEAKKzIwMDgtMDItMjMgIERhcmluIEFkbGVyICA8ZGFyaW5AYXBwbGUuY29t
PgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIC0gZml4
IGh0dHA6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE3NTA2CisgICAgICAgICAg
UkVHUkVTU0lPTiAocjMwNTM4KTogQVNTRVJUSU9OIEZBSUxFRDogaSA8IHNpemUoKQorCisgICAg
ICAgICogbG9hZGVyL1RleHRSZXNvdXJjZURlY29kZXIuY3BwOgorICAgICAgICAoV2ViQ29yZTo6
ZmluZFRleHRFbmNvZGluZyk6IEZpeCBvZmYtYnktb25lIGluIGNvZGUgdGhhdCBudWxsLXRlcm1p
bmF0ZXMKKyAgICAgICAgdGhlIEMgc3RyaW5nIGhlcmUuCisKIDIwMDgtMDItMjMgIE1hdHQgTGls
ZWsgIDx3ZWJraXRAbWF0dGxpbGVrLmNvbT4KIAogICAgICAgICBOb3QgcmV2aWV3ZWQsIGJ1aWxk
IGZpeC4KSW5kZXg6IFdlYkNvcmUvbG9hZGVyL1RleHRSZXNvdXJjZURlY29kZXIuY3BwCj09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT0KLS0tIFdlYkNvcmUvbG9hZGVyL1RleHRSZXNvdXJjZURlY29kZXIuY3BwCShyZXZpc2lv
biAzMDU0NCkKKysrIFdlYkNvcmUvbG9hZGVyL1RleHRSZXNvdXJjZURlY29kZXIuY3BwCSh3b3Jr
aW5nIGNvcHkpCkBAIC04NCw3ICs4NCw3IEBAIHN0YXRpYyBUZXh0RW5jb2RpbmcgZmluZFRleHRF
bmNvZGluZyhjb24KIHsKICAgICBWZWN0b3I8Y2hhciwgNjQ+IGJ1ZmZlcihsZW5ndGggKyAxKTsK
ICAgICBtZW1jcHkoYnVmZmVyLmRhdGEoKSwgZW5jb2RpbmdOYW1lLCBsZW5ndGgpOwotICAgIGJ1
ZmZlcltsZW5ndGggKyAxXSA9ICdcMCc7CisgICAgYnVmZmVyW2xlbmd0aF0gPSAnXDAnOwogICAg
IHJldHVybiBidWZmZXIuZGF0YSgpOwogfQogCg==
</data>
<flag name="review"
          id="8440"
          type_id="1"
          status="+"
          setter="andersca"
    />
          </attachment>
      

    </bug>

</bugzilla>