* src/cff/cffgload.c (cff_decoder_prepare): Fix change from

2007-06-06.
This commit is contained in:
Werner Lemberg 2007-06-18 07:33:10 +00:00
parent f48aec7b1e
commit 95104a4d57
2 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,9 @@
(ps_parser_load_field_table): Use `fields->array_max' instead of
T1_MAX_TABLE_ELEMENTS to limit the number of arguments.
* src/cff/cffgload.c (cff_decoder_prepare): Fix change from
2007-06-06.
2006-06-17 Werner Lemberg <wl@gnu.org>
* src/tools/ftrandom.c (font_size): New global variable.

View File

@ -387,7 +387,7 @@
FT_Byte fd_index = cff_fd_select_get( &cff->fd_select, glyph_index );
if ( fd_index > CFF_MAX_CID_FONTS )
if ( fd_index >= cff->num_subfonts )
{
FT_TRACE4(( "cff_decoder_prepare: invalid CID subfont index\n" ));
error = CFF_Err_Invalid_File_Format;