Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx9.public.one.com ([195.47.247.105])
	by mail6.local.one.com (Dovecot) with LMTP id JoteH57wU1kmsAEAsyOMew
	for <filtered@awaresystems.be>; Wed, 28 Jun 2017 18:27:52 +0000
X-HalOne-ID: 7db80c9b-5c2f-11e7-9a4c-246e961730ec
Received: from mail-oi0-f54.google.com (unknown [209.85.218.54])
	by mx9.public.one.com (Halon) with ESMTPS
	id 7db80c9b-5c2f-11e7-9a4c-246e961730ec;
	Wed, 28 Jun 2017 18:27:50 +0000 (UTC)
Received: by mail-oi0-f54.google.com with SMTP id l83so48497699oif.1
        for <filtered@awaresystems.be>; Wed, 28 Jun 2017 11:27:50 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-original-authentication-results:x-gm-message-state:delivered-to
         :message-id:date:from:user-agent:mime-version:to:references
         :in-reply-to:subject:precedence:list-id:list-unsubscribe
         :list-archive:list-post:list-help:list-subscribe
         :content-transfer-encoding:sender:errors-to;
        bh=lsBpGw0kCHTkQ2D0JkV3J3SfjJNt5C1nv06kruTI1MI=;
        b=e7rPOMI4eJ65eUFgRqZ4SbdO2Sf4IYu9V484PgQowFpDpXy7Pjdk0auOsfQH1gWROB
         hqexab7fEld8bAji3cPLtfEztIvImXDr/qgik0VVB4zs/TvRwk5G+DovqP/dAHmpSiMN
         N8YYSN9zoRKV6eyj2valz5tPSCQ5ouH+ju59PGjAGsHLbsAAWlt/ad2zkVjRONFH1Q00
         WFA9MEXa2NQmGh5Y/4Q6Y62AEWbKLfwzRJY+fQitPQSj4bBewdb/GwvYwU6Sbskthi/I
         31mxStio0Ut9VsZbtQSuqx1a/fJ3nwSSFZEy1Cn4HRy1qlH2HUiWenjonpz47mgPJhyP
         qPmg==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
X-Gm-Message-State: AKS2vOxM8DZdQRm5ZOhQALPeLtqumlFwf0jpCi45b+xgSYHkEhRfwUyS
	XNXMc7WXYb5viFYzHFKDsiitR7qDcW16odryEcRmtQ==
X-Received: by 10.202.0.65 with SMTP id 62mr7498303oia.86.1498674469537;
        Wed, 28 Jun 2017 11:27:49 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.202.64.84 with SMTP id n81csp3834421oia;
        Wed, 28 Jun 2017 11:27:48 -0700 (PDT)
X-Received: by 10.223.150.163 with SMTP id u32mr21456081wrb.195.1498674468440;
        Wed, 28 Jun 2017 11:27:48 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1498674468; cv=none;
        d=google.com; s=arc-20160816;
        b=YoQGvJhc4OWGX4IXpCw/TTwpnmeWMRQJfQMcNGVQQgAcMaMMZsaVpcPrLvQfuzvLke
         lvDl3gYDG/Y0LNvDiubdsD2Y3fAmyZoxG+9pBawfjOdVNCcCKNI76siW2lsR0nyu5ZiQ
         6Bgq28C+UI5ieMf1xzb/xEEWL1BuFo+OAorISi8Ycy4DkNdzQPnxVyLnxChWeLMh8njT
         HHrgSqPowSt0+3r1DYGyr7twI79fMjMYnYOacX3bCiVOByzlD1PZRgIZlhq3gp5mdXmW
         vQQlKlPgUicStYDVzMVAUsNH3mcOihaRB1UDB7/dYQcgstBBGMq7dcJ7qYimWsKzQYEP
         M1Kw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help
         :list-post:list-archive:list-unsubscribe:list-id:precedence:subject
         :in-reply-to:references:to:mime-version:user-agent:from:date
         :message-id:arc-authentication-results;
        bh=lsBpGw0kCHTkQ2D0JkV3J3SfjJNt5C1nv06kruTI1MI=;
        b=HrMI0QChaMIiuQNJtw7hcy2JSReoHE9oITu52UGnlpkW+3kQJ0QPa7N++jJle4cepb
         zLIi4kzxFb57FmnW2IAH8zvblSyHjbJCdKAi5epEnu5yGFRPQMPTOBFgzBvbiE3YWcvH
         ziOV5YBNC4o5aVcADw1sAbV99LH+UcJYDK5GCF0KeONhsNRdjsGMDVppvyAqcuHuS/UZ
         Gle+vULkSV0hA3S8SG8hjZFMKlptyH6tynlP/SzjXOR6r1ZqnaM1v3EXSfcIfn+nuTu3
         HTYZ8d/jP9N0CKRZv084jNp0khH+gB2f60uRJ5L4Uo7qCs+VLV6xwTshVlO9LJOlLmQd
         cAAw==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
Return-Path: <tiff-bounces@lists.maptools.org>
Received: from lists.maptools.org (ks365428.kimsufi.com. [94.23.4.142])
        by mx.google.com with ESMTP id 6si5935764wmn.55.2017.06.28.11.27.47;
        Wed, 28 Jun 2017 11:27:48 -0700 (PDT)
Received-SPF: neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=94.23.4.142;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id CED6735C067;
	Wed, 28 Jun 2017 13:25:58 -0500 (EST)
Received: from polaris.osa.pri.ee (osa.pri.ee [213.219.84.188])
	by lists.maptools.org (Postfix) with ESMTP id BF33835C064
	for <tiff@lists.maptools.org>; Wed, 28 Jun 2017 13:08:59 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
	by polaris.osa.pri.ee (Postfix) with ESMTP id DAFF86E69A
	for <tiff@lists.maptools.org>; Wed, 28 Jun 2017 21:08:58 +0300 (EEST)
X-Virus-Scanned: amavisd-new at osa.pri.ee
Received: from polaris.osa.pri.ee ([127.0.0.1])
	by localhost (osa.pri.ee [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id JYCh245utQRU for <tiff@lists.maptools.org>;
	Wed, 28 Jun 2017 21:08:07 +0300 (EEST)
Received: from [192.168.1.208] (10-170-190-90.dyn.estpak.ee [90.190.170.10])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client did not present a certificate)
	by polaris.osa.pri.ee (Postfix) with ESMTPSA id CFBEB6E652
	for <tiff@lists.maptools.org>; Wed, 28 Jun 2017 21:08:06 +0300 (EEST)
Message-ID: <5953F085.1020906@osa.pri.ee>
Date: Wed, 28 Jun 2017 21:08:05 +0300
From: Paavo Helde <paavo@osa.pri.ee>
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64;
	rv:25.8) Gecko/20151117 FossaMail/25.1.9
MIME-Version: 1.0
To: tiff@lists.maptools.org
References: <CABoQFUADrHiYLs7=2gVoRGkpex3P2jHWRPCZhehS8+OQRxTvYQ@mail.gmail.com>	<1588415.R2acFO4bS3@even-i700>	<CAAcuQeYOCExBMHb15EsYpUttGKyeJ0y=Xmqtf-nkUgM_o61GXQ@mail.gmail.com>	<1879895.yTvgkPFqHA@even-i700>
	<CAAcuQeZgiBE9GvFyncYdHbqrW=sB8yPS0roicPKXBjvJvzbnWg@mail.gmail.com>
In-Reply-To: <CAAcuQeZgiBE9GvFyncYdHbqrW=sB8yPS0roicPKXBjvJvzbnWg@mail.gmail.com>
Subject: Re: [Tiff] Excessive memory allocation while chopping strips
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 28.06.2017 18:22, Olivier Paquet wrote:
> I think you misunderstood me. I meant the problem that uncompressed 
> strip size can be quite large and, as far as I know, can't be 
> validated without decompressing the data. A hard limit on strip size 
> would cover that neatly and sane applications will keep it reasonable 
> anyway.

If I had a vote a would vote against imposing arbitrary size limits. For 
example, our company is making software for customers which includes 
libtiff and the customers expect it to read *any* TIFF file which they 
happen to  throw on it, both now and 10 years in the future. If the 
software does not cope with it, they blame us and don't care this is 
because we have forgotten to switch on some obscure flag first appearing 
in libtiff version x.y.z and which would have restored the libtiff 
capability to read any files it is capable to.

And yes, these are the customers having 20 GB TIFF files (has happened) 
and 10 GB strips (will happen soon). There is no "sane" limit.

Best regards
Paavo

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