another hack

This commit is contained in:
David Turner 2006-02-23 23:03:39 +00:00
parent 782f13831e
commit b0e0db116d

4
src/cache/ftccmap.c vendored
View File

@ -375,6 +375,10 @@
FT_ASSERT( (FT_UInt)( char_code - node->first ) < FTC_CMAP_INDICES_MAX );
/* something rotten can happen with rogue clients */
if ( (FT_UInt)( char_code - node->first >= FTC_CMAP_INDICES_MAX )
return 0;
gindex = node->indices[char_code - node->first];
if ( gindex == FTC_CMAP_UNKNOWN )
{