summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJUN FANG <jun_fang@foxitsoftware.com>2015-04-02 10:05:06 -0700
committerJUN FANG <jun_fang@foxitsoftware.com>2015-04-02 10:07:31 -0700
commit2711c8a8743e74b372ec8c709f79e1f242d1cafe (patch)
treec53893980d62fee0697fe09ca31d75039b04ad46 /core
parente49a260d35564553126dfa62ba03ead0892e7c75 (diff)
downloadpdfium-2711c8a8743e74b372ec8c709f79e1f242d1cafe.tar.xz
Merge to XFA: Fix uninitialized face in fx_ge_font.cpp
MSAN reported this issue when I tried to reproduce 460936 in the last version of freetype on Linux. BUG=N/A R=thestig@chromium.org Review URL: https://codereview.chromium.org/1050333002
Diffstat (limited to 'core')
-rw-r--r--core/src/fxge/ge/fx_ge_font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fxge/ge/fx_ge_font.cpp b/core/src/fxge/ge/fx_ge_font.cpp
index f702e89c6c..aeaebe8f26 100644
--- a/core/src/fxge/ge/fx_ge_font.cpp
+++ b/core/src/fxge/ge/fx_ge_font.cpp
@@ -199,7 +199,7 @@ static FXFT_Face FT_LoadFont(FX_LPBYTE pData, int size)
FXFT_Init_FreeType(&CFX_GEModule::Get()->GetFontMgr()->m_FTLibrary);
}
library = CFX_GEModule::Get()->GetFontMgr()->m_FTLibrary;
- FXFT_Face face;
+ FXFT_Face face = NULL;
int error = FXFT_New_Memory_Face(library, pData, size, 0, &face);
if (error) {
return NULL;