Return-Path: <tiff-bounces@lists.osgeo.org>
Delivered-To: even.rouault@spatialys.com
Received: from spool.mail.gandi.net (spool4.mail.gandi.net [217.70.178.213])
	by nmboxes134.sd4.0x35.net (Postfix) with ESMTP id 9D84C61886
	for <even.rouault@spatialys.com>; Thu, 20 Jun 2019 07:38:27 +0000 (UTC)
Received: from lists.osgeo.org (osgeo6.osgeo.osuosl.org [140.211.15.3])
	by spool.mail.gandi.net (Postfix) with ESMTPS id 2D7FF780462
	for <even.rouault@spatialys.com>; Thu, 20 Jun 2019 07:38:27 +0000 (UTC)
Received: from osgeo6.osgeo.osuosl.org (localhost [127.0.0.1])
	by lists.osgeo.org (Postfix) with ESMTP id 464A1610C61B;
	Thu, 20 Jun 2019 00:38:24 -0700 (PDT)
Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com
 [209.85.221.66])
 by lists.osgeo.org (Postfix) with ESMTPS id 602F96146823
 for <tiff@lists.osgeo.org>; Thu, 20 Jun 2019 00:38:23 -0700 (PDT)
Received: by mail-wr1-f66.google.com with SMTP id v14so1901268wrr.4
 for <tiff@lists.osgeo.org>; Thu, 20 Jun 2019 00:38:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=waa/IF68yMkYL7hfEe5ctekc2FagWAR9j4IoQGSTukQ=;
 b=kNkynS+dHGVcWwokhUV1Lqy9tC6AfwEsekNmHN6LsrFCDyN2uYAv21pXuVWbYVoNru
 aVmwj05AxEk2BYCn7X1c72cRi/7L+QL9tE/sn2R+iKmO7ZVvocaMoV9ZJ7dIHJFDup4Z
 Sl7Yoqv2jEIr5oFkvE1B/9I9tDPQwcxk09PiPqs9BNCY5M/GrOFckuWX9ehv0BQEp2cT
 WT3UhvlfyUcDg7IyVMnwJAa926lmrezRmj3Uk5Ufn5i9dXbBQGke4Nj5zRf2gFs9QH0P
 AUWUAMxHcoA6kwUsTegATTxQtvju0TwPYDupesE7coRRxl3crnXLU1oDuC72RZXTGpfl
 eAwQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=waa/IF68yMkYL7hfEe5ctekc2FagWAR9j4IoQGSTukQ=;
 b=InH6ddxvScrc/+pEpIw4oKV3IGEgokdaq5Hhv589QX7Y6xk5VqbUGqUG9CE67NG9s2
 M8nWeBQxSzMl95T2Ifr/2SVwORH42FogyaX5yL3NpQjKtntNcqtE+6JrvL9yFea/cz0i
 /8As0PHsWWknqfzwSYY2teoj5W/ucJsR0cCdvyMTHZ6OFz0nDoEEVmpkgUU/I0H0TdSz
 2fq/sdsMrsWyR4dW42xBCIcnANWezeDaoYNO6cWwUwiz8/YjSNJBORX7Lv0lmDM0MgJ3
 rnCF2mI/MsdSPNJY70nmOwsJ7MrJfrHEeC3v2j55RF3WDiMQFZmE5sgziIj1I55gnWj4
 bJpw==
X-Gm-Message-State: APjAAAXNa2SqI72j0G98m8Y3iH+M1r00SrfyKtXykttZya66qXt887tK
 MJAE7AyjlsJVVgoaIJd71+ZE9SfLX8Wvqmxb5GwMlTll
X-Google-Smtp-Source: APXvYqy1oT5ok9fLmHB1vmKeU7Irf7fuFxCaVolcwpkIgGKGQbQujn83rLyeh0QQZo3rar2m4eJsfTQd3hct+DQZvGI=
X-Received: by 2002:a5d:4ac1:: with SMTP id y1mr13186303wrs.183.1561016301687; 
 Thu, 20 Jun 2019 00:38:21 -0700 (PDT)
MIME-Version: 1.0
From: ZdPo Ster <zdposter@gmail.com>
Date: Thu, 20 Jun 2019 09:38:10 +0200
Message-ID: <CAC=ZCwzS8buwTGZkhsJ0WGH=wkeWrssg9t-GOyMUrXRLnPcUVA@mail.gmail.com>
To: tiff@lists.osgeo.org
Content-Type: multipart/mixed; boundary="00000000000026b635058bbc6ee9"
Subject: [Tiff] TIFFFdOpen crash on Windows 64bit
X-BeenThere: tiff@lists.osgeo.org
X-Mailman-Version: 2.1.20
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>
X-GND-Status: LEGIT

