Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx02.one.com (mx02.one.com [195.47.247.73])
	by mail6.local (Postfix) with ESMTP id 1645F30017DEC6
	for <filtered@awaresystems.be>; Thu,  8 May 2014 00:34:21 +0000 (UTC)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx02: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.217.176 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176])
	by mx02.one.com (Postfix) with ESMTP id D5987A1D231
	for <filtered@awaresystems.be>; Thu,  8 May 2014 00:34:20 +0000 (UTC)
Received: by mail-lb0-f176.google.com with SMTP id p9so2466811lbv.21
        for <filtered@awaresystems.be>; Wed, 07 May 2014 17:34:20 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-original-authentication-results:delivered-to:delivered-to:from:to
         :in-reply-to:date:message-id:subject:precedence:list-id
         :list-unsubscribe:list-archive:list-post:list-help:list-subscribe
         :mime-version:content-type:content-transfer-encoding:sender
         :errors-to;
        bh=uhB5RdCSXcmtnSTPpn9EtaXOQcsAJrfQJR9Oi2psERM=;
        b=bL+9y46D6SWjPPHrRCh7rcOfnmesqzhjLQBTyOfVG8pdn0uaqyxRQaaZflRx54w2kv
         IbODEe0gdX3Ap1Q4iDACdCgdMTYjSA0zDoW+n50xQzHdcG8iAJbSiYaCodaHP5E0ZRnb
         J2V9zZq21gqct8ASXFpvyHDVWrTtYEwAxVDNBucXMnFgom81+Nk8jKHPzaqJUMN3R8dw
         6tAkeUUC9z+G7ldBEhJ9BbRi+k8d3KP1qyJRj61njH4mQBqVsoUhyUIgCl8tlDIodIz5
         6a51XAFSn8SLOJvyNSLuVHQzMEkPv2ayPbuAeZMgJkqU6ABhtTdw3AdzDTaId9OXUMWO
         l6Cw==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: tiff-bounces@lists.maptools.org does not designate permitted sender hosts) smtp.mail=tiff-bounces@lists.maptools.org
X-Received: by 10.112.210.165 with SMTP id mv5mr270669lbc.68.1399509260329;
        Wed, 07 May 2014 17:34:20 -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.114.11.132 with SMTP id q4csp15844ldb;
        Wed, 7 May 2014 17:34:19 -0700 (PDT)
X-Received: by 10.112.72.137 with SMTP id d9mr225061lbv.19.1399509259233;
        Wed, 07 May 2014 17:34:19 -0700 (PDT)
Authentication-Results: mx.google.com;
       spf=neutral (google.com: tiff-bounces@lists.maptools.org does not designate permitted sender hosts) smtp.mail=tiff-bounces@lists.maptools.org
Received-SPF: none (google.com: tiff-bounces@lists.maptools.org does not designate permitted sender hosts) client-ip=195.47.247.72;
Received: by 10.112.0.202 with POP3 id 10mf1264297lbg.26;
        Wed, 07 May 2014 17:34:19 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx01.one.com (mx01.one.com [195.47.247.72])
	by mail6.local (Postfix) with ESMTP id 908D630017DEC6
	for <info@awaresystems.be>; Wed,  7 May 2014 23:36:24 +0000 (UTC)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (ks365428.kimsufi.com [94.23.4.142])
	by mx01.one.com (Postfix) with ESMTP id 6117B428809
	for <info@awaresystems.be>; Wed,  7 May 2014 23:36:23 +0000 (UTC)
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 5309035C029;
	Wed,  7 May 2014 18:35:42 -0500 (EST)
Received: from cmsa504.att.ne.jp (msa504.att.ne.jp [210.134.90.14])
	by lists.maptools.org (Postfix) with ESMTP id 7ADE335C029
	for <tiff@lists.maptools.org>; Wed,  7 May 2014 18:34:56 -0500 (EST)
Received: from vmsa504.att.ne.jp by cmsa504.att.ne.jp with ESMTP
	id <20140507233455292.OFNI.7703.cmsa504.att.ne.jp@msa504.att.ne.jp>
	for <tiff@lists.maptools.org>; Thu, 8 May 2014 08:34:55 +0900
Received: from emsa504.att.ne.jp by vmsa504.att.ne.jp with ESMTP
	id <20140507233455237.FEWS.7657.vmsa504.att.ne.jp@msa504.att.ne.jp>
	for <tiff@lists.maptools.org>; Thu, 8 May 2014 08:34:55 +0900
Received: from myhost ([211.3.201.178] [211.3.201.178])
	by emsa504.att.ne.jp with ESMTP
	id <20140507233455185.YQGR.7681.emsa504.att.ne.jp@msa504.att.ne.jp>
	for <tiff@lists.maptools.org>; Thu, 8 May 2014 08:34:55 +0900
