<?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>47313</bug_id>
          
          <creation_ts>2010-10-06 16:13:47 -0700</creation_ts>
          <short_desc>Handle massive input strings to normalizeLineEndingsToCRLF() more gracefully</short_desc>
          <delta_ts>2010-10-06 22:43:46 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</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="Chris Evans">cevans</reporter>
          <assigned_to name="Chris Evans">cevans</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>levin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>290645</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Evans">cevans</who>
    <bug_when>2010-10-06 16:13:47 -0700</bug_when>
    <thetext>Looks like there are integer wrap issues here. The upcoming patch detects pathological conditions and returns the empty string. This mirrors the behaviour of e.g. WebCore::base64Encode().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290648</commentid>
    <comment_count>1</comment_count>
      <attachid>70004</attachid>
    <who name="Chris Evans">cevans</who>
    <bug_when>2010-10-06 16:17:06 -0700</bug_when>
    <thetext>Created attachment 70004
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290660</commentid>
    <comment_count>2</comment_count>
      <attachid>70004</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-10-06 16:37:22 -0700</bug_when>
    <thetext>Comment on attachment 70004
Patch

No test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290669</commentid>
    <comment_count>3</comment_count>
      <attachid>70004</attachid>
    <who name="David Levin">levin</who>
    <bug_when>2010-10-06 16:40:59 -0700</bug_when>
    <thetext>Comment on attachment 70004
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=70004&amp;action=review

Mr. Barth makes a good observation. Test?

&gt; WebCore/ChangeLog:3
&gt; +        Reviewed by Reviewed by NOBODY (OOPS!).

&quot;Reviewed by Reviewed by&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290673</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Evans">cevans</who>
    <bug_when>2010-10-06 16:46:03 -0700</bug_when>
    <thetext>@abarth: I don&apos;t think this can be tested without crashing on 32-bit (virtual address space too small). Even on 64-bit, the test would be at best very slow and at worse prone to exhausting physical memory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290674</commentid>
    <comment_count>5</comment_count>
      <attachid>70012</attachid>
    <who name="Chris Evans">cevans</who>
    <bug_when>2010-10-06 16:46:49 -0700</bug_when>
    <thetext>Created attachment 70012
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290678</commentid>
    <comment_count>6</comment_count>
      <attachid>70012</attachid>
    <who name="David Levin">levin</who>
    <bug_when>2010-10-06 16:50:15 -0700</bug_when>
    <thetext>Comment on attachment 70012
Patch

Reasonable explanation about the test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290754</commentid>
    <comment_count>7</comment_count>
      <attachid>70012</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-10-06 18:46:57 -0700</bug_when>
    <thetext>Comment on attachment 70012
Patch

Rejecting patch 70012 from commit-queue.

Failed to run &quot;[&apos;./WebKitTools/Scripts/webkit-patch&apos;, &apos;--status-host=queues.webkit.org&apos;, &apos;build-and-test&apos;, &apos;--no-clean&apos;, &apos;--no-update&apos;, &apos;--test&apos;, &apos;--quiet&apos;, &apos;--non-interactive&apos;]&quot; exit_code: 2
Last 500 characters of output:
-dumprendertree
Compiling Java tests
make: Nothing to be done for `default&apos;.
Running tests from /Projects/CommitQueue/LayoutTests
Testing 21468 test cases.
http/tests/xmlhttprequest/cross-origin-no-credential-prompt.html -&gt; failed

Exiting early after 1 failures. 21325 tests run.
566.99s total testing time
WARNING:webkitpy.common.system:Called kill_process with a non-existant pid 90163

21324 test cases (99%) succeeded
1 test case (&lt;1%) had incorrect layout
34 test cases (&lt;1%) had stderr output

Full output: http://queues.webkit.org/results/4193122</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290781</commentid>
    <comment_count>8</comment_count>
    <who name="Chris Evans">cevans</who>
    <bug_when>2010-10-06 20:43:01 -0700</bug_when>
    <thetext>Seems unrelated; retrying.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290789</commentid>
    <comment_count>9</comment_count>
      <attachid>70012</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-10-06 21:15:51 -0700</bug_when>
    <thetext>Comment on attachment 70012
Patch

Rejecting patch 70012 from commit-queue.

Failed to run &quot;[&apos;./WebKitTools/Scripts/webkit-patch&apos;, &apos;--status-host=queues.webkit.org&apos;, &apos;build-and-test&apos;, &apos;--no-clean&apos;, &apos;--no-update&apos;, &apos;--test&apos;, &apos;--quiet&apos;, &apos;--non-interactive&apos;]&quot; exit_code: 2
Last 500 characters of output:
0.90 CPU)
Running build-dumprendertree
Compiling Java tests
make: Nothing to be done for `default&apos;.
Running tests from /Projects/CommitQueue/LayoutTests
Testing 21469 test cases.
http/tests/xmlhttprequest/failed-auth.html -&gt; failed

