diff options
author | JUN FANG <jun_fang@foxitsoftware.com> | 2015-04-02 10:05:06 -0700 |
---|---|---|
committer | JUN FANG <jun_fang@foxitsoftware.com> | 2015-04-02 10:07:31 -0700 |
commit | 2711c8a8743e74b372ec8c709f79e1f242d1cafe (patch) | |
tree | c53893980d62fee0697fe09ca31d75039b04ad46 /core | |
parent | e49a260d35564553126dfa62ba03ead0892e7c75 (diff) | |
download | pdfium-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.cpp | 2 |
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; |