Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-s.b-one.net (mx-s.one.com [91.198.169.250])
	by mail9.b-one.net (Postfix) with ESMTP id 36DE140080A
	for <info@awaresystems.be>; Tue, 16 Mar 2010 22:26:17 +0100 (CET)
Received: by mx-s.b-one.net (Postfix, from userid 106)
	id 2BC3C660E985; Tue, 16 Mar 2010 22:26:17 +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-s.b-one.net (Postfix) with ESMTP id 4C9D1660E985 for
 <info@awaresystems.be>; Tue, 16 Mar 2010 22:26:16 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id 2743D1D18F544; Tue, 16 Mar 2010
 16:24:02 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org
 [65.66.246.74]) by lists.maptools.org (Postfix) with ESMTPS id 8368F1D18F99C
 for <tiff@lists.maptools.org>; Tue, 16 Mar 2010 16:08:56 -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
 o2GL8s1w006311; Tue, 16 Mar 2010 16:08:54 -0500 (CDT)
Date: Tue, 16 Mar 2010 16:08:54 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Lee Cooper <lee-cooper@earthlink.net>
In-Reply-To:
 <20044655.1268768733903.JavaMail.root@mswamui-backed.atl.sa.earthlink.net>
Message-ID: <alpine.GSO.2.01.1003161601460.1592@freddy.simplesystems.org>
References:
 <20044655.1268768733903.JavaMail.root@mswamui-backed.atl.sa.earthlink.net>
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]); Tue, 16 Mar 2010 16:08:54 -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 Tue, 16 Mar 2010, Lee Cooper wrote:

> I am trying to develop software to support a new tiff file source of 
> large medical images.  Using libtiff I am encountering problems with 
> TIFFOpen, I suspect because the dimensions are causing overflow of 
> 32-bit variables (image dimensions in the tens-of-thousands).

I forget the exact JPEG limit, but I see that these TIFFs are JPEG 
compressed organized as strips and the strip width is close to the 
JPEG limits.  Perhaps this is where some overflow is happening (if it 
is happening).

Feel free to test with my free software (GraphicsMagick, 
http://www.GraphicsMagick.org/) with logging enabled
(-debug coder,exception) since that helps to see many details.

You forgot to tell us what operating system, compiler, and build 
options that you used.  Libtiff has certainly been used on files of 
this size but perhaps there is something unusal about your files or 
the build is defective.

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/
