bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: fixing the 32-bit size and time limits in gzip file format


From: Paul Eggert
Subject: Re: RFC: fixing the 32-bit size and time limits in gzip file format
Date: Tue, 17 Aug 2010 01:16:20 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6

On 08/16/10 22:19, Greg Roelofs wrote:
> Concatenated gzip streams made by newer gzips fail on older gzips,
> though.  I'm not sure I believe that's a worthwhile tradeoff.

I tend to agree.  We really want interoperability here.

For sizes I guess I'm willing to have gzip punt if input and output
are both streams, and to fall back on the current implementation if
that's true.  The alternative of squirreling away the compressed
stream until the input stream size is known is just too horrible to
contemplate.

If the input is a large regular file, though, we can output its size's
leading bits in the header.  And if the output is a regular file, we
can patch the input stream's size once it's known.  To make the
patching a bit more robust, we can stipulate that if the leading bit
is 1 in the new high-order size field, the actual size is unknown;
that way, if gzip is interrupted before it patches the size, the
placeholder won't be misinterpreted as a true size.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]