avoid inflateReset2 so that zlib 1.2.3 may be used - developed by Oracle
not submitted upstream
diff -r 510b1b710ac5 pigz.c
--- a/pigz.c
+++ b/pigz.c
@@ -3352,7 +3352,7 @@
/* got a job -- buffers have all been allocated to the right size.
deflate and verify the checksum. */
Trace(("-- uncompressing #%ld", job->seq));
- if (inflateReset2(&strm, -15) != Z_OK)
+ if (inflateEnd(&strm) != Z_OK || inflateInit2(&strm, -15) != Z_OK)
bail("stream reset failed: ", strm.msg);
strm.next_in = job->in->buf;
strm.avail_in = job->in->len;