ouch-org / ouch

Painless compression and decompression in the terminal
https://crates.io/crates/ouch
Other
2.29k stars 76 forks source link

Large bz2 file decompressed incorrectly #661

Open AndrewKraevskii opened 7 months ago

AndrewKraevskii commented 7 months ago

Version

0.5.1

Description

When i try to decompress big bz2 file (entire wikipedia downloaded from here) it results in file which is only 2.6KB. Compressed version is 21GB. Only 40 lines from fully decompressed version were present which is 91GB.

I used bzig2 to decompress it instead and it worked just fine.

Here is asciinema of this behavior: https://asciinema.org/a/z4E03bQhOAJ9Rrm0I3YyiR7wq

Current Behavior

Only part of the file decompressed.

Expected Behavior

I expect entire file to be decompressed.

Additional Information

I use Fedora Linux 39 (Workstation Edition) x86_64 and kernel of version 6.8.6-200.fc39.x86_64

marcospb19 commented 7 months ago

Thanks for the report, might take some time but we'll take a look.