* src/type1/t1afm.c (T1_Read_PFM): Zero offset means `no kerning

table available'.  From Sergey Tolstov <stolstov@esri.com>.
This commit is contained in:
Werner Lemberg 2005-11-08 09:10:16 +00:00
parent 96508b74b4
commit ea4c3dc485
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-11-07 Werner Lemberg <wl@gnu.org>
* src/type1/t1afm.c (T1_Read_PFM): Zero offset means `no kerning
table available'. From Sergey Tolstov <stolstov@esri.com>.
2005-11-03 Ville Syrjälä <syrjala@sci.fi>
* src/base/ftobjs.c (FT_Open_Face): Avoid possible memory leak.

View File

@ -4,7 +4,7 @@
/* */
/* AFM support for Type 1 fonts (body). */
/* */
/* Copyright 1996-2001, 2002, 2003, 2004 by */
/* Copyright 1996-2001, 2002, 2003, 2004, 2005 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@ -285,6 +285,11 @@
/* Kerning offset is 14 bytes from start of extensions table. */
p += 14;
p = start + LITTLE_ENDIAN_UINT( p );
if ( p == start )
/* zero offset means no table */
goto Exit;
if ( p + 2 > limit )
{
error = T1_Err_Unknown_File_Format;