<?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>45199</bug_id>
          
          <creation_ts>2010-09-03 14:22:26 -0700</creation_ts>
          <short_desc>Uninitialized member variable in PolicyCallback</short_desc>
          <delta_ts>2011-03-08 16:02: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>WebCore 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>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>274174</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2010-09-03 14:22:26 -0700</bug_when>
    <thetext>BoundsChecker noticed several copy operations for PolicyCallback where the m_argument member was uninitialized.

Proposed patch:

$ svn diff PolicyCallback.cpp
Index: PolicyCallback.cpp
===================================================================
--- PolicyCallback.cpp  (revision 66733)
+++ PolicyCallback.cpp  (working copy)
@@ -42,6 +42,7 @@
     : m_navigationFunction(0)
     , m_newWindowFunction(0)
     , m_contentFunction(0)
+    , m_argument(0)
 {
 }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>364207</commentid>
    <comment_count>1</comment_count>
      <attachid>85104</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2011-03-08 15:57:43 -0800</bug_when>
    <thetext>Created attachment 85104
Resolve uninitialized variable.

Correct an old uninitialized variable found during a BoundsChecker run.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>364209</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2011-03-08 16:02:24 -0800</bug_when>
    <thetext>Landed in http://trac.webkit.org/changeset/80601.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>85104</attachid>
            <date>2011-03-08 15:57:43 -0800</date>
            <delta_ts>2011-03-08 15:58:54 -0800</delta_ts>
            <desc>Resolve uninitialized variable.</desc>
            <filename>boundschecker.patch</filename>
            <type>text/plain</type>
            <size>1084</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDgwNjAwKQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTEtMDMtMDggIEJyZW50IEZ1
bGdoYW0gIDxiZnVsZ2hhbUB3ZWJraXQub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9E
WSAoT09QUyEpLgorCisgICAgICAgIENvcnJlY3QgdW5pbml0aWFsaXplZCB2YXJpYWJsZSBpbiBQ
b2xpY3lDYWxsYmFjayBmb3VuZCB3aGlsZQorICAgICAgICBydW5uaW5nIFdlYktpdCBpbiBCb3Vu
ZHNDaGVja2VyLgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/
aWQ9NDUxOTkuCisKKyAgICAgICAgKiBsb2FkZXIvUG9saWN5Q2FsbGJhY2suY3BwOgorICAgICAg
ICAoV2ViQ29yZTo6UG9saWN5Q2FsbGJhY2s6OlBvbGljeUNhbGxiYWNrKTogSW5pdGlhbGl6ZQor
ICAgICAgICBtX2FyZ3VtZW50LgorCiAyMDExLTAzLTA4ICBCcmVudCBGdWxnaGFtICA8YmZ1bGdo
YW1Ad2Via2l0Lm9yZz4KIAogICAgICAgICBNb3JlIGJ1aWxkIGJ1c3RhZ2UgZml4LgpJbmRleDog
U291cmNlL1dlYkNvcmUvbG9hZGVyL1BvbGljeUNhbGxiYWNrLmNwcAo9PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBT
b3VyY2UvV2ViQ29yZS9sb2FkZXIvUG9saWN5Q2FsbGJhY2suY3BwCShyZXZpc2lvbiA4MDU5NikK
KysrIFNvdXJjZS9XZWJDb3JlL2xvYWRlci9Qb2xpY3lDYWxsYmFjay5jcHAJKHdvcmtpbmcgY29w
eSkKQEAgLTQyLDYgKzQyLDcgQEAgUG9saWN5Q2FsbGJhY2s6OlBvbGljeUNhbGxiYWNrKCkKICAg
ICA6IG1fbmF2aWdhdGlvbkZ1bmN0aW9uKDApCiAgICAgLCBtX25ld1dpbmRvd0Z1bmN0aW9uKDAp
CiAgICAgLCBtX2NvbnRlbnRGdW5jdGlvbigwKQorICAgICwgbV9hcmd1bWVudCgwKQogewogfQog
Cg==
</data>
<flag name="review"
          id="77182"
          type_id="1"
          status="+"
          setter="aroben"
    />
          </attachment>
      

    </bug>

</bugzilla>