[Zlib-devel] Re: Inflate 1.2.beta0 available for testing

Mark Adler madler at alumni.caltech.edu
Tue Nov 26 22:26:02 EST 2002


On Tuesday, November 26, 2002, at 03:14  PM, Paul Marquess wrote:
> One of the tests checks that I can cope with a gzip header that has 
> FLG.FEXTRA set, but XLEN is zero. Yes, I know this doesn't make a lot 
> of sense, but it is an edge condition that doesn't seem to be 
> explicitly ruled out in RFC 1952.

And therefore it is explicitly allowed.

> Anyway, your new gzip header skipping code doesn't like it. Neither 
> for that matter does gzopen or gunzip.

Well that's odd.  I am aware of that case and wrote the gzip header 
skipping to handle it.  I just tested it, and the new inflate seems to 
deal with it fine.  Also gzip has no problem with it.  (I haven't tried 
gzopen.)  I have attached my short gzip test file with a zero-length 
extra field.  Can you send me a gzip file that exhibits the problem?  
What happens when you try it?

mark

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foox.gz
Type: application/x-gzip
Size: 33 bytes
Desc: not available
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20021126/aa81ebfb/attachment.bin>
-------------- next part --------------



More information about the Zlib-devel mailing list