<?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>115188</bug_id>
          
          <creation_ts>2013-04-25 10:53:42 -0700</creation_ts>
          <short_desc>32 Bit: Crash due to RegExpTest nodes not setting result type to Boolean</short_desc>
          <delta_ts>2013-04-25 15:09:20 -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>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>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>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>881354</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2013-04-25 10:53:42 -0700</bug_when>
    <thetext>When a RegExp.test() call is made and the result is spilled prior to a consuming Branch, the Branch will fill the the tag and payload, but the spill only stored the payload.  Therefore we end up with garbage in the tag register.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>881368</commentid>
    <comment_count>1</comment_count>
      <attachid>199690</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2013-04-25 11:08:17 -0700</bug_when>
    <thetext>Created attachment 199690
Patch

Working on test, but can&apos;t seem to reduce down to a test that crashes without the fix.  Test will be in subsequent patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>881377</commentid>
    <comment_count>2</comment_count>
      <attachid>199690</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2013-04-25 11:15:31 -0700</bug_when>
    <thetext>Comment on attachment 199690
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>881383</commentid>
    <comment_count>3</comment_count>
      <attachid>199690</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2013-04-25 11:22:25 -0700</bug_when>
    <thetext>Comment on attachment 199690
Patch

I think we could test this just by assigning the result of regexp.test() to a local variable, and then asking if the variable is === true, or === false, depending on the regexp. In theory, the CFA will cause garbage to be stored into the tag of the local variable, causing non-boolean-ness with very high probability.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>881398</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2013-04-25 11:34:04 -0700</bug_when>
    <thetext>Committed r149128: &lt;http://trac.webkit.org/changeset/149128&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>881572</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2013-04-25 15:09:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/13716112&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>199690</attachid>
            <date>2013-04-25 11:08:17 -0700</date>
            <delta_ts>2013-04-25 11:22:25 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>115188.patch</filename>
            <type>text/plain</type>
            <size>1347</size>
            <attacher name="Michael Saboff">msaboff</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3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kdBYnN0cmFjdFN0YXRlLmNwcAkocmV2aXNpb24gMTQ4ODk5KQor
KysgU291cmNlL0phdmFTY3JpcHRDb3JlL2RmZy9ERkdBYnN0cmFjdFN0YXRlLmNwcAkod29ya2lu
ZyBjb3B5KQpAQCAtOTk3LDkgKzk5NywxMiBAQCBib29sIEFic3RyYWN0U3RhdGU6OmV4ZWN1dGVF
ZmZlY3RzKHVuc2lnCiAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgCiAgICAgY2FzZSBSZWdF
eHBFeGVjOgotICAgIGNhc2UgUmVnRXhwVGVzdDoKICAgICAgICAgZm9yTm9kZShub2RlKS5tYWtl
VG9wKCk7CiAgICAgICAgIGJyZWFrOworCisgICAgY2FzZSBSZWdFeHBUZXN0OgorICAgICAgICBm
b3JOb2RlKG5vZGUpLnNldChTcGVjQm9vbGVhbik7CisgICAgICAgIGJyZWFrOwogICAgICAgICAg
ICAgCiAgICAgY2FzZSBKdW1wOgogICAgICAgICBicmVhazsK
</data>
<flag name="review"
          id="221176"
          type_id="1"
          status="+"
          setter="ggaren"
    />
          </attachment>
      

    </bug>

</bugzilla>