Fix infinite loop in the case where the charmap contains a character >
Tue Apr 15 05:00:39 2003 Owen Taylor <otaylor@redhat.com> * 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.)
This commit is contained in:
parent
312e1c1cf9
commit
462bd0be60
|
@ -202,13 +202,13 @@ synthesize_class_def (PangoOTInfo *info)
|
|||
{
|
||||
GlyphInfo glyph_info;
|
||||
|
||||
if (glyph > 65535)
|
||||
continue;
|
||||
if (glyph <= 65535)
|
||||
{
|
||||
glyph_info.glyph = glyph;
|
||||
glyph_info.class = get_glyph_class (charcode);
|
||||
|
||||
glyph_info.glyph = glyph;
|
||||
glyph_info.class = get_glyph_class (charcode);
|
||||
|
||||
g_array_append_val (glyph_infos, glyph_info);
|
||||
g_array_append_val (glyph_infos, glyph_info);
|
||||
}
|
||||
|
||||
charcode = FT_Get_Next_Char (info->face, charcode, &glyph);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue