rust-lang / flate2-rs

DEFLATE, gzip, and zlib bindings for Rust
https://docs.rs/flate2
Apache License 2.0
895 stars 161 forks source link

bgzip files or concatenated gzip files stop deflation after first block, doesn't report error #315

Closed kisakesenhi closed 2 years ago

kisakesenhi commented 2 years ago

I've tried to create a fastq.gz (genomic sequence files gzipped ) editor, it turned out that one company uses blocked gzip files and naming as .gz. Used htslib package, instead of flate2 for this project. But it would be good either it continues deflating the following blocks untill it finds EOF signals, or raising an error.

kisakesenhi commented 2 years ago

After some inspection, seen same issue on concatenated gz files.

kisakesenhi commented 2 years ago

MultiGzDecoder solves the issue, that might be good to have it as the default on the examples.