2012.09.22 18:36 "[Tiff] Libtiff 3.9.7 released", by Bob Friesenhahn

2012.10.17 18:26 "Re: [Tiff] Que: ZIPSetupDecode errorhandling", by Henk Jan Priester

On 10/17/2012 07:54 PM, Henk Jan Priester wrote: > On 10/17/2012 07:35 PM, Bob Friesenhahn wrote:

>> On Wed, 17 Oct 2012, Henk Jan Priester wrote:
>>> I have a tif with zip decoding and after upgrading from 3.9.4 to 4.0.3
>>> I have a problem.

>> What version of zlib are you using? Are you sure that the running >> application is using the same zlib as when the library was built?


>> Unfortunately, recent zlib releases are not ABI compatible with older >> ones (even though it claims to be) and the operating system often

>> delivers an older version. When I installed the latest version, it >> caused problems for me under Solaris, so I uninstalled it and

>> continued using the system-provided zlib version.

> I used 1.2.7 when building the Solaris/Linux version. With ldd I also > see a dynamic version of the system so there might be something

> wrong with that.
> (with 3.9.4 I used 1.2.5)

I added a printf("runtime %s compiled %s\n", zlibVersion(), ZLIB_VERSION) in the tif_zip routine and the output when running the program is:

Error from inflateInit (Error -2) runtime 1.2.7 (compiled 1.2.7)

stream.msg = NULL

I also get the error on Linux but there it does not crash. so it seems that using zlib 1.2.7 for libtiff 4.0.3 is not a good idea. When not calling the error function if stream.msg = NULL the output of libtiff looks oke.

I will try 1.2.5 tomorrow.
>> Bob