<?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>19310</bug_id>
          
          <creation_ts>2008-05-29 10:08:17 -0700</creation_ts>
          <short_desc>[wx] Stop crash/asserts due to incorrect hash algorithm</short_desc>
          <delta_ts>2008-06-09 08:40:27 -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>WebKit wx</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>Gtk, Wx</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin Ollivier">kevino</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alp</cc>
    
    <cc>mmacleod</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81857</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Ollivier">kevino</who>
    <bug_when>2008-05-29 10:08:17 -0700</bug_when>
    <thetext>Our computeHash function would generate different hashes for fonts which are equal, which is unexpected behavior for the hash() function.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81858</commentid>
    <comment_count>1</comment_count>
      <attachid>21413</attachid>
    <who name="Kevin Ollivier">kevino</who>
    <bug_when>2008-05-29 10:09:19 -0700</bug_when>
    <thetext>Created attachment 21413
Fix to stop asserts caused by incorrect hash algorithm

In this patch, we now calculate the hash by creating a hash value from all the font&apos;s properties, which resolves the asserts and brings us in line with the other ports&apos; behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82063</commentid>
    <comment_count>2</comment_count>
    <who name="Alp Toker">alp</who>
    <bug_when>2008-06-01 08:53:00 -0700</bug_when>
    <thetext>This issue may exist in the GTK+ or other Cairo-based ports. Haven&apos;t checked yet though. Adding GTK keyword so it shows up on our radar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82697</commentid>
    <comment_count>3</comment_count>
      <attachid>21413</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-06-08 18:13:50 -0700</bug_when>
    <thetext>Comment on attachment 21413
Fix to stop asserts caused by incorrect hash algorithm

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82747</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-06-09 07:52:09 -0700</bug_when>
    <thetext>*** Bug 19274 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82757</commentid>
    <comment_count>5</comment_count>
    <who name="Kevin Ollivier">kevino</who>
    <bug_when>2008-06-09 08:40:27 -0700</bug_when>
    <thetext>Landed in r34459, thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>21413</attachid>
            <date>2008-05-29 10:09:19 -0700</date>
            <delta_ts>2008-06-08 18:13:50 -0700</delta_ts>
            <desc>Fix to stop asserts caused by incorrect hash algorithm</desc>
            <filename>fontplatformdata.patch</filename>
            <type>text/plain</type>
            <size>1665</size>
            <attacher name="Kevin Ollivier">kevino</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAzNDIwMykKK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iAgICAgdW5zaWduZWQgY29tcHV0ZUhhc2go
KSBjb25zdCB7CiAgICAgICAgIEFTU0VSVChtX2ZvbnQuT2soKSk7Ci0gICAgICAgIHJldHVybiBy
ZWludGVycHJldF9jYXN0PHVuc2lnbmVkPigmbV9mb250KTsKKyAgICAgICAgCisgICAgICAgIC8v
IG1ha2UgYSBoYXNoIHRoYXQgaXMgdW5pcXVlIGZvciB0aGlzIGZvbnQsIGJ1dCBub3QgZ2xvYmFs
bHkgdW5pcXVlIC0gdGhhdCBpcywKKyAgICAgICAgLy8gYSBmb250IHdob3NlIHByb3BlcnRpZXMg
YXJlIGVxdWFsIHNob3VsZCBnZW5lcmF0ZSB0aGUgc2FtZSBoYXNoCisgICAgICAgIHVpbnRwdHJf
dCBoYXNoQ29kZXNbNl0gPSB7IG1fZm9udC5HZXRQb2ludFNpemUoKSwgbV9mb250LkdldEZhbWls
eSgpLCBtX2ZvbnQuR2V0U3R5bGUoKSwgCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICBtX2ZvbnQuR2V0V2VpZ2h0KCksIG1fZm9udC5HZXRVbmRlcmxpbmVkKCksIAorICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU3RyaW5nSW1wbDo6Y29tcHV0ZUhhc2gobV9m
b250LkdldEZhY2VOYW1lKCkubWJfc3RyKHd4Q29udlVURjgpKSB9OworICAgICAgICAKKyAgICAg
ICAgcmV0dXJuIFN0cmluZ0ltcGw6OmNvbXB1dGVIYXNoKHJlaW50ZXJwcmV0X2Nhc3Q8VUNoYXIq
PihoYXNoQ29kZXMpLCBzaXplb2YoaGFzaENvZGVzKSAvIHNpemVvZihVQ2hhcikpOwogICAgIH0K
IAogcHJpdmF0ZToK
</data>
<flag name="review"
          id="9367"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>