bug-gzip
[Top][All Lists]
Advanced

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

Re: gzip test file+1byte gives unexpected end of file


From: Rob J. Epping
Subject: Re: gzip test file+1byte gives unexpected end of file
Date: Sun, 12 May 2013 20:03:40 +0200

On Sun, May 12, 2013 at 4:49 AM, Paul Eggert <address@hidden> wrote:
> Ah, OK, if I'm understanding you correctly, the problem
> is merely the wording of the diagnostics.  Sometimes gzip is
> saying "trailing garbage ignored", sometimes "unexpected EOF".
> This has to do with, internally, how it looks for the gzip
> header; the exact spelling of the diagnostic isn't that
> significant.  Since one can concatenate gzip files, the
> distinction between trailing garbage and unexpected EOF
> isn't always clear, anyway.

Initial goal was to find the end of a gzip file in a concatenated binary file.
in the test case empty file I would expect the result and exit status
to be "unexpected end of file" when extracting less than 20 bytes from
the test-file. I would expect the result and exit status to be "OK"
using 20 bytes and I would expect the  result and exit status to be
"decompression OK, trailing zero bytes ignored" using 21 bytes or
more.

In the cases I've seen so far all test results on 21-byte files (i.e.
empty + 1 byte) is "to short" which is incorrect.
--
GRTNX,
RobJE



reply via email to

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