AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1996.12.02 17:38 "lzw bug?", by Campanel
1996.12.02 19:18 "Re: lzw bug?", by Sam Leffler

1996.12.02 19:18 "Re: lzw bug?", by Sam Leffler

We, as I am sure with many others, have been using the TIFF library for years. A while ago, I installed ver3.4beta035, compiled it on a SPARC20 running Solaris 2.4 with SUNPRO C4.0 compiler. For the most part everything works. The image always comes through. But for every line that is read I get the message:

LZWDecode: Bogus encoding, loop in the code table; scanline xxx
.
.
.

If I write the file with rowsperstrip equal to 1, no problem. Anything else is a problem. I have tried it on SunOS and get the same thing. Rather that use my api's into the library I used the tiffcp utility and get the same problem. Any idea why?

The above message means there is a loop in the LZW-encoded data; this should not happen (especially if the data is generated by my library). I've only ever seen this problem on corrupted date and some images generated by a certain PC-based app. Without a way to reproduce your problem there's not much otherwise that I can say.

        Sam