diff options
author | David Turner <david@freetype.org> | 2004-07-18 07:15:18 +0000 |
---|---|---|
committer | David Turner <david@freetype.org> | 2004-07-18 07:15:18 +0000 |
commit | bc1720b5ea9596d50157d37c5b407b4fbecde77a (patch) | |
tree | 6962d4c5bb5e8e6a55484e323e7f9811c78b0f5c /src/truetype | |
parent | 26333d14b851b7c7401b062e105f3c98ff85a39d (diff) | |
download | freetype2-bc1720b5ea9596d50157d37c5b407b4fbecde77a.tar.gz |
* include/freetype/cache/ftcglyph.h, src/cache/ftcglyph.c:
fixed a dangling pointer bug that happened in very rare cases:
i.e. when a new family object was destroyed by an out-of-memory
condition during a glyph node initialization. The function
FTC_Cache_Lookup would flush the cache and restart the lookup
with a bad pointer.
* src/cache/ftcmanag.c: fixed a cache flushing bug
Diffstat (limited to 'src/truetype')
-rw-r--r-- | src/truetype/ttinterp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c index 889ebbf4f..7446cdcc3 100644 --- a/src/truetype/ttinterp.c +++ b/src/truetype/ttinterp.c @@ -2474,7 +2474,7 @@ W = Vx * Vx + Vy * Vy; /* Now, we want that Sqrt( W ) = 0x4000 */ - /* Or 0x1000000 <= W < 0x1004000 */ + /* Or 0x10000000 <= W < 0x10004000 */ if ( Vx < 0 ) { @@ -2492,7 +2492,7 @@ else S2 = FALSE; - while ( W < 0x1000000L ) + while ( W < 0x10000000L ) { /* We need to increase W by a minimal amount */ if ( Vx < Vy ) @@ -2503,7 +2503,7 @@ W = Vx * Vx + Vy * Vy; } - while ( W >= 0x1004000L ) + while ( W >= 0x10004000L ) { /* We need to decrease W by a minimal amount */ if ( Vx < Vy ) |