<?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>31063</bug_id>
          
          <creation_ts>2009-11-03 08:59:04 -0800</creation_ts>
          <short_desc>UMR in WebCore::AccessibilityRenderObject::children(); m_childrenDirty uninitialized in constructor</short_desc>
          <delta_ts>2009-11-03 09:27:24 -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>Accessibility</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="Darin Fisher (:fishd, Google)">fishd</reporter>
          <assigned_to name="Darin Fisher (:fishd, Google)">fishd</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>160076</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2009-11-03 08:59:04 -0800</bug_when>
    <thetext>From http://crbug.com/26547, Dan Kegel (dank@chromium.org) wrote:

&gt; LayoutTests/accessibility/aria-hidden.html
&gt; (and lots of other tests in that directory)
&gt; show the following valgrind warning:
&gt; 
&gt; Conditional jump or move depends on uninitialised value(s)
&gt;    at WebCore::AccessibilityRenderObject::children()
&gt; (AccessibilityRenderObject.cpp:2549)
&gt;    by AccessibilityUIElement::GetChildAtIndex(unsigned int)
&gt; (accessibility_ui_element.cc:285)
&gt;    ...
&gt;  Uninitialised value was created by a heap allocation
&gt;    at malloc (vg_replace_malloc.c:195)
&gt;    by WTF::fastMalloc(unsigned long) (FastMalloc.cpp:233)
&gt;    by WTF::FastAllocBase::operator new(unsigned long) (FastAllocBase.h:96)
&gt;    by WebCore::AccessibilityRenderObject::create(WebCore::RenderObject*)
&gt; (AccessibilityRenderObject.cpp:101)
&gt;    ...
&gt; 
&gt; Looks like somebody forgot to initialize m_childrenDirty to false
&gt; in the constructor.  The following patch seems to make the
&gt; problem go away:
&gt; 
&gt; --- accessibility/AccessibilityRenderObject.cpp (revision 50258)
&gt; +++ accessibility/AccessibilityRenderObject.cpp (working copy)
&gt; @@ -84,6 +84,7 @@
&gt;      : AccessibilityObject()
&gt;      , m_renderer(renderer)
&gt;      , m_ariaRole(UnknownRole)
&gt; +    , m_childrenDirty(false)
&gt;  {
&gt;      updateAccessibilityRole();
&gt;  #ifndef NDEBUG</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160082</commentid>
    <comment_count>1</comment_count>
      <attachid>42388</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2009-11-03 09:16:13 -0800</bug_when>
    <thetext>Created attachment 42388
v1 patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160086</commentid>
    <comment_count>2</comment_count>
      <attachid>42388</attachid>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2009-11-03 09:25:21 -0800</bug_when>
    <thetext>Comment on attachment 42388
v1 patch

r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160087</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2009-11-03 09:27:24 -0800</bug_when>
    <thetext>Landed as: http://trac.webkit.org/changeset/50173</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>42388</attachid>
            <date>2009-11-03 09:16:13 -0800</date>
            <delta_ts>2009-11-03 09:25:20 -0800</delta_ts>
            <desc>v1 patch</desc>
            <filename>dk_1.txt</filename>
            <type>text/plain</type>
            <size>1164</size>
            <attacher name="Darin Fisher (:fishd, Google)">fishd</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQotLS0gV2ViQ29yZS9DaGFuZ2VM
b2cJKHJldmlzaW9uIDUwNDU3KQorKysgV2ViQ29yZS9DaGFuZ2VMb2cJKHdvcmtpbmcgY29weSkK
QEAgLTEsMyArMSwxMyBAQAorMjAwOS0xMS0wMyAgRGFuIEtlZ2VsICA8ZGFua0BjaHJvbWl1bS5v
cmc+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgVU1S
IGluIFdlYkNvcmU6OkFjY2Vzc2liaWxpdHlSZW5kZXJPYmplY3Q6OmNoaWxkcmVuKCk7IG1fY2hp
bGRyZW5EaXJ0eSB1bmluaXRpYWxpemVkIGluIGNvbnN0cnVjdG9yCisgICAgICAgIGh0dHBzOi8v
YnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0zMTA2MworCisgICAgICAgICogYWNjZXNz
aWJpbGl0eS9BY2Nlc3NpYmlsaXR5UmVuZGVyT2JqZWN0LmNwcDoKKyAgICAgICAgKFdlYkNvcmU6
OkFjY2Vzc2liaWxpdHlSZW5kZXJPYmplY3Q6OkFjY2Vzc2liaWxpdHlSZW5kZXJPYmplY3QpOgor
CiAyMDA5LTExLTAzICBTaW1vbiBIYXVzbWFubiAgPGhhdXNtYW5uQHdlYmtpdC5vcmc+CiAKICAg
ICAgICAgUmV2aWV3ZWQgYnkgVG9yIEFybmUgVmVzdGLDuC4KSW5kZXg6IFdlYkNvcmUvYWNjZXNz
aWJpbGl0eS9BY2Nlc3NpYmlsaXR5UmVuZGVyT2JqZWN0LmNwcA0KPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIFdl
YkNvcmUvYWNjZXNzaWJpbGl0eS9BY2Nlc3NpYmlsaXR5UmVuZGVyT2JqZWN0LmNwcAkocmV2aXNp
b24gNTA0NTcpCisrKyBXZWJDb3JlL2FjY2Vzc2liaWxpdHkvQWNjZXNzaWJpbGl0eVJlbmRlck9i
amVjdC5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTg0LDYgKzg0LDcgQEAgQWNjZXNzaWJpbGl0eVJl
bmRlck9iamVjdDo6QWNjZXNzaWJpbGl0eQogICAgIDogQWNjZXNzaWJpbGl0eU9iamVjdCgpCiAg
ICAgLCBtX3JlbmRlcmVyKHJlbmRlcmVyKQogICAgICwgbV9hcmlhUm9sZShVbmtub3duUm9sZSkK
KyAgICAsIG1fY2hpbGRyZW5EaXJ0eShmYWxzZSkKIHsKICAgICB1cGRhdGVBY2Nlc3NpYmlsaXR5
Um9sZSgpOwogI2lmbmRlZiBOREVCVUcK
</data>
<flag name="review"
          id="23910"
          type_id="1"
          status="+"
          setter="dglazkov"
    />
          </attachment>
      

    </bug>

</bugzilla>