ZIP: Treat Z_BUF_ERROR as end of stream

Bryce McKinlay
Sun Dec 17 16:59:00 GMT 2000

I discovered a problem with our Inflater and some zip files. zlib
would return Z_BUF_ERROR after completing decompression if avail_in
was 0. I think this has to do with not providing an extra padding byte
at the end of the input stream when using the no header zlib option.
This seems to fix it.


  [ bryce ]

More information about the Java-patches mailing list