1997.02.19 16:18 "Small bug in tif_jpg.c", by Thomas Deweese

1997.02.20 01:56 "Re: Small bug in tif_jpg.c", by Tom Lane

For stripped images this limits the number of rows written to the imagelength (as per the spec). For tiled images it continues until the end of the tile.

As near as I can tell, the point of this change is to guard against the application trying to write more scanlines than it's supposed to?

I don't object to that, but I think a lot of other encode routines ought to be changed similarly if you expect libtiff to deal with this condition.

In particular, JPEGEncodeRaw needs the same addition as JPEGEncode. A quick look at some of the other compressors suggests that they have no comparable defense, either.

                        regards, tom lane
                        organizer, Independent JPEG Group