From: Prophet of the Way <afu@wta.att.ne.jp>
To: tiff@lists.maptools.org
In-Reply-To: <alpine.GSO.2.01.1405012107240.1735@freddy.simplesystems.org>
Date: Thu, 8 May 2014 08:34:55 +0900
Message-Id: <20140507233455185.YQGR.7681.emsa504.att.ne.jp@msa504.att.ne.jp>
Subject: Re: [Tiff] Inconsistencies in tiff library tool operation
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>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

> > Also, I'd like to know if there is a way to determine out whether
> > a Tiff image file is faithful to specifications.

> There is no validation test like that.  We do our best and then use 
> our eyeballs to see if the results look correct, and try other well 
> respected software to see if it looks the same.

It would be a good idea to provide a program that tells two things:
(1) whether an image is valid
(2) whether it is baseline TIFF, or beyond

Can you name what software is respected and used in these tests?

---

I will give you a list of images from the following collection which
encountered valgrind problems.

https://github.com/ZaaLabs/ZaaIL-TestImages/tree/master/

It is likely that the problem with text.tif is also showing up here.
Images here are eccentric.  Inspection by human eyeballs is not effective.

---

Tiff library version 4.0.3
GCC v. 4.5.1
Valgrind v. 3.6.0

Commands:

(1) tiff2rgba INPUT /tmp/output
(2) tiff2ps INPUT > /dev/null
(3) tiffcp -c none INPUT /tmp/output
(4) tiffcmp INPUT INPUT

Input Tiff image (INPUT), results (exit codes) produced by the above
4 commands, with * after exit code denoting valgrind error:

0c84d07e1b22b76f24cccc70d8788e4a.tif       0   0   0  1*
9b286add70871bbbef1601997b429344.tif       0   0   1  1*
d664a73588796b59191ad8628065f04a.tif       0   0   1  1*
m1-3562055aecf63b573f8a18c4034a4a23.tif    0   0  0*  0*
m1-68bc8a1966db7a1da2d3b5946c00d1af.tif    0   0  1*  1*
m1-b127f0fb89daedea07abb50b9db2dfd9.tif    0  0*   1  1*
m2-63c8b14ea08a18c884d05a3431716047.tif    0   0   0  0*
m6-63c8b14ea08a18c884d05a3431716047.tif    0   0   0  0*
6cd02db6f3688efdd705c28ffcb9a3d3.tif       0   0   0  0*
fa0aa927763ee4c7ebf43a5d05dfebc7.tif       0   0  1*  1*
                                                        
89b5888641d5910e92bf451b5e639ad0.tif       0  0*   1   0
m10-76c43508fc007bcf5902b6a28e8055a5.tif   1   0  1*   1
m11-76c43508fc007bcf5902b6a28e8055a5.tif   1   0  1* 139
m12-76c43508fc007bcf5902b6a28e8055a5.tif   1   0  1*   1
m1-336db1cd76254717eb50a8602b651fbf.tif    0   0  1* 139
m1-487f40372de5a8b6c848ba2569848492.tif    1 255  1*   1
m1-76c43508fc007bcf5902b6a28e8055a5.tif    1   0  1*   1
m1-bfa1e2fb1d67bcd9d902a0dbf5badb70.tif    1 255  1*   1
m1-ed254aa9f390aab319728b42e00a73e7.tif    0   0  1*   1
m2-336db1cd76254717eb50a8602b651fbf.tif    0   0  1*   1
m2-3562055aecf63b573f8a18c4034a4a23.tif    0   0  1*   1
m2-76c43508fc007bcf5902b6a28e8055a5.tif    1   0  1*   1
m2-d0f86ab189cbe900ec389ca6d7464713.tif    1   0  1*   1
m2-d1d366d7965db766c19a66c7a2ccbb6b.tif    0   0  1*   1
m3-299787ea764c0a88bc481364eded5556.tif    0   0  0*   0
m3-76c43508fc007bcf5902b6a28e8055a5.tif    1   0  1*   1
m3-bfa1e2fb1d67bcd9d902a0dbf5badb70.tif    1 255  1*   1
m4-76c43508fc007bcf5902b6a28e8055a5.tif    1 255  1*   1
m5-336db1cd76254717eb50a8602b651fbf.tif    0   0  1*   1
m5-76c43508fc007bcf5902b6a28e8055a5.tif    1   0  1*   1
m5-d0f86ab189cbe900ec389ca6d7464713.tif    1   0  1*   1
efb780f70a7d94fa98adfc98d2aa8d50.tif       0   0  0*   0

Total 166 images.  32 images reported above.
Images that did not produce valgrind errors omitted.


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