2004.10.30 13:26 "Re: [Tiff] Possible bug in tiff2ps", by Tristan Hill
xres is a double, but in TIFFGetField(), which in turn calls _TIFFVGetField, we eventually get to this line in tif_dir.c, where the pointer is being treated as a float.:
The TIFFGetField() for TIFFTAG_XPOSITION also looks to have a similar problem.
Index: tiff2ps.c
===================================================================
RCS file: /cvs/maptools/cvsroot/libtiff/tools/tiff2ps.c,v
retrieving revision 1.29
diff -u -r1.29 tiff2ps.c
--- tiff2ps.c 28 Oct 2004 17:56:46 -0000 1.29
+++ tiff2ps.c 30 Oct 2004 13:24:42 -0000
@@ -542,7 +542,8 @@
double pw, double ph, double lm, double bm, int cnt)
{
uint32 w, h;
- double ox, oy, prw, prh;
+ float ox, oy;
+ double prw, prh;
double scale = 1.0;
double left_offset = lm * PS_UNIT_SIZE;
double bottom_offset = bm * PS_UNIT_SIZE;