[PATCH 5/6] Handle bzip2 multi-stream files

Charles Wilson cygwin@cwilson.fastmail.fm
Wed Apr 20 20:16:00 GMT 2011

On 4/20/2011 12:39 PM, Corinna Vinschen wrote:
> On Apr  8 15:43, Jon TURNEY wrote:
>> bzip2 compressed files are allowed to contain multiple streams of
>> compressed data.  So if we arrive at BZ_STREAM_END but are not at
>> EOF, restart the decompressor.  Decompress any data which remains
>> in the stream before reading any more.
> I take this at face value since I'm not fluent in bzip compression.
> So, if that helps to circumvent a potential problem, just go ahead.
> Does that really occur in some of our tar.bz files?

Apparently it happens when pbzip [*] is used (on a cross build
environment, since cygwin does not actually ship pbzip) to compress the

[*] Parallel BZip2: http://www.compression.ca/pbzip2/


More information about the Cygwin-apps mailing list