Return-Path: <tiff-bounces@lists.osgeo.org>
Received: from mailgate101.isp.belgacom.be ([195.238.20.33])
          by mailfep021.skynet.be
          (InterMail vM.8.04.03.28.4 201-2389-100-182-103-20180124)
          with ESMTP
          id <20201208153006.SFXN11321.mailfep021.skynet.be@mailgate101.isp.belgacom.be>
          for <chris.lindelaan@skynet.be>; Tue, 8 Dec 2020 16:30:06 +0100
Authentication-Results: mx101.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 (mx101.skynet.be: no sender authenticity
  information available from domain of
  tiff-bounces@lists.osgeo.org) identity=pra;
  client-ip=140.211.15.3; receiver=mx101.skynet.be;
  envelope-from="tiff-bounces@lists.osgeo.org";
  x-sender="tiff-bounces@lists.osgeo.org";
  x-conformance=sidf_compatible
Received-SPF: Pass (mx101.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=mx101.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 (mx101.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=mx101.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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-submission: =?us-ascii?q?MDGqUg0M1tydJcC157EJH5Qs3ewU97VbO1JbJm?=
 =?us-ascii?q?maUjxC3V9ztddVAKTdcTR3M272gtg1kPCdo3WsCYjDHy/Jjv5jyaQrU1?=
 =?us-ascii?q?EYZWkfQgCHqaGYJ6qpvEoBGZlmTMe8moEX4xs=3D?=
Received: from osgeo6.osgeo.osuosl.org (HELO lists.osgeo.org) ([140.211.15.3])
  by mx101.skynet.be with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 08 Dec 2020 16:30:00 +0100
Received: from osgeo6.osgeo.osuosl.org (localhost [127.0.0.1])
	by lists.osgeo.org (Postfix) with ESMTP id 566176143529;
	Tue,  8 Dec 2020 07:29:54 -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 C928D614663D
 for <tiff@lists.osgeo.org>; Tue,  8 Dec 2020 07:29:52 -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 97E15C0011;
 Tue,  8 Dec 2020 15:29:50 +0000 (UTC)
From: Even Rouault <even.rouault@spatialys.com>
To: tiff@lists.osgeo.org
Cc: Nalini Vishnoi <nvishnoi@mathworks.com>
Date: Tue, 08 Dec 2020 16:29:49 +0100
Message-ID: <2505996.CiZN03daHp@even-i700>
User-Agent: KMail/5.1.3 (Linux/4.4.0-194-generic; KDE/5.18.0; x86_64; ; )
In-Reply-To: <6495457.tzLWhWgbKE@even-i700>
References: <BL0PR05MB48520C5E05EC9964D64F7B8FD5F40@BL0PR05MB4852.namprd05.prod.outlook.com>
 <6495457.tzLWhWgbKE@even-i700>
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 16:27:46 CET Even Rouault wrote:
> On mardi 1 d=E9cembre 2020 20:44:35 CET Nalini Vishnoi wrote:
> > Hello Tiff team,
> > =

> > I encountered a difference in behavior of "TIFFReadEncodedStrip" functi=
on
> > between v4.0.0 and v4.0.10 when reading a 25MB TIFF file. Please note t=
he
> > file has a single strip as an image. I understand that a lot of code
> > changes have been made to this function between these two library
> > versions,
> > however, in the older version 4.0.0, I am able to read the file but with
> =

> > the newer version 4.0.10, I get an error:
> The change of behaviour was due to a commit between 4.0.8 and 4.0.9. Your
> TIFF file is badly broken regarding StripByteCount and StripOffsets
> content. You must consider you lucky that libtiff managed to read it.

(oops sorry email sent before I finished it)

anyway, I put in
https://gitlab.com/libtiff/libtiff/-/commit/f13cf46b6ecb97503afcfa6f41a18d6=
697076179
a change that restores the ability to read that file. But it could easily
got unreadable in later versions or in other software.

Even

-- =

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