You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I open a stream from an existing open file with jas_stream_fdopen(), then when I close that stream with jas_stream_close(), it should leave that file open.
In older libjasper, there was code in jas_stream_fdopen() to set the flag JAS_STREAM_NOCLOSE and code in jas_stream_close() to forego closing if that flag was set.
Current libjasper sets flag JAS_STREAM_FILEOBJ_NOCLOSE, but jas_stream_close() pays no attention to it and in practice, the file gets closed. I see no place that JAS_STREAM_FILEOBJ_NOCLOSE .
The text was updated successfully, but these errors were encountered:
@giraffedata Just out of curiosity, in which version of JasPer did this previously work? It seems to have been broken for a while. In any case, I have added a check for this flag to the code. Please confirm that it now works for you. The fix is in commit 66f3d9d.
When I open a stream from an existing open file with jas_stream_fdopen(), then when I close that stream with jas_stream_close(), it should leave that file open.
In older libjasper, there was code in jas_stream_fdopen() to set the flag JAS_STREAM_NOCLOSE and code in jas_stream_close() to forego closing if that flag was set.
Current libjasper sets flag JAS_STREAM_FILEOBJ_NOCLOSE, but jas_stream_close() pays no attention to it and in practice, the file gets closed. I see no place that JAS_STREAM_FILEOBJ_NOCLOSE .
The text was updated successfully, but these errors were encountered: