summaryrefslogtreecommitdiff
path: root/core/src/fxge
diff options
context:
space:
mode:
authorfoxit <jun_fang@foxitsoftware.com>2014-07-07 13:42:30 -0700
committerfoxit <jun_fang@foxitsoftware.com>2014-07-07 13:42:30 -0700
commitcceb554856cd9a042798c612cc5dde2af3cfd40e (patch)
tree819c099ca52556a43b78e765b6a6158dd5044075 /core/src/fxge
parent9d319f0cb5e0850447dbd95b07fed28245fb0b31 (diff)
downloadpdfium-cceb554856cd9a042798c612cc5dde2af3cfd40e.tar.xz
Fix uninitialized font_offset
BUG=387840 R=palmer@chromium.org Review URL: https://codereview.chromium.org/354413002
Diffstat (limited to 'core/src/fxge')
-rw-r--r--core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1gload.c2
-rw-r--r--core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1load.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1gload.c b/core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1gload.c
index 6fc908b658..d06e161db9 100644
--- a/core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1gload.c
+++ b/core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1gload.c
@@ -282,6 +282,8 @@
FT_Matrix font_matrix;
FT_Vector font_offset;
+ font_offset.x = 0;
+ font_offset.y = 0;
FT_Data glyph_data;
FT_Bool must_finish_decoder = FALSE;
#ifdef FT_CONFIG_OPTION_INCREMENTAL
diff --git a/core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1load.c b/core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1load.c
index 76e36f82e7..661dd075eb 100644
--- a/core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1load.c
+++ b/core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1load.c
@@ -1100,8 +1100,8 @@
FT_Matrix* matrix = &face->type1.font_matrix;
FT_Vector* offset = &face->type1.font_offset;
FT_Face root = (FT_Face)&face->root;
- FT_Fixed temp[6];
- FT_Fixed temp_scale;
+ FT_Fixed temp[6] = {0, 0, 0, 0, 0, 0};
+ FT_Fixed temp_scale = 0;
FT_Int result;