From ae6d1d7b98880e90af9452d25e9cbdd4f9d97966 Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Sun, 20 Feb 2011 19:13:25 +0900 Subject: [cache] Fix an off-by-one bug in FTC_Manager_RemoveFaceID(). Found by , 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. --- src/cache/ftccache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cache/ftccache.c b/src/cache/ftccache.c index 865fbb71..f01c403f 100644 --- 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; -- cgit v1.2.3