Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-r.b-one.net (mx-r.one.com [91.198.169.249])
	by mail9.b-one.net (Postfix) with ESMTP id 1D10240080A
	for <info@awaresystems.be>; Sat, 20 Mar 2010 01:16:11 +0100 (CET)
Received: by mx-r.b-one.net (Postfix, from userid 106)
	id 144055B17E12; Sat, 20 Mar 2010 01:16:11 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=4 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144]) by
 mx-r.b-one.net (Postfix) with ESMTP id 128D35B17E12 for
 <info@awaresystems.be>; Sat, 20 Mar 2010 01:16:09 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id E3BA81D18E5B4; Fri, 19 Mar 2010
 19:14:19 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org
 [65.66.246.74]) by lists.maptools.org (Postfix) with ESMTPS id D2AD21D20342C
 for <tiff@lists.maptools.org>; Fri, 19 Mar 2010 18:43:51 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org
 [65.66.246.65]) by blade.simplesystems.org (8.13.8+Sun/8.13.8) with ESMTP id
 o2JNhmC5017803; Fri, 19 Mar 2010 18:43:48 -0500 (CDT)
Date: Fri, 19 Mar 2010 18:43:48 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Adam Goode <adam@spicenitz.org>
In-Reply-To: <4BA3C00D.7000803@spicenitz.org>
Message-ID: <alpine.GSO.2.01.1003191831040.29281@freddy.simplesystems.org>
References:
 <978714.1268859583623.JavaMail.root@elwamui-cypress.atl.sa.earthlink.net>
 <4BA170BF.8080907@spicenitz.org>
 <64b49b171003171940m7048806dk57f4b15cc6a325ee@mail.gmail.com>
 <4BA39DA8.3070806@spicenitz.org>
 <alpine.GSO.2.01.1003191136410.1592@freddy.simplesystems.org>
 <4BA3C00D.7000803@spicenitz.org>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
 (blade.simplesystems.org [65.66.246.90]); Fri, 19 Mar 2010 18:43:48 -0500
 (CDT)
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] TIFFVStripSize overflow, JPEG decoding
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On Fri, 19 Mar 2010, Adam Goode wrote:
>
> Oh yes, it should definitely be using 64-bits on 64-bit architectures.
> But it should also use 64-bits on 32-bit architectures.

That would be quite odd.  Instead of taking this approach, libtiff 4
interface elements have only been enlarged where necessary so that the 
API is minimally impacted.

> Except for address space considerations (malloc, mmap, etc), the 32-bit
> libtiff should be able to read anything the 64-bit libtiff can. Right
> now it doesn't let me read the tags out of a (crazy) TIFF file on a
> 32-bit system that it does on a 64-bit system. I never want to read a
> strip, just the tags. A strip read would totally fail on 32-bit (because
> of address space) and almost certainly on 64-bit (because of actual memory).

A tag read could fail as well since the tag value may be very large. 
The tag value is retrieved when the tag is retrieved.

Usually 32-bit users don't expect to be able to do everything that a 
64-bit user can do because of limits on memory allocation size.

Libtiff 4 might still have some bugs so if you find a bug, please 
submit the patch (via the bugzilla tracking system) to fix it.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
