bug-gzip
[Top][All Lists]
Advanced

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

bug#33878: zcat vs zcat -f -- different output


From: Paul Eggert
Subject: bug#33878: zcat vs zcat -f -- different output
Date: Wed, 26 Dec 2018 10:03:57 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

Namikaze Minato wrote:

Do you know what could be happening?

When gzip -cdf sees junk input data, it simply copies it to standard output; this behavior is documented in the gzip manual (look for --force). Your input files have NUL-byte padding at the end, contrary to Internet RFC 1952.

Do you know how I could try to reproduce the problem on
non-confidential data for you to be able to debug?

$ (gzip </dev/null; printf '\0') >t.gz
$ gzip -cd <t.gz | od -c
0000000
$ gzip -cdf <t.gz | od -c
0000000  \0
0000001

Though it's not a bug....





reply via email to

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