summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2014-10-14 13:57:19 -0700
committerJun Fang <jun_fang@foxitsoftware.com>2014-10-14 13:57:19 -0700
commit9776eca31c69dfa154e20b784a9df396b134758f (patch)
treec8bd6e0998740ddfc7cc851fe7989948ee54625d /core
parent9dd088033537c071725b9a61fd5b519d65ea9f13 (diff)
downloadpdfium-9776eca31c69dfa154e20b784a9df396b134758f.tar.xz
Glyph index is out of range in cff_get_glyph_name.
Glyph index shall be less than number of glyphs. BUG=418585 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/652363002
Diffstat (limited to 'core')
-rw-r--r--core/src/fxge/fx_freetype/fxft2.5.01/src/base/ftobjs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/fxge/fx_freetype/fxft2.5.01/src/base/ftobjs.c b/core/src/fxge/fx_freetype/fxft2.5.01/src/base/ftobjs.c
index 96d460d596..32c9ff76c4 100644
--- a/core/src/fxge/fx_freetype/fxft2.5.01/src/base/ftobjs.c
+++ b/core/src/fxge/fx_freetype/fxft2.5.01/src/base/ftobjs.c
@@ -3615,8 +3615,8 @@
if ( buffer && buffer_max > 0 )
((FT_Byte*)buffer)[0] = 0;
- if ( face &&
- (FT_Long)glyph_index <= face->num_glyphs &&
+ if ( face &&
+ (FT_Long)glyph_index < face->num_glyphs &&
FT_HAS_GLYPH_NAMES( face ) )
{
FT_Service_GlyphDict service;