Bug 45199 - Uninitialized member variable in PolicyCallback
Summary: Uninitialized member variable in PolicyCallback
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 14:22 PDT by Brent Fulgham
Modified: 2011-03-08 16:02 PST (History)
1 user (show)

See Also:


Attachments
Resolve uninitialized variable. (1.06 KB, patch)
2011-03-08 15:57 PST, Brent Fulgham
aroben: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2010-09-03 14:22:26 PDT
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)
 {
 }
Comment 1 Brent Fulgham 2011-03-08 15:57:43 PST
Created attachment 85104 [details]
Resolve uninitialized variable.

Correct an old uninitialized variable found during a BoundsChecker run.
Comment 2 Brent Fulgham 2011-03-08 16:02:24 PST
Landed in http://trac.webkit.org/changeset/80601.