From 462bd0be608c3d14e5b4c01099b02b3948a52369 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Tue, 15 Apr 2003 21:05:53 +0000 Subject: [PATCH] Fix infinite loop in the case where the charmap contains a character > Tue Apr 15 05:00:39 2003 Owen Taylor * pango/opentype/pango-ot-info.c (synthesize_class_def): Fix infinite loop in the case where the charmap contains a character > 65535. (#106550, Morten Welinder.) --- src/pango-ot-info.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pango-ot-info.c b/src/pango-ot-info.c index 1a4251a36..1c55f2e0b 100644 --- a/src/pango-ot-info.c +++ b/src/pango-ot-info.c @@ -202,13 +202,13 @@ synthesize_class_def (PangoOTInfo *info) { GlyphInfo glyph_info; - if (glyph > 65535) - continue; - - glyph_info.glyph = glyph; - glyph_info.class = get_glyph_class (charcode); - - g_array_append_val (glyph_infos, glyph_info); + if (glyph <= 65535) + { + glyph_info.glyph = glyph; + glyph_info.class = get_glyph_class (charcode); + + g_array_append_val (glyph_infos, glyph_info); + } charcode = FT_Get_Next_Char (info->face, charcode, &glyph); }