Return-Path: <tiff-bounces@lists.osgeo.org>
Received: from mailgate215.isp.belgacom.be ([195.238.22.47])
          by mailfep028.skynet.be
          (InterMail vM.8.04.03.28.4 201-2389-100-182-103-20180124)
          with ESMTP
          id <20201208210448.EJPC11451.mailfep028.skynet.be@mailgate215.isp.belgacom.be>
          for <chris.lindelaan@skynet.be>; Tue, 8 Dec 2020 22:04:48 +0100
Authentication-Results: mx201.skynet.be; dkim=none (message not signed) header.i=none; spf=None smtp.pra=tiff-bounces@lists.osgeo.org; spf=Pass smtp.mailfrom=tiff-bounces@lists.osgeo.org; spf=Pass smtp.helo=postmaster@lists.osgeo.org
Received-SPF: None (mx201.skynet.be: no sender authenticity
  information available from domain of
  tiff-bounces@lists.osgeo.org) identity=pra;
  client-ip=140.211.15.3; receiver=mx201.skynet.be;
  envelope-from="tiff-bounces@lists.osgeo.org";
  x-sender="tiff-bounces@lists.osgeo.org";
  x-conformance=sidf_compatible
Received-SPF: Pass (mx201.skynet.be: domain of
  tiff-bounces@lists.osgeo.org designates 140.211.15.3 as
  permitted sender) identity=mailfrom; client-ip=140.211.15.3;
  receiver=mx201.skynet.be;
  envelope-from="tiff-bounces@lists.osgeo.org";
  x-sender="tiff-bounces@lists.osgeo.org";
  x-conformance=sidf_compatible; x-record-type="v=spf1";
  x-record-text="v=spf1 mx a:mail.osgeo.org a:lists.osgeo.org
  a:mail.osgeo.osuosl.org a:tracsvn.osgeo.osuosl.org -all"
Received-SPF: Pass (mx201.skynet.be: domain of
  postmaster@lists.osgeo.org designates 140.211.15.3 as
  permitted sender) identity=helo; client-ip=140.211.15.3;
  receiver=mx201.skynet.be;
  envelope-from="tiff-bounces@lists.osgeo.org";
  x-sender="postmaster@lists.osgeo.org";
  x-conformance=sidf_compatible; x-record-type="v=spf1";
  x-record-text="v=spf1 mx a:mail.osgeo.org a:lists.osgeo.org
  a:mail.osgeo.osuosl.org a:tracsvn.osgeo.osuosl.org -all"
X-Ironport-Dmarc-Check-Result: validskip
IronPort-SDR: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XcrnA9zZxI61Hb?=
 =?us-ascii?q?T98neZr+CuI/5IQmqK4wGX0YjNBRpAmrR80ZKd84NECptFMXEFmxbW/N?=
 =?us-ascii?q?gugwUNfc7zR544W44VDdMRdR9HbEuxhy+U7vU=3D?=
Received: from osgeo6.osgeo.osuosl.org (HELO lists.osgeo.org) ([140.211.15.3])
  by mx201.skynet.be with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 08 Dec 2020 22:04:46 +0100
Received: from osgeo6.osgeo.osuosl.org (localhost [127.0.0.1])
	by lists.osgeo.org (Postfix) with ESMTP id D1F6761445F3;
	Tue,  8 Dec 2020 13:04:39 -0800 (PST)
Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net
 [217.70.183.198])
 by lists.osgeo.org (Postfix) with ESMTPS id 872DD6146622
 for <tiff@lists.osgeo.org>; Tue,  8 Dec 2020 13:04:38 -0800 (PST)
X-Originating-IP: 82.240.16.225
Received: from even-i700.localnet (mla78-1-82-240-16-225.fbx.proxad.net
 [82.240.16.225]) (Authenticated sender: test@spatialys.com)
 by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 3A6BCC0003;
 Tue,  8 Dec 2020 21:04:36 +0000 (UTC)
From: Even Rouault <even.rouault@spatialys.com>
To: Nalini Vishnoi <nvishnoi@mathworks.com>
Cc: "tiff@lists.osgeo.org" <tiff@lists.osgeo.org>
Date: Tue, 08 Dec 2020 22:04:35 +0100
Message-ID: <4855590.T0D946Zz4O@even-i700>
User-Agent: KMail/5.1.3 (Linux/4.4.0-194-generic; KDE/5.18.0; x86_64; ; )
In-Reply-To: <BL0PR05MB485257A602415DA8CCF0194CD5CD0@BL0PR05MB4852.namprd05.prod.outlook.com>
References: <BL0PR05MB48520C5E05EC9964D64F7B8FD5F40@BL0PR05MB4852.namprd05.prod.outlook.com>
 <2505996.CiZN03daHp@even-i700>
 <BL0PR05MB485257A602415DA8CCF0194CD5CD0@BL0PR05MB4852.namprd05.prod.outlook.com>
MIME-Version: 1.0
Subject: Re: [Tiff] Question about difference in TIFFReadEncodedStrip
 behavior between libtiff versions
X-BeenThere: tiff@lists.osgeo.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.osgeo.org>
List-Unsubscribe: <https://lists.osgeo.org/mailman/options/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=unsubscribe>
List-Post: <mailto:tiff@lists.osgeo.org>
List-Help: <mailto:tiff-request@lists.osgeo.org?subject=help>
List-Subscribe: <https://lists.osgeo.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Errors-To: tiff-bounces@lists.osgeo.org
Sender: "Tiff" <tiff-bounces@lists.osgeo.org>

On mardi 8 d=E9cembre 2020 19:51:30 CET Nalini Vishnoi wrote:
> Hi Even,
> =

> Thanks for your help and for submitting a fix promptly.
> I agree that the file is pretty broken as a number of tools (not using
> libtiff) were unable to read the file as well. I was curious about the
> behavior change between different versions of libtiff - whether it was a
> result of implementing the standards more strictly or an unintentional
> change.

Was linked to a hardening in the library code to avoid potentially arbitrar=
y =

RAM allocation on broken files that would declare StripByteCount/StripOffse=
ts =

tag with millions of entries where the file is actually very small, but it =

accidentally broke for the very particular case of your broken file :-)

-- =

Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff
