
Thread
2009.08.28 02:09 "Re: [Tiff] tiff 3.9.0 writes bad files", by Bob Friesenhahn
Libtiff 3.9.0 is definitely botched. It was broken by a cast that I added to the code on the day of the release. This is the patch needed to resolve the problem. In the mean time I will create a fixed release.
Index: tif_write.c
=================================================================== RCS file: /cvs/maptools/cvsroot/libtiff/libtiff/tif_write.c,v retrieving revision 1.22.2.3
diff -u -r1.22.2.3 tif_write.c
--- tif_write.c 20 Aug 2009 20:23:52 -0000 1.22.2.3
+++ tif_write.c 28 Aug 2009 02:07:19 -0000
@@ -1,4 +1,4 @@
-/* $Id: tif_write.c,v 1.22.2.3 2009-08-20 20:23:52 bfriesen Exp $ */ +/* $Id: tif_write.c,v 1.22.2.2 2009-06-03 23:49:30 fwarmerdam Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@@ -630,7 +630,7 @@
if( td->td_stripbytecount[strip] != 0
&& td->td_stripoffset[strip] != 0
- && (tsize_t) td->td_stripbytecount[strip] >= cc )
+ && td->td_stripbytecount[strip] >= cc )
{
/*
* There is already tile data on disk, and the new tile
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/