home *** CD-ROM | disk | FTP | other *** search
- From: ericb@hplsla.hp.com (Eric Backus)
- Date: Tue, 22 Dec 1992 23:39:49 GMT
- Subject: Re: Widespread bug in "compress" and GIF compressors
- Message-ID: <147850004@hplsla.hp.com>
- Organization: HP Lake Stevens, WA
- Path: sparky!uunet!spool.mu.edu!wupost!sdd.hp.com!hpscit.sc.hp.com!cupnews0.cup.hp.com!news1.boi.hp.com!hp-pcd!hplsla!ericb
- Newsgroups: comp.compression
- References: <BzEzAM.3Gv.2@cs.cmu.edu>
- Lines: 16
-
- Tom Lane writes:
- >I've discovered a small bug in the standard Unix compress(1) utility.
- >The bug is also present in many derived implementations of LZW compression,
- >notably common GIF graphics file writers such as ppmtogif and xv.
- >
- >The bug does NOT pose any risk of loss of data. What it does do is to cause
- >inefficient compression of some files containing many runs of zero
- >characters (nulls).
-
- Wow, thanks! Who'd have thought there was a bug there. Note that
- cpio and tar tend to put out strings of null bytes, to pad out
- archives to a multiple of the blocksize, so this could help a little
- when compressing those archives.
- --
- Eric Backus
- ericb@lsid.hp.com
-