Open VorpalBlade opened 1 month ago
Thanks for reporting and even more so for the reproducer. I hope @folkertdev can also take a look, maybe it's an issue with the underlying library or the way it's called.
thanks for reporting this and providing such a nice reproduction. This exposed a subtle bug in zlib-rs that I've now fixed locally. We'll publish a new version next week and can hopefully bump flate2 to use that.
If I switch to use
libz-rs
as the backend (instead oflibz-ng
) for https://github.com/VorpalBlade/paketkoll I get all of these errors:And so on, it keeps going. This is decompressing and parsing files from the package cache of the distro I'm running on (Arch Linux).
I have attached a minimal reproducer of it, which consists of a small project plus an
example.gz
file that triggers these: flate2-reproducer.tar.gz. To reproduce enter the project and runcargo run
:(Note: I'm aware of the extra layer of BufReader on top of the gzip stream seems a bit pointless, but in the actual code that happens internally to a library I'm using for the parsing, and as such I have no control over that.)