From cceb554856cd9a042798c612cc5dde2af3cfd40e Mon Sep 17 00:00:00 2001 From: foxit Date: Mon, 7 Jul 2014 13:42:30 -0700 Subject: Fix uninitialized font_offset BUG=387840 R=palmer@chromium.org Review URL: https://codereview.chromium.org/354413002 --- core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1gload.c | 2 ++ core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1load.c | 4 ++-- 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; -- cgit v1.2.3