* src/type1/t1afm.c (afm_atoindex): Fix boundary test. Reported

by Dirck Blaskey.
This commit is contained in:
Werner Lemberg 2004-06-26 07:03:53 +00:00
parent c3d1539b4c
commit 58805c88f1
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2004-06-25 Werner Lemberg <wl@gnu.org>
* src/type1/t1afm.c (afm_atoindex): Fix boundary test. Reported
by Dirck Blaskey.
2004-06-24 David Turner <david@freetype.org>
* src/truetype/ttgload.c, src/truetype/ttxgvar.c: removing

View File

@ -4,7 +4,7 @@
/* */
/* AFM support for Type 1 fonts (body). */
/* */
/* Copyright 1996-2001, 2002, 2003 by */
/* Copyright 1996-2001, 2002, 2003, 2004 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@ -63,13 +63,13 @@
/* skip whitespace */
while ( ( *p == ' ' || *p == '\t' || *p == ':' || *p == ';' ) &&
p < limit )
while ( p < limit &&
( *p == ' ' || *p == '\t' || *p == ':' || *p == ';' ) )
p++;
*start = p;
/* now, read glyph name */
while ( IS_ALPHANUM( *p ) && p < limit )
while ( p < limit && IS_ALPHANUM( *p ) )
p++;
len = p - *start;