[issue27164] zlib can't decompress DEFLATE using shared dictionary

Xiang Zhang report at bugs.python.org
Wed Jun 1 03:48:27 EDT 2016


Xiang Zhang added the comment:

This seems related with the difference between zlib format and raw format. When you do raw inflate, you have to inflateSetDictionary before any inflate. You cannot rely on the first inflate to return Z_NEED_DICT and then do inflateSetDictionary.

Although I have the solution with experiment, but there is nothing can be found in the official zlib documentation. It is rather vague. I'll make more research and submit a patch later..

Right now, you can use zlib format (positive wbits) if it can achieve your goal. It's behaviour is right.

----------
nosy: +martin.panter, nadeem.vawda, twouters

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


More information about the Python-bugs-list mailing list