xref: /libtiff-4.0.7/ChangeLog (revision a7ced11f)
12014-12-26  Bob Friesenhahn  <[email protected]>
2
3	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
4	but not used.
5
6	* tools/tiffgt.c: Fix warnings about unused parameters.
7
8	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
9
102014-12-25  Even Rouault  <[email protected]>
11
12	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
13	various typos found by Debian lintian tool (GDAL #5756)
14
152014-12-24  Even Rouault  <[email protected]>
16
17	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
18	http://bugzilla.maptools.org/show_bug.cgi?id=2235
19
202014-12-24  Even Rouault  <[email protected]>
21
22	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
23	http://bugzilla.maptools.org/show_bug.cgi?id=2445
24
252014-12-24  Even Rouault  <[email protected]>
26
27	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
28	Derived from patch by Petr Gajdos,
29	http://bugzilla.maptools.org/show_bug.cgi?id=2443
30
312014-12-23  Even Rouault  <[email protected]>
32
33	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
34	of _TIFFFillStriles(). This solves crashing bug on corrupted
35	images generated by afl.
36
372014-12-23  Even Rouault  <[email protected]>
38
39	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
40	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
41	images generated by afl.
42
432014-12-21  Bob Friesenhahn  <[email protected]>
44
45	* tools/tiffdump.c: Guard against arithmetic overflow when
46	calculating allocation buffer sizes.
47
482014-12-21  Even Rouault  <[email protected]>
49
50	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
51	SamplesPerPixel = 3. Enforce that
52	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
53
542014-12-21  Even Rouault  <[email protected]>
55
56	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
57	copying. The right fix would be to properly copy it, but not worth the burden
58	for those esoteric utilities.
59	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
60
612014-12-21  Even Rouault  <[email protected]>
62
63	* tools/thumbnail.c: fix out-of-buffer write
64	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
65
662014-12-21  Even Rouault  <[email protected]>
67
68	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
69	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
70	COMPRESSION_CCITTFAX4
71	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
72
732014-12-21  Even Rouault  <[email protected]>
74
75	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
76	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
77
782014-12-21  Even Rouault  <[email protected]>
79
80	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
81	TIFFTAG_SAMPLESPERPIXEL
82
832014-12-21  Even Rouault  <[email protected]>
84
85	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
86	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
87	Description: fix for Debian bug #741451
88	tiffcp crashes when converting JPEG-encoded TIFF to a different
89	encoding (like none or lzw). For example this will probably fail:
90	tiffcp -c none jpeg_encoded_file.tif output.tif
91	The reason is that when the input file contains JPEG data,
92	the tiffcp code forces conversion to RGB space. However,
93	the output normally inherits YCbCr subsampling parameters
94	from the input, which leads to a smaller working buffer
95	than necessary. The buffer is subsequently overrun inside
96	cpStripToTile() (called from writeBufferToContigTiles).
97	Note that the resulting TIFF file would be scrambled even
98	if tiffcp wouldn't crash, since the output file would contain
99	RGB data intepreted as subsampled YCbCr values.
100	This patch fixes the problem by forcing RGB space on the output
101	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
102	Author: Tomasz Buchert <[email protected]>
103
1042014-12-21  Even Rouault  <[email protected]>
105
106	Fix various crasher bugs on fuzzed images.
107	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
108	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
109	the directory
110	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
111	TransferFunction if BitsPerSample has not yet been read, otherwise reading
112	it later will cause user code to crash if BitsPerSample > 1
113	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
114	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
115	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
116	instead of imagewidth to avoid crash
117	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
118	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
119	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
120	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
121	* tools/tiffdump.c: fix crash due to overflow of entry count.
122
1232014-12-15  Even Rouault  <[email protected]>
124
125	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
126	all tiles/strips to include quantization tables even when the jpegtablesmode
127	had the JPEGTABLESMODE_QUANT bit set.
128	Also add explicit removal of Huffman tables when jpegtablesmode has the
129	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
130	first tile/strip (only useful in update scenarios. create-only was
131	fine)
132
1332014-12-09  Bob Friesenhahn  <[email protected]>
134
135	* tools/tiff2pdf.c: Assure that memory size calculations for
136	_TIFFmalloc() do not overflow the range of tmsize_t.
137
1382014-12-07  Even Rouault  <[email protected]>
139
140	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
141	Valgrind and Address Sanitizer on test suite
142
1432014-12-07  Bob Friesenhahn  <[email protected]>
144
145	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
146	tag can return one channel, with the other two channels set to
147	NULL.  The tiff2pdf code was expecting that other two channels
148	were duplicate pointers in the case where there is only one
149	channel.  Detect this condition in order to avoid a crash, and
150	presumably perform correctly with just one channel.
151
1522014-12-06  Bob Friesenhahn  <[email protected]>
153
154	* tools/tiffdump.c: Fix double-free bug.
155
1562014-11-27  Even Rouault  <[email protected]>
157
158	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
159	Visual Studio 2015 aka VC 14 aka MSVC 1900
160
1612014-11-20  Even Rouault  <[email protected]>
162
163	* libtiff/tif_lzw.c: prevent potential null dereference of
164	sp->dec_codetab in LZWPreDecode (bug #2459)
165
166	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
167	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
168
169	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
170
171	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
172	Coverity happier (not a bug, #2459)
173
174	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
175	(not a bug, #2459)
176
177	* tools/tiff2pdf.c: close PDF file (bug #2479)
178
179	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
180
181	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
182	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
183
184	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
185	(bug #2459) and add missing va_end in dump_info (#2459)
186
187	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
188
1892014-11-20  Even Rouault  <[email protected]>
190	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
191	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
192
1932014-11-20  Even Rouault  <[email protected]>
194	* automake: updated to 1.14.1
195	* libtool: updated to 2.4.3
196	* HOWTO-RELEASE: small update about autotools building order
197
1982014-10-20  Olivier Paquet  <[email protected]>
199	* tools/tiff2pdf.c: Preserve input file directory order when pages
200	are tagged with the same page number.
201
2022014-08-31  Bob Friesenhahn  <[email protected]>
203
204	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
205	count for tag should be a warning rather than an error since
206	errors terminate processing.
207
2082014-06-07  Bob Friesenhahn  <[email protected]>
209
210	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
211	was wrongly described.  Fix suggested by Miguel Medalha.
212
2132014-05-06  Bob Friesenhahn  <[email protected]>
214
215	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
216	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
217	Reviewed and forwarded by Lee Howard.
218
2192013-11-30  Frank Warmerdam  <[email protected]>
220
221	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
222
2232013-10-21  Frank Warmerdam  <[email protected]>
224
225	* libtiff/tif_dir.c: generate error in case of directory count
226	overflow.
227
2282013-10-01  Frank Warmerdam  <[email protected]>
229
230	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
231	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
232
2332013-09-12  Bob Friesenhahn  <[email protected]>
234
235	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
236	be defective, then set it to zero before returning error in order
237	to terminate processing of truncated TIFF.  Issue found and fix
238	suggested by Richard Nolde.
239
2402013-08-14  Frank Warmerdam  <[email protected]>
241
242	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
243
2442013-08-13  Frank Warmerdam  <[email protected]>
245
246	* tools/gif2tiff.c: Be more careful about corrupt or
247	hostile input files (#2450, CVE-2013-4231)
248
249	* tools/tiff2pdf.c: terminate after failure of allocating
250	ycbcr buffer (bug #2449, CVE-2013-4232)
251
2522013-07-09  Frank Warmerdam  <[email protected]>
253
254	* tools/tiffinfo.c: Default various values fetched with
255	TIFFGetField() to avoid being uninitialized.
256
2572013-05-02  Tom Lane  <[email protected]>
258
259	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
260	t2p_process_jpeg_strip to be at least marginally competent.  The
261	approach is still fundamentally flawed, but at least now it won't
262	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
263
2642013-05-02  Tom Lane  <[email protected]>
265
266	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
267 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
268 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
269 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
270 	large enough, and eliminate substantially all uses of sprintf(buf,
271 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
272 	protect against overflow of fixed-size buffers.  This responds in
273 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
274 	t2p_write_pdf_page(), but in general it seems like a good idea to
275 	deprecate use of sprintf().
276
2772013-03-29  Bob Friesenhahn  <[email protected]>
278
279	* configure.ac: Applied patch by Brad Smith to improve pkg-config
280	static linking by adding -lm to Libs.private when needed.
281
2822013-03-05  Tom Lane  <[email protected]>
283
284	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
285 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
286 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
287 	tools/tiffdither.c: Sync tool usage printouts and man pages with
288 	reality (quite a few options had escaped being documented in one
289 	or both places).  Per an old report from Miroslav Vadkerti.
290
2912013-01-25  Bob Friesenhahn  <[email protected]>
292
293	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
294	rotation angle was set by the auto rotate check, it was retained
295	for all pages that followed instead ofa being retested for each
296	page.  Patch by Richard Nolde.
297
2982013-01-18  Frank Warmerdam  <[email protected]>
299
300	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
301	64bit linux.
302
303	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
304	http://bugzilla.maptools.org/show_bug.cgi?id=2427
305
3062012-12-20  Tom Lane  <[email protected]>
307
308	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
309	it will pass with more versions of libjpeg.  (There are at least
310	three in active use now, and JPEG_LIB_VERSION doesn't tell us
311	enough to uniquely identify expected results.)
312
3132012-12-12  Tom Lane  <[email protected]>
314
315	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
316	field_passcount fields: it had the TIFF_VARIABLE and
317	TIFF_VARIABLE2 cases backwards.
318
3192012-12-10  Tom Lane  <[email protected]>
320
321	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
322 	check the linebytes calculation too, get the max() calculation
323 	straight, avoid redundant error messages, check for malloc
324 	failure.
325
3262012-12-10  Tom Lane  <[email protected]>
327
328	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
329 	(to enlarge tbuf for possible partial stride at end) so that
330 	overflow in the integer addition is detected.  Per gripe from
331 	Huzaifa Sidhpurwala.
332
3332012-12-03  Bob Friesenhahn  <[email protected]>
334
335	* tools/tiffset.c: tiffset now supports a -u option to unset a
336	tag.  Patch by Zach Baker. See
337	http://bugzilla.maptools.org/show_bug.cgi?id=2419
338
3392012-11-18  Bob Friesenhahn  <[email protected]>
340
341	* automake: Update Automake to 1.12.5 release.
342
343	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
344	require malloc() to return NULL pointer if requested allocation
345	size is zero.  Assure that _TIFFmalloc does.
346
3472012-11-01  Frank Warmerdam  <[email protected]>
348
349	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
350	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
351	Red Hat Security Response team for the fix.
352
3532012-10-18  Frank Warmerdam  <[email protected]>
354
355	* tif_zip.c: Avoid crash on NULL error messages.
356
3572012-09-22  Bob Friesenhahn  <[email protected]>
358
359	* libtiff 4.0.3 released.
360
3612012-09-20  Bob Friesenhahn  <[email protected]>
362
363	* Makefile.am: Update to Automake 1.12.4
364
3652012-08-19  Bob Friesenhahn  <[email protected]>
366
367	* Makefile.in: Update to Automake 1.12.3
368
369	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
370	some TIFF/FX support in libtiff.  Add the tag definitions to
371	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
372	and also fixes an error in a comment.  Adds the photometric values
373	to tif_print.c, and fixes a bug.  These changes are by Steve
374	Underwood.
375
3762012-08-13  Frank Warmerdam  <[email protected]>
377
378	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
379	compressed file: http://trac.osgeo.org/gdal/ticket/4771
380
3812012-08-02  Frank Warmerdam  <[email protected]>
382
383	* libtiff/tif_dirread.c: report error in case of mismatch value
384	counts for tags (ie. DotRange).
385
3862012-07-26  Tom Lane  <[email protected]>
387
388	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
389 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
390	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
391	as external accessors for the opaque type TIFFField.
392
393	* tools/tiffset.c: Make tiffset use the above functions instead of
394	relying on library private headers.
395
3962012-07-19  Tom Lane  <[email protected]>
397
398	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
399	after a malloc failure.  No crash risk AFAICS, but the program
400	might not report exit code 1 as desired.  h/t [email protected]
401
4022012-07-18  Tom Lane  <[email protected]>
403
404	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
405	prevents core dumps or perhaps even arbitrary code execution when
406	processing a corrupt input file (CVE-2012-3401).
407
4082012-07-06  Bob Friesenhahn  <[email protected]>
409
410	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
411	IJG JPEG 7+ uses a different upsampling algorithm which produces
412	different numeric results.
413
414	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
415	work with IJG JPEG 7+.
416
4172012-07-04  Bob Friesenhahn  <[email protected]>
418
419	* test/raw_decode.c: Add changes so that test can run with build
420	directory outside of source directory.
421
4222012-07-02  Frank Warmerdam  <[email protected]>
423
424	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
425	imagery (http://trac.osgeo.org/gdal/ticket/4732)
426
4272012-06-20  Frank Warmerdam  <[email protected]>
428
429	* libtiff/tif_fax3.c: fix memory initialization of runs, only
430	partly done.
431
432	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
433	full "stride" past the end.
434
4352012-06-19  Frank Warmerdam  <[email protected]>
436
437	* libtiff/tif_packbits.c: fix read past end of data buffer.
438
4392012-06-15  Frank Warmerdam  <[email protected]>
440
441	*  libtiff 4.0.2 released.
442
443	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
444	warnings with clang.
445
4462012-06-15  Tom Lane  <[email protected]>
447
448	* tools/tiff2pdf.c: Defend against integer overflows while
449	calculating required buffer sizes (CVE-2012-2113).
450
4512012-06-12  Frank Warmerdam  <[email protected]>
452
453	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
454
455	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
456
4572012-06-07  Frank Warmerdam  <[email protected]>
458
459	* libtiff/tif_print.c: avoid pretty printing other fields when
460	we don't have the proper amount and type of data or if the field
461	is actually autodefined.
462
4632012-06-05  Frank Warmerdam  <[email protected]>
464
465	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
466	ycbcrsubsampling values result in a runtime error, not just an
467	assertion.
468
469	* tests/custom_dir.c: Add testing of EXIF and custom directory
470	reading and writing.
471
472	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
473	and TIFFCreateEXIFDirectory() functions.
474
475	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
476	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
477	differently.  This is to avoid using special TIFFGetField/TIFFSetField
478	rules for these fields in non-image directories (like EXIF).
479
4802012-06-04  Frank Warmerdam  <[email protected]>
481
482	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
483	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
484	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
485
4862012-06-01  Frank Warmerdam  <[email protected]>
487
488	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
489
490	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
491	http://bugzilla.maptools.org/show_bug.cgi?id=2379
492
493	* libtiff/tif_unix.c: use strerror() to return a more specific error message
494	on failed open.
495	http://bugzilla.maptools.org/show_bug.cgi?id=2341
496
497	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
498	http://bugzilla.maptools.org/show_bug.cgi?id=2386
499
500	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
501	for testing jpeg in tiff image decoding including the "raw" decode interface.
502
5032012-05-31  Frank Warmerdam  <[email protected]>
504
505	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
506	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
507	sampling values.
508
509	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
510
511	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
512	http://bugzilla.maptools.org/show_bug.cgi?id=2398
513
5142012-05-29  Frank Warmerdam  <[email protected]>
515
516	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
517	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
518	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
519	to get/set functions for different tags!
520
521	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
522	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
523
5242012-05-24  Frank Warmerdam  <[email protected]>
525
526	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
527	accumulate" and overwrite the end by one word in at least some cases.
528
5292012-05-23  Frank Warmerdam  <[email protected]>
530
531	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
532
533	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
534
535	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
536	the same image.
537
538	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
539	stripbytecounts or stripoffsets or where loading these fails.
540
541	* libtiff/tif_print.c: be careful about whether min/max values are singular
542	or one per sample.
543
544	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
545	May affect things like ISOSpeedRatings.
546
547	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
548	in some cases.
549
5502012-05-19  Bob Friesenhahn  <[email protected]>
551
552	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
553	example for how to retreive the value of unsupported tags.
554
5552012-03-30  Frank Warmerdam  <[email protected]>
556
557	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
558	care of Tom Lane @ Red Hat.
559
5602012-02-18  Bob Friesenhahn  <[email protected]>
561
562	* libtiff 4.0.1 released.
563
564	* Update automake used to 1.11.3.
565
566	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
567	attribute specification to lessen the risk of accidental macro
568	substitution.  Patch from Vincent Torri.
569
5702012-01-31  Frank Warmerdam  <[email protected]>
571
572	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
573	assumption tag fetching is always successful.
574
575	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
576
5772012-01-22  Bob Friesenhahn  <[email protected]>
578
579	* configure.ac: Add support for using library symbol versioning on
580	ELF systems with the GNU linker.  Support is enabled via
581	--enable-ld-version-script.  Disabled by default for now until
582	there is a decision for how to deploy a libtiff with versioned
583	symbols after libtiff 4.0.0 was already released.
584
5852011-12-22  Bob Friesenhahn  <[email protected]>
586
587	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
588
589	tif_win32.c.  Patch by Edward Lam.
590
591	* configure.ac: Add libtiff private dependency on -llzma for
592	pkg-config.  Patch by Mark Brand.
593	Updated Automake to 1.11.2.
594
5952011-12-21  Bob Friesenhahn  <[email protected]>
596
597	* libtiff 4.0.0 released.
598
5992011-12-08  Frank Warmerdam  <[email protected]>
600
601	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
602	of _TIFFFillStriles() results (#gdal 4372)
603
6042011-12-07  Frank Warmerdam  <[email protected]>
605
606	* libtiff/tif_dirread.c: fixes to deal with invalid files where
607	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
608
609	* libtiff/tif_dirread.c: fix error reporting when there is no
610	tag information struct and name (gdal #4373)
611
6122011-10-22  Bob Friesenhahn  <[email protected]>
613
614	* Update GNU libtool to 2.4.2.
615
616	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
617	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
618	Deroulers.
619
6202011-06-21  Frank Warmerdam  <[email protected]>
621
622	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
623
6242011-05-31  Jim Meyering  <[email protected]>
625
626	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
627	upon failure to allocate "resizeddata".
628	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
629	allocation failure, not before.
630	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
631	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
632	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
633	NULL-deref and possible overflow
634	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
635	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
636	and set of otherwise unused local, data_is_empty.
637	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
638	Diagnose out-of-memory failure and return 0 rather than
639	dereferencing NULL.
640
6412011-05-24  Frank Warmerdam  <[email protected]>
642
643	* libtiff/tif_dirread.c: produce special error message for zero tag
644	directories instead of error out on the malloc(0) failure.
645
6462011-05-16  Frank Warmerdam  <[email protected]>
647
648	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
649	related declarations as they are in active use by libraries
650	such as libgeotiff, and work just fine.  (#2315)
651
6522011-04-20  Frank Warmerdam  <[email protected]>
653
654	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
655	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
656	http://bugzilla.maptools.org/show_bug.cgi?id=2315
657
658	* libtiff/libtiff.def: add some missing (64bit) APIs.
659	http://bugzilla.maptools.org/show_bug.cgi?id=2316
660
6612011-04-09  Bob Friesenhahn  <[email protected]>
662
663	* libtiff 4.0.0beta7 released.
664
6652011-04-09  Bob Friesenhahn  <[email protected]>
666
667	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
668	the run-time target whereas target is used to specify the final
669	output target if the package is a build tool (like a compiler),
670	which libtiff is not.  Resolves libtiff bug 2307 "Use
671	AC_CANONICAL_HOST macro".
672
6732011-04-02  Bob Friesenhahn  <[email protected]>
674
675	* configure.ac: Support configuring TIFF_INT64_FORMAT and
676	TIFF_UINT64_FORMAT appropriately for MinGW32.
677
678	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
679	printf conventions for 64-bit types because it uses the WIN32 CRT.
680
681	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
682	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
683	printf conventions for 64-bit types because it uses the WIN32 CRT.
684
685	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
686	understood by WIN32 CRT.
687
688	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
689
690	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
691	it is much more portable.  Tmpfile is included in ISO/IEC
692	9899:1990 and the WIN32 CRT.
693
6942011-03-26  Frank Warmerdam  <[email protected]>
695
696	* tools/tiffset.c: add -d and -sd switches to allow operation on
697	a particular directory, not just the first (jef).
698
6992011-03-21  Frank Warmerdam  <[email protected]>
700
701	* libtiff/tif_thunder.c: Correct potential buffer overflow with
702	thunder encoded files with wrong bitspersample set.  The libtiff
703	development team would like to thank Marin Barbella and TippingPoint's
704	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
705	CVE-2011-1167).
706	http://bugzilla.maptools.org/show_bug.cgi?id=2300
707
7082011-03-10  Frank Warmerdam  <[email protected]>
709
710	* libtiff/tif_fax3.h: Fix to last change allowing zero length
711	runs at the start of a scanline - needed for legal cases.
712
7132011-03-02  Frank Warmerdam  <[email protected]>
714
715	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
716	a move left.  Without this, a malicious input file can generate an
717	indefinitely large series of runs without a0 ever reaching the right
718	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
719	This is a modified version of a patch proposed by Drew Yao of Apple
720	Product Security.  It adds an unexpected() report, and disallows the
721	equality case, since emitting a run without increasing a0 still allows
722	buffer overrun.
723
7242011-02-23  Frank Warmerdam  <[email protected]>
725
726	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
727
728	* tools/tiff2rgba.c: close source file on error to make leak
729	detection easier.
730
731	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
732
733	http://bugzilla.maptools.org/show_bug.cgi?id=2295
734
7352011-02-22  Frank Warmerdam  <[email protected]>
736
737	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
738	_SUPPORT)
739
7402011-02-18  Frank Warmerdam  <[email protected]>
741
742	* configure.ac, configure: Added support for --enable-chunky-strip-read
743	configure option to enable the experimental feature from a couple
744	months ago for reading big strips in chunks.
745
746	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
747	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
748	Implement optional support for deferring the load of strip/tile
749	offset and size tags for optimized scanning of directories.  Enabled
750	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
751	#define in tif_config.h).
752
7532011-02-11  Frank Warmerdam  <[email protected]>
754
755	* libtiff/tif_print.c: remove unused variable.
756
7572011-02-09  Frank Warmerdam  <[email protected]>
758
759	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
760	with non-console (popup message) builds on win32.
761
762	http://bugzilla.maptools.org/show_bug.cgi?id=2293
763
7642011-01-24  Olivier Paquet  <[email protected]>
765
766	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
767	tif_print.c, tiff.h, tiffiop.h} : Added support for
768	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
769	values for each sample. Presents the min/max of all samples by default for
770	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
771	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
772	http://www.asmail.be/msg0055458208.html
773
7742011-01-06  Frank Warmerdam  <[email protected]>
775
776	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
777	maintained.
778
779	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
780	for CHUNKY_STRIP_READ_SUPPORT.
781
782	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
783	during JPEGPreDecode and JPEGDecode calls.
784	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
785	as compression formats like JPEG keep 16 lines interleaved in a sense
786	and might need to touch	quite a bit of data.
787
788	http://trac.osgeo.org/gdal/ticket/3894
789
7902011-01-03  Lee Howard <[email protected]>
791
792	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
793	caused by commit on 2010-12-14.  Submitted by e-mail from
794	Even Rouault <[email protected]>
795
7962010-12-31  Olivier Paquet  <[email protected]>
797
798	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
799	http://bugzilla.maptools.org/show_bug.cgi?id=2266
800
8012010-12-23  Andrey Kiselev  <[email protected]>
802
803	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
804	compression level parameter (preset) for Deflate and LZMA encoders,
805	e.g "-c lzma:p1" or "-c zip:p9".
806
807	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
808	(preset) in LZMAVSetField().
809
8102010-12-18  Bob Friesenhahn  <[email protected]>
811
812	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
813	Makefile.
814
8152010-12-14  Andrey Kiselev  <[email protected]>
816
817	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
818	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
819	TIFF compression scheme LZMA reserving a new value 34925 for
820	Compression tag. As per
821	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
822
8232010-12-14  Lee Howard <[email protected]>
824
825	* libtiff/tif_dirread.c: tolerate some cases where
826	FIELD_COLORMAP is missing
827	http://bugzilla.maptools.org/show_bug.cgi?id=2189
828
8292010-12-14  Lee Howard <[email protected]>
830
831	* libtiff/tif_read.c: change read_ahead to tmsize_t
832	http://bugzilla.maptools.org/show_bug.cgi?id=2222
833
8342010-12-14  Lee Howard <[email protected]>
835
836	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
837	Windows except on Cygwin
838	http://bugzilla.maptools.org/show_bug.cgi?id=2224
839
8402010-12-14  Lee Howard <[email protected]>
841
842	* tools/gif2tiff.c: fix buffer overrun
843	http://bugzilla.maptools.org/show_bug.cgi?id=2270
844
8452010-12-14  Lee Howard <[email protected]>
846
847	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
848	to improve compatibility with various viewers
849	submitted by e-mail from Dwight Kelly <[email protected]>
850
8512010-12-13  Lee Howard <[email protected]>
852
853	* tools/fax2ps.c: be consistent with page-numbering
854	http://bugzilla.maptools.org/show_bug.cgi?id=2225
855
8562010-12-13  Lee Howard <[email protected]>
857
858	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
859	resolves CVE-2010-2595
860	http://bugzilla.maptools.org/show_bug.cgi?id=2208
861
8622010-12-13  Lee Howard <[email protected]>
863
864	* tools/tiffcrop.c: new release by Richard Nolde
865	http://bugzilla.maptools.org/show_bug.cgi?id=2004
866
8672010-12-12  Lee Howard <[email protected]>
868
869	* tools/tiff2pdf.c: fix colors for images with RGBA
870	interleaved data
871	http://bugzilla.maptools.org/show_bug.cgi?id=2250
872
8732010-12-12  Lee Howard <[email protected]>
874
875	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
876	http://bugzilla.maptools.org/show_bug.cgi?id=2164
877
8782010-12-11  Lee Howard <[email protected]>
879
880	* tools/tiff2pdf.c: remove invalid duplication for Lab
881	http://bugzilla.maptools.org/show_bug.cgi?id=2162
882
8832010-12-11  Lee Howard <[email protected]>
884
885	* libtiff/tif_jpeg.c: fix use of clumplines calculation
886	http://bugzilla.maptools.org/show_bug.cgi?id=2149
887
8882010-12-11  Lee Howard <[email protected]>
889
890	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
891	http://bugzilla.maptools.org/show_bug.cgi?id=2118
892
8932010-12-11  Lee Howard <[email protected]>
894
895	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
896	  libtiff/tif_zip.c: fix build errors for VC6
897	http://bugzilla.maptools.org/show_bug.cgi?id=2105
898
8992010-12-11  Lee Howard <[email protected]>
900
901	* libtiff/tif_stream.cxx: warnings cleanup
902	http://bugzilla.maptools.org/show_bug.cgi?id=2091
903	* libtiff/tif_dirread.c: warnings cleanup
904	http://bugzilla.maptools.org/show_bug.cgi?id=2092
905
9062010-12-11  Lee Howard <[email protected]>
907
908	* tools/tiff2pdf.c: add fill-page option
909	http://bugzilla.maptools.org/show_bug.cgi?id=2051
910
9112010-12-11  Lee Howard <[email protected]>
912
913	* libtiff/tif_dirread.c: modify warnings
914	http://bugzilla.maptools.org/show_bug.cgi?id=2016
915
9162010-12-11  Lee Howard <[email protected]>
917
918	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
919        http://bugzilla.maptools.org/show_bug.cgi?id=1999
920
9212010-12-11  Lee Howard <[email protected]>
922
923	* tools/tiffinfoce.c: strip byte counts are uint64* now
924
9252010-12-11  Lee Howard <[email protected]>
926
927        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
928        or missing byte-count tag
929        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
930        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
931
9322010-12-08  Lee Howard <[email protected]>
933
934        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
935        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
936
9372010-12-06  Lee Howard <[email protected]>
938
939        * libtiff/tif_open.c: Fix mode check before opening a file.
940        http://bugzilla.maptools.org/show_bug.cgi?id=1906
941
9422010-11-27  Bob Friesenhahn  <[email protected]>
943
944	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
945	Patch by Vincent Torri.
946
9472010-10-21  Frank Warmerdam  <[email protected]>
948
949	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
950
951	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
952
953	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
954
9552010-09-25  Lee Howard <[email protected]>
956
957	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
958	with additional command line options for Document Title,
959	Document Creator, and Page Orientation
960
9612010-07-13  Bob Friesenhahn  <[email protected]>
962
963	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
964	potentially unterminated buffer due to using an exceptionally long
965	file name.
966
9672010-07-08  Andrey Kiselev  <[email protected]>
968
969	* tools/tiff2pdf.c: Fixed ID buffer filling in
970	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
971
9722010-07-07  Andrey Kiselev  <[email protected]>
973
974	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
975	to expected value as the warning message suggests. As per bug
976	http://bugzilla.maptools.org/show_bug.cgi?id=1963
977
9782010-07-06  Andrey Kiselev  <[email protected]>
979
980	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
981	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
982	which should be set by value.
983
984	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
985	and _TIFFFieldWithName() if the tag is not found in the tag table.
986	This should be normal situation and returned NULL value should be
987	properly handled by the caller.
988
9892010-07-02  Andrey Kiselev  <[email protected]>
990
991	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
992	integer type conversions. As per bug
993	http://bugzilla.maptools.org/show_bug.cgi?id=2207
994
995	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
996	WhitePoint tag as per bug
997	http://bugzilla.maptools.org/show_bug.cgi?id=2042
998
999	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1000	working with YCbCr image in PickContigCase(). As per bug
1001	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1002
1003	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1004	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1005	we don't need any post-processing. That helps to reset the hook if we
1006	previously set this field to some other value and the hook was
1007	initialized accordingly. As per bug
1008	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1009
10102010-07-01  Andrey Kiselev  <[email protected]>
1011
1012	* tools/tiffgt.c: Properly check the raster buffer allocations for
1013	integer overflows. As per bug
1014	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1015
1016	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1017	upstream.
1018
1019	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1020	multiply_32() and multiply_64() functions into tif_aux.c file and
1021	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1022
10232010-06-30  Andrey Kiselev  <[email protected]>
1024
1025	* tools/tiff2pdf.c: Better generation of ID field in
1026	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1027
1028	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1029	converting JPEG encoded tiles.
1030
1031	* tools/tiff2pdf.c: Better handling of string fields, use static
1032	string buffers instead of dynamically allocated, use strncpy() instead
1033	of strcpy(), control the string lengths.
1034
10352010-06-25  Andrey Kiselev  <[email protected]>
1036
1037	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1038	referencing to uninitialized memory in some cases (e.g. when tile size
1039	set bigger than the image size).
1040
10412010-06-15  Bob Friesenhahn  <[email protected]>
1042
1043	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1044	subsampled data since tiffcrop currently doesn't support it.  Fix
1045	JPEG support.
1046
10472010-06-13  Frank Warmerdam  <[email protected]>
1048
1049	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1050
1051	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1052	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1053	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1054	size is larger.  Also, there are a bunch of places that try to
1055	memset() a malloc'd buffer before checking for malloc failure, which
1056	would result in core dump if there actually were a failure. (#2211)
1057
10582010-06-11  Bob Friesenhahn  <[email protected]>
1059
1060	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1061	avoid compiler warnings if parameter types are not sign
1062	consistent.
1063
1064	* libtiff 4.0.0alpha6 released.
1065
1066	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1067	European page size dimensions.  Added an option to allow the user
1068	to specify a custom page size on the command line.  Fix the case
1069	where a page size specified with a fractional part was being
1070	coerced to an integer by retyping the variables that define the
1071	paper size.
1072
1073	* html/index.html: Update for the 3.9.3 release.
1074
1075	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1076	YCbCr subsampled data since tiffcp currently doesn't support it.
1077	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1078
1079	* Update libtool to version 2.2.10.
1080
10812010-06-10  Bob Friesenhahn  <[email protected]>
1082
1083	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1084	multiplier is zero.
1085
10862010-06-09  Bob Friesenhahn  <[email protected]>
1087
1088	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1089	CVE-2010-1411 was not complete.
1090
1091	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1092	multiply two integers.  Returns zero if there is an integer
1093	overflow.
1094
1095	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1096	is reported when reading the input file.
1097
10982010-06-08  Bob Friesenhahn  <[email protected]>
1099
1100	* Update libtool to version 2.2.8.
1101
1102	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1103	buffer due to integer overflow in TIFFroundup() and several other
1104	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1105	fixes CVE-2010-1411.
1106
1107	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1108	result in an integer overflow. This causes TIFFroundup() to also
1109	return zero if there would be an integer overflow.
1110
1111	* contrib: Add an emacs formatting mode footer to all source files
1112	so that emacs can be effectively used.
1113
11142010-06-03  Oliver Chen Feng <[email protected]>
1115
1116	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1117	file PAGENUMBER value in sequence for users who care the page
1118	sequence, this will also prevent tiff2pdf from creating pdf file from
1119	the merged tiff file with wrong page sequence.
1120
11212010-05-08  Olivier Paquet  <[email protected]>
1122
1123	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1124	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1125	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1126	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1127	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1128
11292010-05-07  Frank Warmerdam  <[email protected]>
1130
1131	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1132	JPEGPreEncode(), not just when we want to output local tables.
1133	Otherwise the quality used during compression may not be right and
1134	might not match the tables in the tables tag.   This bug only occurs
1135	when seeking between directories in the midst of writing blocks.
1136	http://trac.osgeo.org/gdal/ticket/3539
1137
11382010-05-06  Andrey Kiselev  <[email protected]>
1139
1140	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1141	Regenerated from the source.
1142
11432010-05-05  Olivier Paquet  <[email protected]>
1144
1145	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1146	had stopped working. Also made it always print 6 floats instead of
1147	2*SamplesPerPixel.
1148	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1149	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1150	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1151	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1152
11532010-05-05  Frank Warmerdam  <[email protected]>
1154
1155	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1156	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1157
11582010-04-21  Frank Warmerdam  <[email protected]>
1159
1160	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1161	JPEGSetupEncode() is called if the tables already seem to be
1162	established.  This prevents spurious updates and rewriting of
1163	directories with jpegtables when doing updates to existing images.
1164	http://trac.osgeo.org/gdal/ticket/3539
1165
11662010-04-20  Olivier Paquet  <[email protected]>
1167
1168	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1169	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1170	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1171	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1172	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1173
11742010-04-10  Bob Friesenhahn  <[email protected]>
1175
1176	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
1177	when the tag count value is zero.  Error handling is still a
1178	regression since in 3.9.2, empty tags are skipped (with a warning)
1179	rather than returning a hard error and refusing to read the file.
1180
1181	* tools/ppm2tiff.c (main): While case for parsing comment line
1182	requires extra parenthesis to work as expected.  Reported by
1183	Thomas Sinclair.
1184
11852010-04-02  Frank Warmerdam  <[email protected]>
1186
1187	* libtiff/tif_read.c (primarily): Add support for
1188	CHUNKY_STRIP_READ_SUPPORT where large strips are
1189	read in chunks for applications using TIFFReadScanline().
1190	This is intended to make it more practical work with very
1191	large compressed one-strip files.   Feature is off by default.
1192	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
1193	http://trac.osgeo.org/gdal/ticket/3514
1194
11952010-03-31  Frank Warmerdam  <[email protected]>
1196
1197	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
1198	directories so previously placed directories will be migrated to
1199	the end of file if needed.
1200
12012010-03-30  Frank Warmerdam  <[email protected]>
1202
1203	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
1204	to support operating on strips/tiles of more than 256MB.
1205	http://trac.osgeo.org/gdal/ticket/3512
1206
12072010-03-10  Bob Friesenhahn  <[email protected]>
1208
1209	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
1210	that it is clearly a memory allocation error message, and also
1211	includes the size of the allocation request.
1212
12132010-02-22  Lee Howard  <[email protected]>
1214
1215	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
1216	the JPEG TIFF as is is not required in order to prevent it from
1217	being unused and filled with invalid data.  (Leave it to be
1218	generated by later activity.)
1219	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1220	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
1221	data rather than skipping them.  This fixes the ability to view in
1222	Acrobat Reader, Evince, and Ghostscript.
1223	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1224	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
1225	strips.
1226	http://bugzilla.maptools.org/show_bug.cgi?id=2029
1227
12282009-12-03  Frank Warmerdam  <[email protected]>
1229
1230	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
1231	Made so that when working with downsampled images a stub function
1232	reporting an error is used for tif_decoderow.  We cannot meaningfully
1233	support reading scanlines in this situation.  (#1936)
1234
1235	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
1236	resetting of the upsampling values (gdal:#3259).
1237	http://bugzilla.maptools.org/show_bug.cgi?id=1936
1238
12392009-11-30  Frank Warmerdam  <[email protected]>
1240
1241	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
1242	tools/ras2tiff.c: Fix resource leaks on error.
1243	http://bugzilla.maptools.org/show_bug.cgi?id=2121
1244
1245	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
1246	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
1247	of as a custom(generic) field to avoid a potential reentrancy problem.
1248	http://bugzilla.maptools.org/show_bug.cgi?id=2125
1249
1250	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
1251	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
1252	const, and display_sRGB static and const.
1253	http://bugzilla.maptools.org/show_bug.cgi?id=2124
1254
12552009-11-04  Bob Friesenhahn  <[email protected]>
1256
1257	* libtiff 4.0.0alpha5 released.
1258
12592009-11-03  Bob Friesenhahn  <[email protected]>
1260
1261	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
1262	version has undergone substantial testing with arbitrary sample
1263	bit depths.  Also eliminates GCC compilation warnings.
1264
12652009-11-02  Bob Friesenhahn  <[email protected]>
1266
1267	* port/libport.h: Add extern declarations for getopt standard
1268	globals.
1269
12702009-10-31  Bob Friesenhahn  <[email protected]>
1271
1272	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
1273	noticed in 64-bit build of libtiff with Visual Studio 2005.
1274	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
1275	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
1276
1277	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
1278	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
1279	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
1280	http://bugzilla.maptools.org/show_bug.cgi?id=2068
1281
12822009-10-29  Bob Friesenhahn  <[email protected]>
1283
1284	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
1285	pointer" warnings.
1286
12872009-10-28  Bob Friesenhahn  <[email protected]>
1288
1289	* html/tools.html: Add manual page links, and a summary
1290	description of tiffcrop.
1291
12922009-10-07  Bob Friesenhahn  <[email protected]>
1293
1294	* configure.ac: x86_64 should use the same fill order as i386.
1295
12962009-09-24  Bob Friesenhahn  <[email protected]>
1297
1298	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
1299	Nolde.  Major updates to add significant functionality for reading
1300	and writing tile based images with bit depths not a multiple of 8
1301	which cannot be handled by tiffcp.
1302
13032009-09-03  Bob Friesenhahn  <[email protected]>
1304
1305	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
1306	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
1307	"Bug 2090 - OJPEG crash with libjpeg v7".
1308	http://bugzilla.maptools.org/show_bug.cgi?id=2090
1309
13102009-09-03  Frank Warmerdam  <[email protected]>
1311
1312	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
1313	interface when stoponerror is set.
1314	http://bugzilla.maptools.org/show_bug.cgi?id=2071
1315
13162009-08-30  Bob Friesenhahn  <[email protected]>
1317
1318	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
1319	fix build with gcc when using the "-Wformat
1320	-Werror=format-security" flags.
1321
13222009-08-29  Bob Friesenhahn  <[email protected]>
1323
1324	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
1325	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
1326	utilities tests.
1327
13282009-08-28  Bob Friesenhahn  <[email protected]>
1329
1330	* tools/tiffinfo.c: tiffinfo should return error status to the
1331	caller.  Register a private error callback to accomplish that.
1332
1333	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
1334	PNM formats so that we will be able to test more of the tools.
1335	While adding these test images I notice that bmp2tiff and gif2tiff
1336	only support ancient versions of their respective formats.
1337
13382009-08-27  Bob Friesenhahn  <[email protected]>
1339
1340	* libtiff 4.0.0alpha4 released.
1341
1342	* HOWTO-RELEASE: Improved release instructions.
1343
13442009-08-24  Bob Friesenhahn  <[email protected]>
1345
1346	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
1347	fixes for "Bug 2023 - nroff errors in manual pages".
1348	http://bugzilla.maptools.org/show_bug.cgi?id=2023
1349
1350	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
1351	CVE-2009-2347 libtiff: integer overflows in various inter-color
1352	space conversion tools".
1353	http://bugzilla.maptools.org/show_bug.cgi?id=2079
1354
1355	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
1356	Berkenbilt for "Bug 2024 - possible null pointer dereference with
1357	one-line fix".
1358	http://bugzilla.maptools.org/show_bug.cgi?id=2024
1359
1360	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
1361	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
1362	segfault after setting tdir_tag = IGNORE".
1363	http://bugzilla.maptools.org/show_bug.cgi?id=1895
1364
13652009-08-23  Bob Friesenhahn  <[email protected]>
1366
1367	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
1368	tiffcrop.sh into a collection of many specific tests.  Re-wrote
1369	all of the existing tests to be based on some simple shell
1370	functions.  Make distcheck works again.
1371
1372	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
1373	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
1374	tests under valgrind.
1375
13762009-08-21  Bob Friesenhahn  <[email protected]>
1377
1378	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
1379	build.
1380
1381	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
1382	actually activated since it needed to be enabled in this
1383	Makefile.am.  Also activated parallel-tests mode since it offers
1384	useful features such as per-test .log files and a summary test
1385	report .log file.
1386
13872009-08-20  Bob Friesenhahn  <[email protected]>
1388
1389	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
1390	libtool 2.2.6.  Enabled support for silent build rules
1391	(--enable-silent-rules or 'make V=0') and colorized tests.
1392
1393	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
1394
13952009-06-30  Frank Warmerdam  <[email protected]>
1396
1397	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
1398
1399	* tools/tiffcp.c: add -c sgilog support.
1400
1401	* libtiff/tif_luv.c: correct return codes from encoderow to be
1402	1 on success instead of zero.
1403	http://bugzilla.maptools.org/show_bug.cgi?id=2069
1404
1405	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
1406	#1085 for a better underflow fix that errors properly.
1407	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1408	http://bugzilla.maptools.org/show_bug.cgi?id=1985
1409
14102009-06-26  Frank Warmerdam  <[email protected]>
1411
1412	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
1413	fails on oddly sized 12bit jpeg compressed ycbcr images.
1414
14152009-06-22  Frank Warmerdam  <[email protected]>
1416
1417	* libtiff/tif_lzw.c: Fix buffer underflow bug.
1418	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1419
14202009-06-21  Frank Warmerdam  <[email protected]>
1421
1422	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
1423	for dual mode 8/12 bit jpeg support.
1424
14252009-06-03  Frank Warmerdam  <[email protected]>
1426
1427	* libtiff/tif_write.c: do not override the planar configuration to be
1428	contig for one sample files if planar configuration is already set.
1429	http://bugzilla.maptools.org/show_bug.cgi?id=2057
1430
14312009-06-02  Frank Warmerdam  <[email protected]>
1432
1433	* libtiff/libtiff.def: Add TIFFUnsetField.
1434
14352009-05-03  Frank Warmerdam  <[email protected]>
1436
1437	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
1438	error reports to use "%s" as format string.
1439	http://trac.osgeo.org/gdal/ticket/2976
1440
14412009-03-12  Frank Warmerdam  <[email protected]>
1442
1443	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
1444	for some codecs (#2020).
1445
14462009-02-12  Frank Warmerdam  <[email protected]>
1447
1448	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
1449	http://bugzilla.maptools.org/show_bug.cgi?id=2005
1450
14512009-02-09  Frank Warmerdam  <[email protected]>
1452
1453	* libtiff/tif_dirread.c: Improve allocation safety when allocated
1454	buffer for large tags.  (#1998)  Related to (#1993)
1455
14562009-02-06  Frank Warmerdam  <[email protected]>
1457
1458	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
1459	test suite should pass.
1460
14612009-02-05  Frank Warmerdam  <[email protected]>
1462
1463	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
1464	but at the 2GB boundary to avoid overflow on 32bit systems.
1465	http://bugzilla.maptools.org/show_bug.cgi?id=1993
1466
1467	* libtiff/tif_dirread.c: Remove some assertions that blow due to
1468	corrupt files rather than in response to library internal
1469	inconsistencies.
1470	http://bugzilla.maptools.org/show_bug.cgi?id=1995
1471	http://bugzilla.maptools.org/show_bug.cgi?id=1991
1472
1473	* libtiff/tif_dirread.c: Fixed testing for failed result from
1474	TIFFReadDirectoryFindFieldInfo().
1475	http://bugzilla.maptools.org/show_bug.cgi?id=1992
1476
14772009-01-23  Frank Warmerdam  <[email protected]>
1478
1479	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
1480	http://bugzilla.maptools.org/show_bug.cgi?id=1911
1481
1482	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
1483
1484	http://bugzilla.maptools.org/show_bug.cgi?id=1924
1485
1486	* tools/tiffcrop.c: initialize xres/yres values.
1487
1488	* test/*.sh - default ${srcdir} to local directory.
1489
1490	* test/common.sh - start verbose mode after common settings.
1491
1492	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
1493	avoid type mismatches on different platforms.
1494	http://bugzilla.maptools.org/show_bug.cgi?id=1889
1495
14962009-01-22  Frank Warmerdam  <[email protected]>
1497
1498	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
1499	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
1500
1501	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
1502	defined, primarily to reduce prototype warnings on windows.
1503
1504	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
1505	about unused parameters, and uninitialized variables.
1506
15072009-01-21  Bob Friesenhahn  <[email protected]>
1508
1509	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
1510	order to trace full execution detail while executing the test suite.
1511
15122009-01-20  Frank Warmerdam  <[email protected]>
1513
1514	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
1515
15162009-01-20  Bob Friesenhahn  <[email protected]>
1517
1518	* test/Makefile.am (CLEANFILES): Make sure that test output files
1519	are removed by 'make clean'
1520
1521	* Update autotools for 4.0.0 beta3
1522
1523	* 4.0.0 beta3 produced.
1524
15252009-01-12  Bob Friesenhahn  <[email protected]>
1526
1527	* test/tiffcrop.sh: New test script for tiffcrop from Richard
1528	Nolde.
1529
1530	* tools/tiff2ps.c: Remove spurious message to stderr.
1531
15322009-01-11  Bob Friesenhahn  <[email protected]>
1533
1534	* tools/tiff2ps.c: Incorporated significant functionality update
1535	from Richard Nolde.  In particular, support for rotating the image
1536	by 90, 180, 270, and 'auto' has been added.
1537
1538	* man/tiffcrop.1: Incorporated documentation updates from Richard
1539	Nolde.
1540
1541	* tools/tiffcrop.c: Incorporated significant functionality update
1542	from Richard Nolde.
1543
15442008-12-31  Bob Friesenhahn  <[email protected]>
1545
1546	* libtiff/tiffio.h: GCC will now validate format specifications
1547	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
1548	TIFFWarningExt() in order to reveal bugs.
1549
1550	* Many fixes throughout to work better as a 64-bit build.
1551
15522008-12-30  Bob Friesenhahn  <[email protected]>
1553
1554	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
1555	tags now require 64-bit parameter rather than 32-bit.
1556
1557	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
1558	64-bit values.
1559
1560	* tools/thumbnail.c: Eliminate crash noticed while running test
1561	suite.
1562
15632008-12-29  Bob Friesenhahn  <[email protected]>
1564
1565	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
1566	Initialize stack variables to avoid compiler warning.
1567
1568	* tools/tiffinfoce.c (main): Use toff_t for offset type when
1569	retrieving offset of EXIF IFD.
1570
1571	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
1572	TIFFClientOpen() callback and other external function definitions.
1573
1574	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
1575	type now.  Fixes crash when dumping files containing an EXIF IFD.
1576
1577	* m4/libtool.m4: Update to libtool 2.2.6.
1578
15792008-12-21  Frank Warmerdam  <[email protected]>
1580
1581	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
1582
1583	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
1584	strip for the last partial strip in a jpeg compressed file.
1585	http://bugzilla.maptools.org/show_bug.cgi?id=1981
1586
15872008-10-29  Frank Warmerdam  <[email protected]>
1588
1589	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
1590	we take the shortcut to only update the strip/tile offsets in place.
1591	http://trac.osgeo.org/gdal/ticket/2621
1592
15932008-10-21  Andrey Kiselev  <[email protected]>
1594
1595	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
1596	the older versions retained).
1597
15982008-10-09  Frank Warmerdam  <[email protected]>
1599
1600	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
1601	IPP enabled version of libjpeg from Intel.
1602	http://bugzilla.maptools.org/show_bug.cgi?id=1951
1603
16042008-09-05  Andrey Kiselev  <[email protected]>
1605
1606	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
1607	Required for libtiff 4.0.
1608
1609	* tools/tiffsplit.c: Use dynamically allocated array instead of static
1610	when constructing output file names.
1611
16122008-09-03  Andrey Kiselev  <[email protected]>
1613
1614	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
1615	doing the filename/path construction.
1616
1617	* tools/tiff2pdf.c: More appropriate format string in
1618	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
1619
1620	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
1621
1622	http://bugzilla.maptools.org/show_bug.cgi?id=1929
1623
1624	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
1625	CVE-2008-2327 security issue.
1626
16272008-09-01  Frank Warmerdam  <[email protected]>
1628
1629	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
1630
1631	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
1632	depending on whether the file is bigtiff or classic tiff.
1633	http://bugzilla.maptools.org/show_bug.cgi?id=1917
1634
16352008-08-12  Edward Lam  <[email protected]>
1636
1637	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
1638	consistent (__int64) casting when testing if _lseeki64 has
1639	successfully seeked as requested.  This is necessary for large
1640	file support to work since off_t is only 32-bit.
1641
16422008-07-29  Frank Warmerdam  <[email protected]>
1643
1644	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
1645	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
1646	with control logic to return runtime errors (c/o Even Rouault) (#1927).
1647
16482008-06-17  Frank Warmerdam  <[email protected]>
1649
1650	* tools/tiffcrop.c: Fix some portability problems.
1651
1652	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
1653	used in tif_jpeg.c.
1654
1655	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
1656	as TIFFOpen().
1657
16582008-06-01  Frank Warmerdam  <[email protected]>
1659
1660	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
1661	like Sparc/Solaris.
1662	http://bugzilla.maptools.org/show_bug.cgi?id=1892
1663
16642008-05-27  Frank Warmerdam  <[email protected]>
1665
1666	* libtiff.def: Add TIFFFindField
1667	http://bugzilla.maptools.org/show_bug.cgi?id=1891
1668
16692008-05-26  Frank Warmerdam  <[email protected]>
1670
1671	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
1672
1673	* li2008-04-15  Andrey Kiselev  <[email protected]>
1674
1675btiff/tif_win32.c: Replace custom Win32 memory api with generic
1676	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
1677	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
1678
1679	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
1680	in windows version (care of Edward Lam).
1681
16822008-05-24  Frank Warmerdam  <[email protected]>
1683
1684	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
1685	compression codec codes.
1686
1687	* tif_dirwrite.c: fix potential memory leak.
1688
1689	* tif_dirread.c: Fix unchecked malloc result.
1690
16912008-05-24  Bob Friesenhahn  <[email protected]>
1692
1693	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
1694	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
1695	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
1696	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
1697	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
1698	suggestions from Lee Howard posted to the tiff list on 13 Sep
1699	2007.
1700
17012008-05-23  Frank Warmerdam  <[email protected]>
1702
1703	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
1704	possible runtime problem reported by coverity.
1705
1706	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
1707
1708	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
1709	http://bugzilla.maptools.org/show_bug.cgi?id=1888
1710
1711	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
1712
1713	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
1714
1715	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
1716	Cleanup scanline allocation to avoid coverity warning.
1717
1718	* tools/thumbnail.c: Check for TIFFOpen() failure.
1719
17202008-05-18  Frank Warmerdam  <[email protected]>
1721
1722	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
1723	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
1724	why this is needed.
1725
17262008-05-09  Bob Friesenhahn  <[email protected]>
1727
1728	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
1729	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
1730
17312008-04-15  Andrey Kiselev  <[email protected]>
1732
1733	* test/: Test suite updated. Everything is passed now.
1734
1735	* libtiff/tif_dirinfo.c: Fixed description of the
1736	TIFFTAG_NUMBEROFINKS tag.
1737
17382008-04-14  Andrey Kiselev  <[email protected]>
1739
1740	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
1741	Get rid of some of "dereferencing type-punned" warnings by converting
1742	tdir_offset field of TIFFDirEntry structure into union.
1743
17442008-04-10  Andrey Kiselev  <[email protected]>
1745
1746	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
1747	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
1748	from the public interface. Type of its 'count' parameter changed
1749	from uint32 to tmsize_t.
1750
1751	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
1752	of the tiff structure have the size_t type instead of uint32.
1753
17542008-04-09  Andrey Kiselev  <[email protected]>
1755
1756	* tools/tiffdump.c: Added support for MSVS 6.0.
1757
1758	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
1759	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
1760	point values on MSVS 6.0 platform.
1761
17622008-03-14  Frank Warmerdam  <[email protected]>
1763
1764	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
1765	TIFFReadDirEntryArray() since they are interfering with seemingly
1766	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
1767
17682008-02-09  Joris Van Damme  <[email protected]>
1769
1770	* tif_dirread.c: Added handling for the case of number of values for
1771	PageNumber tag different from 2 (previously resulted in an assert
1772	indicating lack of handling and was forgotten about)
1773
17742008-02-01  Frank Warmerdam  <[email protected]>
1775
1776	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
1777	the actual jpeg data stream if the first strip/tile has zero size.
1778	This is the case when GDAL creates a new file with zero sizes, closes
1779	and reopens it.
1780
17812008-01-07  Frank Warmerdam  <[email protected]>
1782
1783	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
1784
17852008-01-01  Frank Warmerdam  <[email protected]>
1786
1787	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
1788
1789	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
1790	targets.
1791
1792	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
1793	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
1794	(x64).
1795
1796	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
1797	and TIFFFieldWithName() now return TIFFField pointers instead of
1798	TIFFFieldInfo pointers.
1799
1800	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
1801	exist. This makes it compile again on Windows
1802
1803	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
1804	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
1805
1806	* test/rewrite_tag.c: New test for TIFFRewriteField().
1807
18082007-12-31  Frank Warmerdam  <[email protected]>
1809
1810	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
1811	rewrites one field "on disk" updating an existing directory
1812	entry.  Lots of limitations still...
1813
1814	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
1815	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
1816	the strip offset/size values are dirty but nothing else about the
1817	directory is dirty.  In flush handle "just stripmaps dirty" as a
1818	special case that just rewrites these values without otherwise
1819	modifying the directory on disk using TIFFRewriteField().
1820
1821	We also modify logic so that in update mode the directory is not
1822	marked dirty on read, but only when something is changed.  This
1823	means we need to keep track of updates to the stripmap stuff in
1824	TIFFAppendToStrip().
1825
18262007-12-10  Frank Warmerdam  <[email protected]>
1827
1828	* tif_jpeg.c: Improve ability to switch between encoding and decoding
1829	in the jpeg code (gdal bug #2033).
1830
18312007-11-23  Frank Warmerdam  <[email protected]>
1832
1833	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
1834	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
1835	rawcp/rawcc buffer are for writing and thus may require flushing.
1836	Necessary to distinguish whether they need to be written to disk when
1837	in mixed read/write mode and doing a mixture of writing followed by
1838	reading.  http://trac.osgeo.org/gdal/ticket/1758
1839
18402007-11-23  Andrey Kiselev  <[email protected]>
1841
1842	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
1843	from Alexey Chupahin.
1844
18452007-11-02  Frank Warmerdam  <[email protected]>
1846
1847	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
1848	establishing if an existing tile can be rewritten to the same location
1849	by comparing the current size to all the other blocks in the same
1850	directory.  This is dangerous in many situations and can easily
1851	corrupt a file.  (observed in esoteric GDAL situation that's hard to
1852	document).  This change involves leaving the stripbytecount[] values
1853	unaltered till TIFFAppendToStrip().  Now we only write a block back
1854	to the same location it used to be at if the new data is the same
1855	size or smaller - otherwise we move it to the end of file.
1856
1857	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
1858	data when writing the directory just because we have BEENWRITING at
1859	some point in the past.  This was causing odd junk to be written out
1860	in a tile of data when a single tile had an interleaving of reading
1861	and writing with reading last.  (highlighted by gdal
1862	autotest/gcore/tif_write.py test 7.
1863
1864	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
1865	modifying callers buffer.
1866	http://trac.osgeo.org/gdal/ticket/1965
1867
1868	* tif_predict.c/h: more fixes related to last item, keeping a
1869	distinct pfunc for encode and decode cases as these were getting
1870	mixed up sometimes.
1871	http://trac.osgeo.org/gdal/ticket/1948
1872
18732007-11-01  Frank Warmerdam  <[email protected]>
1874
1875	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
1876	predictor based encoding and decoding works in read-write update
1877	mode properly.
1878	http://trac.osgeo.org/gdal/ticket/1948
1879
18802007-10-24  Joris Van Damme  <[email protected]>
1881
1882	* tif_dirread.c: Fixed problem with bogus file triggering
1883	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
1884	ChopUpSingleUncompressedStrip
1885
18862007-10-22  Joris Van Damme  <[email protected]>
1887
1888	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
1889	at best, access violation at worst, when subsampled JPEG compressed imagery
1890	is decoded without the JPEG_COLORMODE feature
1891
18922007-10-11  Frank Warmerdam  <[email protected]>
1893
1894	* html/index.html: Update "people responsible" section.
1895
18962007-10-05  Frank Warmerdam  <[email protected]>
1897
1898	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
1899	as reported on the mailing list.
1900
19012007-10-01  Joris Van Damme  <[email protected]>
1902
1903	* changed some more incorrect %lud printf flags to %lu
1904
19052007-09-29  Joris Van Damme  <[email protected]>
1906
1907	* tif_dirread.c: Strip chopping interfered badly with uncompressed
1908	subsampled images because it tried to divide subsampled rowblocks,
1909	leading to all sorts of errors throughout the library for these
1910	images. Fixed by making strip chopping divide in row counts that
1911	are a multiple of vertical subsampling value.
1912
19132007-09-28  Joris Van Damme  <[email protected]>
1914
1915	* tif_dirread.c: Logical cast working around compiler warning
1916
1917	* tif_read.c: Correction of some error flags and parameter lists
1918
19192007-09-27  Joris Van Damme  <[email protected]>
1920
1921	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
1922	when dealing with large bitspersample values, shutting up purification
1923	tools that warn about truncation, though it remains incorrect and
1924	indicates a conceptual problem there.
1925
1926	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
1927	of first IFD) to proper place because it badly interfered with memory
1928	mapping, resulting in mapping flag even with dummy mapping functions
1929	that returned 0 whilst at the same time the mapping tif_size wasn't
1930	set, thus resulting in continuous incorrect beyond-eof errors.
1931
19322007-09-24  Joris Van Damme  <[email protected]>
1933
1934	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
1935	inconsistent use of const in tiffFields and exifFields definition
1936
19372007-09-20  Frank Warmerdam  <[email protected]>
1938
1939	* tif_dirwrite.c: Always write tile/strip offsets and sizes
1940	using LONG8 type when output format is BigTIFF.  The
1941	TIFFWriteDirectoryTagLongLong8Array() function was restructured
1942	accordingly.
1943
1944	* tif_dirread.c: Improvements to error reporting text in
1945	TIFFFetchDirectory().
1946
19472007-09-19  Bob Friesenhahn  <[email protected]>
1948
1949	* test/images: Added a small collection of test images for use by
1950	test programs and scripts.
1951	* test/tiffinfo.sh: A trivial example test script.
1952	* test/common.sh: Added small script for setting the environment
1953	used by script-based tests.
1954
19552007-08-24  Frank Warmerdam  <[email protected]>
1956
1957	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
1958	zero when writing directory contents to preserve the ability to
1959	rewrite directories in place, even in the middle of a directory
1960	chain.
1961
1962	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
1963	definitions that are missing.  Existing definitions are silently
1964	ignored.
1965
1966	* tif_dirread.c: Add runtime error for fields for which no definition
1967	is found (in addition to an assert for developers) in
1968	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
1969	prudent.
1970
19712007-08-10  Joris Van Damme  <[email protected]>
1972
1973	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
1974	from _TIFFRGBAImage structure to revert unwanted ABI change.
1975
19762007-08-10  Joris Van Damme  <[email protected]>
1977
1978	* libtiff/tif_win32.c: use SetFilePointer instead of
1979	SetFilePointerEx, as per bug
1980
1981	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
1982
19832007-07-19  Andrey Kiselev  <[email protected]>
1984
1985	* libtiff/tif_stream.cxx: Put all callback functions declarations
1986	inside extern "C" block.
1987
1988	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
1989	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
1990	formatter instead of "%lld" with MSVC compiler.
1991
1992	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
1993	_TIFFUInt64ToDouble() functions.
1994
19952007-07-18  Andrey Kiselev  <[email protected]>
1996
1997	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
1998	integer constants.
1999
2000	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2001	remove tif_config.h/tiffconf.h during cleaning. As per bug
2002
2003	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2004
2005	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2006
2007	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2008
20092007-07-13  Andrey Kiselev  <[email protected]>
2010
2011	* libtiff 4.0.0alpha released.
2012
20132007-07-12  Andrey Kiselev  <[email protected]>
2014
2015	* tools/tiff2pdf.c: Added missed extern optind as per bug
2016
2017	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2018
2019	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2020	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2021	extending scheme completed.
2022
20232007-07-11  Bob Friesenhahn  <[email protected]>
2024
2025	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2026	use standard C++ library size types and attempt to detect overflow
2027	cases.
2028
20292007-07-08  Andrey Kiselev  <[email protected]>
2030
2031	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2032	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2033	tag extending scheme. Use the new scheme everywhere.
2034
2035	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2036	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2037	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2038	TIFFFIeldInfo structure replaced with TIFFField structure.
2039	TIFFFieldInfo retained for the backward compatibility.
2040
20412007-07-05  Bob Friesenhahn  <[email protected]>
2042
2043	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2044	defined.
2045
20462007-07-04  Andrey Kiselev  <[email protected]>
2047
2048	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2049	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2050	removed.
2051
2052	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2053	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2054	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2055	These tags are not codec-specific and relate to image content, so
2056	process them as other normal tags.
2057
2058	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2059	public tiffio.h to private tif_dir.h.
2060
2061	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2062	outdated.
2063
20642007-07-03  Andrey Kiselev  <[email protected]>
2065
2066	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2067	tif_win3.c}: Obsoleted portability stuff removed.
2068
2069	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2070
2071	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2072
2073	Patch from William Bader.
2074
2075	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2076	significant upgrade of the whole utility as per bug
2077
2078	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2079
2080	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2081	PDF file using TIFFClientOpen() machinery as it is implemented
2082	by Leon Bottou.
2083
20842007-06-26  Bob Friesenhahn  <[email protected]>
2085
2086	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2087	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2088	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2089	allow returning -1 for errors.
2090	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2091
20922007-06-25  Bob Friesenhahn  <[email protected]>
2093
2094	* port/strtoull.c: New porting function in case strtoull() is not
2095	available on the target system.
2096	* configure.ac: Add configure support for determining sized types
2097	in a portable way and performing necessary substitutions in
2098	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2099	definitions.
2100
21012007-04-27  Andrey Kiselev  <[email protected]>
2102
2103	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2104
2105	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2106
21072007-04-07  Andrey Kiselev  <[email protected]>
2108
2109	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2110	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2111	tif_predict.c, tif_zip.c}: Finally fix bug
2112
2113	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2114
2115	by introducing _TIFFMergeFieldInfo() returning integer error status
2116	instead of void in case of problems with field merging (e.g., if the
2117	field with such a tag already registered). TIFFMergeFieldInfo() in
2118	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2119	check returned value.
2120
21212007-04-07  Frank Warmerdam  <[email protected]>
2122
2123	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2124	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2125
21262007-04-06  Frank Warmerdam  <[email protected]>
2127
2128	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2129	will convert from decompressor to compressor or compress to decompress
2130	if required by the force arguments.  This works around a problem in
2131	where the JPEGFixupTestSubsampling() may cause a decompressor to
2132	be setup on a directory when later a compressor is required with the
2133	force flag set.  Occurs with the addtiffo program for instance.
2134
21352007-04-06  Andrey Kiselev  <[email protected]>
2136
2137	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2138	functionality from Richard Nolde. As per bug
2139
2140	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2141
21422007-03-28  Frank Warmerdam  <[email protected]>
2143
2144	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2145
21462007-03-17  Joris Van Damme  <[email protected]>
2147
2148	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2149
21502007-03-07  Joris Van Damme  <[email protected]>
2151
2152	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2153	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2154	factor. This bug is mentioned in:
2155	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2156	http://www.asmail.be/msg0054766825.html
2157
21582007-03-07  Joris Van Damme  <[email protected]>
2159
2160	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2161
2162	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2163	unused arguments by standard C indication for the same
2164
21652007-02-27  Andrey Kiselev  <[email protected]>
2166
2167	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2168	counters in TIFFFetchData(). Should finally fix the issue
2169
2170	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2171
21722007-02-24  Andrey Kiselev  <[email protected]>
2173
2174	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
2175	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2176
2177	* libtiff/tif_dirread.c: Added special function to handle
2178	SubjectDistance EXIF tag as per bug
2179
2180	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
2181
2182	* tools/tiff2pdf.c: Do not assume inches when the resolution units
2183	do not specified. As per bug
2184
2185	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2186
2187	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
2188	it was set as infinite. As per bug
2189
2190	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2191
2192	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
2193	by Richard Nolde. As per bug
2194
2195	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
2196
21972007-02-22  Andrey Kiselev  <[email protected]>
2198
2199	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
2200	ExtraSamples == 999 produced by Corel Draw. As per bug
2201
2202	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
2203
2204	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
2205	changed from tsize_t to uint32 to be able to work with data arrays
2206	larger than 2GB. Fixes bug
2207
2208	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2209
2210	Idea submitted by Matt Hancher.
2211
22122007-01-31  Andrey Kiselev  <[email protected]>
2213
2214	* tools/tif2rgba.c: This utility does not work properly on big-endian
2215	architectures. It was fixed including the bug
2216
2217	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
2218
22192007-01-15  Mateusz Loskot <[email protected]>
2220
2221	* Submitted libtiff port for Windows CE platform
2222	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
2223	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
2224	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
2225	functons from tif_win32.c.
2226	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
2227	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
2228	standard header files for Windows CE build.
2229	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
2230
22312006-11-19  Frank Warmerdam  <[email protected]>
2232
2233	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
2234	we move a strip.
2235	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
2236
22372006-10-13  Andrey Kiselev  <[email protected]>
2238
2239	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
2240	in Gentoo bug ():
2241
2242	http://bugs.gentoo.org/show_bug.cgi?id=142383
2243
2244	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
2245	Though it is still far from the state of being working and useful.
2246
22472006-10-12  Andrey Kiselev  <[email protected]>
2248
2249	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
2250	method.
2251
2252	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
2253	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
2254
2255	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
2256	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
2257
2258	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
2259	vulnerabilities, reported in Gentoo bug ():
2260
2261	http://bugs.gentoo.org/show_bug.cgi?id=142383
2262
22632006-09-28  Andrey Kiselev  <[email protected]>
2264
2265	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
2266	vulnerabilities, as per	Gentoo bug ():
2267
2268	http://bugs.gentoo.org/show_bug.cgi?id=142383
2269
22702006-09-27  Frank Warmerdam  <[email protected]>
2271
2272	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
2273	encoding and decoding on the same read-write TIFF handle.  The LZW
2274	code can now maintain encode and decode state at the same time. The
2275	ZIP code will switch back and forth as needed.
2276	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
2277
22782006-09-20  Frank Warmerdam  <[email protected]>
2279
2280	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
2281	tif_config.vc.h for easier identification by folks using an IDE.
2282
22832006-07-25  Frank Warmerdam  <[email protected]>
2284
2285	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
2286
22872006-07-19  Frank Warmerdam  <[email protected]>
2288
2289	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
2290	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
2291	to bug report by Peng Gao with black strip at bottom of images.
2292
22932006-07-12  Frank Warmerdam  <[email protected]>
2294
2295	* tif_dirwrite.c: make sure to use uint32 for wordcount in
2296	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
2297	It already seems to have been done for other field types.  Needed
2298	for "tiffset" on files with geotiff ascii text.
2299
23002006-07-04  Bob Friesenhahn  <[email protected]>
2301
2302	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
2303	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
2304	its use does not appear to be required, so use it only when it is
2305	available.
2306
23072006-06-24  Andrey Kiselev  <[email protected]>
2308
2309	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
2310
2311	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
2312	function TIFFFetchDirectory() avoiding code duplication in
2313	TIFFReadDirectory() and TIFFReadCustomDirectory().
2314
23152006-06-19  Frank Warmerdam  <[email protected]>
2316
2317	* tools/tiff2pdf.c: Fix handling of -q values.
2318	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
2319
23202006-06-17  Frank Warmerdam  <[email protected]>
2321
2322	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
2323	files.  Modified TIFFReadDirectory() to not invoke
2324	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
2325	but one of them is zero.
2326	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
2327
23282006-06-08  Andrey Kiselev  <[email protected]>
2329
2330	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
2331	checking code in the separate function TIFFCheckDirOffset().
2332
2333	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
2334
2335	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
2336
2337	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
2338
2339	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
2340
2341	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
2342
2343	* tools/tiff2pdf.c: Fixed buffer overflow condition in
2344	t2p_write_pdf_string() as per bug
2345
2346	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
2347
23482006-06-07  Andrey Kiselev  <[email protected]>
2349
2350	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
2351	support for JBIG compression scheme (34661 code) contributed by Lee
2352	Howard. As per bug
2353
2354	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
2355
2356	* configure, configure.ac: OJPEG support enabled by default.
2357
2358	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
2359
23602006-06-03  Bob Friesenhahn  <[email protected]>
2361
2362	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
2363	TIFFPrintDirectory().  Joris Van Damme authored the fix.
2364
23652006-04-21  Andrey Kiselev  <[email protected]>
2366
2367	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
2368	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
2369
2370	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
2371	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
2372	Added support for OpenVMS by Alexey Chupahin, [email protected].
2373
23742006-04-20  Andrey Kiselev  <[email protected]>
2375
2376	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
2377	Properly set the binary mode for stdin stream as per bug
2378	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
2379
2380	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
2381	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
2382	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
2383	tiffset.1}: Improvements in page formatting as per bug
2384	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
2385
2386	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
2387	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
2388
23892006-04-18  Frank Warmerdam  <[email protected]>
2390
2391	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
2392	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
2393
23942006-04-12  Joris Van Damme  <[email protected]>
2395
2396	* libtiff/tif_getimage.c: Added support for planarconfig separate
2397	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
2398
23992006-04-11  Joris Van Damme  <[email protected]>
2400
2401	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
2402	- Conversion of unassociated alpha to associated alpha now done with
2403	  more performant LUT, and calculation more correct
2404	- Conversion of 16bit data to 8bit data now done with
2405	  more performant LUT, and calculation more correct
2406	- Bugfix of handling of 16bit RGB with unassociated alpha
2407
24082006-04-11  Joris Van Damme  <[email protected]>
2409
2410	* libtiff/tif_getimage.c:
2411	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
2412	  buffer for alpha strile and filled it, only to never read it back.
2413	  Removed allocation and fill.
2414	- Minor rename of vars in gtTileSeparate and gtStripSeparate
2415	  anticipating planned functionality extension
2416
24172006-04-08  Joris Van Damme  <[email protected]>
2418
2419	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
2420	and pickTileSeparateCase to PickSeparateCase as both work on strips as
2421	well
2422
2423	* libtiff/tif_getimage.c: moved img->get selection from
2424	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
2425	logical hook for planned functionality extension
2426
24272006-04-08  Joris Van Damme  <[email protected]>
2428
2429	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
2430	of inappropriate use of jpeg_abort instead of jpeg_destroy
2431
24322006-04-07  Joris Van Damme  <[email protected]>
2433
2434	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
2435	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
2436	on subsampled images - this ought to get sorted when we feel brave
2437	enough to replace TIFFScanlineSize alltogether
2438
2439	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
2440
24412006-04-04  Joris Van Damme  <[email protected]>
2442
2443	* libtiff/tiffio.h: added new type tstrile_t
2444
2445	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
2446	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
2447	toff_t*
2448
2449	* libtiff/tif_ojpeg.c: totally new implementation
2450
2451	* libtiff/tif_dirread.c: added several hacks to suit new support of
2452	OJPEG
2453
2454	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
2455	of OJPEG images in favor of tif_getimage.c native handling of
2456	YCbCr and desubsampling
2457
24582006-03-29  Frank Warmerdam  <[email protected]>
2459
2460	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
2461	interpretation causes the "upsampled" flag to be recomputed.  Fixes
2462	peculiar bug where photometric flag had to be set before jpegcolormode
2463	flag.
2464
24652006-03-25  Joris Van Damme  <[email protected]>
2466
2467	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
2468
2469	* libtiff/tif_strip.c: temporarilly added two new versions of
2470	TIFFScanlineSize
2471	  - TIFFNewScanlineSize: proposed new version, after all related
2472	    issues and side-effects are sorted out
2473	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
2474	This needs further sorting out.
2475
24762006-03-25  Joris Van Damme  <[email protected]>
2477
2478	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
2479	of last truncated strip data to TIFFWriteEncodedStrip
2480
24812006-03-25  Joris Van Damme  <[email protected]>
2482
2483	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
2484
24852006-03-25  Joris Van Damme  <[email protected]>
2486
2487	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
2488
2489	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
2490
2491	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
2492	prepare	the path for new tif_ojpeg.c
2493
24942006-03-23  Andrey Kiselev  <[email protected]>
2495
2496	* libtiff 3.8.2 released.
2497
2498	* tools/Makefile.am: Use runtime paths linker flags when rpath
2499	option enabled.
2500
25012006-03-21  Andrey Kiselev  <[email protected]>
2502
2503	* libtiff/libtiff.def: Added missed exports as per bug
2504	http://bugzilla.remotesensing.org/attachment.cgi?id=337
2505
2506	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
2507	tools/Makefile.vc: Makefiles improvements as per bug
2508	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
2509
2510	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
2511	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
2512	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
2513
2514	* libtiff/tif_strip.c: Take subsampling in account when calculating
2515	TIFFScanlineSize().
2516
2517	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
2518
25192006-03-17  Andrey Kiselev  <[email protected]>
2520
2521	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
2522	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
2523
2524	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
2525	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
2526
25272006-03-16  Andrey Kiselev  <[email protected]>
2528
2529	* libtiff/tiffiop.h: Added decalration for
2530	_TIFFSetDefaultCompressionState().
2531
2532	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
2533	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
2534	codec cleanup methods. As per bug
2535
2536	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
2537
25382006-03-15  Andrey Kiselev  <[email protected]>
2539
2540	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
2541	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
2542
2543	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
2544	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
2545
2546	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
2547	removed; move here the STRIP_SIZE_DEFAULT macro definition.
2548
2549	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
2550	macro definition.
2551
2552	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
2553
25542006-03-14  Andrey Kiselev  <[email protected]>
2555
2556	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
2557	in TIFFReadDirectory, because it is always set at the start of
2558	function and we allow TIFFs without that tag set.
2559
25602005-03-13  Andrey Kiselev  <[email protected]>
2561
2562	* libtiff 3.8.1 released.
2563
25642006-03-07  Andrey Kiselev  <[email protected]>
2565
2566	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
2567	function as per bug
2568	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2569
2570	* libtiff/tif_dirread.c: More wise check for integer overflow
2571	condition as per bug
2572	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2573
2574	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
2575	Properly restore setfield/getfield methods in cleanup functions. As
2576	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2577
25782006-03-03  Andrey Kiselev  <[email protected]>
2579
2580	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
2581	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
2582
2583	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
2584	TIFFPredictorCleanup() in codec cleanup methods. As per bug
2585
2586	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2587
2588	* libtiff/tif_dirread.c: Fixed integer overflow condition in
2589	TIFFFetchData() function. As per bug
2590
2591	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2592
25932006-03-01  Andrey Kiselev  <[email protected]>
2594
2595	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
2596	TIFFSetField() method, not directly. As per bug
2597
2598	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
2599
2600	* tools/ppm2tiff.c: Added support for PBM files as per bug
2601	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
2602
26032006-02-27  Andrey Kiselev  <[email protected]>
2604
2605	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
2606	to avoid crash as per bug
2607
2608	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
2609
26102006-02-26  Andrey Kiselev  <[email protected]>
2611
2612	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
2613	t2p_sample_rgba_to_rgb() was used in place of each other, that was
2614	resulted in problems with RGBA images with associated alpha.
2615	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
2616
26172006-02-23  Andrey Kiselev  <[email protected]>
2618
2619	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
2620	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2621
2622	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
2623	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
2624	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2625
2626	* tools/tiff2ps.c: Properly scale all the pages when converting
2627	multipage TIFF with /width/height/center options set. As per bug
2628
2629	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
2630
26312006-02-15  Andrey Kiselev  <[email protected]>
2632
2633	* tools/tiff2pdf.c: Do not create output file until all option checks
2634	will be done. As per bug
2635
2636	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
2637
2638	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
2639	list of input files as per bug:
2640
2641	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
2642
26432006-02-09  Andrey Kiselev  <[email protected]>
2644
2645	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
2646	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
2647
2648	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
2649	TIFFRGBAImage interface.
2650
2651	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
2652	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
2653
26542006-02-07  Frank Warmerdam  <[email protected]>
2655
2656	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
2657	compressed TIFF files, per submission from Dan Cobra.
2658
26592006-02-07  Andrey Kiselev  <[email protected]>
2660
2661	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
2662	cast values to avoid warnings. As per bug
2663	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2664
2665	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
2666	appropriate. As per bug
2667	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2668
2669	* libtiff/tif_aux.c: Fixed type of temporary variable in
2670	_TIFFCheckMalloc() as per bug
2671	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2672
26732006-02-06  Andrey Kiselev  <[email protected]>
2674
2675	* libtiff/tif_aux.c: Return static array when fetching default
2676	YCbCrCoefficients (another problem, reported a the
2677	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
2678
26792006-02-03  Andrey Kiselev  <[email protected]>
2680
2681	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
2682	YCbCrSubsampling and DotRange tags as per bugs
2683
2684	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
2685	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
2686
2687	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
2688	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
2689
2690	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
2691
26922006-01-23  Andrey Kiselev  <[email protected]>
2693
2694	* libtool related stuff updated from the 2.1a branch.
2695
26962006-01-11  Frank Warmerdam  <[email protected]>
2697
2698	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
2699	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
2700	properly as per bug:
2701	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
2702
27032006-01-09  Bob Friesenhahn  <[email protected]>
2704
2705	* configure.ac: Fix with_default_strip_size comparison as reported
2706	by Norihiko Murase.
2707
27082006-01-08  Bob Friesenhahn  <[email protected]>
2709
2710	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
2711	incorrectly, tests were not actually testing the uninstalled
2712	libtiff.  Now they are.
2713
27142006-01-04  Andrey Kiselev  <[email protected]>
2715
2716	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
2717	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
2718	should be uint32 value.
2719
27202006-01-02  Bob Friesenhahn  <[email protected]>
2721
2722	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
2723	be used if build directory is not the same as source directory.
2724	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
2725	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
2726	and re-sorted tag names in alphabetical order.
2727
27282005-12-29  Andrey Kiselev  <[email protected]>
2729
2730	* libtiff 3.8.0 released.
2731
27322005-12-28  Bob Friesenhahn  <[email protected]>
2733
2734	* tools/bmp2tiff.c (main): Fixed warning regarding returning
2735	inconsistent types from a condition.
2736	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
2737	format.
2738	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
2739
27402005-12-28  Joris Van Damme  <[email protected]>
2741
2742	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
2743
27442005-12-27  Andrey Kiselev  <[email protected]>
2745
2746	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
2747	windows.h, to reduce the compile time.
2748
27492005-12-26  Bob Friesenhahn  <[email protected]>
2750
2751	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
2752
27532005-12-26  Andrey Kiselev  <[email protected]>
2754
2755	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
2756	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
2757	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
2758	private functions to retrieve FieldInfo arrays.
2759
27602005-12-24  Bob Friesenhahn  <[email protected]>
2761
2762	* html/build.html: Added some additional instructions for when
2763	building using MSVC under Windows.  Also fixed two HTML syntax
2764	errors and used HTML Tidy to tidy up the HTML syntax and
2765	formatting.
2766
27672005-12-24  Andrey Kiselev  <[email protected]>
2768
2769	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
2770	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
2771	StoNits tags custom.
2772
27732005-12-23  Andrey Kiselev  <[email protected]>
2774
2775	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
2776	WhitePoint tag custom.
2777
2778	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
2779
27802005-12-23  Joris Van Damme  <[email protected]>
2781
2782	* libtiff/tiffio.h: fixed typo that potentially resulted in
2783	redefininition of USE_WIN32_FILEIO
2784
2785	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
2786	calls in core LibTiff.
2787
27882005-12-21  Andrey Kiselev  <[email protected]>
2789
2790	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
2791	Photoshop and ICCProfile tags custom.
2792
27932005-12-21  Joris Van Damme  <[email protected]>
2794
2795	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
2796	newer code to get context indicator in error handler and still
2797	remain compatible with older code: Done TIFFError calls everywhere
2798	except in tools
2799
28002005-12-20  Andrey Kiselev  <[email protected]>
2801
2802	* tools/tiffcp.c: Added many error reporting messages; fixed integer
2803	overflow as per bug
2804
2805	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
2806
28072005-12-16  Frank Warmerdam  <[email protected]>
2808
2809	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
2810	YCbCr images in jpeg compressed TIFF files.
2811
28122005-12-14  Andrey Kiselev  <[email protected]>
2813
2814	* tools/tiffcp.c: Return non-zero status when reading fails (again).
2815
28162005-12-13  Andrey Kiselev  <[email protected]>
2817
2818	* tools/tiffcp.c: Return non-zero status when reading fails.
2819
28202005-12-12  Andrey Kiselev  <[email protected]>
2821
2822	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
2823
28242005-12-09  Andrey Kiselev  <[email protected]>
2825
2826	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
2827	custom.
2828
2829	* tools/tiffinfo.c: Print EXIF directory contents if exist.
2830
2831	* libtiff/tiff.h: Few EXIF tag numbers added.
2832
2833	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
2834	tiffio.h}: Preliminary support to read custom directories. New
2835	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
2836
28372005-12-07  Andrey Kiselev  <[email protected]>
2838
2839	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
2840	More work to implement custom directory read support.
2841
2842	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
2843	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
2844	tags custom.
2845
28462005-12-05  Andrey Kiselev  <[email protected]>
2847
2848	* libtiff/tif_dirread.c: One more workaround for broken
2849	StripByteCounts tag. Handle the case when StripByteCounts array filled
2850	with completely wrong values.
2851
28522005-11-30  Andrey Kiselev  <[email protected]>
2853
2854	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
2855	in the TIFFOpenW() function as per bug
2856
2857	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
2858
2859	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
2860	functions as per bug
2861
2862	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
2863
28642005-11-20  Frank Warmerdam  <[email protected]>
2865
2866	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
2867	for MS MDI format.
2868	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
2869
2870	* .cvsignore: many files added, and a few update according
2871	to suggestion of Brad HArds on tiff mailing list.
2872
28732005-11-03  Frank Warmerdam  <[email protected]>
2874
2875	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
2876	public.
2877
28782005-10-31  Andrey Kiselev  <[email protected]>
2879
2880	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
2881	as per bug
2882
2883	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
2884
2885	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
2886	as per bug
2887
2888	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
2889
2890	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
2891	problem as per bug
2892
2893	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
2894
2895	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
2896
2897	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
2898
2899	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
2900	ResolutionUnit tags modifiable during write process. As per bug
2901
2902	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
2903
2904	* tools/tiffsplit.c: Copy fax related fields over splitted parts
2905	as per bug
2906
2907	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
2908
29092005-10-21  Frank Warmerdam  <[email protected]>
2910
2911	* tif_dirread.c: Don't try and split single strips into "0" strips
2912	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
2913	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
2914
29152005-10-20  Joris Van Damme  <[email protected]>
2916
2917	* tif_fax3.c: changed 'at scanline ...' style warning/errors
2918	with incorrect use of tif_row, to 'at line ... of
2919	strip/tile ...' style
2920
29212005-10-15  Frank Warmerdam  <[email protected]>
2922
2923	* tif_write.c: fixed setting of planarconfig as per bug report
2924	on the mailing list from Joris.
2925
29262005-10-07  Andrey Kiselev  <[email protected]>
2927
2928	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
2929	tif_dirread.c}: Make the default strip size configurable via the
2930	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
2931
29322005-09-30  Bob Friesenhahn  <[email protected]>
2933
2934	* html/support.html: Fixed link to documentation on Greg Ward's
2935	LogLuv TIFF format.
2936
29372005-09-28  Andrey Kiselev  <[email protected]>
2938
2939	* tools/tiffdump.c: Fixed crash when reading malformed tags.
2940
29412005-09-20  Andrey Kiselev  <[email protected]>
2942
2943	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
2944	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
2945
29462005-09-12  Andrey Kiselev  <[email protected]>
2947
2948	* libtiff 3.7.4 released.
2949
2950	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
2951	from Patrick Welche (all scripts moved in the 'config' and 'm4'
2952	directories).
2953
29542005-09-12  Frank Warmerdam  <[email protected]>
2955
2956	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
2957
29582005-09-05  Frank Warmerdam  <[email protected]>
2959
2960	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
2961	also set it to NULL to avoid double free when re-setting custom
2962	string fields as per:
2963
2964	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
2965
29662005-08-12  Frank Warmerdam  <[email protected]>
2967
2968	* libtiff/tif_print.c: avoid signed/unsigned warning.
2969
2970	* libtiff/tif_dirread.c: removed unused variable.
2971
29722005-07-30  Frank Warmerdam  <[email protected]>
2973
2974	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
2975	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
2976	pass on bigendian (macosx) system.
2977
29782005-07-28  Andrey Kiselev  <[email protected]>
2979
2980	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
2981	CheckMalloc() function to _TIFFCheckMalloc() and make it available
2982	globally as an internal helper routine.
2983
29842005-07-27  Andrey Kiselev  <[email protected]>
2985
2986	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
2987	the custom tags handling code.
2988
29892005-07-26  Andrey Kiselev  <[email protected]>
2990
2991	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
2992	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
2993	function, use TIFFFetchNormalTag() instead as per bug
2994
2995	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
2996
2997	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
2998	instead.
2999
3000	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3001
3002	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3003
30042005-07-25  Andrey Kiselev  <[email protected]>
3005
3006	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3007
3008	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3009
30102005-07-21  Andrey Kiselev  <[email protected]>
3011
3012	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3013	the TIFFWriteCheck() function in case of single band images (as per
3014	TIFF spec).
3015
30162005-07-12  Andrey Kiselev  <[email protected]>
3017
3018	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3019	support for SCons software building tool (http://www.scons.org/).
3020	This is experimental infrastructure and it will exist along with the
3021	autotools mechanics.
3022
30232005-07-07  Andrey Kiselev  <[email protected]>
3024
3025	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3026	the NetBSD source tree (the old	4-clause BSD license changed to
3027	the new 3-clause one).
3028
3029	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3030	replacement module.
3031
3032	* port/dummy.c: Make the dummy function static.
3033
30342005-07-06  Andrey Kiselev  <[email protected]>
3035
3036	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3037
3038	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3039	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3040	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3041
30422005-07-04  Andrey Kiselev  <[email protected]>
3043
3044	* libtiff 3.7.3 released.
3045
3046	* configure, configure.ac: Do not use empty -R option when linking
3047	with --enable-rpath.
3048
30492005-07-01  Andrey Kiselev  <[email protected]>
3050
3051	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3052	reading the first IFD when needed. As per bug
3053
3054	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3055
3056	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3057	effects.
3058
30592005-06-23  Andrey Kiselev  <[email protected]>
3060
3061	* tools/tiff2pdf.c: Print two characters per loop in the
3062	t2p_write_pdf_trailer(). As per bug
3063
3064	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3065
3066	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3067	per bug
3068
3069	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3070
3071	* acinclude.m4: Updated to latest OpenGL test macros versions.
3072
3073	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3074	platform. As per bug
3075
3076	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3077
30782005-06-14  Andrey Kiselev  <[email protected]>
3079
3080	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3081	and YClipPathUnits tags.
3082
30832005-06-07  Andrey Kiselev  <[email protected]>
3084
3085	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3086	use pixel sized shift in contigous case.
3087
30882005-06-06  Andrey Kiselev  <[email protected]>
3089
3090	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3091	Make overviews working for contiguos images.
3092
30932005-06-03  Andrey Kiselev  <[email protected]>
3094
3095	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3096	time one.
3097
3098	* libtiff/tif_predict.c: Floating point predictor now works on
3099	big-endian hosts.
3100
31012005-06-01  Andrey Kiselev  <[email protected]>
3102
3103	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3104	ASCII values.
3105
3106	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3107	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3108	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3109	TargetPrinter tags custom.
3110
3111	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3112	TIFF_CODERSETUP flag (to fix memry leaks).
3113
3114	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3115	allocating.
3116
31172005-05-26  Andrey Kiselev  <[email protected]>
3118
3119	* configure.ac, libtiff/Makefile.am: Added workaround for
3120	OpenBSD/MirOS soname problem as per bug
3121
3122	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3123
3124	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3125	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3126	per bug
3127
3128	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3129
31302005-05-25  Andrey Kiselev  <[email protected]>
3131
3132	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3133	the fscanf() function. As per bug
3134
3135	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3136
3137	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3138	uint16 array when fetching the BYTE and SBYTE filds, so we should
3139	consider result as pointer to uint16 array and not as array of chars.
3140	As per bug
3141
3142	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3143
3144	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3145
3146	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3147
3148	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3149	mode in CreateFile() call as per bug
3150
3151	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3152
3153	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3154	libtiffxx libraries as per bug
3155
3156	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3157
3158	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3159	GDAL.
3160
31612005-05-23  Frank Warmerdam  <[email protected]>
3162
3163	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3164	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3165	in directory.
3166
31672005-05-22  Frank Warmerdam  <[email protected]>
3168
3169	* libtiff/tif_dirread.c: Changed the code that computes
3170	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3171	zero. This is a common case with GDAL indicating a "null" tile/strip.
3172
31732005-05-17  Andrey Kiselev  <[email protected]>
3174
3175	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
3176
31772005-05-06  Frank Warmerdam  <[email protected]>
3178
3179	* libtiff/tif_dirread.c: Applied similar change to
3180	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
3181
3182	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3183
3184	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
3185
31862005-05-06  Andrey Kiselev  <[email protected]>
3187	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
3188	added new option '-b' to use interpolation in output PDF files (Bruno
3189	Ledoux).
3190
31912005-05-05  Frank Warmerdam  <[email protected]>
3192
3193	* libtiff/tif_dirread.c: Ensure that broken files with too many
3194	values in PerSampleShorts work ok instead of crashing.
3195
3196	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3197
31982005-04-27  Andrey Kiselev  <[email protected]>
3199
3200	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
3201	input file.
3202
32032005-04-15  Andrey Kiselev  <[email protected]>
3204
3205	* libtiff/tif_predict.c: Added ability to encode floating point
3206	predictor, as per TIFF Technical Note 3.
3207
32082005-04-14  Andrey Kiselev  <[email protected]>
3209
3210	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
3211	floating point predictor, as per TIFF Technical Note 3.
3212
32132005-04-13  Andrey Kiselev  <[email protected]>
3214
3215	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
3216	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
3217	swap 24-bit floating point values.
3218
3219	* libtiff/tiff.h: Added predictor constants.
3220
32212005-04-08  Andrey Kiselev  <[email protected]>
3222
3223	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
3224	values in _TIFFVSetField() function. Inspired by the bug
3225
3226	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3227
3228	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
3229	as per bug
3230
3231	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3232
32332005-03-30  Andrey Kiselev  <[email protected]>
3234
3235	* libtiff/tif_open.c: Do not read header in case the output file
3236	should be truncated (Ron).
3237
3238	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
3239	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
3240
3241	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
3242
32432005-03-22  Andrey Kiselev  <[email protected]>
3244
3245	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
3246	rpath option.
3247
32482005-03-21  Andrey Kiselev  <[email protected]>
3249
3250	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
3251	tags.
3252
32532005-03-18  Andrey Kiselev  <[email protected]>
3254
3255	* libtiff/dirinfo.c: Added DNG tags.
3256
3257	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
3258	handling code.
3259
3260	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
3261	added DNG 1.1.0.0 tags.
3262
3263	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
3264	bug
3265
3266	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
3267
3268	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
3269
32702005-03-17  Andrey Kiselev  <[email protected]>
3271
3272	* nmake.opt: Build with Win32 CRT library by default.
3273
3274	* tools/tiff2ps.c: Fixed typo in page size handling code.
3275
3276	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
3277	by value.
3278
3279	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
3280
32812005-03-15  Andrey Kiselev  <[email protected]>
3282
3283	* libtiff 3.7.2 released.
3284
32852005-03-09  Andrey Kiselev  <[email protected]>
3286
3287	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
3288	floating point data; complain on unsupported bit depths.
3289
32902005-03-05  Andrey Kiselev  <[email protected]>
3291
3292	* tif_stream.cxx: Use ios namespace instead of ios_base to support
3293	GCC 2.95.
3294
3295	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
3296	Lee Howard for HylaFax DCS tag
3297	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
3298
32992005-03-04  Andrey Kiselev  <[email protected]>
3300
3301	* configure, configure.ac: Use -rpath option instead of -R as per bug
3302
3303	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
3304
3305	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
3306	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
3307	software. As per bug
3308
3309	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
3310
3311	* nmake.opt, html/build.html: Add more comments, change the config
3312	file organization a bit as per bug
3313
3314	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
3315
3316	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
3317	as per bug
3318
3319	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
3320
33212005-03-03  Andrey Kiselev  <[email protected]>
3322
3323	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
3324	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3325
3326	* tools/fax2ps.c: Replace insecure mktemp() function with the
3327	tmpfile() as per bug
3328
3329	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
3330
33312005-02-04  Andrey Kiselev  <[email protected]>
3332
3333	* libtiff/tiff.h: Changed the int8 definition to be always signed char
3334	as per bug
3335
3336	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3337
3338	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
3339	block as per bug
3340
3341	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
3342
33432005-02-03  Bob Friesenhahn  <[email protected]>
3344
3345	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
3346	display more correctly.  Images display brighter than they should
3347	on a Sun workstation.
3348
33492005-02-03  Andrey Kiselev  <[email protected]>
3350
3351	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
3352	suspicious values in the tags. As per bugs
3353
3354	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3355
3356	and
3357
3358	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
3359
3360	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
3361
3362	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
3363
33642005-01-31  Bob Friesenhahn  <[email protected]>
3365
3366	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
3367	(TIFFTAG_TILELENGTH): Corrected description.
3368
33692005-01-30  Andrey Kiselev  <[email protected]>
3370
3371	* configure.ac: Fixes for --with-docdir option as per bug
3372
3373	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
3374
3375	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
3376	bug
3377
3378	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
3379
3380	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
3381	Michael Rinne and Edward Lam.
3382
33832005-01-15  Andrey Kiselev  <[email protected]>
3384
3385	* configure.ac: Make the documentation directory location configurable
3386	via the --with-docdir option (as suggested by Jeremy C. Reed).
3387
3388	* libtiff/tif_color.c: Use double as the second argument of pow()
3389	function in TIFFCIELabToRGBInit(). As per bug
3390
3391	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
3392
3393	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
3394	integer as per bug
3395
3396	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
3397
3398	* libtiff/tif_getimage.c: Always fill the error message buffer in
3399	TIFFRGBAImageBegin() as per bug
3400
3401	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
3402
34032005-01-12  Andrey Kiselev  <[email protected]>
3404
3405	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
3406	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
3407	tags as per bug
3408
3409	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
3410
3411	* libtiff/tif_win32.c: Fixed message formatting in functions
3412	Win32WarningHandler() and Win32ErrorHandler() as per bug
3413
3414	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
3415
3416	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
3417	per bug
3418
3419	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
3420
34212005-01-11  Andrey Kiselev  <[email protected]>
3422
3423	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
3424	"C"' section as per bug
3425
3426	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3427
3428	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
3429	compiler to avoid double definition of BSD types as per bug
3430
3431	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3432
3433	* libtiff/Makefile.am: Place the C++ stream API in the separate
3434	library called libtiffxx to avoid unneeded dependencies. Probably
3435	there will be more C++ API in the future. As per bugs
3436
3437	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
3438
3439	and
3440
3441	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3442
34432005-01-05  Andrey Kiselev  <[email protected]>
3444
3445	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
3446	wrong tag counts (Dmitry V. Levin, Martin Pitt).
3447
3448	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
3449	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3450
34512004-12-25  Andrey Kiselev  <[email protected]>
3452
3453	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
3454	RGB-images as per bug
3455
3456	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3457
3458
3459	* tools/tiffset.c: Convert character option to integer value as per
3460	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
3461
34622004-12-20  Andrey Kiselev  <[email protected]>
3463
3464	* libtiff 3.7.1 released.
3465
3466	* html/tiffset.1.html: Add missed manual page as per bug
3467
3468	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3469
3470	* libtiff/tiff.h: Revert back libtiff data type definitions as per
3471	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
3472
34732004-12-19  Andrey Kiselev  <[email protected]>
3474
3475	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
3476	checking for tag count in TIFFReadDirectory() function. As per bug
3477
3478	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3479
3480	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
3481	CheckMallock() function.
3482
3483	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
3484	RGB-images as per bug
3485
3486	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
3487
34882004-12-15  Frank Warmerdam  <[email protected]>
3489
3490	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
3491	SunPro compiler.
3492
34932004-12-11  Bob Friesenhahn  <[email protected]>
3494
3495	* autogen.sh: aclocal and autoheader should be executed after
3496	libtoolize.  Also add '-I .' to aclocal invocation to check
3497	current directory for macros.
3498
34992004-12-10  Andrey Kiselev  <[email protected]>
3500
3501	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
3502	as per bugs
3503
3504	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
3505
3506	and
3507
3508	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
3509
35102004-12-04  Andrey Kiselev  <[email protected]>
3511
3512	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
3513
3514	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3515
3516	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
3517	mode as per bug
3518
3519	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3520
3521	* libtiff/tif_config.in.vc: Removed unneded definitions for
3522	read/open/close/lseek functions to fix the
3523
3524	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
3525
35262004-12-03  Andrey Kiselev  <[email protected]>
3527
3528	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
3529	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
3530	must be removed in the future, as it was never used properly. As per
3531	bug
3532
3533	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
3534
35352004-11-30  Bob Friesenhahn  <[email protected]>
3536
3537	* libtiff/tif_jpeg.c: Added a work-around in order to allow
3538	compilation with the heavily modified version of libjpeg delivered
3539	with Cygwin.
3540
35412004-11-29  Andrey Kiselev  <[email protected]>
3542
3543	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
3544	counts. As per bug
3545
3546	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
3547
3548	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
3549
3550	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
3551
35522004-11-28  Andrey Kiselev  <[email protected]>
3553
3554	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
3555	on Windows.
3556
3557	* nmake.opt: Add missed DLLNAME variable.
3558
35592004-11-26  Frank Warmerdam  <[email protected]>
3560
3561	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
3562
35632004-11-24  Andrey Kiselev  <[email protected]>
3564
3565	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
3566	per bug
3567
3568	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
3569
3570	* man/tiffset.1: Added manual page for tiffset tool written by Jay
3571	Berkenbilt. As per bug
3572
3573	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3574
35752004-11-23  Frank Warmerdam  <[email protected]>
3576
3577	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
3578
35792004-11-21  Frank Warmerdam  <[email protected]>
3580
3581	* html/document.html: Updated Adobe web links as per email from Joris.
3582
35832004-11-21  Andrey Kiselev  <[email protected]>
3584
3585	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
3586	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
3587	use C++ streams should #include <tiffio.hxx>.
3588
35892004-11-13  Andrey Kiselev  <[email protected]>
3590
3591	* libtiff/tiff.h: Added Adobe DNG tags.
3592
3593	* libtiff/tif_win32.c: Typo fixed.
3594
3595	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
3596	be compliant with the latest standard. Appropriate additions in
3597	makefiles now completed.
3598
35992004-11-11  Andrey Kiselev  <[email protected]>
3600
3601	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
3602	different tag types. As per bug
3603
3604	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
3605
36062004-11-10  Andrey Kiselev  <[email protected]>
3607
3608	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
3609	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
3610
36112004-11-09  Andrey Kiselev  <[email protected]>
3612
3613	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
3614
36152004-11-07  Andrey Kiselev  <[email protected]>
3616
3617	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
3618	contributed by Edward Lam (see
3619	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
3620	Though no changes in any makefiles yet.
3621
36222004-11-05  Frank Warmerdam  <[email protected]>
3623
3624	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
3625	is bad. This is the callers responsibility.
3626	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
3627
36282004-11-05  Andrey Kiselev  <[email protected]>
3629
3630	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
3631	function to work with the double byte strings (used to represent
3632	filenames in some locales). As per bug
3633
3634	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
3635
3636	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
3637	Compression tags of type LONG from broken TIFFS as per bug
3638
3639	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3640
3641	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
3642	the writecount should have uint32 type. As per bug
3643
3644	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3645
3646	* libtiff/tif_write.c: Fixed wrong if() statement in
3647	TIFFAppendToStrip() function as per bug
3648
3649	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
3650
36512004-11-04  Andrey Kiselev  <[email protected]>
3652
3653	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
3654	field. The caller should supply a count when setting this field. As
3655	per bug
3656
3657	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
3658
3659	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
3660	uint32 count. Use this type everywhere.
3661
36622004-11-03  Frank Warmerdam  <[email protected]>
3663
3664	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
3665
36662004-11-02  Frank Warmerdam  <[email protected]>
3667
3668	* tools/tiff2rgba.c: removed extra newlines in usage message.
3669
36702004-10-30  Andrey Kiselev  <[email protected]>
3671
3672	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
3673
3674	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
3675	tags (Tristan Hill).
3676
36772004-10-30  Frank Warmerdam  <[email protected]>
3678
3679	* libtiff/tiffiop.h: added fallback definition of assert() if we
3680	don't have assert.h.
3681
36822004-10-29  Andrey Kiselev  <[email protected]>
3683
3684	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
3685	choosing when the incorrect Group4Options tag set. As per bug
3686
3687	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
3688
3689	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
3690	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
3691	TIFFWriteNormalTag().
3692
36932004-10-28  Andrey Kiselev  <[email protected]>
3694
3695	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
3696	tags (Peter Fales).
3697
3698	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
3699
37002004-10-28  Frank Warmerdam  <[email protected]>
3701
3702	* tools/tiff2pdf.c: added casts to avoid warnings.
3703
3704	* libtiff/libtiff.def: Added several more entry points required
3705	to link fax2tiff.c against the DLL on windows.
3706
37072004-10-27  Andrey Kiselev  <[email protected]>
3708
3709	* configure, configure.ac: Added --enable-rpath option to embed linker
3710	paths into library binary.
3711
37122004-10-26  Andrey Kiselev  <[email protected]>
3713
3714	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
3715
3716	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
3717	(Vladimir Nadvornik, Dmitry V. Levin).
3718
37192004-10-16  Andrey Kiselev  <[email protected]>
3720
3721	* libtiff 3.7.0 released.
3722
37232004-10-15  Bob Friesenhahn  <[email protected]>
3724
3725	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
3726	in this file so its inclusion is removed.  Including stdio.h
3727	sometimes incurs an INT32 typedef conflict between MinGW's
3728	basetsd.h and libjpeg's jmorecfg.h.
3729
37302004-10-15  Andrey Kiselev  <[email protected]>
3731
3732	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
3733
37342004-10-13  Bob Friesenhahn  <[email protected]>
3735
3736	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
3737	conflict noticed under MinGW.
3738	* ltmain.sh: Fix for MinGW compilation.
3739
37402004-10-13  Frank Warmerdam  <[email protected]>
3741
3742	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
3743	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
3744
37452004-10-12  Andrey Kiselev  <[email protected]>
3746
3747	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
3748	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
3749	properly (Dmitry V. Levin, Marcus Meissner).
3750
37512004-10-11  Andrey Kiselev  <[email protected]>
3752
3753	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
3754	to TIFF_IFD.
3755
37562004-10-10  Andrey Kiselev  <[email protected]>
3757
3758	* tools/bmp2tif.c: Check the space allocation results.
3759
37602004-10-09  Andrey Kiselev  <[email protected]>
3761
3762	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
3763	of the TIFFDirectory structure with the 0 instead of -1 to avoid
3764	confusing integer overflows in TIFFTileRowSize() for striped images.
3765
3766	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
3767	by Ross A. Finlayson.
3768
3769	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
3770
3771	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
3772
37732004-10-08  Frank Warmerdam  <[email protected]>
3774
3775	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
3776	of tif_fieldinfo.
3777
3778	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
3779
37802004-10-04  Bob Friesenhahn  <[email protected]>
3781
3782	* contrib/iptcutil/README: Added the missing README which goes
3783	along with iptcutil.
3784
37852004-10-03  Andrey Kiselev  <[email protected]>
3786
3787	* libtiff/tif_compress.c: Improved error reporting in
3788	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
3789
37902004-10-02  Andrey Kiselev  <[email protected]>
3791
3792	* libtiff 3.7.0beta2 released.
3793
3794	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
3795	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
3796	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
3797	allocations and	integer overflows (Dmitry V. Levin).
3798
3799	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
3800
38012004-10-01  Frank Warmerdam  <[email protected]>
3802
3803	* libtiff/tif_open.c: added a more informative message if a BigTIFF
3804	file is opened.
3805
38062004-09-30  Frank Warmerdam  <[email protected]>
3807
3808	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
3809	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
3810	in the Adobe XMP Specification.
3811
38122004-09-29  Andrey Kiselev  <[email protected]>
3813
3814	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
3815	memset().
3816
3817	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
3818	from Dmitry V. Levin to fix possible integer overflow problems.
3819
38202004-09-28  Andrey Kiselev  <[email protected]>
3821
3822	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
3823	(Dmitry V. Levin).
3824
38252004-09-26  Andrey Kiselev  <[email protected]>
3826
3827	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
3828	Optimize checking for the strip bounds.
3829
3830	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
3831	TIFFRasterScanlineSize() functions report zero in the case of integer
3832	overflow now. Properly handle this case in TIFFReadDirectory()
3833	(patches from Dmitry V. Levin).
3834
38352004-09-25  Andrey Kiselev  <[email protected]>
3836
3837	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
3838	macro where appropriate.
3839
3840	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
3841	noted by Gennady Khokhorin.
3842
3843	* libtiff/tif_dirread.c: Always check the return values, returned
3844	by the _TIFFmalloc() (Dmitry V. Levin).
3845
3846	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
3847	functions (Dmitry V. Levin).
3848
3849	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
3850	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
3851	TIFFGrowStrips() (found by Dmitry V. Levin).
3852
38532004-09-24  Andrey Kiselev  <[email protected]>
3854
3855	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
3856	to get the list of configured codecs.
3857
3858	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
3859	Dmitry V. Levin.
3860
38612004-09-23  Andrey Kiselev  <[email protected]>
3862
3863	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
3864	possible integer overflow in CheckMalloc() function.
3865
38662004-09-22  Andrey Kiselev  <[email protected]>
3867
3868	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
3869	of plain TIFFhowmany() where appropriate.
3870
38712004-09-21  Andrey Kiselev  <[email protected]>
3872
3873	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
3874
38752004-09-19  Andrey Kiselev  <[email protected]>
3876
3877	* libtiff 3.7.0beta released.
3878
3879	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
3880	overruns fixed, as noted by Chris Evans.
3881
38822004-09-14  Bob Friesenhahn  <[email protected]>
3883
3884	* commit: Added a script to make it more convenient to commit
3885	updates.  The CVS commit message is extracted from this ChangeLog
3886	file.
3887
38882004-09-14  Andrey Kiselev  <[email protected]>
3889
3890	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
3891	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
3892	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
3893	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
3894	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
3895	tif_config.h.in, tiffiop.h}:
3896	Get rid of BSD data types (u_char, u_short, u_int, u_long).
3897
38982004-09-13  Bob Friesenhahn  <[email protected]>
3899
3900	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
3901	specification. Reference libtiff bug tracking system to submit
3902	private tag additions.
3903
39042004-09-12  Bob Friesenhahn  <[email protected]>
3905
3906	* tools/tiffgt.c: Include "tif_config.h".
3907
3908	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
3909	tiffgt.  This results in the 'compile' script being added to the
3910	project.
3911
3912	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
3913	required to find OpenGL headers necessary to build tiffgt.  Also
3914	ensure that the libtiff that we built is used rather than some other
3915	libtiff installed on the system.
3916
39172004-09-12  Andrey Kiselev  <[email protected]>
3918
3919	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
3920	libraries.
3921
39222004-09-11  Bob Friesenhahn  <[email protected]>
3923
3924	* configure.ac: Pass library configuration defines via
3925	tif_config.h rather than extending CPPFLAGS. Configure a
3926	libtiff/tiffconf.h in order to satisfy application requirements
3927	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
3928	this causes failure to build on systems which properly respect
3929	this request.
3930
3931	* libtiff/tiffconf.h.in: New file to act as the template for the
3932	configured tiffconf.h
3933
3934	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
3935
39362004-09-10  Frank Warmerdam  <[email protected]>
3937
3938	* html/internals.html: Split off a discussion of adding new tags
3939	into addingtags.html.
3940
39412004-09-10  Andrey Kiselev  <[email protected]>
3942
3943	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
3944
3945	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
3946
3947	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
3948
3949	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
3950
3951	* libtiff/tif_dirread.c: Don't reject to read tags of the
3952	SamplesPerPixel size when the tag count is greater than number of
3953	samples as per bug
3954
3955	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
3956
3957	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
3958	defining int8/uint8/... etc. types. As per bug
3959
3960	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
3961
39622004-09-09  Frank Warmerdam  <[email protected]>
3963
3964	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
3965	to avoid compile warnings about getopt() and a few other things.
3966
39672004-09-02  Andrey Kiselev  <[email protected]>
3968
3969	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
3970	assigning magic in TIFFFetchFloat().
3971
39722004-09-01  Andrey Kiselev  <[email protected]>
3973
3974	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
3975	to avoid requirement for tiffiop.h inclusion in some applications. See
3976	here
3977
3978	http://www.asmail.be/msg0054799560.html
3979
3980	for details.
3981
3982	* tools/fax2tiff.c: Use the new functions in the code.
3983
39842004-08-25  Andrey Kiselev  <[email protected]>
3985
3986	* tools/tiff2pdf.c: Initialize arrays properly.
3987
3988	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
3989	properly initialize array in PSDataBW().
3990
39912004-08-24  Andrey Kiselev  <[email protected]>
3992
3993	* tools/tiff2pdf.c: More fixes for bug
3994
3995	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
3996
3997	from Ross Finlayson.
3998
39992004-08-23  Andrey Kiselev  <[email protected]>
4000
4001	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4002
4003	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4004	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4005
4006	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4007
4008	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4009
40102004-08-20  Andrey Kiselev  <[email protected]>
4011
4012	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4013	that the input file has compression, photometric interpretation,
4014	etcetra, tags or if not than a more descriptive error is returned.
4015
4016	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4017	code, responsible for tag data type checking.
4018
40192004-08-19  Andrey Kiselev  <[email protected]>
4020
4021	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4022	variable as per bug
4023
4024	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4025
40262004-08-16  Andrey Kiselev  <[email protected]>
4027
4028	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4029	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4030
40312004-08-01  Andrey Kiselev  <[email protected]>
4032
4033	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4034	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4035
40362004-07-24  Andrey Kiselev  <[email protected]>
4037
4038	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4039	separate package. All libtiff tools are updated to not advertise an
4040	abcence of LZW support.
4041
40422004-07-12  Andrey Kiselev  <[email protected]>
4043
4044	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4045
40462004-07-11  Andrey Kiselev  <[email protected]>
4047
4048	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4049	messages, as suggested by Bernd Herd.
4050
40512004-07-03  Andrey Kiselev  <[email protected]>
4052
4053	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4054	when setting custom tags by value. Reported by Eric Fieleke.
4055
40562004-06-14  Andrey Kiselev  <[email protected]>
4057
4058	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4059
40602004-06-08  Andrey Kiselev  <[email protected]>
4061
4062	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4063	into TIFFs.
4064
40652004-06-07  Andrey Kiselev  <[email protected]>
4066
4067	* libtiff 3.7.0alpha released.
4068
40692004-06-06  Andrey Kiselev  <[email protected]>
4070
4071	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4072	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4073	ones :-).
4074
4075	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4076	problems in 64-bit environment).
4077
40782004-06-05  Andrey Kiselev  <[email protected]>
4079
4080	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4081	Tags can be supplied by the mnemonic name or number.
4082
4083	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4084	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4085
40862004-05-27  Andrey Kiselev  <[email protected]>
4087
4088	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4089	markers as per bug
4090
4091	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4092
40932004-05-24  Andrey Kiselev  <[email protected]>
4094
4095	* tools/tiffsplit.c: Don't forget to copy Photometric
4096	Interpretation tag.
4097
40982004-05-20  Andrey Kiselev  <[email protected]>
4099
4100	* libtiff/{tif_open.c, tiffio.h}: New function added:
4101	TIFFIsBigEndian(). Function returns nonzero if given was file written
4102	in big-endian order.
4103
4104	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4105	files. Now output files will be written using the same byte order
4106	flag as	in the input image. See
4107
4108	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4109
4110	for details.
4111
41122004-05-19  Frank Warmerdam  <[email protected]>
4113
4114	* libtiff/tif_print.c: added (untested) support for printing
4115	SSHORT, SLONG and SRATIONAL fields.
4116
4117	* tools/tiffcp.c: close output file on normal exit.
4118
41192004-05-17  Andrey Kiselev  <[email protected]>
4120
4121	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4122	if compression type mismatches. See
4123
4124	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4125
41262004-04-30  Andrey Kiselev  <[email protected]>
4127
4128	* libtiff/tif_strip.c: Never return 0 from the
4129	TIFFNumberOfStrips().
4130
41312004-04-29  Andrey Kiselev  <[email protected]>
4132
4133	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4134	store single SampleFormat value for multisampled images. See
4135
4136	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4137
41382004-04-25  Andrey Kiselev  <[email protected]>
4139
4140	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4141	int16 and int32 types to avoid complains on some compilers. Details at
4142
4143	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4144
41452004-04-20  Andrey Kiselev  <[email protected]>
4146
4147	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4148
4149	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4150
41512004-04-14  Andrey Kiselev  <[email protected]>
4152
4153	* libtiff/tif_write.c: Allow in-place updating of the compressed
4154	images (don't work properly with all codecs). For details see GDAL bug
4155
4156	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4157
41582004-04-06  Andrey Kiselev  <[email protected]>
4159
4160	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4161	in the Intergarph JPEG compressed TIFF images as per bug:
4162
4163	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4164
41652004-04-04  Frank Warmerdam  <[email protected]>
4166
4167	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4168	via bad2.
4169
41702004-03-26  Andrey Kiselev  <[email protected]>
4171
4172	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4173	JPEG compression of grayscale images.
4174
4175	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
4176	present in the input image.
4177
41782004-03-19  Andrey Kiselev  <[email protected]>
4179
4180	* {many}: The first attempt to switch to autotools.
4181
41822004-03-03  Andrey Kiselev  <[email protected]>
4183
4184	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
4185	TIFFClientOpen() when the appropriate client functions was not
4186	supplied by user.
4187
41882004-03-02  Frank Warmerdam  <[email protected]>
4189
4190	* tools/ycbcr.c: fixed main() declaration as per:
4191	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
4192
41932004-02-26  Andrey Kiselev  <[email protected]>
4194
4195	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
4196	images. Reported by Artem Mirolubov.
4197
4198	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
4199	tag type in TIFFFetchNormalTag() as per bug
4200
4201	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
4202
42032004-02-17  Frank Warmerdam  <[email protected]>
4204
4205	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
4206	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
4207
42082004-02-05  Andrey Kiselev  <[email protected]>
4209
4210	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
4211	bug
4212
4213	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
4214
4215	But we need more work on fax codec to support update mode.
4216
42172004-01-30  Frank Warmerdam  <[email protected]>
4218
4219	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
4220	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
4221	Scott Reynolds.
4222
42232004-01-29  Andrey Kiselev  <[email protected]>
4224
4225	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
4226	and TIFFTAG_INDEXED as per bug
4227
4228	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
4229
4230	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
4231	NULL before proceeding further as per bug
4232
4233	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
4234
4235	Check results, returned by the TIFFFdOpen() before returning and close
4236	file if TIFFFdOpen() failed as per bug
4237
4238	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4239
4240	* libtiff/tif_open.c: More fixes for
4241
4242	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4243
42442004-01-28  Andrey Kiselev  <[email protected]>
4245
4246	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
4247	TIFFCleanup() from the TIFFClose() in order to fix the bug
4248
4249	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4250
4251	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
4252	InkNames tag as per bug
4253
4254	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
4255
4256	Memory leak fixed.
4257
42582004-01-21  Frank Warmerdam  <[email protected]>
4259
4260	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
4261	are field_passcount=TRUE properly.  Arguably anonymous custom tags
4262	should be declared as passcount=FALSE, but I don't want to change
4263	that without a careful review.
4264
42652004-01-20  Andrey Kiselev  <[email protected]>
4266
4267	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
4268	stripped image in TIFFWriteBufferSetup(). As per bug
4269
4270	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
4271
42722004-01-11  Andrey Kiselev  <[email protected]>
4273
4274	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
4275	patch from Gerben Koopmans.
4276
4277	* libtiff/tif_dirread.c: Check field_passcount value before setting
4278	the value of undefined type, patch from Gerben Koopmans.
4279
42802004-01-02  Andrey Kiselev  <[email protected]>
4281
4282	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
4283	non-RGB images.
4284
42852003-12-31  Andrey Kiselev  <[email protected]>
4286
4287	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
4288	pointer passed. Patch supplied by Larry Grill.
4289
4290	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
4291	suggested by Jeremy C. Reed.
4292
42932003-12-26  Andrey Kiselev  <[email protected]>
4294
4295	* libtiff 3.6.1 released.
4296
42972003-12-24  Andrey Kiselev  <[email protected]>
4298
4299	* config.guess, config.sub: Updated from the recent upstream.
4300
43012003-12-22  Andrey Kiselev  <[email protected]>
4302
4303	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
4304	More cleanups in color conversion interface, added appropriate manual
4305	page.
4306
43072003-12-19  Andrey Kiselev  <[email protected]>
4308
4309	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
4310	per bug
4311
4312	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4313
4314	* tools/tiff2ps.c: Added support for alpha channel. Fixes
4315
4316	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
4317
4318	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
4319	Interface for Lab->RGB color conversion is finally cleaned up.
4320	Added support for ReferenceBlackWhite tag handling when converted from
4321	YCbCr color space. The latter closes
4322
4323	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
4324
43252003-12-07  Andrey Kiselev  <[email protected]>
4326
4327	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
4328
4329	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
4330	library.
4331
43322003-12-06  Andrey Kiselev  <[email protected]>
4333
4334	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
4335	file and properly use it for CIE Lab->RGB transform.
4336
43372003-12-04  Andrey Kiselev  <[email protected]>
4338
4339	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
4340	conversion routines now in the tif_color.c module. New function
4341	TIFFYCbCrtoRGB() available in TIFF API.
4342
4343	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
4344
43452003-12-03  Andrey Kiselev  <[email protected]>
4346
4347	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
4348	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
4349	module.
4350
4351	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
4352	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
4353	Finally resolved problems with orientation handling. TIFFRGBAImage
4354	interface now properly supports all possible orientations, i.e. images
4355	will be flipped both in horizontal and vertical directions if
4356	required. 'Known bugs' section now removed from the appropriate manual
4357	pages. Closed bug entry:
4358
4359	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4360
43612003-12-02  Andrey Kiselev  <[email protected]>
4362
4363	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
4364	function calls as per bug
4365
4366	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
4367
43682003-11-28 Ross Finlayson  <[email protected]>
4369
4370	* tools/tiff2pdf.c:  Some bugs fixed.
4371
43722003-11-27  Andrey Kiselev  <[email protected]>
4373
4374	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
4375	reported by Antonio Scuri.
4376
4377	* man/tiff2pdf.1: Few improvements in page layout.
4378
4379	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
4380	 Added support fpr tiff2pdf manual page.
4381
43822003-11-26 Ross Finlayson  <[email protected]>
4383
4384	* /man/tiff2pdf.1:  File added to repository.
4385
43862003-11-26  Andrey Kiselev  <[email protected]>
4387
4388	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
4389	 Added support fpr tiff2pdf utility.
4390
43912003-11-25  Ross Finlayson  <[email protected]>
4392
4393	* /tools/tiff2pdf.c:  File added to repository.
4394
43952003-11-22  Andrey Kiselev  <[email protected]>
4396
4397	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
4398
43992003-11-21  Andrey Kiselev  <[email protected]>
4400
4401	* /tools/raw2tiff.c: #include <getopt.h> removed.
4402
4403	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
4404	sgigt utility removed and replaced with the completely rewritten
4405	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
4406	there is a lot of things to improve.
4407
4408	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
4409	extract the fields from the OJPEG files. Patch supplied by Ross
4410	Finlayson.
4411
4412	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
4413	Added new function TIFFIsCODECConfigured(), suggested by Ross
4414	Finlayson.
4415
44162003-11-18  Andrey Kiselev  <[email protected]>
4417
4418	* libtiff/tif_dirinfo.c: Implemented binary search in
4419	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
4420
4421	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
4422	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
4423
44242003-11-17  Frank Warmerdam  <[email protected]>
4425
4426	* tif_dirread.c: do not mark all anonymously defined tags to be
4427	IGNOREd.
4428
44292003-11-17  Andrey Kiselev  <[email protected]>
4430
4431	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
4432	TIFFDataWidth() function insted of tiffDataWidth array.
4433
44342003-11-16  Andrey Kiselev  <[email protected]>
4435
4436	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
4437	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
4438
44392003-11-15  Frank Warmerdam  <[email protected]>
4440
4441	* Makefile.in: fixed missing backslash for tif_color.c in list.
4442
44432003-11-13  Andrey Kiselev  <[email protected]>
4444
4445	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
4446	New color space conversion code: CIE L*a*b* 1976 images now supported
4447	by the TIFFRGBAImage interface. All introduced routines go to new
4448	module tif_color.c. Eventually all color conversion functions should
4449	be moved there.
4450
44512003-11-12  Andrey Kiselev  <[email protected]>
4452
4453	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
4454	with the reverse byte order (it is reported by the magic header
4455	field). Problem reported by Andreas Wiesmann.
4456
4457	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
4458	calculation function. Guessing mechanics now documented in manual page.
4459
44602003-11-11  Andrey Kiselev  <[email protected]>
4461
4462	* tools/raw2tiff.c: Implemented image size guessing using
4463	correlation coefficient calculation between two neighbour lines.
4464
44652003-11-09  Frank Warmerdam  <[email protected]>
4466
4467	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
4468	planarconfig_contig case in TIFFComputeTile().
4469
4470	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
4471
44722003-11-09  Andrey Kiselev  <[email protected]>
4473
4474	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
4475
44762003-11-07  Andrey Kiselev  <[email protected]>
4477
4478	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
4479	Added TIFFRawStripSize() function as suggested by Chris Hanson.
4480
44812003-11-03  Andrey Kiselev  <[email protected]>
4482
4483	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
4484	per bug
4485
4486	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
4487
44882003-10-29  Andrey Kiselev  <[email protected]>
4489
4490	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
4491
4492	* html/build.html: Added note about GNU make requirement.
4493
44942003-10-25  Andrey Kiselev  <[email protected]>
4495
4496	* Makefile.in: Fixes in using MAKEFLAGS as per bug
4497
4498	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
4499
4500	* port/install.sh.in: Option -p added to the mkdir command to create
4501	all directory tree structure before installing.
4502
45032003-10-18  Andrey Kiselev  <[email protected]>
4504
4505	* /tools/tiff2ps.c: #include <strings.h> replaced with the
4506	#include <string.h>.
4507
45082003-10-16  Andrey Kiselev  <[email protected]>
4509
4510	* Makefile.in: Add an absolute path to the test_pics.sh call.
4511
45122003-10-12  Andrey Kiselev  <[email protected]>
4513
4514	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
4515	typedefs.
4516
45172003-10-09  Andrey Kiselev  <[email protected]>
4518
4519	* configure, libtiff/{Makefile.in, mkversion.c}:
4520	Relative buildings fixed.
4521
4522	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
4523	rule.
4524
45252003-10-07  Andrey Kiselev  <[email protected]>
4526
4527	* Makefile.in: Added missed v3.6.0.html.
4528
4529	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
4530	ORIENTATION_BOTLEFT.
4531
45322003-10-04  Andrey Kiselev  <[email protected]>
4533
4534	* 3.6.0 final release.
4535
45362003-10-03  Andrey Kiselev  <[email protected]>
4537
4538	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
4539	function TIFFReadRGBAImageOriented() implemented to retrieve raster
4540	array with user-specified origin position as suggested by Jason Frank.
4541	See
4542
4543	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4544
4545	for details.
4546
4547	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
4548	instead of TIFFReadRGBAImage().
4549
4550	* tools/tiff2ps.c: Fixed possible endless loop as per bug
4551
4552	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
4553
45542003-09-30  Andrey Kiselev  <[email protected]>
4555
4556	* libtiff/tif_dirread.c: Check field counter against number of fields
4557	in order to fix
4558
4559	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
4560
4561	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
4562
4563	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
4564
45652003-09-25  Andrey Kiselev  <[email protected]>
4566
4567	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
4568	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
4569
4570	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
4571
45722003-09-23  Andrey Kiselev  <[email protected]>
4573
4574	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
4575
4576	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4577
45782003-08-21  Andrey Kiselev  <[email protected]>
4579
4580	* tools/tiffmedian.c: int declaration replaced with the uint32 to
4581	support large images as per bug
4582
4583	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
4584
45852003-08-12  Andrey Kiselev  <[email protected]>
4586
4587 	* libtiff/Makefile.in: Fixed problem with building in different
4588	directory.
4589
4590	* tools/tiff2ps.c: Added missing #include <strings.h>.
4591
4592	* libtiff/tif_dirwrite.c: More fixes for custom tags code
4593	from Ashley Dreier.
4594
45952003-08-07  Andrey Kiselev  <[email protected]>
4596
4597	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
4598	Patch submitted by Balatoni Denes (with corrections from Tom
4599	Kacvinsky).
4600
4601	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
4602	being used. Reported by Tom Kacvinsky.
4603
4604	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
4605	reported by Ashley Dreier.
4606
4607	* libtiff/tif_print.c: Fixed problem with float tags reading, support
4608	for printing RATIONAL and BYTE tags added.
4609
46102003-08-05  Andrey Kiselev  <[email protected]>
4611
4612	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
4613	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
4614	problems with predictor initialization. Remove O_RDONLY check during
4615	state block allocation to be able open LZW compressed files in update
4616	mode.
4617
4618	Problem exist for libtiff version of the tif_lzw.c module. One from
4619	lzw-compression-kit hasn't such troubles.
4620
46212003-08-04  Frank Warmerdam  <[email protected]>
4622
4623	* libtiff/tif_write.c: modified tif_write.c so that the various
4624	encoded write functions use tif_postdecode() to apply byte order
4625	swapping (swab) to the application passed data buffer if the same
4626	would be done when reading.  This allows us to write pixel data with
4627	more than 8 bits per sample to existing files of a non-native byte
4628	order.  One side effect of this change is the applications buffer
4629	itself is altered in this case by the act of writing.
4630
4631	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
4632
46332003-07-25  Frank Warmerdam  <[email protected]>
4634
4635	* libtiff/tif_open.c: avoid signed/unsigned casting warning
4636	initializing typemask as per patch from J.A. Strother.
4637
4638	* tools/tiffcp.c: fixed signed/unsigned casting warning.
4639
4640	* libtiff/tif_print.c: dos2unix conversion.
4641
4642	* tools/tiffsplit.c: increased the maximum number of pages that
4643	can be split.  Patch provided by Andrew J. Montalenti.
4644
46452003-07-11  Andrey Kiselev  <[email protected]>
4646
4647	* tools/raw2tiff.c: Added option `-p' to explicitly select color
4648	space of input image data. Closes
4649
4650	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
4651
46522003-07-08  Frank Warmerdam  <[email protected]>
4653
4654	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
4655	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
4656	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
4657	avoid casting warning at /W4.
4658
46592003-07-03  Andrey Kiselev  <[email protected]>
4660
4661	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
4662
46632003-06-30  Andrey Kiselev  <[email protected]>
4664
4665	* libtiff/tif_pixarlog.c: Unused variables removed.
4666
4667	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
4668	EstimateStripByteCounts() as per bug
4669
4670	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4671
4672	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
4673	64-bit architectures as per bug
4674
4675	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4676
4677	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
4678	unknown data type.
4679
46802003-06-19  Frank Warmerdam  <[email protected]>
4681
4682	* libtiff/tif_print.c: fixed some serious bugs when printing
4683	custom tags ... almost certain to crash.
4684
4685	* libtiff/tif_dirread.c: Don't ignore custom fields that are
4686	autodefined.  Not sure how this got to be like this.
4687
46882003-06-18  Andrey Kiselev  <[email protected]>
4689
4690	* 3.6.0 Beta2 released.
4691
4692	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
4693	comparing as per bug
4694
4695	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
4696
4697	`-z' option now can be used to set the number of reported different
4698	bytes.
4699
47002003-06-09  Andrey Kiselev  <[email protected]>
4701
4702	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
4703	to -r option to get the entire image as one strip. See
4704
4705	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4706
4707	for details.
4708
47092003-06-04  Andrey Kiselev  <[email protected]>
4710
4711	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
4712	values as per bug
4713
4714	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4715
47162003-05-27  Frank Warmerdam  <[email protected]>
4717
4718	* libtiff/tif_jpeg.c: modified segment_height calculation to always
4719	be a full height tile for tiled images.  Also changed error to just
4720	be a warning.
4721
47222003-05-25  Andrey Kiselev  <[email protected]>
4723
4724	* tools/fax2tiff.c: Page numbering fixed, as per bug
4725
4726	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
4727
47282003-05-20  Andrey Kiselev  <[email protected]>
4729
4730	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4731	configure, Makefile.in:	Switched back to the old behaviour. Likely
4732	better solution should be found for OJPEG support.
4733
47342003-05-11  Andrey Kiselev  <[email protected]>
4735
4736	* libtiff/mkversion.c: Fixed problem with wrong string size when
4737	reading RELEASE-DATE file.
4738
47392003-05-07  Andrey Kiselev  <[email protected]>
4740
4741	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
4742	index was out of range.
4743
47442003-05-06  Andrey Kiselev  <[email protected]>
4745
4746	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4747	configure, Makefile.in:	Improved libtiff compilation with OJPEG
4748	support. Now no need for patching IJG JPEG library, hack requred by
4749	libtiff will be compiled and used in-place. Implemented with
4750	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
4751
4752	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
4753	TIFFVGetFieldDefaulted() function.
4754
47552003-05-05  Andrey Kiselev  <[email protected]>
4756
4757	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
4758	comments.
4759
4760	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
4761	was not copied from source image.
4762
4763	* libtiff/getimage.c: Workaround for some images without correct
4764	info about alpha channel as per bug
4765
4766	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
4767
47682003-04-29  Andrey Kiselev  <[email protected]>
4769
4770	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
4771	It basically allows one to use the /flateDecode filter for ZIP
4772	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
4773
4774	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
4775
4776	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
4777	as per bug
4778
4779	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
4780
47812003-04-17  Andrey Kiselev  <[email protected]>
4782
4783	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
4784	due to problems with multidirectory images. Quality of error messages
4785	improved.
4786
47872003-04-16  Andrey Kiselev  <[email protected]>
4788
4789	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
4790	encoded images. See bug entries
4791
4792	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
4793
4794	and
4795
4796	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
4797
4798	* libtiff/tif_dirread.c: Additional check for StripByteCounts
4799	correctness. Fixes
4800
4801	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
4802
48032003-03-12  Andrey Kiselev  <[email protected]>
4804
4805	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
4806	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
4807	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
4808	tiffmedian.c}: Added library version reporting facility to all tools.
4809
48102003-03-06  Frank Warmerdam  <[email protected]>
4811
4812	* port/install.sh.in: Fixed problems with install producing paths
4813	like ///usr/local/lib on cygwin.
4814
48152003-02-27  Andrey Kiselev  <[email protected]>
4816
4817	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
4818	raw input page. Patch supplied by Julien Gaulmin. See
4819
4820	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
4821
4822	for details.
4823
48242003-02-26  Frank Warmerdam  <[email protected]>
4825
4826	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
4827	responsible for byte swapping complex image data.
4828
4829	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
4830	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
4831
48322003-02-07  Andrey Kiselev  <[email protected]>
4833
4834	* tools/ppm2tiff.c: Fixed problem with too many arguments.
4835
48362003-02-04  Andrey Kiselev  <[email protected]>
4837
4838	* tools/raw2tiff.c: Memory leak fixed.
4839
48402003-02-03  Andrey Kiselev  <[email protected]>
4841
4842	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
4843	(thanks, Julien!). More switches for fax2tiff tool for better control
4844	of input and output. Details at
4845
4846	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
4847
48482003-02-03  Frank Warmerdam  <[email protected]>
4849
4850	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
4851	library so that we can check if there is already any tile/strip data
4852	before deciding between creating a compressor or a decompressor.
4853
48542003-01-31  Frank Warmerdam  <[email protected]>
4855
4856	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
4857	a pre-existing compressed image.  That is, image writing to
4858	pre-existing compressed images is not allowed.
4859
4860	* libtiff/tif_open.c: Removed error if opening a compressed file
4861	in update mode.
4862
4863	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
4864
48652003-01-31  Andrey Kiselev  <[email protected]>
4866
4867	* config.guess, config.sub: Updated to recent upstream versions.
4868
48692003-01-15  Frank Warmerdam  <[email protected]>
4870
4871	* cut 3.6.0 Beta release.
4872
48732002-12-20  Andrey Kiselev  <[email protected]>
4874
4875	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
4876	in wrong way as per bug
4877
4878	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
4879
48802002-12-17  Frank Warmerdam  <[email protected]>
4881
4882	* libtiff/tif_dirread.c: Allow wrong sized arrays in
4883	TIFFFetchStripThing().
4884
4885	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
4886
48872002-12-02  Frank Warmerdam  <[email protected]>
4888
4889	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
4890	Was using realloc even first time.  Fix by Igor Venevtsev.
4891
48922002-11-30  Frank Warmerdam  <[email protected]>
4893
4894	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
4895	field value.
4896
4897	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
4898	tags in TIFFVGetField() ... added missing break.
4899
49002002-10-14  Frank Warmerdam  <[email protected]>
4901
4902	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
4903	the scanline buffer long enough when writing rgb triplets.
4904	The scanline needs to be 3 X the number of dots or else it will
4905	contain	an incomplete triplet and programs that try to separate
4906	the eps by redefining the colorimage operator will get messed up.
4907	Patch supplied by William Bader.
4908
4909	* Makefile.in: added tif_extension.c to file list as per
4910	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
4911
49122002-10-11  Andrey Kiselev  <[email protected]>
4913
4914	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
4915	large files (>2GiB) supporting. New option in the config.site:
4916	LARGEFILE="yes". Should be enough for I/O of the large files.
4917
49182002-10-10  Frank Warmerdam  <[email protected]>
4919
4920	* libtiff/html/v3.6.0.html: new release notes.
4921
4922	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
4923	link for Andrey.  Pointer to v3.6.0.html.
4924
4925	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
4926
49272002-10-07  Andrey Kiselev  <[email protected]>
4928	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
4929	(thanks, Sebastian!). New switches:
4930	-b # for a bottom margin of # inches
4931	-c   center image
4932	-l # for a left margin of # inches
4933	-r   rotate the image by 180 degrees
4934	New features merged with code for shrinking/overlapping.
4935	Previously added -c and -n switches (for overriding PS units) renamed
4936	in -x and -y respectively.
4937
4938	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
4939
4940	* html/man/*.html: Updated from actual manual pages.
4941
49422002-10-06  Frank Warmerdam  <[email protected]>
4943
4944	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
4945	size on windows.  Use #define boolean hack.
4946
4947	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
4948
4949	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
4950	USING_VISUALAGE is defined.
4951
4952	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4953
49542002-10-03  Frank Warmerdam  <[email protected]>
4955
4956	* libtiff/tiff.h: added COMPRESSION_JP2000.
4957
49582002-10-02  Andrey Kiselev  <[email protected]>
4959
4960	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
4961	by the TIFFFetchByteArray() function. Should finally resolve
4962
4963	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
4964
4965	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
4966
4967	* html/Makefile.in: New targets added: html and groffhtml for
4968	producing HTML representations of the manual pages automatically.
4969	html target uses man2html tool, groffhtml uses groff tool.
4970
49712002-09-29  Frank Warmerdam  <[email protected]>
4972
4973	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
4974	from John H. DuBois III.
4975
49762002-09-15  Andrey Kiselev  <[email protected]>
4977
4978	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
4979	manual page for raw2tiff(1) tool.
4980
49812002-09-12  Andrey Kiselev  <[email protected]>
4982
4983	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
4984	the tiffio.h header file.
4985
4986	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
4987	manual page for TIFFDataWidth() function
4988
49892002-09-08  Frank Warmerdam  <[email protected]>
4990
4991	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
4992	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
4993
4994	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
4995	since we are unable to properly include the amount to skip.
4996
4997	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
4998
49992002-09-02  Andrey Kiselev  <[email protected]>
5000
5001	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5002	in TIFFFetchByteArray(). Problem described at
5003	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5004
50052002-08-22  Andrey Kiselev  <[email protected]>
5006
5007	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5008	in _TIFFSetupFieldInfo() function.
5009	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5010
5011	* /libtiff/tif_lzw.c: Additional consistency checking added in
5012	LZWDecode() and LZWDecodeCompat().
5013	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5014	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5015
5016	* /libtiff/tif_lzw.c:
5017	Added check for valid code lengths in LZWDecode() and
5018	LZWDecodeCompat(). Fixes
5019	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5020
50212002-08-16  Andrey Kiselev  <[email protected]>
5022
5023	* /libtiff/{Makefile.vc, libtiff.def}:
5024	Missed declarations added.
5025
50262002-08-15  Frank Warmerdam  <[email protected]>
5027
5028	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5029	return code from the underlying pick function.
5030
5031	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5032
5033	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5034	with FIELD_CUSTOM as mentioned in bug 169.
5035
5036	* tif_close.c: added logic to free dynamically created anonymous
5037	field definitions to correct a small memory leak.
5038
5039	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5040
50412002-08-10  Andrey Kiselev  <[email protected]>
5042
5043	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5044	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5045
50462002-07-31  Frank Warmerdam  <[email protected]>
5047
5048	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5049	JPEGDecode() as per bugzilla bug (issue 1):
5050
5051	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5052
5053	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5054	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5055	present in the tiff tags.
5056
5057	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5058
5059	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5060	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5061	fooled with the value.
5062
5063	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5064
50652002-06-22  Andrey Kiselev  <[email protected]>
5066
5067	* /tools/tiff2ps.c: Added workaround for some software that may crash
5068	when last strip of image contains fewer number of scanlines than
5069	specified by the `/Height' variable. See
5070	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5071	for explanation.
5072
50732002-06-21  Andrey Kiselev  <[email protected]>
5074
5075	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5076	splitting long images in several pages. See
5077	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5078	Patch granted by John Williams <[email protected]>.
5079
50802002-06-11  Frank Warmerdam  <[email protected]>
5081
5082	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5083	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5084	This one is described in:
5085
5086	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5087
5088	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5089
5090	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5091
50922002-05-10  Andrey Kiselev  <[email protected]>
5093
5094	* tools/tiff2ps: New commandline switches to override resolution
5095	units obtained from the input file. Closes
5096	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5097
50982002-04-26  Andrey Kiselev  <[email protected]>
5099
5100	* libtiff/libtiff.def: Added missed declaration.
5101
51022002-04-22  Andrey Kiselev  <[email protected]>
5103
5104	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5105	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5106
51072002-04-20  Andrey Kiselev  <[email protected]>
5108
5109	* libtiff/tif_open.c: Pointers to custom procedures
5110	in TIFFClientOpen() are checked to be not NULL-pointers.
5111
51122002-04-18  Andrey Kiselev  <[email protected]>
5113
5114	* libtiff/libtiff.def: Added missed declarations.
5115
5116	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5117
51182002-04-16  Andrey Kiselev  <[email protected]>
5119
5120	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5121	Should finally close
5122	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5123
51242002-04-10  Andrey Kiselev  <[email protected]>
5125
5126	* tools/tiff2ps: Division by zero fixed.
5127	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5128
51292002-04-09  Andrey Kiselev  <[email protected]>
5130
5131	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5132	TIFFCheckpointDirectory() routine added.
5133	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5134
5135	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5136	for the new function.
5137
51382002-04-08  Andrey Kiselev  <[email protected]>
5139
5140	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5141	additional members tif->tif_decodestatus and tif->tif_encodestatus
5142	for correct handling of unconfigured codecs (we should not try to read
5143	data or to define data size without correct codecs).
5144
5145	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5146	changed. Now it has used tif->tif_decodestatus and
5147	tif->tif_encodestatus.
5148	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5149	case of __cvs_8.tif test image).
5150
5151	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5152	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5153	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5154	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5155
51562002-04-04  Andrey Kiselev  <[email protected]>
5157
5158	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5159	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5160	files by skipping bad strips.
5161	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5162
51632002-04-03  Frank Warmerdam  <[email protected]>
5164
5165	* libtiff/tif_dirwrite.c: Removed some dead code.
5166
5167	* libtiff/*: Cleanup some warnings.
5168
5169	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5170	for variable length FIELD_CUSTOM values.  Was int * but should be
5171	u_short *.
5172
51732002-04-01  Andrey Kiselev  <[email protected]>
5174
5175	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
5176	utility (at cpStripToTile routine).
5177
51782002-03-27  Frank Warmerdam  <[email protected]>
5179
5180	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
5181
5182	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
5183
5184	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
5185	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
5186
5187	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
5188	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
5189
51902002-03-26  Dwight Kelly  <[email protected]>
5191
5192	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5193	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
5194	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
5195	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
5196	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
5197	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
5198
51992002-03-26  Andrey Kiselev  <[email protected]>
5200
5201	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
5202	now also uses TIFFRGBAImageOK before reading. This is additional fix
5203	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5204
52052002-03-25  Andrey Kiselev  <[email protected]>
5206
5207	* libtiff/: tif_getimage.c: Additional check for supported
5208	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
5209	TIFFRGBAImageOK before reading.
5210	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5211
52122002-03-15  Andrey Kiselev  <[email protected]>
5213
5214	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5215	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
5216	TIFFDataType sizes instead of working with tiffDataWidth array
5217	directly. Should prevent out-of-borders bugs in case of unknown or
5218	broken data types.  EstimateStripByteCounts routine modified, so it
5219	won't work when tags with uknown sizes founded.
5220	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
5221
52222002-03-13  Andrey Kiselev  <[email protected]>
5223
5224	* libtiff/tif_getimage.c: Added support for correct handling
5225	`Orientation' tag in gtTileContig. Should be added in other gt*
5226	functions as well, but I have not images for testing yet. Partially
5227	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5228
52292002-03-10  Andrey Kiselev  <[email protected]>
5230
5231	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
5232	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
5233	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
5234	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
5235
52362002-03-08  Andrey Kiselev  <[email protected]>
5237
5238	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
5239	be stripped when installing, utility binaries will do.	Closes
5240	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5241
52422002-02-28  Frank Warmerdam  <[email protected]>
5243
5244	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
5245
5246	* man/libtiff.3t: added copyright tag info.
5247
52482002-02-11  Frank Warmerdam  <[email protected]>
5249
5250	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
5251
5252	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5253
5254	* man/Makefile.in: Patch DESTDIR handling
5255
5256	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
5257
5258	* configure: OpenBSD changes for Sparc64 and DSO version.
5259
5260	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
5261
52622002-02-05  Frank Warmerdam  <[email protected]>
5263
5264	* config.site/configure: added support for OJPEG=yes option to enable
5265	OJPEG support from config.site.
5266
52672002-01-27  Frank Warmerdam  <[email protected]>
5268
5269	* html/document.html: fixed links for TIFf 6 docs.
5270
52712002-01-18  Frank Warmerdam  <[email protected]>
5272
5273	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
5274
5275	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
5276	decodestrip function returns anything not greater than zero as per
5277	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
5278
5279	* configure: Modify CheckForBigEndian so it can work in a cross
5280	compiled situation.
5281
52822002-01-16  Frank Warmerdam  <[email protected]>
5283
5284	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
5285
5286	* tools/tiffset.c: fix bug in error reporting.
5287
5288	* tools/tiffcp.c: fix several warnings that show up with -Wall.
5289
52902002-01-04  Frank Warmerdam  <[email protected]>
5291
5292	* libtiff/tif_jpeg.c: fixed computation of segment_width for
5293	tiles files to avoid error about it not matching the
5294	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
5295	size.") for ITIFF files.  Apparently the problem was incorporated since
5296	3.5.5, presumably during the OJPEG/JPEG work recently.
5297
52982001-12-15  Frank Warmerdam  <[email protected]>
5299
5300	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
5301
5302	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5303
5304	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
5305	(defined in tiffconf.h - 1 by default) then the RGBA interface
5306	will assume that a fourth extra sample is ASSOCALPHA if the
5307	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
5308	the library, but makes it work better with RGBA files produced by
5309	lots of applications that don't mark the alpha values properly.
5310
5311	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5312	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
5313
53142001-12-12  Frank Warmerdam  <[email protected]>
5315
5316	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
5317	override those from tiff directory.  This makes this work with
5318	ImageGear generated files.
5319
53202001-12-07  Frank Warmerdam  <[email protected]>
5321
5322	* html/Makefile.in: added missing images per bug 92.
5323
5324	* port/Makefile.in: fixed clean target per bug 92.
5325
53262001-11-28  Frank Warmerdam  <[email protected]>
5327
5328	* Reissue 3.5.7 release.
5329
5330	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
5331	YYYYMMDD so that it is increasing over time.
5332
5333	* Makefile.in: Ensure that tiffvers.h is regenerated in the
5334	make release target.
5335
5336	* Makefile.in: added libtiff/tiffvers.h to the release file list.
5337
53382001-11-23  Frank Warmerdam  <[email protected]>
5339
5340	* added html/v3.5.7.html, updated html/index.html.
5341
5342	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
5343
53442001-11-15  Frank Warmerdam  <[email protected]>
5345
5346	* configure: fixed test for -lm.
5347
53482001-11-02  Frank Warmerdam  <[email protected]>
5349
5350	* Added PHOTOMETRIC_ITULAB as per bug 90.
5351
5352	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
5353
53542001-10-10  Frank Warmerdam  <[email protected]>
5355
5356	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
5357	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
5358	in keeping with TIFF 6.0 standard in tiff.h
5359
5360	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
5361
53622001-09-26  Frank Warmerdam  <[email protected]>
5363
5364	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
5365	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
5366
53672001-09-24  Frank Warmerdam  <[email protected]>
5368
5369	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
5370
5371	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
5372
5373	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
5374	error about LZW not being available.
5375
5376	* libtiff/tif_dir.c: propagate failure to initialize compression
5377	back from TIFFSetField() as an error status, so applications can
5378	detect failure.
5379
5380	* libtiff/tif_dir.c: removed the auto replacement of
5381	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
5382
5383	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
5384	from CVS as they are all supposed to be auto-generated by configure.
5385
53862001-09-22  Frank Warmerdam  <[email protected]>
5387
5388	* libtiff/tif_ojpeg.c: new update from Scott.
5389
53902001-09-09  Frank Warmerdam  <[email protected]>
5391
5392	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
5393	always use the "safe" version, even if there is a very slight
5394	cost in performance.
5395
5396	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
5397
5398	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
5399	in two places.
5400
5401	* libtiff/tif_getimage.c: Fixed problem with reading strips or
5402	tiles that don't start on a tile boundary.  Fix contributed by
5403	Josep Vallverdu (from HP), and further described in bug 47.
5404
5405	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
5406
5407	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
5408
5409	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
5410
54112001-09-06  Frank Warmerdam  <[email protected]>
5412
5413	* libtiff/tif_packbits.c: fixed memory overrun error.
5414
5415	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
5416
54172001-08-31  Frank Warmerdam  <[email protected]>
5418
5419	* libtiff/tif_getimage.c: relax handling of contig case where
5420	there are extra samples that are supposed to be ignored.  This
5421	should now work for 8bit greyscale or palletted images.
5422
5423	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
5424
54252001-08-28  Frank Warmerdam  <[email protected]>
5426
5427	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
5428	images with more than four samples per pixel.  See:
5429
5430	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
5431
54322001-08-10  Frank Warmerdam  <[email protected]>
5433
5434	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
5435	in TIFFReadRGBATile() to avoid issues in cases of overlapping
5436	buffers.  See Bug 69 in Bugzilla.
5437
5438	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
5439
5440	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
5441
54422001-08-09  Frank Warmerdam  <[email protected]>
5443
5444	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
5445	when checking for 64 bit architectures as per bugzilla bug 67.
5446
54472001-07-27  Frank Warmerdam  <[email protected]>
5448
5449	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
5450	bug 66.
5451
54522001-07-20  Frank Warmerdam  <[email protected]>
5453
5454	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
5455	has been included.
5456
54572001-07-19  Frank Warmerdam  <[email protected]>
5458
5459	* libtiff/tif_open.c: Seek back to zero after failed read,
5460	before writing header.
5461
54622001-07-18  Frank Warmerdam  <[email protected]>
5463
5464	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
5465	much better.  Now depends on having patched libjpeg as per
5466	patch in contrib/ojpeg/*.
5467
54682001-07-17  Frank Warmerdam  <[email protected]>
5469
5470	* */Makefile.in: added DESTDIR support.
5471
5472	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
5473
54742001-07-16  Frank Warmerdam  <[email protected]>
5475
5476	* configure, libtiff/Makefile.in: applied OpenBSD patches
5477	as per:
5478
5479	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
5480
54812001-06-28  Frank Warmerdam  <[email protected]>
5482
5483	* libtiff/tif_getimage.c: Fixed so that failure is properly
5484	reported by gtTileContig, gtStripContig, gtTileSeparate and
5485	gtStripSeparate.
5486
5487	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
5488
5489	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
5490	Updated bug section of tiffcmp.1 to note tiled file issues.
5491
5492	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
5493
54942001-06-22  Frank Warmerdam  <[email protected]>
5495
5496	* configure: Changes for DSO generation on AIX provided by
5497	John Marquart <[email protected]>.
5498
5499	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
5500	on Darwin thanks to Robert Krajewski ([email protected]) and
5501	Keisuke Fujii ([email protected]).
5502
55032001-06-13  Frank Warmerdam  <[email protected]>
5504
5505	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
5506
5507	* man/tiff2rgba.1: new
5508
55092001-05-22  Frank Warmerdam  <[email protected]>
5510
5511	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
5512
55132001-05-13  Frank Warmerdam  <[email protected]>
5514
5515	* libtiff/tools/thumbnail.c: changed default output compression
5516	to packbits from LZW since LZW isn't generally available.
5517
55182001-05-12  Frank Warmerdam  <[email protected]>
5519
5520	* libtiff/tif_ojpeg.c: New.
5521	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
5522	to OJPEG support.
5523
5524	Scott Marovich <[email protected]> supplied OJPEG support.
5525
55262001-05-11  Frank Warmerdam  <[email protected]>
5527
5528	* tiff.h: removed, it duplicates libtiff/tiff.h.
5529
55302001-05-08  Frank Warmerdam  <[email protected]>
5531
5532	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
5533	ensure everything is in order.
5534
5535	* libtiff/libtiff.def: added TIFFCreateDirectory and
5536	TIFFDefaultStripSize as per:
5537
5538	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
5539
55402001-05-02  Frank Warmerdam  <[email protected]>
5541
5542	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
5543	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
5544	force use of uint32 counts instead of short counts.
5545
5546	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
5547	case of writing TIFF_BYTE/TIFF_SBYTE fields.
5548
5549	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
5550
55512001-05-01  Frank Warmerdam  <[email protected]>
5552
5553	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
5554	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
5555
55562001-04-05  Frank Warmerdam  <[email protected]>
5557
5558	* tiffio.h: removed C++ style comment.
5559
5560	* configure: fixed up SCRIPT_SH/SHELL handling.
5561
5562	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
5563
5564	* config.guess: documented more variables as per bug 40.
5565
55662001-04-03  Frank Warmerdam  <[email protected]>
5567
5568	* configure, *Makefile.in: Various changes to improve configuration
5569	for HP/UX specifically, and also in general.  They include:
5570	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
5571	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
5572	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
5573	 - Use -${MAKEFLAGS} in sub makes from makefiles.
5574
5575	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
5576
55772001-04-02  Frank Warmerdam  <[email protected]>
5578
5579	* libtiff/tiff.h: Applied hac to try and resolve the problem
5580	with the inttypes.h include file on AIX.
5581
5582	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5583
5584	* VERSION: update to 3.5.7 beta in preparation for release.
5585
5586	* configure/config.site: modified to check if -lm is needed for
5587	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
5588
5589	* config.guess: updated wholesale to an FSF version apparently
5590	from 1998 (as opposed to 1994).  This is mainly inspired by
5591	providing for MacOS X support.
5592
55932001-03-29  Frank Warmerdam  <[email protected]>
5594
5595	* configure, Makefile.in, etc: added support for OPTIMIZER being
5596	set from config.site.
5597
55982001-03-28  Frank Warmerdam  <[email protected]>
5599
5600	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
5601
5602	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
5603	sizes. It fixes two problems:
5604
5605	Without	scaling (-S) the fax is now centered on the page size specified
5606	with -H	and/or -W. Before, fax2ps was using an obscure and practially
5607	useless algorithm to allocate the image relative to Letter sized paper
5608	which sometime sled to useless whitespace on the paper, while at the
5609	same time cutting of the faxes printable area at the opposite border.
5610
5611	Second, scaling now preserves aspect ratio, which makes unusual faxes
5612	(in particular short ones) print properly.
5613
5614	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
5615
5616	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
5617	Bruce A. Mallett.  See check message for detailed information
5618	on all the changes, including a faster encoder, fixes for level
5619	2 PostScript, and support for the imagemask operator.
5620
56212001-03-27  Frank Warmerdam  <[email protected]>
5622
5623	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
5624	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
5625
5626	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5627
56282001-03-16  Frank Warmerdam  <[email protected]>
5629
5630	* tif_dirinfo.c: moved definition of copyright tag in field list.
5631	Apparently they have to be in sorted order by tag id.
5632
56332001-03-13  Frank Warmerdam  <[email protected]>
5634
5635	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
5636	images in RGBA interface.
5637
56382001-03-02  Frank Warmerdam  <[email protected]>
5639
5640	* Added TIFFTAG_COPYRIGHT support.
5641
56422001-02-19  Frank Warmerdam  <[email protected]>
5643
5644	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
5645	with support for extracting subimages with the ,n syntax, and also
5646	adding the -b bias removal flag.
5647
56482001-02-16  Frank Warmerdam  <[email protected]>
5649
5650	* libtiff/libtiff.def: Brent Roman submitted new version adding
5651	serveral missing entry points.
5652
5653	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
5654	Some sort of weird VMS thing.
5655
5656	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
5657
5658	* tif_luv.c/tiff.h/tiffio.h:
5659	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
5660	([email protected]).  He writes:
5661
5662	1) I improved the gamut-mapping function in tif_luv.c for imaginary
5663	colors, because some images were being super-saturated on the input
5664	side and this resulted in some strange color shifts in the output.
5665
5666	2) I added a psuedotag in tiff.h to control random dithering during
5667	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
5668	on for 24-bit LogLuv output.  Dithering improves the average color
5669	accuracy over the image.
5670
5671	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
5672	tiffio.h, to expose internal routines for converting between LogLuv and
5673	XYZ coordinates.  This is helpful for writing more efficient,
5674	specialized conversion routines, especially for reading LogLuv files.
5675
5676	Changes applied with minor edits.
5677
56782001-01-23  Frank Warmerdam  <[email protected]>
5679
5680	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
5681	whether we are encoding or decoding.  This is to ensure graceful
5682	recovery if TIFFClientOpen() discovers an attempt to open a compressed
5683	file for "r+" access, and subsequently close it, as it resets the
5684	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
5685	compressor's concept of whether it is in encode or decode mode.
5686
56872001-01-08  Mike Welles <[email protected]>
5688
5689	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
5690
56912001-01-07  Frank Warmerdam  <[email protected]>
5692
5693	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
5694	as per bug report by Patrick Connor.
5695
56962000-12-28  Frank Warmerdam  <[email protected]>
5697
5698	* Added RELEASE-DATE file to release file list.
5699
5700	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
5701
57022000-12-22  Mike Welles <[email protected]>
5703        * added link to CVS mirror from index.html
5704
5705	* updated html/internals.html to note that LZW compression is
5706	  not supported by default.
5707
57082000-12-22  Frank Warmerdam  <[email protected]>
5709
5710	* updated html/libtiff.html to not point at Niles' old JPL web site
5711	for the man pages, point at www.libtiff.org.
5712
57132000-12-21  Frank Warmerdam  <[email protected]>
5714
5715	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
5716	Leonard Rosenthol <[email protected]>.  May interfere
5717	with correct building on older systems.  If so, please let me know.
5718
57192000-12-19 Mike Welles <[email protected]>
5720
5721	* Took out LZW Encoding from tif_lzw.c
5722
5723	* Created HOWTO-RELEASE
5724
5725	* Created html/v3.5.6.html
5726
5727	* updated index.html
5728
57292000-12-01  Frank Warmerdam  <[email protected]>
5730
5731	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
5732	Patches supplied by Frank Cringle <[email protected]>
5733	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
5734
57352000-11-24  Frank Warmerdam  <[email protected]>
5736
5737	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
5738	target so that the private headers required by libgeotiff can be
5739	installed with the others.  They are not installed by default.
5740
5741	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
5742	targets so libtiff.so will be built with an explicit dependency
5743	on libm.so.
5744
5745	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
5746	libtiff.so.3.5.5.
5747
5748	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
5749	file, or ALPHA version logic.  Added stuff about DIST_POINT in
5750	place of DIST_TYPE and the alpha release number stuff.
5751
57522000-11-22  Frank Warmerdam  <[email protected]>
5753
5754	* I have applied a patch from Steffen Moeller <[email protected]> to
5755	the configure script so that it now accepts the --prefix, and
5756	--exec-prefix directives.
5757
57582000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
5759
5760	* I have made a variety of modifications in an effort to ensure the
5761	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
5762	file which seems to be updated regularly.
5763
5764	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
5765	   version include file.
5766	 o renamed version.h to tiffvers.h because we now have to install it
5767	   with the public libtiff include files.
5768	 o include tiffvers.h in tiffio.h.
5769	 o updated tif_version.c to use tiffvers.h.
5770	 o Updated Makefile.in accordingly.
5771
5772	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
5773	I have updated the win32 detection rules in tiffcomp.h.
5774
57752000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
5776
5777	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
5778	the strip/tile width and height aren't multiples of the sampling size.
5779	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
5780	Some patches from Rick LaMont of Dot C Software.
5781
5782	* Modified tif_packbits.c encoder to avoid compressing more
5783	data than provided if rowsize doesn't factor into provided data
5784	(such as occurs for YCbCr).
5785
57862000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
5787
5788	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
5789	roundup if rows_per_strip not a multiple of vertical sample size.
5790
57912000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
5792
5793	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
5794	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5795	from [email protected].
5796
5797	* Modified tif_packbits.c decoding to avoid overrunning the
5798	output buffer, and to issue a warning if data needs to be
5799	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5800
58012000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
5802
5803	* Modified tiff2bw to ensure portions add to 100%, and that
5804	white is properly recovered.
5805
5806	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
5807	Patch c/o Stanislav Brabec <[email protected]>
5808
58092000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
5810
5811	* Modified TIFFClientOpen() to emit an error on an attempt to
5812	open a comperessed file for update (O_RDWR/r+) access.  This is
5813	because the compressor/decompressor code gets very confused when
5814	the mode is O_RDWR, assuming this means writing only.  See
5815	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
5816
58172000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
5818
5819	* Added GNULDdso target an`d switched linux and freebsd to use it.
5820
58212000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
5822
5823	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
5824	of EXPAND1D() as per bug 11 (from Roman).
5825
58262000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
5827	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
5828	cygwin compatibility.
5829
5830	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
5831	be a proper fix to the buffer sizing problem.  See
5832	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
5833
5834	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
5835	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
5836	Thanks to Nick Lamb <[email protected]> for reporting the
5837	bug and proving the patch.
5838
58392000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
5840
5841	* Fixed tif_jpeg.c so avoid destroying the decompressor before
5842	we are done access data thanks to bug report from:
5843	Michael Eckstein <[email protected]>.
5844
5845	* Reverted tif_flush change.
5846
58472000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
5848
5849	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
5850	error when TIFF_BEENWRITING is not set.  This ensures that the
5851	directory contents can still be flushed by TIFFFlush().
5852
58532000-08-14  Frank Warmerdam  <[email protected]>
5854
5855	* tif_open.c: Don't set MMAP for O_RDWR files.
5856
5857	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
5858	so that files opened for update can be strip chopped too.
5859
5860	* tif_read.c: fixed up bug with files missing rowsperstrip and
5861	the strips per separation fix done a few weeks ago.
5862
58632000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
5864
5865	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
5866	SAMPLEFORMAT_COMPLEXINT.
5867
58682000-07-13  Mike Welles <[email protected]>
5869
5870	* index.html, bugs.html: added bugzilla info.
5871
58722000-07-12  Frank Warmerdam  <[email protected]>
5873
5874	* tif_read.c: fix subtle bug with determining the number of
5875	rows for strips that are the last strip in a separation but
5876	not the last strip of all in TIFFReadEncodedStrip().
5877
5878	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
5879	Peter Skarpetis <[email protected]>
5880
58812000-06-15  Frank Warmerdam  <[email protected]>
5882
5883	* Modified tiffio.h logic with regard to including windows.h.  It
5884	won't include it when building with __CYGWIN__.
5885
58862000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
5887
5888	* README: update to mention www.libtiff.org, don't list Sam's old
5889	email address.
5890
5891	* configure: Fixed DSO test for Linux as per patch from
5892	  Jan Van Buggenhout <[email protected]>.
5893
58942000-04-21  Frank Warmerdam  <[email protected]>
5895
5896	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
5897	one tile/strip images with an offset, and byte count of zero. These
5898	could be "unpopulated" images.
5899
59002000-04-18  Frank Warmerdam  <[email protected]>
5901
5902	* contrib/addtiffo: Added "averaging" resampling option.
5903
5904	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
5905
5906Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
5907
5908	* tools/Makefile.in: Modified to install properly on SGI.
5909
59102000-04-12  Mike Welles	     <[email protected]>
5911	* configure:  Fixed stupid mistake in libc6 test on Linux
5912
59132000-04-04  Mike Welles	     <[email protected]>
5914	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
5915	  caught by BoundsChecker.  From Arvan Pritchard
5916	  <[email protected]>  (untested).
5917
5918	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
5919	  Arvan Pritchard <[email protected]>
5920
5921	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
5922	  Arvan Pritchard <[email protected]>
5923
59242000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
5925
5926	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
5927
59282000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
5929
5930	* fax2ps: Fixed mixup of width and height in bounding box statement
5931	as per submission by Nalin Dahyabhai <[email protected]>.
5932
59332000-03-27  Mike Welles	     <[email protected]>
5934
5935	* fax2ps:  Modified printruns to take uint32 instead of uint16.
5936	Patch courtesy of Bernt Herd <[email protected]>
5937
59382000-03-20  Mike Welles	     <[email protected]>
5939
5940	* configure: added test for libc6 for linux targets.  Bug reported by
5941        Stanislav Brabec <[email protected]>
5942
5943	* Added 3.5 docs to html/Makefile.in.
5944	Thanks to  Stanislav Brabec <[email protected]>
5945
5946	* configure: fixed bugs in sed scripts
5947	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
5948	fix submitted to Stanislav Brabec <[email protected]>
5949
5950	* tools/iptcutil was not in files list, and wasn't being
5951	added to tar archive.  Updated Makefile.in.
5952
59532000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
5954
5955	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
5956	conversion for the run arrays.
5957
59582000-03-03  Frank Warmerdam  <[email protected]>
5959
5960	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
5961	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
5962
59632000-03-02  Frank Warmerdam  <[email protected]>
5964
5965	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
5966
5967	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
5968	to avoid overruns encountered with frle_bug.tif.
5969
5970Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
5971
5972	* Fixed tools/tiffcmp so that stopondiff testing works.
5973	  Patch care of Joseph Orost <[email protected]>.
5974
59752000-01-28    <warmerda@CS46980-B>
5976
5977	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
5978	  set to 1, and added default (off) setting in tiffconf.h.  This
5979	  should eventually be set by the configure script somehow.
5980
5981	  The original work on all these 2-4GB changes was done by
5982	  Peter Smith ([email protected]).
5983
5984	* Modified tif_win32.c to support 2-4GB seeks.
5985
5986	* tentatively changed toff_t to be unsigned instead of signed to
5987	  facilitate support for 2-4GB files.
5988
5989	* Updated a variety of files to use toff_t.  Fixed some mixups
5990	  between toff_t and tsize_t.
5991
5992Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
5993
5994	* Largely reimplemented contrib/addtiffo to avoid temp files,
5995	updating the TIFF file in place.  Fixed a few other bugs to.
5996
5997	* Set tif_rawdatasize to zero when freeing raw data buffer in
5998	TIFFWriteDirectory().
5999
6000	* Enabled "REWRITE_HACK" in tif_write.c by default.
6001
6002	* Fix bug in tif_write.c when switching between reading one directory
6003	and writing to another.
6004
6005	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6006
6007Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6008
6009	* Added TIFFmemory(3t) functions to libtiff.def.
6010
6011Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6012
6013	* Added libtiff/libtiff.def to TIFFILES distribution list.
6014
6015Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6016
6017	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6018
6019	* Altered descriptions in tools to reflect "by default" lzw not supported
6020
6021	* Updated index.html to note lzw compression kit.
6022
6023Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6024
6025	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6026
6027Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6028
6029	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6030
6031	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6032	  when LZW compression invoked.
6033
6034	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6035	  in tools to reflect removal of LZW compression
6036
6037Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6038
6039        * Fixed bug that caused LZW (non) compression to segfault. Added
6040	  warning about LZW compression removed being removed, and why.
6041
6042	* Added nostrip to install in tools/Makefile.in so that debugging
6043	  symbols are kept.
6044
6045Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6046
6047	* Added patch from Ivo Penzar <[email protected]>,
6048	  supporting Adobe ZIP deflate.  Untested.
6049
6050Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6051
6052	* Made Packbits the default compression in tools/tiff2rgba.c instead
6053	of LZW.
6054
6055Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6056
6057	* Added tif_luv to contrib/djgpp/Makefile.lib.
6058
6059Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6060
6061        * Added zip creation to relase makefile target
6062
6063	* Added html for TIFFWriteTile.3t man page.
6064
6065Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6066
6067	* Added some changes to tif_write.c to support rewriting existing
6068	fixed sized tiles and strips.  Code mods disabled by default, only
6069	enabled if REWRITE_HACK is defined for now.
6070
6071Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6072
6073	* Added TIFFWriteTile.3t man page.
6074
6075Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6076
6077	* Added notes on use of makefile.vc in build.html, and fixed
6078	email subscription address.
6079
6080199-11-28  Mike Welles <[email protected]>
6081
6082	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6083
6084	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6085	   from Bruce Carmeron <[email protected]> -- modifications of
6086	   changes made by Frank (sun cc still complained on cast).
6087
6088	*  Added tiffconf.h to install target per request from Bill
6089	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6090 	   know features have been compiled into the TIFF library in order to
6091	   handle things properly".
6092
6093Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6094
6095	* fixed various VC++ warnings as suggested by Gilles Vollant
6096	<[email protected]>.
6097
6098Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6099
6100	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6101	not imply applications are responsible for image data swapping.
6102
61031999-11-22  Mike Welles <[email protected]>
6104	*  HTML-ized the man pages, added to html/man
6105
6106	*  Removed LZW Compression to comply with Unisys patent extortion.
6107
61081999-09-29  Mike Welles		<[email protected]>
6109	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6110	   From Ivo Penzar <[email protected].
6111
6112	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6113	   memory mapped files. <[email protected]>
6114
61151999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6116	* Corrected alpha versioning.
6117
6118	* Removed distinction between  alpha and release targets in Makefile.in.
6119
6120	* added release.stamp target, which tags cvs tree, and updates
6121	  "RELEASE-DATE"
6122
6123	* added releasediff target, which diffs tree with source as of
6124	  date in "RELEASE-DATE"
6125
6126	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6127	  away from alpha/non-alpha distinctions).
6128
6129	* updated html to reflect release
6130
61311999-09-23    <warmerda@CS46980-B>
6132
6133	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6134
6135	* Added CYGWIN case in configure.
6136
6137Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6138
6139	* Applied Francois Dagand's patch to handle fax decompression bug.
6140	  (sizes >= 65536 were failing)
6141
6142Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6143
6144	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6145	  by Christopher Lawton <[email protected]>
6146
6147Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6148
6149	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6150	  Albert Chin-A-Young <[email protected]>
6151
6152	* Added TIFFReassignTagToIgnore() API on behalf of
6153	  Bruce Cameron <[email protected]>.  Man page still pending.
6154
6155Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6156
6157	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6158	files to provide for a rudimentary testsuite.
6159
6160	* Added contrib/tags back from old distribution ... fixed up a bit.
6161
61621999-08-16    <warmerda@CS46980-B>
6163
6164	* Added simple makefile.vc makefiles for building with MS VC++
6165	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6166	better solutions for some users.
6167
6168Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6169
6170	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6171	put it in tools since part of it is in C++.
6172
61731999-08-16  Michael L. Welles  <[email protected]>
6174
6175	* Updated html/index.html with anon CVS instructions.
6176
6177Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
6178
6179	* pre-remove so link before softlink in LINUXdso action in
6180	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
6181	the first.
6182
6183	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
6184	colormaps owned by the TIFF handle itself when trying to fixup wrong
6185	(eight bit) colormaps.  Corrected by maintaining a private copy of
6186	the colormap.
6187
6188	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
6189	tif_getimage.c.
6190
6191	* CVS Repository placed at remotesensing.org.  ChangeLog added.
6192