freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Known problem with FT_StreamRec::base being non-NULL also


From: Behdad Esfahbod
Subject: Re: [ft-devel] Known problem with FT_StreamRec::base being non-NULL also for file-based streams?
Date: Mon, 01 Mar 2010 22:29:18 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1

On 03/01/2010 09:18 PM, address@hidden wrote:
> How about using
> 
>     if ( face->stream->read == NULL )
> 
> instead of
> 
>     if ( face->stream->base != NULL )

Yes, that's what I'm planning to do instead.

Checking the source code, I wonder if I should also check for (face_flags &
FT_FACE_FLAG_EXTERNAL_STREAM) to detect whether it's an mmapped stream or the
user provided it (and hence we cannot mprotect).  The docs say: "Don't read or
test this flag."

behdad




reply via email to

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