Date: Sun, 2 May 2004 16:07:49 -0700 (PDT) From: "David E. O'Brien" <obrien@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/gnu/usr.bin/gzip gzip.h Message-ID: <200405022307.i42N7n0K003406@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
obrien 2004/05/02 16:07:49 PDT
FreeBSD src repository
Modified files:
gnu/usr.bin/gzip gzip.h
Log:
Gzip assumes 'unsigned long' is 32-bits wide and depends on this.
One thing Gzip does is implicitly by store the size of a file into an
'unsigned long' rather than explicitly compute the remainder modulo 2^32
(see RFC 1952 section 2.3.1 "ISIZE"). Thus an extracted file size is
does not equal the original size (mod 2^32) for files larger than 4GB.
This manifests itself in errors such as:
zcat: bigfile.gz: invalid compressed data--length error
PR: 66008, 66009
Submitted by: Peter Losher <Peter_Losher@isc.org>
Patch by: tjr
Revision Changes Path
1.4 +6 -3 src/gnu/usr.bin/gzip/gzip.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405022307.i42N7n0K003406>
