shithub: freetype+ttf2subf

Download patch

ref: ae6d1d7b98880e90af9452d25e9cbdd4f9d97966
parent: 7ad15d59265410139078d835181565b771e34c05
author: suzuki toshiya <[email protected]>
date: Sun Feb 20 14:13:25 EST 2011

[cache] Fix an off-by-one bug in FTC_Manager_RemoveFaceID().
Found by <[email protected]>, see detail in

  http://lists.gnu.org/archive/html/freetype/2011-01/msg00023.html

* src/cache/ftccache.c (FTC_Cache_RemoveFaceID): Check the node
buckets[cache->p + cache->mask] too.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2011-02-20  suzuki toshiya  <[email protected]>
+
+	[cache] Fix an off-by-one bug in FTC_Manager_RemoveFaceID().
+	Found by <[email protected]>, see detail in
+
+	  http://lists.gnu.org/archive/html/freetype/2011-01/msg00023.html
+
+	* src/cache/ftccache.c (FTC_Cache_RemoveFaceID): Check the node
+	buckets[cache->p + cache->mask] too.
+
 2011-02-19  Kevin Kofler  <[email protected]>
 
 	Fall back to autohinting if a TTF/OTF doesn't contain any bytecode.
--- a/src/cache/ftccache.c
+++ b/src/cache/ftccache.c
@@ -574,7 +574,7 @@
     FTC_Node     frees   = NULL;
 
 
-    count = cache->p + cache->mask;
+    count = cache->p + cache->mask + 1;
     for ( i = 0; i < count; i++ )
     {
       FTC_Node*  bucket = cache->buckets + i;