ref: 95104a4d579e0b56b7361380068b3c6876b2656e
parent: f48aec7b1ec398b01220ad137b7e8d4e0f7aa036
author: Werner Lemberg <[email protected]>
date: Mon Jun 18 03:33:10 EDT 2007
* src/cff/cffgload.c (cff_decoder_prepare): Fix change from 2007-06-06.
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 <[email protected]>
* src/tools/ftrandom.c (font_size): New global variable.
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -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;