--00000000000026b635058bbc6ee9
Content-Type: multipart/alternative; boundary="00000000000026b633058bbc6ee7"

--00000000000026b633058bbc6ee7
Content-Type: text/plain; charset="UTF-8"

Hello,

When I try to use TIFFFdOpen on Windows 10 64bit - but it crash. In
attachment there is my testing code. I found this problem when I was
testing poppler[1] utility pdftoppm (to convert pdf to tif).

IMO this is relevant to Bug 1941 - Win64 problem with tif_win32.c's
TIFFOpen() use of HANDLE (w/patch)[3],
Unfortunately " Bugzilla has suffered an internal error", so new account
can not be created e.g. I can not comment it there too.

Does anybody has the same experience or is there workaround for this?

I use the latest code[4] build with cmake and clang (version 9.0.0 (trunk)
Target: x86_64-pc-windows-msvc).


[1]
https://gitlab.freedesktop.org/poppler/poppler/blob/master/goo/TiffWriter.cc#L167
[2]
https://gitlab.freedesktop.org/poppler/poppler/blob/master/utils/pdftoppm.cc
[3] http://bugzilla.maptools.org/show_bug.cgi?id=1941
[4] https://gitlab.com/libtiff/libtiff

--00000000000026b633058bbc6ee7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello,</div><div><br></div><div>When I try to use TIF=
FFdOpen on Windows 10 64bit - but it crash. In attachment there is my testi=
ng code. I found this problem when I was testing poppler[1]

 utility pdftoppm (to convert pdf to tif).<br></div><div></div><div><br></d=
iv><div>IMO this is relevant to Bug=C2=A01941 -=20
     <span id=3D"gmail-summary_alias_container" class=3D"gmail-bz_default_h=
idden" style=3D"display:inline">=20
      <span id=3D"gmail-short_desc_nonedit_display">Win64 problem with tif_=
win32.c&#39;s TIFFOpen() use of HANDLE (w/patch)[3], <br></span></span></di=
v><div><span id=3D"gmail-summary_alias_container" class=3D"gmail-bz_default=
_hidden" style=3D"display:inline"><span id=3D"gmail-short_desc_nonedit_disp=
lay">Unfortunately &quot;
<tt>Bugzilla has suffered an internal error</tt>&quot;, so</span></span> ne=
w account can not be created e.g. I can not comment it there too.<br></div>=
<div><br></div><div>Does anybody has the same experience or is there workar=
ound for this?<br></div><div><br></div><div>I use the latest code[4] build =
with cmake and clang (version 9.0.0 (trunk) Target: x86_64-pc-windows-msvc)=
.</div><div><br></div><div><br></div><div>[1] <a href=3D"https://gitlab.fre=
edesktop.org/poppler/poppler/blob/master/goo/TiffWriter.cc#L167">https://gi=
tlab.freedesktop.org/poppler/poppler/blob/master/goo/TiffWriter.cc#L167</a>=
</div><div>
[2]

<a href=3D"https://gitlab.freedesktop.org/poppler/poppler/blob/master/utils=
/pdftoppm.cc">https://gitlab.freedesktop.org/poppler/poppler/blob/master/ut=
ils/pdftoppm.cc</a></div><div>
<span id=3D"gmail-summary_alias_container" class=3D"gmail-bz_default_hidden=
" style=3D"display:inline"><span id=3D"gmail-short_desc_nonedit_display">[3=
]</span></span> <a href=3D"http://bugzilla.maptools.org/show_bug.cgi?id=3D1=
941">http://bugzilla.maptools.org/show_bug.cgi?id=3D1941</a></div><div>
[4]

<a href=3D"https://gitlab.com/libtiff/libtiff">https://gitlab.com/libtiff/l=
ibtiff</a></div></div>

--00000000000026b633058bbc6ee7--

--00000000000026b635058bbc6ee9
Content-Type: text/plain; charset="US-ASCII"; name="crash_win_tiff.cc"
Content-Disposition: attachment; filename="crash_win_tiff.cc"
Content-Transfer-Encoding: base64
Content-ID: <f_jx4bpkp00>
X-Attachment-Id: f_jx4bpkp00

LyoNCkJ1aWxkIGNvbW1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-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVGlmZiBtYWls
aW5nIGxpc3QKVGlmZkBsaXN0cy5vc2dlby5vcmcKaHR0cHM6Ly9saXN0cy5vc2dlby5vcmcvbWFp
bG1hbi9saXN0aW5mby90aWZmCg==

--00000000000026b635058bbc6ee9--

