Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix to 2e672f3 decompress_peek_gz change.
The "zs.total_out < destsize" should have been "zs.avail_out" to be more robust to total_out being reset by inflateReset. However looking again neither the avail_in or avail_out checks are necessary, as once we hit the end of either input or output buffer the next cycle triggers ret == Z_BUF_ERROR and we drop out as normal. Thanks to John Marshall for the spot.
- Loading branch information