bunzip2 fails to decompress pbzip2-compressed files

Dan Fandrich dan at coneharvesters.com
Sat Oct 30 05:38:18 UTC 2010


On Thu, Oct 28, 2010 at 11:10:35PM +0200, Denys Vlasenko wrote:
> On Friday 22 October 2010 20:07, Dan Fandrich wrote:
> > pbzip2 is a parallel bzip2 compressor that uses multiple threads while
> > compressing to linearly speed bzip2 compression by the number of cores
> > available (see http://compression.ca/pbzip2/). The files it produces
> > are compatible with traditional bzip2, but have slightly different output
> > because of the way the independently-compressed blocks are concatenated.
> > 
> > Unfortunately, this seems to prevent Busybox's bunzip2 from decompressing
> > them fully. Busybox decompresses the first block, then silently stops without
> > indicating any sort of error.  It can be reproduced like this:
> 
> Please try attached patch

Current git works great! Thanks for the fix. I didn't realize that bzip2
files could be simply concatenated like that, or that that was the trick
pbzip2 used.

>>> Dan


More information about the busybox mailing list