Exiting early after 1 failures. 21341 tests run.
565.75s total testing time
WARNING:webkitpy.common.system:Called kill_process with a non-existant pid 4291

21340 test cases (99%) succeeded
1 test case (&lt;1%) had incorrect layout
34 test cases (&lt;1%) had stderr output

Full output: http://queues.webkit.org/results/4237080</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290799</commentid>
    <comment_count>10</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2010-10-06 22:15:20 -0700</bug_when>
    <thetext>re cq+, cq-, cq+, cq-, cq+

See defn insanity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290802</commentid>
    <comment_count>11</comment_count>
    <who name="Chris Evans">cevans</who>
    <bug_when>2010-10-06 22:21:12 -0700</bug_when>
    <thetext>Not sure I follow? I can stop if that&apos;s what you saying.
We&apos;re getting good data as to the current flake rate :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290803</commentid>
    <comment_count>12</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2010-10-06 22:23:55 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; Not sure I follow? I can stop if that&apos;s what you saying.
&gt; We&apos;re getting good data as to the current flake rate :)

It was reference to http://www.quotationspage.com/quote/26032.html
Meant to be funny that&apos;s all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290812</commentid>
    <comment_count>13</comment_count>
      <attachid>70012</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-10-06 22:42:22 -0700</bug_when>
    <thetext>Comment on attachment 70012
Patch

Clearing flags on attachment: 70012

Committed r69275: &lt;http://trac.webkit.org/changeset/69275&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290813</commentid>
    <comment_count>14</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-10-06 22:42:28 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290815</commentid>
    <comment_count>15</comment_count>
    <who name="Chris Evans">cevans</who>
    <bug_when>2010-10-06 22:43:46 -0700</bug_when>
    <thetext>A victory for insanity! I never knew that was Einstein...</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>70004</attachid>
            <date>2010-10-06 16:17:06 -0700</date>
            <delta_ts>2010-10-06 16:46:49 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>47313_1.diff</filename>
            <type>text/plain</type>
            <size>1758</size>
            <attacher name="Chris Evans">cevans</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA2OTEyMikKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTUgQEAKKzIwMTAtMTAtMDYgIENocmlzIEV2YW5zICA8Y2V2YW5zQGdvb2dsZS5j
