AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2000.03.15 17:44 "Some CCITT Group 3 TIFFs crash libtiff", by Jason Summers
2000.03.15 18:00 "Re: Some CCITT Group 3 TIFFs crash libtiff", by Frank Warmerdam
2000.03.17 16:42 "Re: Some CCITT Group 3 TIFFs crash libtiff", by Jason Summers
2000.03.17 18:34 "Re: Some CCITT Group 3 TIFFs crash libtiff", by Frank Warmerdam
2000.03.27 17:04 "Re: Some CCITT Group 3 TIFFs crash libtiff", by Nalin Dahyabhai
2000.03.28 18:14 "fax2ps incorrect BoundingBox", by Nalin Dahyabhai
2000.03.15 18:36 "Re: Some CCITT Group 3 TIFFs crash libtiff", by Helge Blischke
2000.03.17 16:51 "Re: Some CCITT Group 3 TIFFs crash libtiff", by Jason Summers
2000.03.17 17:24 "Re: Some CCITT Group 3 TIFFs crash libtiff", by Peter Smith
2000.03.21 14:57 "Re: Some CCITT Group 3 TIFFs crash libtiff", by Thad Humphries
2000.03.21 21:23 "Re: Some CCITT Group 3 TIFFs crash libtiff", by Rick LaMont
2000.03.22 06:08 "Re: Some CCITT Group 3 TIFFs crash libtiff", by Tom Lane

2000.03.27 17:04 "Re: Some CCITT Group 3 TIFFs crash libtiff", by Nalin Dahyabhai

On Fri, Mar 17, 2000 at 01:34:17PM -0500, Frank Warmerdam wrote:

Good news, I have worked out what the bug is. In the last few months the fax3 code was changed to handle files wider (or longer?) than 65536 pixels and part of this was converting the runs arrays from uint16 to uint32.

Turns out this change also broke fax2ps. The fix is trivial (below).

Cheers,

Nalin

================================================================================

--- tools/fax2ps.c      Mon Mar 27 11:44:08 2000
+++ tools/fax2ps.c      Mon Mar 27 11:44:35 2000

@@ -62,7 +62,7 @@
  * March 13-15, 1995.
  */
 static void

-printruns(unsigned char* buf, uint16* runs, uint16* erun, uint32 lastx) +printruns(unsigned char* buf, uint32* runs, uint32* erun, uint32 lastx)

 {
     static struct {
        char white, black;