[issue8672] Error decompressing valid zlib data

Antoine Pitrou report at bugs.python.org
Tue May 11 00:36:10 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> Thanks for the debugging.  The stream comes from within a matlab 'mat'
> file.  I maintain the scipy matlab file readers; the variables within
> these files are zlib compressed streams.

So this would be a Matlab issue, right?

>  Is there (should there be) a safe and maintained way to allow me to
> read a stream that does not return Z_STREAM_END?

Decompressor objects allow you to do that, but I cannot tell you how
"maintained" it is. If it has to be maintained, we could add an unit
test for it so that regressions get detected. It would be nice if you
could provide a very short zlib stream reproducing the issue.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8672>
_______________________________________


More information about the Python-bugs-list mailing list