freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] Problem in ftc_snode_compare


From: Ken Hancock
Subject: [Devel] Problem in ftc_snode_compare
Date: Fri, 17 Sep 2004 13:52:46 -0400

I've recently been doing some testing with FreeType2 and the caching
mechanism in low-memory conditions (simulated by changing FTAlloc to
allocate out of a small heap).  There's a problem in ftc_snode_compare:

ftc_snode_compare calls ftc_snode_load which can fail in low-memory
conditions -- there no code in this routine to flush nodes from the cache to
make room.  As a result FTC_SBitCache_Lookup returns a bitmap without a
valid data buffer.

I'm unsure of the best way of rectifying the problem... Any suggestions?

Here's the relevant stack --

ftc_snode_compare(FTC_NodeRec_ * ftcsnode=0x01759210, void *
ftcgquery=0x02f0f634, FTC_CacheRec_ * cache=0x017517c0)  Line 330       C
FTC_SNode_Compare(FTC_SNodeRec_ * snode=0x01759210, FTC_GQueryRec_ *
gquery=0x02f0f634, FTC_CacheRec_ * cache=0x017517c0)  Line 344 + 0x11   C
FTC_SBitCache_Lookup(FTC_SBitCacheRec_ * cache=0x017517c0, FTC_ImageTypeRec_
* type=0x02f0f760, unsigned int gindex=90, FTC_SBitRec_ * *
ansbit=0x02f0f748, FTC_NodeRec_ * * anode=0x02f0f754)  Line 433 + 0x176 C




reply via email to

[Prev in Thread] Current Thread [Next in Thread]