Bug 45199

Summary: Uninitialized member variable in PolicyCallback
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: WebCore Misc.Assignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: ap
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
Resolve uninitialized variable. aroben: review+

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.