Merge to XFA: Fix uninitialized value in CFX_ByteString::FormatInteger
authorJUN FANG <jun_fang@foxitsoftware.com>
Tue, 10 Feb 2015 16:13:01 +0000 (08:13 -0800)
committerJUN FANG <jun_fang@foxitsoftware.com>
Tue, 10 Feb 2015 16:58:20 +0000 (08:58 -0800)
BUG=449845
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/911293002

core/include/fpdfapi/fpdf_objects.h
core/include/fxcrt/fx_coordinates.h

index 1b7cb94..ec052af 100644 (file)
@@ -165,10 +165,10 @@ public:
         return FX_NEW CPDF_Number(bInteger, pData);
     }
 
-    CPDF_Number()
+    CPDF_Number(): m_Integer(0) 
     {
         m_Type = PDFOBJ_NUMBER;
-    }
+    } 
 
     CPDF_Number(FX_BOOL bInteger, void* pData);
 
index 6ec3b5e..15d3a64 100644 (file)
@@ -537,7 +537,7 @@ struct FX_RECT {
 
     int                        bottom;
 
-    FX_RECT() {}
+    FX_RECT(): left(0), top(0), right(0), bottom(0) { }
 
     FX_RECT(int left1, int top1, int right1, int bottom1)
     {