shithub: freetype+ttf2subf

Download patch

ref: b0e0db116d99103ab1cad4e07e9460156d6d81f4
parent: 782f13831e38f563f156b7f0cd0c6bf1dbd4bc9b
author: David Turner <[email protected]>
date: Thu Feb 23 18:03:39 EST 2006

another hack

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/cache/ftccmap.c
+++ b/src/cache/ftccmap.c
@@ -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 )
     {