pako icon indicating copy to clipboard operation
pako copied to clipboard

Inflate works incorrectly with the Z_SYNC_FLUSH flag

Open kirill-782 opened this issue 1 year ago • 1 comments

After the data has been sent to the push method with the Z_SYNC_FLUSH flag, no data appears in result. At the same time, Zlib node js does a good job on the same piece of data. Test code and file: test.zip I guess the problem is that zlib returns Z_OK instead of Z_STREAM_END.

kirill-782 avatar Sep 30 '22 17:09 kirill-782