From: tjk@ams.org (Tom Kacvinsky)
Date: Tue, 5 Aug 2003 08:39:24 -0400 (EDT)
Subject: [Tiff] Problem decompressing LZW Tiffs
In-Reply-To: <20030805085817.GA7886@ak4719.spb.edu>
References: <200308041748.11480.john.johnson@keyholecorp.com>
 <3F2F0EA8.2030806@pobox.com> <20030805085817.GA7886@ak4719.spb.edu>
Message-ID: <Pine.GSO.4.53.0308050837510.8164@sun06.ams.org>

Hi Andrey,

Any changes to the libtiff-lzw-compression kit because of the changes
to the "stock" tif_lzw.c?

Thanks,

Tom

On Tue, 5 Aug 2003, Andrey Kiselev wrote:

> Frank,
>
> On Mon, Aug 04, 2003 at 09:55:52PM -0400, Frank Warmerdam wrote:
> > Andrey is digging into this problem already.  Andrey, what is the bug number
> > in Bugzilla?  I can't seem to find it.
>
> Sorry, this was recorded in my TODO list only.
>
> But I have fixed the problem now. State block initialization moved back
> into TIFFInitLZW() and O_RDONLY check removed, so LZW compressed files
> can be opened for update. There was a two branches in TIFFInitLZW() for
> state block allocation: for O_RDONLY mode and for update mode. After
> encoder removing only O_RDONLY branch remains, so we get a problem with
> the "r+" mode. I think not checking for O_RDONLY mode will be enough for
> now.
>
> 					Regards,
> 					Andrey

