diff --git a/ChangeLog b/ChangeLog index 75ddb56bb..b4c65c5de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,8 @@ 2006-03-27 David Turner - * src/sfnt/ttkern.c (tt_face_get_kerning): fixed a serious bug - that caused some programs to go into an infinite loop when dealing - with fonts that don't have a properly sorted kerning sub-table + * src/sfnt/ttkern.c (tt_face_get_kerning): Fix a serious bug that + causes some programs to go into an infinite loop when dealing with + fonts that don't have a properly sorted kerning sub-table. 2006-03-26 Werner Lemberg diff --git a/src/sfnt/ttkern.c b/src/sfnt/ttkern.c index e26427171..30f6cdbf1 100644 --- a/src/sfnt/ttkern.c +++ b/src/sfnt/ttkern.c @@ -5,7 +5,7 @@ /* Load the basic TrueType kerning table. This doesn't handle */ /* kerning data within the GPOS table at the moment. */ /* */ -/* Copyright 1996-2001, 2002, 2003, 2004, 2005 by */ +/* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -248,6 +248,7 @@ { FT_UInt count2; + for ( count2 = num_pairs; count2 > 0; count2-- ) { FT_ULong key = FT_NEXT_ULONG( p ); @@ -265,7 +266,7 @@ break; /* - * We don't support format 2 because we've never seen a single font + * We don't support format 2 because we haven't seen a single font * using it in real life... */