<?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>76652</bug_id>
          
          <creation_ts>2012-01-19 11:46:15 -0800</creation_ts>
          <short_desc>CaseFoldingHash::hash() doesn&apos;t handle 8 bit strings directly</short_desc>
          <delta_ts>2012-01-30 11:09:39 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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="Michael Saboff">msaboff</reporter>
          <assigned_to name="Michael Saboff">msaboff</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>538870</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2012-01-19 11:46:15 -0800</bug_when>
    <thetext>CaseFoldingHash::hash(StringImpl* str) should have a path for 8 bit strings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>539066</commentid>
    <comment_count>1</comment_count>
      <attachid>123205</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2012-01-19 15:10:38 -0800</bug_when>
    <thetext>Created attachment 123205
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>539082</commentid>
    <comment_count>2</comment_count>
      <attachid>123205</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2012-01-19 15:29:48 -0800</bug_when>
    <thetext>Comment on attachment 123205
Patch

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

r=me, just one little thing:

&gt; Source/JavaScriptCore/wtf/text/StringHash.h:105
&gt;              return hash(str-&gt;characters(), str-&gt;length());

You should switch this to characters16() to avoid the extra is8Bit() check in StringImpl::characters().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>539084</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2012-01-19 15:31:13 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 123205 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=123205&amp;action=review
&gt; 
&gt; r=me, just one little thing:
&gt; 
&gt; &gt; Source/JavaScriptCore/wtf/text/StringHash.h:105
&gt; &gt;              return hash(str-&gt;characters(), str-&gt;length());
&gt; 
&gt; You should switch this to characters16() to avoid the extra is8Bit() check in StringImpl::characters().

Thanks for catching that.  I&apos;ll make the change before checking in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>545224</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2012-01-30 11:09:39 -0800</bug_when>
    <thetext>Committed r106260: &lt;http://trac.webkit.org/changeset/106260&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>123205</attachid>
            <date>2012-01-19 15:10:38 -0800</date>
            <delta_ts>2012-01-19 15:29:48 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>76652.patch</filename>
            <type>text/plain</type>
            <size>1206</size>
            <attacher name="Michael Saboff">msaboff</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT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C5oCSh3b3JraW5nIGNvcHkpCkBAIC0xMDAsNiArMTAwLDggQEAgbmFtZXNwYWNl
IFdURiB7CiAKICAgICAgICAgc3RhdGljIHVuc2lnbmVkIGhhc2goU3RyaW5nSW1wbCogc3RyKQog
ICAgICAgICB7CisgICAgICAgICAgICBpZiAoc3RyLT5pczhCaXQoKSkKKyAgICAgICAgICAgICAg
ICByZXR1cm4gaGFzaChzdHItPmNoYXJhY3RlcnM4KCksIHN0ci0+bGVuZ3RoKCkpOwogICAgICAg
ICAgICAgcmV0dXJuIGhhc2goc3RyLT5jaGFyYWN0ZXJzKCksIHN0ci0+bGVuZ3RoKCkpOwogICAg
ICAgICB9CiAK
</data>
<flag name="review"
          id="124213"
          type_id="1"
          status="+"
          setter="kling"
    />
          </attachment>
      

    </bug>

</bugzilla>