[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] Accessing FT_Stream API
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] Accessing FT_Stream API |
Date: |
Thu, 04 Jul 2019 08:43:26 +0200 (CEST) |
>>> Also, I just ran into the issue of `FT_Stream_OpenGzip' requiring
>>> the stream to having a valid `memory' field, which is not provided
>>> by `FT_Stream_OpenMemory' (for obvious reasons).
>>
>> This looks like a bug, both in documentation (which doesn't mention
>> it) and implementation (which doesn't correctly check for a valid
>> `memory' field).
After some thinking I now believe that we have to solve this issue in
a different way. A stream should always be created with
`FT_Stream_New'; among other things it ensures that there is a valid
`stream->memory' field. If you encounter a situation where `memory'
is NULL it seems that either `FT_Stream_New' wasn't properly called,
or `stream' wasn't set up correctly. Can you investigate that?
So please commit the `memory' checks but not the documenation fix,
which is an internal detail Joe User shouldn't take care of (as Alexei
correctly states).
Werner
- Re: [ft-devel] Accessing FT_Stream API,
Werner LEMBERG <=