[cache] Fix an off-by-one bug in FTC_Manager_RemoveFaceID().

Found by <ychen1392001@yahoo.com.cn>, 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.
This commit is contained in:
suzuki toshiya 2011-02-20 19:13:25 +09:00
parent 7ad15d5926
commit ae6d1d7b98
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,13 @@
2011-02-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[cache] Fix an off-by-one bug in FTC_Manager_RemoveFaceID().
Found by <ychen1392001@yahoo.com.cn>, 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 <kevin.kofler@chello.at>
Fall back to autohinting if a TTF/OTF doesn't contain any bytecode.

View File

@ -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;