Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-i.one.com (mx-i.one.com [91.198.169.56])
	by mail6.local (Postfix) with ESMTP id 3F313801033F2
	for <filtered@awaresystems.be>; Thu, 18 Oct 2012 20:04:11 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
Received-SPF: pass (mx-i: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.220.176 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176])
	by mx-i.one.com (Postfix) with ESMTP id C881B1A958A2
	for <filtered@awaresystems.be>; Thu, 18 Oct 2012 18:04:10 +0000 (UTC)
Received: by mail-vc0-f176.google.com with SMTP id gb22so12577285vcb.21
        for <filtered@awaresystems.be>; Thu, 18 Oct 2012 11:04:10 -0700 (PDT)
Received: by 10.58.114.194 with SMTP id ji2mr17145145veb.22.1350583449899;
        Thu, 18 Oct 2012 11:04:09 -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.58.144.166 with SMTP id sn6csp493657veb;
        Thu, 18 Oct 2012 11:04:09 -0700 (PDT)
Received: by 10.52.69.47 with SMTP id b15mr12924907vdu.116.1350583447759;
        Thu, 18 Oct 2012 11:04:07 -0700 (PDT)
Received-SPF: neutral (google.com: 195.47.247.76 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=195.47.247.76;
Received: by 10.220.117.65 with POP3 id p1mf8572401vcq.24;
        Thu, 18 Oct 2012 11:04:07 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx05.one.com (mx05.one.com [195.47.247.76])
	by mail6.local (Postfix) with ESMTP id 48BF4801033F2
	for <info@awaresystems.be>; Thu, 18 Oct 2012 19:57:08 +0200 (CEST)
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx05.one.com (Postfix) with ESMTP id E0A2F28E3262
	for <info@awaresystems.be>; Thu, 18 Oct 2012 17:57:07 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 1FA0343A07E;
	Thu, 18 Oct 2012 12:55:38 -0500 (EST)
Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com
	[209.85.212.180])
	by lists.maptools.org (Postfix) with ESMTPS id 6980143A073
	for <tiff@lists.maptools.org>; Thu, 18 Oct 2012 12:39:15 -0500 (EST)
Received: by mail-wi0-f180.google.com with SMTP id hm4so1936268wib.9
	for <tiff@lists.maptools.org>; Thu, 18 Oct 2012 10:39:18 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.180.83.227 with SMTP id t3mr12898965wiy.13.1350581958253; Thu,
	18 Oct 2012 10:39:18 -0700 (PDT)
Received: by 10.194.95.163 with HTTP; Thu, 18 Oct 2012 10:39:18 -0700 (PDT)
In-Reply-To: <507FB92F.4030704@justcroft.com>
References: <507EE978.1070306@justcroft.com>
	<alpine.GSO.2.01.1210171229150.24148@freddy.simplesystems.org>
	<507EF0D5.2050300@justcroft.com> <507EF846.8050301@justcroft.com>
	<alpine.GSO.2.01.1210171340570.24148@freddy.simplesystems.org>
	<507FB92F.4030704@justcroft.com>
Date: Thu, 18 Oct 2012 10:39:18 -0700
X-Google-Sender-Auth: xutNcIFQkwB5oEgNgwIDOmxuVFU
Message-ID: <CA+YzLBdupRU7NJpXk6fd-bMByHfqaHdCgX=Z+rn0pWO==o=wJw@mail.gmail.com>
From: Frank Warmerdam <warmerdam@pobox.com>
To: Henk Jan Priester <hjpriester@justcroft.com>
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] Que: ZIPSetupDecode errorhandling
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: multipart/mixed; boundary="===============0565619230=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============0565619230==
Content-Type: multipart/alternative; boundary=f46d0421a64fdc9bfc04cc58dd29

--f46d0421a64fdc9bfc04cc58dd29
Content-Type: text/plain; charset=ISO-8859-1

On Thu, Oct 18, 2012 at 1:09 AM, Henk Jan Priester <hjpriester@justcroft.com
> wrote:

>
> I have compiled and linked the program with the static version of zlib
> 1.2.7 and the problem is the same.
> The inflateInit function returns an error and the stream.msg = NULL.
>


Henk,

Other points aside, if it is possible for zip to return stream.msg
as NULL during errors, we had best guard against it.  I've
committed a change to tif_zip.c for this, but can't easiliy test
it.  Could you try:

  http://home.gdal.org/tmp/tif_zip.c

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer

--f46d0421a64fdc9bfc04cc58dd29
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Thu, Oct 18, 2012 at 1:09 AM, Henk Ja=
n Priester <span dir=3D"ltr">&lt;<a href=3D"mailto:hjpriester@justcroft.com=
" target=3D"_blank">hjpriester@justcroft.com</a>&gt;</span> wrote:<br><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc=
c solid;padding-left:1ex">
<div class=3D"im"><br></div>
I have compiled and linked the program with the static version of zlib<br>
1.2.7 and the problem is the same.<br>
The inflateInit function returns an error and the stream.msg =3D NULL.<br><=
/blockquote><div><br></div><div>=A0</div><div>Henk,</div><div><br></div><di=
v>Other points aside, if it is possible for zip to return stream.msg=A0</di=
v>
<div>as NULL during errors, we had best guard against it. =A0I&#39;ve=A0</d=
iv><div>committed a change to tif_zip.c for this, but can&#39;t easiliy tes=
t</div><div>it. =A0Could you try:</div><div><br></div><div>=A0=A0<a href=3D=
"http://home.gdal.org/tmp/tif_zip.c">http://home.gdal.org/tmp/tif_zip.c</a>=
</div>
<div><br></div><div>Best regards,</div><div><br></div></div>-- <br>--------=
-------------------------------+--------------------------------------<br>I=
 set the clouds in motion - turn up=A0=A0 | Frank Warmerdam, <a href=3D"mai=
lto:warmerdam@pobox.com" target=3D"_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href=3D"http://pobox.com/~warme=
rdam" target=3D"_blank">http://pobox.com/~warmerdam</a><br>and watch the wo=
rld go round - Rush=A0 =A0 | Geospatial Software Developer<br><br>

--f46d0421a64fdc9bfc04cc58dd29--

--===============0565619230==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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