[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Devel] Bug in ftcsbits.c again
From: |
Alex Strelnikov |
Subject: |
[Devel] Bug in ftcsbits.c again |
Date: |
Wed, 14 Apr 2004 20:39:35 +0300 |
User-agent: |
Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.6b) Gecko/20031208 Thunderbird/0.4 |
Hello all!
I've found previously reported Knut's bug again
(http://www.freetype.org/pipermail/devel/2003-June/009485.html).
In ftcsbits.c line 307 'size' variable is uninitialized and
'cache->manager->cur_weight += size' will broke 'cur_weight'
if BadGlyph case will happens in ftc_snode_load.
Little patch in ftc_snode_load procedure solves the problem:
+++ fix/ftcsbits.c
@@ -178,6 +178,8 @@
sbit->height = 0;
sbit->buffer = NULL;
error = 0;
+ if ( asize )
+ *asize = 0;
}
return error;
Thanks!
- [Devel] Bug in ftcsbits.c again,
Alex Strelnikov <=