Return-Path: <tiff-bounces@lists.osgeo.org>
Received: from mailgate206.isp.belgacom.be ([195.238.22.38])
          by mailfep016.skynet.be
          (InterMail vM.8.04.03.28.4 201-2389-100-182-103-20180124)
          with ESMTP
          id <20201201205058.DCWN58609.mailfep016.skynet.be@mailgate206.isp.belgacom.be>
          for <chris.lindelaan@skynet.be>; Tue, 1 Dec 2020 21:50:58 +0100
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"
Authentication-Results: mx201.skynet.be; 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; dkim=hardfail (body hash did not verify [final]) header.i=@mathworks.com
X-Ironport-Dmarc-Check-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 =?us-ascii?q?0X95g4KqbwhaCGo9xGcsjuIhjL8pZLNfZk7NYNIC6vSsie8BCnSJ8evF?=
 =?us-ascii?q?e11AngQjaCGgYy32mbAIAXYrLumv0vvcxa0jc=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; 01 Dec 2020 21:50:57 +0100
Received: from osgeo6.osgeo.osuosl.org (localhost [127.0.0.1])
	by lists.osgeo.org (Postfix) with ESMTP id C7E24615CF00;
	Tue,  1 Dec 2020 12:50:51 -0800 (PST)
X-Greylist: delayed 370 seconds by postgrey-1.35 at osgeo6;
 Tue, 01 Dec 2020 12:50:51 PST
Received: from us-smtp-delivery-120.mimecast.com
 (us-smtp-delivery-120.mimecast.com [63.128.21.120])
 by lists.osgeo.org (Postfix) with ESMTP id 0956E615CEFD
 for <tiff@lists.osgeo.org>; Tue,  1 Dec 2020 12:50:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mathworks.com;
 s=mimecast20180117; t=1606855849;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=nc5eL5Bn+1rK//ebbdWvbqHD1aY0jWIbP7UZ8s3Ax7Y=;
 b=hAD0HZCNC3VqkN7wTcKMzv0mXQHKxqbS3KiNYghxGJLVM5GR7KQBn8P42h/n+gfXVUD+vU
 fGFE2PlZ2dV2Wsa2PqdsET7UFUDq9p63p8KEhD4xLoxj8AmTWky70ZA6fZwC/1YA3UcQIS
 vL3Rvr68AGgmEPJW5ozVLTE/F5slvNg=
Received: from NAM10-MW2-obe.outbound.protection.outlook.com
 (mail-mw2nam10lp2106.outbound.protection.outlook.com [104.47.55.106])
 (Using TLS) by relay.mimecast.com with ESMTP id
 us-mta-190-hCZHglhSPk-MYwga5z46tw-1; Tue, 01 Dec 2020 15:44:37 -0500
X-MC-Unique: hCZHglhSPk-MYwga5z46tw-1
Received: from BL0PR05MB4852.namprd05.prod.outlook.com (2603:10b6:208:57::10)
 by BL0PR05MB5457.namprd05.prod.outlook.com (2603:10b6:208:65::13)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.6; Tue, 1 Dec
 2020 20:44:35 +0000
Received: from BL0PR05MB4852.namprd05.prod.outlook.com
 ([fe80::35e6:ed3d:418a:f007]) by BL0PR05MB4852.namprd05.prod.outlook.com
 ([fe80::35e6:ed3d:418a:f007%7]) with mapi id 15.20.3632.006; Tue, 1 Dec 2020
 20:44:35 +0000
From: Nalini Vishnoi <nvishnoi@mathworks.com>
To: "tiff@lists.osgeo.org" <tiff@lists.osgeo.org>
Thread-Topic: Question about difference in TIFFReadEncodedStrip behavior
 between libtiff versions
