On 03/01/2010 09:18 PM, mpsuz...@hiroshima-u.ac.jp 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 _______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel