diff options
Diffstat (limited to 'Build/source/libs/freetype2/freetype-src/src/psaux/psintrp.c')
-rw-r--r-- | Build/source/libs/freetype2/freetype-src/src/psaux/psintrp.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/Build/source/libs/freetype2/freetype-src/src/psaux/psintrp.c b/Build/source/libs/freetype2/freetype-src/src/psaux/psintrp.c index 40e92766389..519c6944475 100644 --- a/Build/source/libs/freetype2/freetype-src/src/psaux/psintrp.c +++ b/Build/source/libs/freetype2/freetype-src/src/psaux/psintrp.c @@ -1340,9 +1340,9 @@ if ( decoder->glyph_names == 0 ) #endif /* FT_CONFIG_OPTION_INCREMENTAL */ { - FT_ERROR(( "cf2_interpT2CharString:\n" )); - FT_ERROR(( " (Type 1 seac) glyph names table" - " not available in this font\n" )); + FT_ERROR(( + "cf2_interpT2CharString: (Type 1 seac)" + " glyph names table not available in this font\n" )); lastError = FT_THROW( Invalid_Glyph_Format ); goto exit; } @@ -1368,9 +1368,9 @@ if ( bchar_index < 0 || achar_index < 0 ) { - FT_ERROR(( "cf2_interpT2CharString:\n" )); - FT_ERROR(( " (Type 1 seac) invalid" - " seac character code arguments\n" )); + FT_ERROR(( + "cf2_interpT2CharString: (Type 1 seac)" + " invalid seac character code arguments\n" )); lastError = FT_THROW( Invalid_Glyph_Format ); goto exit; } @@ -1670,13 +1670,7 @@ */ count = cf2_stack_count( opStack ); - if ( (CF2_UInt)arg_cnt > count ) - { - FT_ERROR(( "cf2_interpT2CharString (Type 1 mode):" - " stack underflow\n" )); - lastError = FT_THROW( Invalid_Glyph_Format ); - goto exit; - } + FT_ASSERT( (CF2_UInt)arg_cnt <= count ); opIdx += count - (CF2_UInt)arg_cnt; |