jzlib
jzlib copied to clipboard
Windowsize should be in the range 8..15
According to zlib manual:
The windowBits parameter is the base two logarithm of the window size (the size of the history buffer). It should be in the range 8..15 for this version of the library.
However jzlib supports only in the range 9..15 as in this line: https://github.com/ymnk/jzlib/blob/a21be20213d66eff15904d925e9b721956a01ef7/src/main/java/com/jcraft/jzlib/Deflater.java#L109-L111
If windowbit is 8 it returns an error which is incorrect.