Return-Path: <tiff-bounces@lists.maptools.org>
Delivered-To: info@awaresystems.be
Received: (qmail 27353 invoked from network); 18 Sep 2008 06:44:53 -0000
Received: from chuck.telenet-ops.be ([195.130.136.1])
          (envelope-sender <tiff-bounces@lists.maptools.org>)
          by angelia.telenet-ops.be (qmail-ldap-1.03) with SMTP
          for <info@awaresystems.be>; 18 Sep 2008 06:44:53 -0000
Received: from zimbu.telenet-ops.be (zimbu.telenet-ops.be [195.130.136.11])
	by chuck.telenet-ops.be (8.13.1/8.13.1) with ESMTP id m8I6iq1u009088
	for <info@awaresystems.be>; Thu, 18 Sep 2008 08:44:52 +0200
Received: from pierre.telenet-ops.be (pierre.telenet-ops.be [195.130.132.34])
	by zimbu.telenet-ops.be (Postfix) with ESMTP id A509740003
	for <info@awaresystems.be>; Thu, 18 Sep 2008 08:44:52 +0200 (CEST)
Received: from apate.telenet-ops.be ([195.130.132.43])
	by pierre.telenet-ops.be with bizsmtp
	id G6ks1a00U0wL6ob016ksJf; Thu, 18 Sep 2008 08:44:52 +0200
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153])
	by apate.telenet-ops.be (Postfix) with ESMTP id 1DC0927EC11
	for <info@awaresystems.be>; Thu, 18 Sep 2008 08:44:51 +0200 (CEST)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m8I6eYkO026318;
	Thu, 18 Sep 2008 02:42:45 -0400
Received: from 1112366.t-wp.de (1112366.t-wp.de [93.188.240.60])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m8I6eUj4026315
	for <tiff@lists.maptools.org>; Thu, 18 Sep 2008 02:40:31 -0400
Received: (qmail 21656 invoked from network); 18 Sep 2008 08:40:28 +0200
Received: from p57a815bc.dip0.t-ipconnect.de (HELO linux.local) (87.168.21.188)
	by 1112366.t-wp.de with SMTP; 18 Sep 2008 08:40:27 +0200
Received: by linux.local (Postfix, from userid 102)
	id B40D6866E0; Thu, 18 Sep 2008 08:40:46 +0200 (CEST)
Received: from localhost (unknown [127.0.0.1])
	by linux.local (Postfix) with ESMTP id 83D15865C7
	for <tiff@lists.maptools.org>; Thu, 18 Sep 2008 06:40:46 +0000 (UTC)
Received: from linux.local ([127.0.0.1])
	by localhost (proxy2 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
	id 14960-03 for <tiff@lists.maptools.org>;
	Thu, 18 Sep 2008 08:40:46 +0200 (CEST)
Received: from exchange.niederdreisbach.rowe.de (unknown [192.168.251.11])
	by linux.local (Postfix) with ESMTP id 67CEF86596
	for <tiff@lists.maptools.org>; Thu, 18 Sep 2008 08:40:46 +0200 (CEST)
Received: from [10.10.1.83] ([10.10.1.83]) by exchange.niederdreisbach.rowe.de
	with Microsoft SMTPSVC(5.0.2195.6713); 
	Thu, 18 Sep 2008 08:40:26 +0200
Message-ID: <48D1F7C2.3010803@rowe.de>
Date: Thu, 18 Sep 2008 08:40:02 +0200
From: =?ISO-8859-15?Q?Burkhard_Sch=F6lpen?= <burkhard.schoelpen@rowe.de>
User-Agent: Thunderbird 2.0.0.16 (X11/20080724)
MIME-Version: 1.0
To: tiff@lists.maptools.org
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
X-OriginalArrivalTime: 18 Sep 2008 06:40:26.0783 (UTC)
	FILETIME=[6F5BA2F0:01C91959]
X-TM-AS-Product-Ver: SMEX-7.5.0.1256-5.5.1027-16164.004
X-TM-AS-Result: No--0.201200-5.000000-31
X-TM-AS-User-Approved-Sender: No
X-TM-AS-User-Blocked-Sender: No
X-Copyrighted-Material: Wichtiger Text
Cc: "Frisch, Stephan" <Stephan.Frisch@rowe.de>
Subject: [Tiff] tiff2pdf: t2p_read_tiff_size allocates length * width bytes
 processing jpeg compressed input images
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-SpamCatcher-Score: 50 [XX]

Hello,

I think there is a bug in tiff2pdf.c (at least versions 3.7.2 to 3.8.2). 
  Processing jpeg compressed input tiff files with the dimension of 
length * width pixels, a buffer of length * width bytes is allocated in 
memory, because t2p_read_tiff_size is set to this value. I think there 
is a return statement missing in the function t2p_read_tiff_size (at the 
end of the #ifdef JPEG_SUPPORT section), because otherwise the buffer 
size is set to a fixed value (t2p->tiff_datasize=TIFFScanlineSize(input) 
* t2p->tiff_length) which is absolutely different from the size 
calculated a few lines of code above.

Additionally it would be a convenient feature, if the input image would 
not be placed in memory as a whole, because this is a waste of memory, 
which is actually not necessary and obviously leads to crashes if length 
* width is bigger than the available amount of RAM. I think the jpeg 
stripes could be processed by and by without holding the rest of the 
image in memory.

Sincerely,
Burkhard Schölpen



This E-mail is solely intended for the addressed person or organization and contains confidential and/or legally protected information. 
If you are not the right addressee or if you received this E-mail by mistake, please inform the addresser by return and delete this E-mail. 
The illegal copying as well as the unauthorized transmission of this E-mail is not permitted. 

Conventional E-mails are not protected against the access by a third party and therefore, the confidentiality is also possibly not preserved.
Hence, we are not liable for the intactness of E-mails after they left our domain. 
This nonliability is only valid as far as legally permissible.                                                                                                                                   
                                                                                                                      
                                                            
                                                                       
                                                 

ROTH + WEBER GmbH
Sitz der Gesellschaft:
Niederdreisbach
Registergericht Montabaur
HRB 5580

Geschaeftsfuehrer
Johannes Roth
Gerhard Baecker



_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