Thread-Index: AdbIIhPplRqH6JLcRtiYniAoF+Mtog==
Date: Tue, 1 Dec 2020 20:44:35 +0000
Message-ID: <BL0PR05MB48520C5E05EC9964D64F7B8FD5F40@BL0PR05MB4852.namprd05.prod.outlook.com>
Accept-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
x-originating-ip: [144.212.3.4]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 59e7250c-7790-4785-7250-08d89639e9ee
x-ms-traffictypediagnostic: BL0PR05MB5457:
x-microsoft-antispam-prvs: <BL0PR05MB54579E93EC4DF75AF71218ACD5F40@BL0PR05MB5457.namprd05.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0
x-microsoft-antispam-message-info: oGo6xzb3ZSQuPzslyTGoMc6yb101JYDEYi++2BTv1stzMf0djEWmD+6RF/vW/rMdiapW6A3r9049scJwCAAPF0WUfcAwavdHrA0J8LGJ4Vk1VR1VBpwjqvgX1r4EkHyAM9psoErBqTOvrbxms8AtGoBeDVvYtT1IyaE/5NLjVJx4dczVy6um/DGdCUgeJTZpR5ffe0yBsnJ0f+jRu1W+m85uZnpykj06iW/zTGd5z3LGknbeYLt5lyA37oKAFgO43MGLoEo2qmyQDUVzrvnxfagM9zTEERClwMk2J5nSfeJi9wi8BEAJLqgOCrwrr5Liamk1ipbGcX0dcgUvnq6vhg==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:BL0PR05MB4852.namprd05.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(4636009)(396003)(346002)(366004)(39840400004)(376002)(136003)(64756008)(186003)(316002)(66946007)(66446008)(66616009)(2906002)(99936003)(33656002)(26005)(76116006)(83380400001)(6916009)(55016002)(9686003)(8936002)(8676002)(71200400001)(66476007)(66556008)(5660300002)(6506007)(478600001)(86362001)(52536014)(7696005);
 DIR:OUT; SFP:1101
x-ms-exchange-antispam-messagedata: =?us-ascii?Q?o38hogKr7Q8rODtJCzLzuEhgBZKaY0TTVnWy8gWOOZuYyb6cWc9Fiy42TaNt?=
 =?us-ascii?Q?U98hQc0UR+n743eWYynpw9GTNaphoPCn3OHtjc3NOecxFFtKDh8ORmq6F9hS?=
 =?us-ascii?Q?yb36iErlcbu+Fz/Mwtns16/Q+HubkKJXcs1ftZWgspd55WiSqYO1yp2wiC/V?=
 =?us-ascii?Q?uG5wGF5raPwhLRHMK0su31yBJY2sE0CohaC7xn/Ssfk/bH/A7HazYzyKjwHf?=
 =?us-ascii?Q?B2jLO4csuvfkQbPwRQZATM2X/Jb1toN9RnXDTZmWIeafXL12jVVK+yYVapSt?=
 =?us-ascii?Q?kTMN7suma4KuYD1PF6xuYcsKk6k1JnLWqk7ijkrw5D5qVt/ml/8FXnHblxox?=
 =?us-ascii?Q?r+ivrJc58N8gVubh7hOC3PhVhp9jmVf/EKt7leovHx7Iz3Dbr6gyergt31xZ?=
 =?us-ascii?Q?hUQicQE0PkqBxu00GJUZPYopMXw8BUeA9W1E/AQ3Chab5LZYKgfek4siD+DE?=
 =?us-ascii?Q?CxomlfPqyPnKs4XiKNu5pCvpt9OVrCSlYORrOTHlT5u7CmWgaactF0NQY1Ls?=
 =?us-ascii?Q?0xN5F+JfjiTWkqTRMCJT/0eBBawEZxCMi/Cn00UyN8Z5pcRi0QZC/oFRfs8G?=
 =?us-ascii?Q?2kUSod+Clbmxfb3AEjdlauSTH4m8xFGtorPdwf98uN/k5hg86Kq3YTaqReGo?=
 =?us-ascii?Q?Z5ifot9tLVhh3/ZFiWs4JFV0aGmMfxx3aJq5LenePPWvVmOjGi0r01QMD7WO?=
 =?us-ascii?Q?pW9vg/RLtxiw+Bzp/FmmBS0TYHzwkVRDF3dFvbOCvZ2gv4ombG8IzZE2A/B5?=
 =?us-ascii?Q?jF5t9pQiQ88ZZlk95MnFdlc6+nDfhxOi7YQ2aXgkSwK+O6KSCAWPiYsOARNz?=
 =?us-ascii?Q?bo15m9rrT9c0JZaA9YY3OTyYTIsxbI8CyS5f1/M9vGfwiVZTlwXl5tDLMKQI?=
 =?us-ascii?Q?CwIgc1CGKe1z/3CiGW9tLfh9beIftv2aXbhLsyHvtJNDT8+985AbhNZXAGuB?=
 =?us-ascii?Q?BjdEZDElO9E5QlORhNsDkU1q+EfBZbTzhhLo6MQHxnI=3D?=
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-OriginatorOrg: mathworks.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BL0PR05MB4852.namprd05.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 59e7250c-7790-4785-7250-08d89639e9ee
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Dec 2020 20:44:35.4385 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 99dd3a11-4348-4468-9bdd-e5072b1dc1e6
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: ZgMYuPSwVWfEgTJnpl3hqx63RxLgtXxjVIlRUs+Kypf+YhqxIpK2AMVu93apcepkE5RWfnrqt+b8mVy1Mzuc5g==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR05MB5457
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: mathworks.com
Content-Language: en-US
Content-Type: multipart/mixed;
 boundary="_004_BL0PR05MB48520C5E05EC9964D64F7B8FD5F40BL0PR05MB4852namp_"
