cvs commit: src/gnu/usr.bin/gzip gzip.h

David E. O'Brien obrien at FreeBSD.org
Sun May 2 16:07:50 PDT 2004


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 at isc.org>
  Patch by:       tjr
  
  Revision  Changes    Path
  1.4       +6 -3      src/gnu/usr.bin/gzip/gzip.h


More information about the cvs-src mailing list