<?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>145226</bug_id>
          
          <creation_ts>2015-05-20 15:56:50 -0700</creation_ts>
          <short_desc>Use correct String in WTF API tests</short_desc>
          <delta_ts>2015-05-21 09:33:06 -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>Tools / Tests</component>
          <version>528+ (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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Christensen">achristensen</reporter>
          <assigned_to name="Alex Christensen">achristensen</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1096366</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-05-20 15:56:50 -0700</bug_when>
    <thetext>After much more investigation time than I would like to admit, I found a small and obvious error resulting in us reading from memory we&apos;re not supposed to in the API tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1096367</commentid>
    <comment_count>1</comment_count>
      <attachid>253468</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-05-20 15:58:34 -0700</bug_when>
    <thetext>Created attachment 253468
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1096370</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-05-20 16:01:59 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/184668</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1096452</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-05-20 19:14:11 -0700</bug_when>
    <thetext>This patch doesn&apos;t seem to change any results, how is that possible?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1096587</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-05-21 09:33:06 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; This patch doesn&apos;t seem to change any results, how is that possible?
Before this patch, we had a StringView pointing to deallocated data that was almost certainly still there because we had just deallocated it and reallocated a new string with a different length.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>253468</attachid>
            <date>2015-05-20 15:58:34 -0700</date>
            <delta_ts>2015-05-20 16:00:15 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-145226-20150520155830.patch</filename>
            <type>text/plain</type>
            <size>1471</size>
            <attacher name="Alex Christensen">achristensen</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDE4NDY2NykKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE1IEBACisyMDE1LTA1LTIwICBBbGV4IENocmlzdGVuc2VuICA8YWNocmlzdGVuc2VuQHdl
YmtpdC5vcmc+CisKKyAgICAgICAgVXNlIGNvcnJlY3QgU3RyaW5nIGZvciBTdHJpbmdWaWV3IGlu
IFdURiBBUEkgdGVzdHMKKyAgICAgICAgaHR0cHM6Ly9id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ybkhvbGRl
cjsKLSAgICBTdHJpbmdWaWV3IHBhdHRlcm4gPSBzdHJpbmdWaWV3RnJvbVVURjgocmVmZXJlbmNl
SG9sZGVyLCAiQUJDw4lFRkdBIik7CisgICAgU3RyaW5nVmlldyBwYXR0ZXJuID0gc3RyaW5nVmll
d0Zyb21VVEY4KHBhdHRlcm5Ib2xkZXIsICJBQkPDiUVGR0EiKTsKIAogICAgIEVYUEVDVF9FUShz
dGF0aWNfY2FzdDxzaXplX3Q+KFdURjo6bm90Rm91bmQpLCByZWZlcmVuY2UuZmluZElnbm9yaW5n
QVNDSUlDYXNlKHBhdHRlcm4pKTsKICAgICBFWFBFQ1RfRVEoc3RhdGljX2Nhc3Q8c2l6ZV90Pigw
KSwgcGF0dGVybi5maW5kSWdub3JpbmdBU0NJSUNhc2UocmVmZXJlbmNlKSk7Cg==
</data>
<flag name="review"
          id="278387"
          type_id="1"
          status="+"
          setter="benjamin"
    />
          </attachment>
      

    </bug>

</bugzilla>