- Patched incorrect handling of Z_STREAM_END in bgzip blocks when the 8 final bytes are cut between actual and next input buffer
Thanks to @koriege for his invaluable help with this!
This patches #20.
As a side note, this error could raise aprox. > 7/16384 or once every >2340 tries 🤔
Probably more if one takes into account the length of the extracted data and not only the beginning point of extraction.
A -p
patches this issue, in case you have a previous version an see this error when extracting data from a bgzip file:
ERROR: Compressed data error in 'my_file.gz'.