home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sources / bugs / 309 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!sgi!fido!loki.esd.sgi.com!jeffg
  2. From: jeffg@loki.esd.sgi.com (Jeff C. Glover)
  3. Newsgroups: comp.sources.bugs
  4. Subject: Re: Widespread bug in "compress" and GIF compressors
  5. Date: 18 Dec 1992 14:53:19 GMT
  6. Organization: Silicon Graphics, Inc., Mountain View, CA
  7. Lines: 17
  8. Message-ID: <1gsokvINNb2@fido.asd.sgi.com>
  9. References: <BzEzAM.3Gv.2@cs.cmu.edu>
  10. NNTP-Posting-Host: loki.esd.sgi.com
  11. Keywords: LZW, compress, GIF
  12.  
  13. In article <BzEzAM.3Gv.2@cs.cmu.edu> tgl+@cs.cmu.edu (Tom Lane) writes:
  14. >I've discovered a small bug in the standard Unix compress(1) utility.
  15. >The bug is also present in many derived implementations of LZW compression,
  16. >notably common GIF graphics file writers such as ppmtogif and xv.
  17.  
  18. I found the "bug" in ppmtogif and made the recommended change.
  19.  
  20. I then ran the fixed ppmtogif against 2763 GIF images, comparing the
  21. resulting ppm files (using giftoppm).
  22.  
  23. Over the 2763 GIF images, using the fixed version would have saved
  24. 6894328 bytes by re-encoding.  However, about a dozen files reported
  25. differences in the resulting ppm files.  I'm tracking down each, but
  26. the differences are subtle, if visible at all (header diffs?).
  27.  
  28. Jeff
  29. jeffg@sgi.com
  30.