<?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>26197</bug_id>
          
          <creation_ts>2009-06-04 15:30:30 -0700</creation_ts>
          <short_desc>Incorrect variable initialization in PlatformContextSkia.cpp</short_desc>
          <delta_ts>2009-06-10 11:16:49 -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>WebKit Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Roland Steiner">rolandsteiner</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric</cc>
    
    <cc>rolandsteiner</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>124388</commentid>
    <comment_count>0</comment_count>
    <who name="Roland Steiner">rolandsteiner</who>
    <bug_when>2009-06-04 15:30:30 -0700</bug_when>
    <thetext>The PlatformContextSkia constructor does a (very likely) wrong size initialization for its m_stateStack member:

m_stateStack(sizeof(State))

The intended initialization is probably rather

m_stateStack(1)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124389</commentid>
    <comment_count>1</comment_count>
      <attachid>30962</attachid>
    <who name="Roland Steiner">rolandsteiner</who>
    <bug_when>2009-06-04 15:31:28 -0700</bug_when>
    <thetext>Created attachment 30962
patch correcting the member variable initialization</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124405</commentid>
    <comment_count>2</comment_count>
      <attachid>30969</attachid>
    <who name="Roland Steiner">rolandsteiner</who>
    <bug_when>2009-06-04 16:32:07 -0700</bug_when>
    <thetext>Created attachment 30969
PlatformContextSkia : fix member initialization (fixed .patch)

(fixed .patch format, otherwise same as above)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124408</commentid>
    <comment_count>3</comment_count>
      <attachid>30971</attachid>
    <who name="Roland Steiner">rolandsteiner</who>
    <bug_when>2009-06-04 16:38:23 -0700</bug_when>
    <thetext>Created attachment 30971
ChangeLog entry</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124463</commentid>
    <comment_count>4</comment_count>
      <attachid>30969</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-06-04 20:52:29 -0700</bug_when>
    <thetext>Comment on attachment 30969
PlatformContextSkia : fix member initialization (fixed .patch)

