Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Unified Diff: core/src/fxge/fx_freetype/fxft2.5.01/src/base/ftobjs.c

Issue 652363002: Glyph index is out of range in cff_get_glyph_name. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fxge/fx_freetype/fxft2.5.01/src/base/ftobjs.c
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 96d460d596d0a86e1978dfa67de09cc58610b6bc..32c9ff76c4bfe519f906aae250fff0443e1bfc2d 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698