summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJUN FANG <jun_fang@foxitsoftware.com>2015-02-10 08:13:01 -0800
committerJUN FANG <jun_fang@foxitsoftware.com>2015-02-10 08:58:20 -0800
commitea269b6973e381042102c7304bfdd19e9cd75349 (patch)
tree0341695a384170392be01d6dee091c0ae86ea7ba
parentefe41083f4e42508bb44095cfd9dcccbf2c297d2 (diff)
downloadpdfium-ea269b6973e381042102c7304bfdd19e9cd75349.tar.xz
Merge to XFA: Fix uninitialized value in CFX_ByteString::FormatInteger
BUG=449845 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/911293002
-rw-r--r--core/include/fpdfapi/fpdf_objects.h4
-rw-r--r--core/include/fxcrt/fx_coordinates.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/include/fpdfapi/fpdf_objects.h b/core/include/fpdfapi/fpdf_objects.h
index 1b7cb94583..ec052af41a 100644
--- a/core/include/fpdfapi/fpdf_objects.h
+++ b/core/include/fpdfapi/fpdf_objects.h
@@ -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);
diff --git a/core/include/fxcrt/fx_coordinates.h b/core/include/fxcrt/fx_coordinates.h
index 6ec3b5e1eb..15d3a642e8 100644
--- a/core/include/fxcrt/fx_coordinates.h
+++ b/core/include/fxcrt/fx_coordinates.h
@@ -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)
{