Subject: [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>
Errors-To: tiff-bounces@lists.osgeo.org
Sender: "Tiff" <tiff-bounces@lists.osgeo.org>

--_004_BL0PR05MB48520C5E05EC9964D64F7B8FD5F40BL0PR05MB4852namp_
Content-Type: multipart/alternative;
	boundary="_000_BL0PR05MB48520C5E05EC9964D64F7B8FD5F40BL0PR05MB4852namp_"

--_000_BL0PR05MB48520C5E05EC9964D64F7B8FD5F40BL0PR05MB4852namp_
Content-Type: text/plain; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable

Hello Tiff team,

I encountered a difference in behavior of "TIFFReadEncodedStrip" function b=
etween v4.0.0 and v4.0.10 when reading a 25MB TIFF file. Please note the fi=
le has a single strip as an image.
I understand that a lot of code changes have been made to this function bet=
ween 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:

------tiff 4.0.0-----
% ./a.out

TIFFReadDirectoryCheckOrder: Warning, Invalid TIFF directory; tags are not =
sorted in ascending order.
TIFFReadDirectory: Warning, Bogus "StripByteCounts" field, ignoring and cal=
culating from imagelength.

Size of strip=3D25725440
Status after reading the image=3D25725440

------tiff 4.0.10-----
% ./a.out

TIFFReadDirectoryCheckOrder: Warning, Invalid TIFF directory; tags are not =
sorted in ascending order.
TIFFReadDirectory: Warning, Bogus "StripByteCounts" field, ignoring and cal=
culating from imagelength.

TIFFFillStrip: Read error on strip 0; got 80392 bytes, expected 25725440.
Size of strip=3D25725440
Status after reading the image=3D-1

I have attached the reproduction code to my mail. Is this a bug in the newe=
r releases or an expected behavior?
Please note that the TIFF file itself is 25MB in size and is confidential i=
n nature. What would be the best way to provide access to that TIFF file fo=
r testing?

Thanks and regards,
Nalini

--_000_BL0PR05MB48520C5E05EC9964D64F7B8FD5F40BL0PR05MB4852namp_
Content-Type: text/html; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
=09{font-family:"Cambria Math";
=09panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
=09{font-family:Calibri;
=09panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
=09{margin:0in;
=09margin-bottom:.0001pt;
=09font-size:11.0pt;
=09font-family:"Calibri",sans-serif;}
span.EmailStyle17
=09{mso-style-type:personal-compose;
=09font-family:"Calibri",sans-serif;
=09color:windowtext;}
.MsoChpDefault
=09{mso-style-type:export-only;
=09font-family:"Calibri",sans-serif;}
@page WordSection1
=09{size:8.5in 11.0in;
=09margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
=09{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hello Tiff team, <o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I encountered a difference in behavior of &#8220;TIF=
FReadEncodedStrip&#8221; function between v4.0.0 and v4.0.10 when reading a=
 25MB TIFF file. Please note the file has a single strip as an image.
<o:p></o:p></p>
<p class=3D"MsoNormal">I understand that a lot of code changes have been ma=
de to this function between these two library versions, however, in the old=
er version 4.0.0, I am able to read the file but with the newer version 4.0=
.10, I get an error:
<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Co=
urier New&quot;;color:black;background:#FCFCFA">------tiff 4.0.0-----</span=
><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:=
black"><br>
<span style=3D"background:#FCFCFA">% ./a.out</span><br>
<br>
<span style=3D"background:#FCFCFA">TIFFReadDirectoryCheckOrder: Warning, In=
valid TIFF directory; tags are not sorted in ascending order.</span><br>
<span style=3D"background:#FCFCFA">TIFFReadDirectory: Warning, Bogus &quot;=
StripByteCounts&quot; field, ignoring and calculating from imagelength.</sp=
an><br>
<br>
<span style=3D"background:#FCFCFA">Size of strip=3D25725440</span><br>
<span style=3D"background:#FCFCFA">Status after reading the image=3D2572544=
0</span><br>
<br>
<span style=3D"background:#FCFCFA">------tiff 4.0.10----- <o:p></o:p></span=
></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Co=
urier New&quot;;color:black;background:#FCFCFA">% ./a.out</span><span style=
=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><br>
<br>
<span style=3D"background:#FCFCFA">TIFFReadDirectoryCheckOrder: Warning, In=
valid TIFF directory; tags are not sorted in ascending order.</span><br>
<span style=3D"background:#FCFCFA">TIFFReadDirectory: Warning, Bogus &quot;=
StripByteCounts&quot; field, ignoring and calculating from imagelength.</sp=
an><br>
<br>
<span style=3D"background:#FCFCFA">TIFFFillStrip: Read error on strip 0; go=
t 80392 bytes, expected 25725440.</span><br>
<span style=3D"background:#FCFCFA">Size of strip=3D25725440</span><br>
<span style=3D"background:#FCFCFA">Status after reading the image=3D-1<o:p>=
</o:p></span></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I have attached the reproduction code to my mail. Is=
 this a bug in the newer releases or an expected behavior?<o:p></o:p></p>
<p class=3D"MsoNormal">Please note that the TIFF file itself is 25MB in siz=
e and is confidential in nature. What would be the best way to provide acce=
ss to that TIFF file for testing?<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Thanks and regards, <o:p></o:p></p>
<p class=3D"MsoNormal">Nalini<o:p></o:p></p>
</div>
</body>
</html>

--_000_BL0PR05MB48520C5E05EC9964D64F7B8FD5F40BL0PR05MB4852namp_--

--_004_BL0PR05MB48520C5E05EC9964D64F7B8FD5F40BL0PR05MB4852namp_
Content-Type: text/plain; name=main.cpp; charset=WINDOWS-1252
Content-Description: main.cpp
Content-Disposition: attachment; filename="main.cpp"; size=473;
	creation-date="Tue, 01 Dec 2020 20:37:00 GMT";
	modification-date="Tue, 01 Dec 2020 20:37:00 GMT"
Content-Transfer-Encoding: base64

I2luY2x1ZGUgPHRpZmZpby5oPg0KI2luY2x1ZGUgPGlvc3RyZWFtPg0KI2luY2x1ZGUgPHZlY3Rv
cj4NCg0KaW50IG1haW4oKQ0Kew0KICAgIFRJRkYgKnRpZj1USUZGT3BlbigiMjAyMDAyMDNfMTAz
MDEzX2NvcHkudGlmIiwgInIiKTsNCglpbnQ2NCBzdGF0dXM7DQoNCiAgICBzdGQ6OnZlY3Rvcjx1
aW50MTY+IHJhc3RlcjsNCiAgICBUSUZGX1NTSVpFX1Qgc3ogPSBUSUZGU3RyaXBTaXplKHRpZik7
DQoJc3RkOjpjb3V0PDwiXG5TaXplIG9mIHN0cmlwPSI8PHN6Ow0KDQogICAgcmFzdGVyLnJlc2l6
ZShzeik7DQogICAgLy8gUmVhZCB0aGUgZmlyc3Qgc3RyaXANCiAgICBzdGF0dXMgPSBUSUZGUmVh
ZEVuY29kZWRTdHJpcCh0aWYsIDAsICh1aW50MTYgKikoJnJhc3RlclswXSksIC0xKTsNCglzdGQ6
OmNvdXQ8PCJcblN0YXR1cyBhZnRlciByZWFkaW5nIHRoZSBpbWFnZT0iPDxzdGF0dXM7DQoJVElG
RkNsb3NlKHRpZik7DQp9DQo=
--_004_BL0PR05MB48520C5E05EC9964D64F7B8FD5F40BL0PR05MB4852namp_
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff

--_004_BL0PR05MB48520C5E05EC9964D64F7B8FD5F40BL0PR05MB4852namp_--

