summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-05-11 13:57:39 -0700
committerLei Zhang <thestig@chromium.org>2015-05-11 13:57:39 -0700
commite3471ff2929949f46004a8d55762d2e7d259b6c4 (patch)
treef4e47fada6db9ef15ba87a0f7faf6366b2430d78
parentabf60bae364d98f1b5056db4dad9af5f992fc33a (diff)
downloadpdfium-chromium/2357.tar.xz
Fix uninitialized face in fx_ge_font.cppchromium/2357
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 (cherry picked from commit 672bd1706a990069dce401afead6c2ecfcdb3357) Review URL: https://codereview.chromium.org/1136943003
-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 f9e1fe61df..ea59a48185 100644
--- a/core/src/fxge/ge/fx_ge_font.cpp
+++ b/core/src/fxge/ge/fx_ge_font.cpp
@@ -166,7 +166,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;