I suggest we remove the initialization all together.  Vector will do the right thing by itself, we don&apos;t need to tell it to only allocate 1 slot by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124464</commentid>
    <comment_count>5</comment_count>
    <who name="Roland Steiner">rolandsteiner</who>
    <bug_when>2009-06-04 20:58:58 -0700</bug_when>
    <thetext>(In reply to comment #4)
I&apos;m ok with that. It only occurred to me while browsing the code - I didn&apos;t question (or even research) the motivation behind it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124465</commentid>
    <comment_count>6</comment_count>
      <attachid>30971</attachid>
    <who name="David Levin">levin</who>
    <bug_when>2009-06-04 21:03:13 -0700</bug_when>
    <thetext>Comment on attachment 30971
ChangeLog entry

removed the r? from the changelog entry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124466</commentid>
    <comment_count>7</comment_count>
      <attachid>30988</attachid>
    <who name="Roland Steiner">rolandsteiner</who>
    <bug_when>2009-06-04 21:21:11 -0700</bug_when>
    <thetext>Created attachment 30988
patch - remove variable initialization

cf. comment #4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124467</commentid>
    <comment_count>8</comment_count>
      <attachid>30988</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-06-04 21:25:32 -0700</bug_when>
    <thetext>Comment on attachment 30988
patch - remove variable initialization

I would have just copied my comment instead of citing it. :)  But looks great!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125147</commentid>
    <comment_count>9</comment_count>
    <who name="Roland Steiner">rolandsteiner</who>
    <bug_when>2009-06-10 10:01:51 -0700</bug_when>
    <thetext>(In reply to comment #8)

Thanks - as I&apos;m not a committer (yet!), could you please commit this for me as well?

Cheers,

Roland

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125172</commentid>
    <comment_count>10</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2009-06-10 11:16:49 -0700</bug_when>
    <thetext>Landed in @r44576.

Please don&apos;t remove the &quot;Review by NOBODY (OOPS!)&quot; from the ChangeLog.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>30962</attachid>
            <date>2009-06-04 15:31:28 -0700</date>
            <delta_ts>2009-06-04 16:32:07 -0700</delta_ts>
            <desc>patch correcting the member variable initialization</desc>
            <filename>platform-graphics-skia-PlatformContextSkia-cpp.patch</filename>
            <type>text/plain</type>
            <size>460</size>
            <attacher name="Roland Steiner">rolandsteiner</attacher>
            
              <data encoding="base64">SW5kZXg6IFBsYXRmb3JtQ29udGV4dFNraWEuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFBsYXRmb3JtQ29u
dGV4dFNraWEuY3BwCShyZXZpc2lvbiA0NDQxOSkKKysrIFBsYXRmb3JtQ29udGV4dFNraWEuY3Bw
CSh3b3JraW5nIGNvcHkpCkBAIC0xNzAsNyArMTcwLDcgQEAKIC8vIERhbmdlcjogY2FudmFzIGNh
biBiZSBOVUxMLgogUGxhdGZvcm1Db250ZXh0U2tpYTo6UGxhdGZvcm1Db250ZXh0U2tpYShza2lh
OjpQbGF0Zm9ybUNhbnZhcyogY2FudmFzKQogICAgIDogbV9jYW52YXMoY2FudmFzKQotICAgICwg
bV9zdGF0ZVN0YWNrKHNpemVvZihTdGF0ZSkpCisgICAgLCBtX3N0YXRlU3RhY2soMSkKICNpZiBQ
TEFURk9STShXSU5fT1MpCiAgICAgLCBtX2RyYXdpbmdUb0ltYWdlQnVmZmVyKGZhbHNlKQogI2Vu
ZGlmCg==
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>30969</attachid>
            <date>2009-06-04 16:32:07 -0700</date>
            <delta_ts>2009-06-04 21:21:11 -0700</delta_ts>
            <desc>PlatformContextSkia : fix member initialization (fixed .patch)</desc>
            <filename>platform-graphics-skia-PlatformContextSkia-cpp.patch</filename>
            <type>text/plain</type>
            <size>553</size>
            <attacher name="Roland Steiner">rolandsteiner</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvcGxhdGZvcm0vZ3JhcGhpY3Mvc2tpYS9QbGF0Zm9ybUNvbnRleHRTa2lh
LmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09Ci0tLSBXZWJDb3JlL3BsYXRmb3JtL2dyYXBoaWNzL3NraWEvUGxhdGZv
cm1Db250ZXh0U2tpYS5jcHAJKHJldmlzaW9uIDQ0NDE5KQorKysgV2ViQ29yZS9wbGF0Zm9ybS9n
cmFwaGljcy9za2lhL1BsYXRmb3JtQ29udGV4dFNraWEuY3BwCSh3b3JraW5nIGNvcHkpCkBAIC0x
NzAsNyArMTcwLDcgQEAKIC8vIERhbmdlcjogY2FudmFzIGNhbiBiZSBOVUxMLgogUGxhdGZvcm1D
b250ZXh0U2tpYTo6UGxhdGZvcm1Db250ZXh0U2tpYShza2lhOjpQbGF0Zm9ybUNhbnZhcyogY2Fu
dmFzKQogICAgIDogbV9jYW52YXMoY2FudmFzKQotICAgICwgbV9zdGF0ZVN0YWNrKHNpemVvZihT
dGF0ZSkpCisgICAgLCBtX3N0YXRlU3RhY2soMSkKICNpZiBQTEFURk9STShXSU5fT1MpCiAgICAg
LCBtX2RyYXdpbmdUb0ltYWdlQnVmZmVyKGZhbHNlKQogI2VuZGlmCg==
</data>
<flag name="review"
          id="15750"
          type_id="1"
          status="-"
          setter="eric"
    />
          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>30971</attachid>
            <date>2009-06-04 16:38:23 -0700</date>
            <delta_ts>2009-06-04 21:21:11 -0700</delta_ts>
            <desc>ChangeLog entry</desc>
            <filename>ChangeLog.patch</filename>
            <type>text/plain</type>
            <size>784</size>
            <attacher name="Roland Steiner">rolandsteiner</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA0NDQxOSkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTYgQEAKKzIwMDktMDYtMDQgIFJvbGFuZCBTdGVpbmVyIDxyb2xhbmRzdGVpbmVy
QGdvb2dsZS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkKKworICAg
ICAgICBCdWcgMjYxOTc6IFNraWE6IEluY29ycmVjdCB2YXJpYWJsZSBpbml0aWFsaXphdGlvbiBp
biBQbGF0Zm9ybUNvbnRleHRTa2lhIGNvbnN0cnVjdG9yCisgICAgICAgIGh0dHBzOi8vYnVncy53
ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yNjE5NworCisgICAgICAgIFRoZSBpbnRlbnQgb2Yg
dGhlIGluaXRpYWxpemF0aW9uIGlzIGxpa2VseSB0byByZXNlcnZlIHNwYWNlIGZvciAxIGVudHJ5
CisgICAgICAgIHJhdGhlciB0aGFuICdzaXplb2YoU3RhdGUpJyBudW1iZXIgb2YgZW50cmllcy4g
Rml4ZWQgaW5pdGlhbGl6ZXIuCisKKyAgICAgICAgKiBwbGF0Zm9ybS9ncmFwaGljcy9za2lhL1Bs
YXRmb3JtQ29udGV4dFNraWEuY3BwOgorICAgICAgICAoUGxhdGZvcm1Db250ZXh0U2tpYTo6UGxh
dGZvcm1Db250ZXh0U2tpYSk6CisKIDIwMDktMDYtMDMgIERhdmlkIEh5YXR0ICA8aHlhdHRAYXBw
bGUuY29tPgogCiAgICAgICAgIFJldmlld2VkIGJ5IFNhbSBXZWluaWcuCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>30988</attachid>
            <date>2009-06-04 21:21:11 -0700</date>
            <delta_ts>2009-06-04 21:25:32 -0700</delta_ts>
            <desc>patch - remove variable initialization</desc>
            <filename>platform-graphics-skia-PlatformContextSkia-cpp.patch</filename>
            <type>text/plain</type>
            <size>1575</size>
            <attacher name="Roland Steiner">rolandsteiner</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA0NDQ0MykKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMjUgQEAKKzIwMDktMDYtMDQgIFJvbGFuZCBTdGVpbmVyIDxyb2xhbmRzdGVpbmVy
QGdvb2dsZS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT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cm1Db250ZXh0U2tpYS5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViQ29yZS9wbGF0Zm9ybS9n
cmFwaGljcy9za2lhL1BsYXRmb3JtQ29udGV4dFNraWEuY3BwCShyZXZpc2lvbiA0NDQxOSkKKysr
IFdlYkNvcmUvcGxhdGZvcm0vZ3JhcGhpY3Mvc2tpYS9QbGF0Zm9ybUNvbnRleHRTa2lhLmNwcAko
d29ya2luZyBjb3B5KQpAQCAtMTcwLDcgKzE3MCw2IEBACiAvLyBEYW5nZXI6IGNhbnZhcyBjYW4g
YmUgTlVMTC4KIFBsYXRmb3JtQ29udGV4dFNraWE6OlBsYXRmb3JtQ29udGV4dFNraWEoc2tpYTo6
UGxhdGZvcm1DYW52YXMqIGNhbnZhcykKICAgICA6IG1fY2FudmFzKGNhbnZhcykKLSAgICAsIG1f
c3RhdGVTdGFjayhzaXplb2YoU3RhdGUpKQogI2lmIFBMQVRGT1JNKFdJTl9PUykKICAgICAsIG1f
ZHJhd2luZ1RvSW1hZ2VCdWZmZXIoZmFsc2UpCiAjZW5kaWYK
</data>
<flag name="review"
          id="15767"
          type_id="1"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>