<?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>12510</bug_id>
          
          <creation_ts>2007-01-31 11:37:45 -0800</creation_ts>
          <short_desc>Uninitialized member being used before set</short_desc>
          <delta_ts>2007-01-31 20:35:35 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</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="David Carson">dacarson</reporter>
          <assigned_to name="David Carson">dacarson</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>29705</commentid>
    <comment_count>0</comment_count>
    <who name="David Carson">dacarson</who>
    <bug_when>2007-01-31 11:37:45 -0800</bug_when>
    <thetext>In the function:
void Marquee::updateMarqueeStyle()
the value m_totalLoops is being tested before it has been set for the first time.

The test case that can be used to see this is:
LayoutTests/fast/css/MarqueeLayoutTest.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29707</commentid>
    <comment_count>1</comment_count>
    <who name="David Carson">dacarson</who>
    <bug_when>2007-01-31 11:44:31 -0800</bug_when>
    <thetext>Call stack:
==14403== Conditional jump or move depends on uninitialised value(s)
==14403==    at 0x7ADCDD4: WebCore::Marquee::updateMarqueeStyle() (RenderLayer.cpp:2115)
==14403==    by 0x7AE0071: WebCore::RenderLayer::styleChanged() (RenderLayer.cpp:1928)
==14403==    by 0x7AB8804: WebCore::RenderBox::setStyle(WebCore::RenderStyle*) (RenderBox.cpp:148)
==14403==    by 0x7AA8A5E: WebCore::RenderBlock::setStyle(WebCore::RenderStyle*) (RenderBlock.cpp:111)
==14403==    by 0x7953F12: WebCore::Node::createRendererIfNeeded() (Node.cpp:912)
==14403==    by 0x7945644: WebCore::Element::attach() (Element.cpp:558)
==14403==    by 0x79F8827: WebCore::HTMLParser::insertNode(WebCore::Node*, bool) (HTMLParser.cpp:288)
==14403==    by 0x79FA3BC: WebCore::HTMLParser::parseToken(WebCore::Token*) (HTMLParser.cpp:220)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29702</commentid>
    <comment_count>2</comment_count>
    <who name="David Carson">dacarson</who>
    <bug_when>2007-01-31 11:45:41 -0800</bug_when>
    <thetext>Line numbers in call stack out of sync with ToT, but error still exists.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29696</commentid>
    <comment_count>3</comment_count>
      <attachid>12831</attachid>
    <who name="David Carson">dacarson</who>
    <bug_when>2007-01-31 12:24:06 -0800</bug_when>
    <thetext>Created attachment 12831
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29689</commentid>
    <comment_count>4</comment_count>
      <attachid>12831</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-01-31 13:09:57 -0800</bug_when>
    <thetext>Comment on attachment 12831
patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29529</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2007-01-31 20:35:35 -0800</bug_when>
    <thetext>Landed in r19323.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>12831</attachid>
            <date>2007-01-31 12:24:06 -0800</date>
            <delta_ts>2007-01-31 13:09:57 -0800</delta_ts>
            <desc>patch</desc>
            <filename>marquee.txt</filename>
            <type>text/plain</type>
            <size>1122</size>
            <attacher name="David Carson">dacarson</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAxOTMwNikKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTQgQEAKKzIwMDctMDEtMzEgIGRhY2Fyc29uICA8ZGFjYXJzb25AZ21haWwuY29t
PgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIC1maXgg
aHR0cDovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTI1MTAKKyAgICAgICAgSW5p
dGlhbGl6ZSB0aGUgdmFyaWFibGUgbV90b3RhbExvb3BzCisgICAgICAgIElzIHRlc3RlZCBieSBM
YXlvdXRUZXN0cy9mYXN0L2Nzcy9NYXJxdWVlTGF5b3V0VGVzdC5odG1sCisKKyAgICAgICAgKiBy
ZW5kZXJpbmcvUmVuZGVyTGF5ZXIuY3BwOgorICAgICAgICAoV2ViQ29yZTo6TWFycXVlZTo6TWFy
cXVlZSk6CisKIDIwMDctMDEtMzEgIERhcmluIEFkbGVyICA8ZGFyaW5AYXBwbGUuY29tPgogCiAg
ICAgICAgIC0gZml4IGJ1aWxkCkluZGV4OiBXZWJDb3JlL3JlbmRlcmluZy9SZW5kZXJMYXllci5j
cHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PQotLS0gV2ViQ29yZS9yZW5kZXJpbmcvUmVuZGVyTGF5ZXIuY3BwCShyZXZp
c2lvbiAxOTMwNikKKysrIFdlYkNvcmUvcmVuZGVyaW5nL1JlbmRlckxheWVyLmNwcAkod29ya2lu
ZyBjb3B5KQpAQCAtMjA1Miw2ICsyMDUyLDcgQEAgdm9pZCBSZW5kZXJMYXllcjo6c3VzcGVuZE1h
cnF1ZWVzKCkKIAogTWFycXVlZTo6TWFycXVlZShSZW5kZXJMYXllciogbCkKICAgICA6IG1fbGF5
ZXIobCksIG1fY3VycmVudExvb3AoMCkKKyAgICAsIG1fdG90YWxMb29wcygwKQogICAgICwgbV90
aW1lcih0aGlzLCAmTWFycXVlZTo6dGltZXJGaXJlZCkKICAgICAsIG1fc3RhcnQoMCksIG1fZW5k
KDApLCBtX3NwZWVkKDApLCBtX3Jlc2V0KGZhbHNlKQogICAgICwgbV9zdXNwZW5kZWQoZmFsc2Up
LCBtX3N0b3BwZWQoZmFsc2UpLCBtX2RpcmVjdGlvbihNQVVUTykK
</data>
<flag name="review"
          id="4914"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>