<?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>205947</bug_id>
          
          <creation_ts>2020-01-08 11:52:39 -0800</creation_ts>
          <short_desc>TypeProfiler.h: Multiplication result converted to larger type</short_desc>
          <delta_ts>2020-01-08 14:04:17 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Michael Saboff">msaboff</reporter>
          <assigned_to name="Michael Saboff">msaboff</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>saam</cc>
    
    <cc>tzagallo</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1604198</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2020-01-08 11:52:39 -0800</bug_when>
    <thetext>Summary:
TypeProfiler.h: Multiplication result converted to larger type: Multiplication result may overflow &apos;unsigned int&apos; before it is converted to &apos;unsigned long&apos;.

    unsigned hash() const 
    { 
        unsigned hash = m_sourceID + m_divot * m_searchDescriptor;
Multiplication result may overflow &apos;unsigned int&apos; before it is converted to &apos;long&apos;.
        return hash;
    }

fix: fix cast m_sourceID to unsigned or cast the whole result to unsigned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1604199</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2020-01-08 11:52:47 -0800</bug_when>
    <thetext>&lt;rdar://problem/58383288&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1604251</commentid>
    <comment_count>2</comment_count>
      <attachid>387131</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2020-01-08 13:25:23 -0800</bug_when>
    <thetext>Created attachment 387131
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1604274</commentid>
    <comment_count>3</comment_count>
      <attachid>387131</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-01-08 14:04:16 -0800</bug_when>
    <thetext>Comment on attachment 387131
Patch

Clearing flags on attachment: 387131

Committed r254224: &lt;https://trac.webkit.org/changeset/254224&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1604275</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-01-08 14:04:17 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>387131</attachid>
            <date>2020-01-08 13:25:23 -0800</date>
            <delta_ts>2020-01-08 14:04:16 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>205947.patch</filename>
            <type>text/plain</type>
            <size>1230</size>
            <attacher name="Michael Saboff">msaboff</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFT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yLmgJKHdvcmtpbmcgY29weSkKQEAg
LTc4LDcgKzc4LDcgQEAgc3RydWN0IFF1ZXJ5S2V5IHsKIAogICAgIHVuc2lnbmVkIGhhc2goKSBj
b25zdCAKICAgICB7IAotICAgICAgICB1bnNpZ25lZCBoYXNoID0gbV9zb3VyY2VJRCArIG1fZGl2
b3QgKiBtX3NlYXJjaERlc2NyaXB0b3I7CisgICAgICAgIHVuc2lnbmVkIGhhc2ggPSBzdGF0aWNf
Y2FzdDx1bnNpZ25lZD4obV9zb3VyY2VJRCkgKyBtX2Rpdm90ICogbV9zZWFyY2hEZXNjcmlwdG9y
OwogICAgICAgICByZXR1cm4gaGFzaDsKICAgICB9CiAK
</data>

          </attachment>
      

    </bug>

</bugzilla>