<?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>131615</bug_id>
          
          <creation_ts>2014-04-14 07:16:36 -0700</creation_ts>
          <short_desc>fix potential truncation in x86assembler</short_desc>
          <delta_ts>2014-04-14 09:32:13 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 8</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>Trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Christensen">alex.christensen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>ggaren</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1000476</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Christensen">alex.christensen</who>
    <bug_when>2014-04-14 07:16:36 -0700</bug_when>
    <thetext>My solution to https://bugs.webkit.org/show_bug.cgi?id=131508 truncates the size_t (which is a 64-bit integer) to an unsigned (which is a 32-bit integer in Windows) before taking the minimum of it an 15, which could lead to truncation problems.  Truncating after the call to std::min should fix it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1000477</commentid>
    <comment_count>1</comment_count>
      <attachid>229281</attachid>
    <who name="Alex Christensen">alex.christensen</who>
    <bug_when>2014-04-14 07:17:35 -0700</bug_when>
    <thetext>Created attachment 229281
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1000488</commentid>
    <comment_count>2</comment_count>
      <attachid>229281</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2014-04-14 08:30:12 -0700</bug_when>
    <thetext>Comment on attachment 229281
Patch

Yes, this looks better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1000503</commentid>
    <comment_count>3</comment_count>
      <attachid>229281</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-04-14 09:32:10 -0700</bug_when>
    <thetext>Comment on attachment 229281
Patch

Clearing flags on attachment: 229281

Committed r167250: &lt;http://trac.webkit.org/changeset/167250&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1000504</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-04-14 09:32:13 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>229281</attachid>
            <date>2014-04-14 07:17:35 -0700</date>
            <delta_ts>2014-04-14 09:32:10 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-131615-20140414081713.patch</filename>
            <type>text/plain</type>
            <size>1409</size>
            <attacher name="Alex Christensen">alex.christensen</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTY3MjQ0KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE0IEBA
CisyMDE0LTA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bnQ4X3QqPihiYXNlKTsKICAgICAg
ICAgd2hpbGUgKHNpemUpIHsKLSAgICAgICAgICAgIHVuc2lnbmVkIG5vcFNpemUgPSBzdGQ6Om1p
bjx1bnNpZ25lZD4oc2l6ZSwgMTVVTCk7CisgICAgICAgICAgICB1bnNpZ25lZCBub3BTaXplID0g
c3RhdGljX2Nhc3Q8dW5zaWduZWQ+KHN0ZDo6bWluPHNpemVfdD4oc2l6ZSwgMTUpKTsKICAgICAg
ICAgICAgIHVuc2lnbmVkIG51bVByZWZpeGVzID0gbm9wU2l6ZSA8PSAxMCA/IDAgOiBub3BTaXpl
IC0gMTA7CiAgICAgICAgICAgICBmb3IgKHVuc2lnbmVkIGkgPSAwOyBpICE9IG51bVByZWZpeGVz
OyArK2kpCiAgICAgICAgICAgICAgICAgKndoZXJlKysgPSAweDY2Owo=
</data>

          </attachment>
      

    </bug>

</bugzilla>