<?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>27477</bug_id>
          
          <creation_ts>2009-07-20 18:52:46 -0700</creation_ts>
          <short_desc>Incorrect assertion in Vector::remove</short_desc>
          <delta_ts>2009-07-20 20:10:03 -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>Web Template Framework</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jessie Berlin">jberlin</reporter>
          <assigned_to name="Jessie Berlin">jberlin</assigned_to>
          <cc>jberlin</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>133326</commentid>
    <comment_count>0</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2009-07-20 18:52:46 -0700</bug_when>
    <thetext>inline void Vector&lt;T, inlineCapacity&gt;::remove(size_t position, size_t length)
    {
        ASSERT(position &lt; size());
        ASSERT(position + length &lt; size());
        T* beginSpot = begin() + position;
        ....

Should be:

   inline void Vector&lt;T, inlineCapacity&gt;::remove(size_t position, size_t length)
    {
        ASSERT(position &lt; size());
        ASSERT(position + length &lt;= size());
        T* beginSpot = begin() + position;
        ....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>133339</commentid>
    <comment_count>1</comment_count>
      <attachid>33137</attachid>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2009-07-20 19:36:52 -0700</bug_when>
    <thetext>Created attachment 33137
Patch that makes the assertion check for &lt;= instead of just &lt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>133352</commentid>
    <comment_count>2</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2009-07-20 20:10:03 -0700</bug_when>
    <thetext>commited with revision 46147</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>33137</attachid>
            <date>2009-07-20 19:36:52 -0700</date>
            <delta_ts>2009-07-20 19:44:49 -0700</delta_ts>
            <desc>Patch that makes the assertion check for &lt;= instead of just &lt;.</desc>
            <filename>fixIncorrectVectorAssertion.txt</filename>
            <type>text/plain</type>
            <size>1341</size>
            <attacher name="Jessie Berlin">jberlin</attacher>
            
              <data encoding="base64">SW5kZXg6IEphdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBKYXZhU2NyaXB0
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDQ2MTQzKQorKysgSmF2YVNjcmlwdENvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTcgQEAKKzIwMDktMDctMjAgIEplc3NpZSBC
ZXJsaW4gIDxqYmVybGluQGFwcGxlLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkg
KE9PUFMhKS4KKworICAgICAgICBGaXggYW4gaW5jb3JyZWN0IGFzc2VydGlvbiBpbiBWZWN0b3I6
OnJlbW92ZS4KKyAgICAgICAgCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3df
YnVnLmNnaT9pZD0yNzQ3NworCisgICAgICAgICogd3RmL1ZlY3R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gPSBiZWdpblNwb3QgKyBsZW5ndGg7CiAgICAgICAgIFR5cGVPcGVyYXRpb25zOjpk
ZXN0cnVjdChiZWdpblNwb3QsIGVuZFNwb3QpOyAK
</data>
<flag name="review"
          id="17461"
          type_id="1"
          status="+"
          setter="levin"
    />
          </attachment>
      

    </bug>

</bugzilla>