kspalaiologos / bzip3

A better and stronger spiritual successor to BZip2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

1.4.0 decompress a 64 bytes file failed

xxwpc opened this issue · comments

I use bzip3 1.4.0 compress the file "test.dat" in the test.zip
test.zip

But can't decompress

$ bzip3 -fkv test.dat
test.dat: 64 -> 56 bytes, 87.50%, 7.00 bpb

$ bzip3 -d -f test.dat.bz3
Failed to decode a block: Malformed header

https://github.com/kspalaiologos/bzip3/blob/master/src/libbz3.c#L685

Caused by a typo, >= should be >. I will commit a patch and using it, it will be possible to decompress the file.