forked from minhngoc25a/freetype2
[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:
parent
7ad15d5926
commit
ae6d1d7b98
10
ChangeLog
10
ChangeLog
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue