Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx5.public.one.com ([10.246.18.25])
	by mail6.local.one.com (Dovecot) with LMTP id NeNMLMDTU1nRkAEAsyOMew
	for <filtered@awaresystems.be>; Wed, 28 Jun 2017 16:11:17 +0000
X-HalOne-ID: 681a0a58-5c1c-11e7-bb21-b82a72d82f61
Received: from mail-oi0-f54.google.com (unknown [209.85.218.54])
	by mx5.public.one.com (Halon) with ESMTPS
	id 681a0a58-5c1c-11e7-bb21-b82a72d82f61;
	Wed, 28 Jun 2017 16:11:14 +0000 (UTC)
Received: by mail-oi0-f54.google.com with SMTP id l83so45361755oif.1
        for <filtered@awaresystems.be>; Wed, 28 Jun 2017 09:11:14 -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
         :date:from:to:in-reply-to:message-id:references:user-agent
         :mime-version:cc:subject:precedence:list-id:list-unsubscribe
         :list-archive:list-post:list-help:list-subscribe
         :content-transfer-encoding:sender:errors-to;
        bh=4yHqfbaUpa1uqtW/netvS7c2yBLcc889yegZdrbEIOo=;
        b=JsPD30YuHPiOxfqDDTv2/QiJe1aO/s/C3IiYTtmrJ0Ta3SOhvbOPbSWoSCBApJNA4I
         k6l2VXRXfWq9SvuBPZ6LTuhjNuSHPo7ZNpbyRnONr+6lkXe+vaQx9OJ31r6ZOk/PraY0
         /qURkfq9/xSjTO4I9+dp4yLqRJxIDKrMuWBUoAjhpaKVwzeFzFNp6GHhN0PfIemS0YIh
         56KKDOpuqNtvYPOmjw3ibmzc5r1iBWCMLw6C0hRITrR3AxuDC84dTzcsuxILrcoiF51h
         u81ZFYaNsWaKbGCFS+DfCkZ3s94MPbBWTM5tq93nf9ScYSqZa60+pRk8xZiXjknV0o3t
         Mxzw==
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: AKS2vOz+fC0DlvQXgNxQkpa6n3J2Z8kwrOUXhMtIXkwDozq8RrFrbEB8
	G3s2a4Pvl/XnzK+r0kyls/WTa9jtrXJV2krbHKDr1Q==
X-Received: by 10.202.52.4 with SMTP id b4mr6262307oia.221.1498666272965;
        Wed, 28 Jun 2017 09:11:12 -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 n81csp3709410oia;
        Wed, 28 Jun 2017 09:11:11 -0700 (PDT)
X-Received: by 10.28.207.66 with SMTP id f63mr3991302wmg.73.1498666271293;
        Wed, 28 Jun 2017 09:11:11 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1498666271; cv=none;
        d=google.com; s=arc-20160816;
        b=A/n1zZywOuRKSEjxl503bNobG+ZxR3fgTZGUm4pK0WeGVUidyapB60aybfNs/u0kRw
         QusmHxcR704SYYL8Xj6m3usJBMfzrVdIE4rv5GIp8PMcPTOa9ooKKSsZcP4at8DNtapP
         /6H1DEqBLBnnKzzTM6tUCysCSWE/urq4blJLnGXz8VLWFo7Xg1JBkUP3AzBIaOsuiazv
         Lm/9jB0LF0dKQEDQLTNuVAkUs1rocbQmzc1Pz2tagmBdM0KOIO6EqyI5v4lUffXitL9Y
         uLJOtDC4JRfRaoNytnsun32LOPNOWTwZ+Eyy1l7CXp8/y3yBfDgPxQVbr0FWSpPgYXCo
         pOFw==
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
         :cc:mime-version:user-agent:references:message-id:in-reply-to:to
         :from:date:arc-authentication-results;
        bh=4yHqfbaUpa1uqtW/netvS7c2yBLcc889yegZdrbEIOo=;
        b=tmwdRgZjdI1laHYz3upvXRQotFcD066hs2UB6Y8sPVjWTk3mXBpKkmL8D4m+bOvazP
         knRcszw/DgW3b28XfHFX4uufWS1/xVbic9co94OgShMsJ0AGfitloIDh9Ul6MN2BpGmJ
         mGiMYdYB72m9kZucn3MWiLVcuEb4SjoNZlQCkaFLPufawCOs+WedQJOCpXTWhK5xNcBP
         hOxnEDsWjqxcwvS89MEfdpXvQEx9smsDqQq77V2ketq3MzCJFDtXvv2adlfOkdz+H7oq
         azeo8xqyjKQhkmwc4RJ+/wnYcUHErQXRPu+GIwJiUSLPxtHbhLSLVW4aW88nhnaYkVYq
         kXcw==
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 m19si3314284wmb.57.2017.06.28.09.11.10;
        Wed, 28 Jun 2017 09:11:11 -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 0626035C061;
	Wed, 28 Jun 2017 11:09:45 -0500 (EST)
Received: from smtp.simplesystems.org (smtp.simplesystems.org [65.66.246.90])
	by lists.maptools.org (Postfix) with ESMTPS id 7512635C05E
	for <tiff@lists.maptools.org>; Wed, 28 Jun 2017 10:42:22 -0500 (EST)
Received: from scrappy.simplesystems.org (scrappy.simplesystems.org
	[65.66.246.73])
	by smtp.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	v5SFgKaB018430; Wed, 28 Jun 2017 10:42:20 -0500 (CDT)
Date: Wed, 28 Jun 2017 10:42:19 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@scrappy.simplesystems.org
To: Olivier Paquet <olivier.paquet@gmail.com>
In-Reply-To: <CAAcuQeZgiBE9GvFyncYdHbqrW=sB8yPS0roicPKXBjvJvzbnWg@mail.gmail.com>
Message-ID: <alpine.GSO.2.20.1706281033400.6797@scrappy.simplesystems.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>
User-Agent: Alpine 2.20 (GSO 67 2015-01-07)
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
	(smtp.simplesystems.org [65.66.246.90]);
	Wed, 28 Jun 2017 10:42:20 -0500 (CDT)
Cc: TIFF mailing list <tiff@lists.maptools.org>
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 Wed, 28 Jun 2017, 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.

I agree that implementing a hard limit on strip/tile size (including 
when writing) is beneficial.

The question is what the justification for using very large 
strips/tiles and what is the largest justifiable large strip/tile 
size?

For a very large image, if a strip is just one row, then it needs to 
be allowed to be large enough to support the maximum image width.

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/
