Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx3.public.one.com ([10.246.18.23])
	by mail6.local.one.com (Dovecot) with LMTP id SD9DC3GVuljbwQEAsyOMew
	for <filtered@awaresystems.be>; Sat, 04 Mar 2017 11:02:34 +0000
X-HalOne-ID: 1149d41e-00ca-11e7-91eb-b82a72d83ab6
Received: from mail-ot0-f174.google.com (unknown [74.125.82.174])
	by mx3.public.one.com (Halon) with ESMTPS
	id 1149d41e-00ca-11e7-91eb-b82a72d83ab6;
	Sat, 04 Mar 2017 11:02:34 +0000 (UTC)
Received: by mail-ot0-f174.google.com with SMTP id x37so44050780ota.2
        for <filtered@awaresystems.be>; Sat, 04 Mar 2017 03:02:33 -0800 (PST)
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
         :mime-version:from:date:message-id:to:subject:precedence:list-id
         :list-unsubscribe:list-archive:list-post:list-help:list-subscribe
         :content-transfer-encoding:sender:errors-to;
        bh=UxBlDkdd9OjXqN+MkCQi6k+5Qi7vQzbVTORCbeLNk7g=;
        b=ipNrDF1thr5Yg7cgYHnwRMAaW3NKQptSmzSRfK16syAGK+U1+K1De0iqfSVHZnTEuV
         s9tzodEyGMH+4mY3kTVZEy+SDA2FYG+Bbyaacdntz8UwmucxUw0tx93LstyHohmT0URw
         bt3GHfWeVunwV3KLQhGGdp74GFBc/puX7jzUtfUgSBeEzbN6ldQDGW3OU5pdRW6qS0ew
         GPnFnJyW/evvBfVaaLrsqw6nimI3e4XS/usPR2eboRz1SR3IuaVrny5GKLZZlnzs0Jhj
         0j19W0mll/ZXFmep61kWnj4LXN4Su4+7C49bymrlmCKgJXaRuSXqVe5bzWlMhZo2Mk1k
         Rcmg==
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;       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com
X-Gm-Message-State: AMke39leoPjrIaPeqBdXl7RUF65f8OfahAyTOqZHHbVqkj0EsLsL9JpY2HdiKfTfyy/722k6tErM5QACWOaaeBWjcW9EpOg=
X-Received: by 10.157.38.247 with SMTP id i52mr3444698otd.64.1488625352758;
        Sat, 04 Mar 2017 03:02:32 -0800 (PST)
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.170.21 with SMTP id t21csp38653oie;
        Sat, 4 Mar 2017 03:02:31 -0800 (PST)
X-Received: by 10.223.166.7 with SMTP id k7mr6069741wrc.52.1488625351714;
        Sat, 04 Mar 2017 03:02:31 -0800 (PST)
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 69si6463584wmx.141.2017.03.04.03.02.30;
        Sat, 04 Mar 2017 03:02:31 -0800 (PST)
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;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 4914D35C047;
	Sat,  4 Mar 2017 06:01:29 -0500 (EST)
Received: from mail-wr0-f175.google.com (mail-wr0-f175.google.com
	[209.85.128.175])
	by lists.maptools.org (Postfix) with ESMTPS id 2374435C026
	for <tiff@lists.maptools.org>; Sat,  4 Mar 2017 05:59:46 -0500 (EST)
Received: by mail-wr0-f175.google.com with SMTP id u48so88401925wrc.0
	for <tiff@lists.maptools.org>; Sat, 04 Mar 2017 02:59:46 -0800 (PST)
X-Received: by 10.223.163.142 with SMTP id l14mr7167405wrb.35.1488625185927;
	Sat, 04 Mar 2017 02:59:45 -0800 (PST)
MIME-Version: 1.0
Received: by 10.80.186.231 with HTTP; Sat, 4 Mar 2017 02:59:05 -0800 (PST)
From: jcupitt@gmail.com
Date: Sat, 4 Mar 2017 10:59:05 +0000
Message-ID: <CAGNS0RvO=FGYXOp9tzAUk9xx48HNLTo12Tp-v30SRJtOvSkfGQ@mail.gmail.com>
To: TIFF <tiff@lists.maptools.org>
Subject: [Tiff] started seeing breakage with libtiff
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

Hello everyone,

Overnight I've started seeing problems with libtiff. It seems this
patch has just been rolled out to Ubuntu:

http://bugzilla.maptools.org/show_bug.cgi?id=2590

This issues a warning if some tags are not NULL-terminated. However,
libtiff itself can write tags which are not NULL-terminated, for
example:

$ tiffcp -c jpeg k2a.tif x.tif

(where k2a.tif is an old uncompressed RGB strip tif I had handy) works
fine. However I now can't read it back without a warning:

$ tiffcp x.tif y.tif
TIFFFetchNormalTag: Warning, ASCII value for tag "JPEGTables" does not
end in null byte. Forcing it to be null.
JPEGLib: Warning, Premature end of JPEG file.

This causes problems for some other libraries, such as openslide,
which seem to treat libtiff warnings as fatal.

Has anyone looked into this? What would be the best fix here? It looks
like libtiff perhaps shouldn't check null-termination on JPEGTables.

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