Return-Path: <tiff-bounces@remotesensing.org>
Received: from inav006.isp.belgacom.be (inav006.isp.belgacom.be [195.238.2.75])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i9UDQk2o016411
        for <joris.at.lebbeke@skynet.be>; Sat, 30 Oct 2004 15:26:46 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inas010.isp.belgacom.be (localhost [127.0.0.1])
        by inav006.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id i9UDQbta028721
        for <joris.at.lebbeke@skynet.be>; Sat, 30 Oct 2004 15:26:38 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inmx015.isp.belgacom.be (inmx015.isp.belgacom.be [195.238.2.218])
        by inas010.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id i9UDQUrC004996
        for <joris.at.lebbeke@skynet.be>; Sat, 30 Oct 2004 15:26:31 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx015.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i9UDQOxO004809
        for <joris.at.lebbeke@skynet.be>; Sat, 30 Oct 2004 15:26:26 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id CFC4B42BCF5; Sat, 30 Oct 2004 09:26:09 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from mra03.ex.eclipse.net.uk (mra03.ex.eclipse.net.uk
	[212.104.129.88])
	by xserve.flids.com (Postfix) with ESMTP id 5842842BCE2
	for <tiff@remotesensing.org>; Sat, 30 Oct 2004 09:26:08 -0400 (EDT)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mra03.ex.eclipse.net.uk (Postfix) with ESMTP id 91FF82E2BA9
	for <tiff@remotesensing.org>; Sat, 30 Oct 2004 14:19:41 +0100 (BST)
Received: from mra03.ex.eclipse.net.uk ([127.0.0.1])
	by localhost (mra03.ex.eclipse.net.uk [127.0.0.1]) (amavisd-new,
	port 10024) with LMTP id 18018-01-66 for <tiff@remotesensing.org>;
	Sat, 30 Oct 2004 14:19:41 +0100 (BST)
Received: from tiber.pa.cehill.co.uk (tiber.cehill.co.uk [82.152.6.113])
	by mra03.ex.eclipse.net.uk (Postfix) with ESMTP id C2DE72E2B71
	for <tiff@remotesensing.org>; Sat, 30 Oct 2004 14:19:40 +0100 (BST)
Received: from host115.cehill.co.uk ([82.152.6.115] helo=marge.cehill.co.uk)
	by tiber.pa.cehill.co.uk with smtp (Exim 4.42) id 1CNtF7-0002So-GJ
	for tiff@remotesensing.org; Sat, 30 Oct 2004 14:26:05 +0100
Received: by marge.cehill.co.uk (sSMTP sendmail emulation);
	Sat, 30 Oct 2004 14:26:05 +0100
Date: Sat, 30 Oct 2004 14:26:05 +0100
From: Tristan Hill <stan@saticed.me.uk>
To: tiff@remotesensing.org
Subject: Re: [Tiff] Possible bug in tiff2ps
Message-ID: <20041030132605.GB16735@marge.cehill.co.uk>
References: <mailman.83.1098908537.515.tiff@remotesensing.org>
	<20041027204046.GF5757@lucent.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="OgqxwSJOaUobr8KG"
Content-Disposition: inline
In-Reply-To: <20041027204046.GF5757@lucent.com>
User-Agent: Mutt/1.5.6i
X-Spam-Score: 0.0 (/)
X-Virus-Scanned: by Eclipse VIRUSshield at eclipse.net.uk
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: d617e3f98a9915398f7c0140879fb519


--OgqxwSJOaUobr8KG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Oct 27, 2004 at 03:47:49PM +0000, Peter Fales wrote:
> 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.


--OgqxwSJOaUobr8KG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="tiff2ps.c.patch"

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;

--OgqxwSJOaUobr8KG
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff

--OgqxwSJOaUobr8KG--