b20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisK
KyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTQ3MzEzCisK
KyAgICAgICAgRml4IGludGVnZXIgZXJyb3JzIHdpdGggZW5vcm1vdXMgaW5wdXQgc3RyaW5ncyB0
byBuZXdsaW5lIG5vcm1hbGl6YXRpb24gQVBJcy4KKworICAgICAgICAqIHBsYXRmb3JtL3RleHQv
TGluZUVuZGluZy5jcHA6CisgICAgICAgIChXZWJDb3JlOjpub3JtYWxpemVMaW5lRW5kaW5nc1Rv
Q1JMRik6IHJldHVybiB0aGUgZW1wdHkgc3RyaW5nIHVwb24gaHVnZSBpbnB1dCBzdHJpbmdzLiAo
QmVoYXZlcyBzaW1pbGFybHkgdG8gYmFzZTY0RW5jb2RlIG5vdykuCisgICAgICAgIChXZWJDb3Jl
Ojpub3JtYWxpemVUb0NST3JMRik6IHV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CAtODcsNyArODks
NyBAQAogLy8gTm9ybWFsaXplIGFsbCBsaW5lLWVuZGluZ3MgdG8gQ1Igb3IgTEYuCiBzdGF0aWMg
Q1N0cmluZyBub3JtYWxpemVUb0NST3JMRihjb25zdCBDU3RyaW5nJiBmcm9tLCBib29sIHRvQ1Ip
CiB7Ci0gICAgdW5zaWduZWQgbmV3TGVuID0gMDsKKyAgICBzaXplX3QgbmV3TGVuID0gMDsKICAg
ICBib29sIG5lZWRGaXggPSBmYWxzZTsKICAgICBjb25zdCBjaGFyKiBwID0gZnJvbS5kYXRhKCk7
CiAgICAgY2hhciBmcm9tRW5kaW5nQ2hhciA9IHRvQ1IgPyAnXG4nIDogJ1xyJzsK
</data>
<flag name="review"
          id="59781"
          type_id="1"
          status="-"
          setter="levin"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>70012</attachid>
            <date>2010-10-06 16:46:49 -0700</date>
            <delta_ts>2010-10-06 22:42:22 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>47313_2.diff</filename>
            <type>text/plain</type>
            <size>1746</size>
            <attacher name="Chris Evans">cevans</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA2OTEyMikKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTUgQEAKKzIwMTAtMTAtMDYgIENocmlzIEV2YW5zICA8Y2V2YW5zQGdvb2dsZS5j
b20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgaHR0
cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTQ3MzEzCisKKyAgIC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ld0xlbiA9IDA7CiAgICAgY29uc3QgY2hhciogcCA9IGZyb20uZGF0
YSgpOwogICAgIHdoaWxlIChjaGFyIGMgPSAqcCsrKSB7CiAgICAgICAgIGlmIChjID09ICdccicp
IHsKQEAgLTU5LDYgKzU5LDggQEAKICAgICB9CiAgICAgaWYgKG5ld0xlbiA9PSBmcm9tLmxlbmd0
aCgpKQogICAgICAgICByZXR1cm4gZnJvbTsKKyAgICBpZiAobmV3TGVuIDwgZnJvbS5sZW5ndGgo
KSkKKyAgICAgICAgcmV0dXJuIENTdHJpbmcoKTsKIAogICAgIC8vIE1ha2UgYSBjb3B5IG9mIHRo
ZSBzdHJpbmcuCiAgICAgcCA9IGZyb20uZGF0YSgpOwpAQCAtODcsNyArODksNyBAQAogLy8gTm9y
bWFsaXplIGFsbCBsaW5lLWVuZGluZ3MgdG8gQ1Igb3IgTEYuCiBzdGF0aWMgQ1N0cmluZyBub3Jt
YWxpemVUb0NST3JMRihjb25zdCBDU3RyaW5nJiBmcm9tLCBib29sIHRvQ1IpCiB7Ci0gICAgdW5z
aWduZWQgbmV3TGVuID0gMDsKKyAgICBzaXplX3QgbmV3TGVuID0gMDsKICAgICBib29sIG5lZWRG
aXggPSBmYWxzZTsKICAgICBjb25zdCBjaGFyKiBwID0gZnJvbS5kYXRhKCk7CiAgICAgY2hhciBm
cm9tRW5kaW5nQ2hhciA9IHRvQ1IgPyAnXG4nIDogJ1xyJzsK
</data>

          </attachment>
      

    </bug>

</bugzilla>