xref: /libtiff-4.0.7/ChangeLog (revision ac16d221)
12016-08-15 Even Rouault <even.rouault at spatialys.com>
2
3	* tools/tiff2bw.c: fix weight computation that could result of color
4	value overflow (no security implication). Fix bugzilla #2550.
5	Patch by Frank Freudenberg.
6
72016-08-15 Even Rouault <even.rouault at spatialys.com>
8
9	* tools/rgb2ycbcr.c: validate values of -v and -h parameters to
10	avoid potential divide by zero. Fixes CVE-2016-3623 (bugzilla #2569)
11
122016-08-15 Even Rouault <even.rouault at spatialys.com>
13
14	* tools/tiffcrop.c: Fix out-of-bounds write in loadImage().
15	From patch libtiff-CVE-2016-3991.patch from
16	libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro (bugzilla #2543)
17
182016-08-15 Even Rouault <even.rouault at spatialys.com>
19
20	* libtiff/tif_pixarlog.c: Fix write buffer overflow in PixarLogEncode
21	if more input samples are provided than expected by PixarLogSetupEncode.
22	Idea based on libtiff-CVE-2016-3990.patch from
23	libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, but with different and
24	simpler check. (bugzilla #2544)
25
262016-08-15 Even Rouault <even.rouault at spatialys.com>
27
28	* tools/tiff2rgba.c: Fix integer overflow in size of allocated
29	buffer, when -b mode is enabled, that could result in out-of-bounds
30	write. Based initially on patch tiff-CVE-2016-3945.patch from
31	libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, with correction for
32	invalid tests that rejected valid files. (bugzilla #2545)
33
342016-07-11 Even Rouault <even.rouault at spatialys.com>
35
36	* tools/tiffcrop.c: Avoid access outside of stack allocated array
37	on a tiled separate TIFF with more than 8 samples per pixel.
38	Reported by Kaixiang Zhang of the Cloud Security Team, Qihoo 360
39	(CVE-2016-5321 / CVE-2016-5323 , bugzilla #2558 / #2559)
40
412016-07-10 Even Rouault <even.rouault at spatialys.com>
42
43	* libtiff/tif_read.c: Fix out-of-bounds read on
44	memory-mapped files in TIFFReadRawStrip1() and TIFFReadRawTile1()
45	when stripoffset is beyond tmsize_t max value (reported by
46	Mathias Svensson)
47
482016-07-10 Even Rouault <even.rouault at spatialys.com>
49
50	* tools/tiffdump.c: fix a few misaligned 64-bit reads warned
51	by -fsanitize
52
532016-07-03 Even Rouault <even.rouault at spatialys.com>
54
55	* libtiff/tif_read.c: make TIFFReadEncodedStrip() and
56	TIFFReadEncodedTile() directly use user provided buffer when
57	no compression (and other conditions) to save a memcpy().
58
59	* libtiff/tif_write.c: make TIFFWriteEncodedStrip() and
60	TIFFWriteEncodedTile() directly use user provided buffer when
61	no compression to save a memcpy().
62
632016-07-01  Even Rouault <even.rouault at spatialys.com>
64
65	* libtiff/tif_luv.c: validate that for COMPRESSION_SGILOG and
66	PHOTOMETRIC_LOGL, there is only one sample per pixel. Avoid
67	potential invalid memory write on corrupted/unexpected images when
68	using the TIFFRGBAImageBegin() interface (reported by
69	Clay Wood)
70
712016-06-28  Even Rouault <even.rouault at spatialys.com>
72
73	* libtiff/tif_pixarlog.c: fix potential buffer write overrun in
74	PixarLogDecode() on corrupted/unexpected images (reported by Mathias Svensson)
75	(CVE-2016-5875)
76
772016-06-15  Bob Friesenhahn  <[email protected]>
78
79	* libtiff/libtiff.def: Added _TIFFMultiply32 and _TIFFMultiply64
80	to libtiff.def
81
822016-06-05  Bob Friesenhahn  <[email protected]>
83
84	* tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff,
85	ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from
86	the distribution.  The libtiff tools rgb2ycbcr and thumbnail are
87	only built in the build tree for testing.  Old files are put in
88	new 'archive' subdirectory of the source repository, but not in
89	distribution archives.  These changes are made in order to lessen
90	the maintenance burden.
91
922016-05-10  Bob Friesenhahn  <[email protected]>
93
94	* libtiff/tif_config.vc.h (HAVE_SNPRINTF): Add a '1' to the
95	HAVE_SNPRINTF definition.'
96
972016-05-09  Bob Friesenhahn  <[email protected]>
98
99	* libtiff/tif_config.vc.h (HAVE_SNPRINTF): Applied patch by Edward
100	Lam to define HAVE_SNPRINTF for Visual Studio 2015.
101
1022016-04-27  Even Rouault <even.rouault at spatialys.com>
103
104	* libtiff/tif_dirread.c: when compiled with DEFER_STRILE_LOAD,
105	fix regression, introduced on 2014-12-23, when reading a one-strip
106	file without a StripByteCounts tag. GDAL #6490
107
1082016-04-07  Bob Friesenhahn  <[email protected]>
109
110	* html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for
111	purposes of security issue reporting.
112
1132016-01-23  Even Rouault <even.rouault at spatialys.com>
114
115	* libtiff/*: upstream typo fixes (mostly contributed by Kurt Schwehr)
116	coming from GDAL internal libtiff
117
1182016-01-09  Even Rouault <even.rouault at spatialys.com>
119
120	* libtiff/tif_fax3.h: make Param member of TIFFFaxTabEnt structure
121	a uint16 to reduce size of the binary.
122
1232016-01-03  Even Rouault <even.rouault at spatialys.com>
124
125	* libtiff/tif_read.c, tif_dirread.c: fix indentation issues raised
126	by GCC 6 -Wmisleading-indentation
127
1282015-12-27  Even Rouault <even.rouault at spatialys.com>
129
130	* libtiff/tif_pixarlog.c: avoid zlib error messages to pass a NULL
131	string to %s formatter, which is undefined behaviour in sprintf().
132
1332015-12-27  Even Rouault <even.rouault at spatialys.com>
134
135	* libtiff/tif_next.c: fix potential out-of-bound write in NeXTDecode()
136	triggered by http://lcamtuf.coredump.cx/afl/vulns/libtiff5.tif
137	(bugzilla #2508)
138
1392015-12-27  Even Rouault <even.rouault at spatialys.com>
140
141	* libtiff/tif_luv.c: fix potential out-of-bound writes in decode
142	functions in non debug builds by replacing assert()s by regular if
143	checks (bugzilla #2522).
144	Fix potential out-of-bound reads in case of short input data.
145
1462015-12-26  Even Rouault <even.rouault at spatialys.com>
147
148	* libtiff/tif_getimage.c: fix out-of-bound reads in TIFFRGBAImage
149	interface in case of unsupported values of SamplesPerPixel/ExtraSamples
150	for LogLUV / CIELab. Add explicit call to TIFFRGBAImageOK() in
151	TIFFRGBAImageBegin(). Fix CVE-2015-8665 reported by limingxing and
152	CVE-2015-8683 reported by zzf of Alibaba.
153
1542015-12-21  Even Rouault <even.rouault at spatialys.com>
155
156	* libtiff/tif_dirread.c: workaround false positive warning of Clang Static
157	Analyzer about null pointer dereference in TIFFCheckDirOffset().
158
1592015-12-19  Even Rouault <even.rouault at spatialys.com>
160
161	* libtiff/tif_fax3.c: remove dead assignment in Fax3PutEOLgdal(). Found
162	by Clang Static Analyzer
163
1642015-12-18  Even Rouault <even.rouault at spatialys.com>
165
166	* libtiff/tif_dirwrite.c: fix truncation to 32 bit of file offsets in
167	TIFFLinkDirectory() and TIFFWriteDirectorySec() when aligning directory
168	offsets on a even offset (affects BigTIFF). This was a regression of the
169	changeset of 2015-10-19.
170
1712015-12-12  Even Rouault <even.rouault at spatialys.com>
172
173	* libtiff/tif_write.c: TIFFWriteEncodedStrip() and TIFFWriteEncodedTile()
174	should return -1 in case of failure of tif_encodestrip() as documented
175	* libtiff/tif_dumpmode.c: DumpModeEncode() should return 0 in case of
176	failure so that the above mentionned functions detect the error.
177
1782015-12-06  Even Rouault <even.rouault at spatialys.com>
179
180	* libtiff/uvcode.h: const'ify uv_code array
181
1822015-12-06  Even Rouault <even.rouault at spatialys.com>
183
184	* libtiff/tif_dirinfo.c: const'ify tiffFields, exifFields,
185	tiffFieldArray and exifFieldArray arrays
186
1872015-12-06  Even Rouault <even.rouault at spatialys.com>
188
189	* libtiff/tif_print.c: constify photoNames and orientNames arrays
190
1912015-12-06  Even Rouault <even.rouault at spatialys.com>
192
193	* libtiff/tif_close.c, libtiff/tif_extension.c : rename link
194	variable to avoid -Wshadow warnings
195
1962015-11-22  Even Rouault <even.rouault at spatialys.com>
197
198	* libtiff/*.c: fix typos in comments (patch by Kurt Schwehr)
199
2002015-11-22  Even Rouault <even.rouault at spatialys.com>
201
202	* libtiff/*.c: fix MSVC warnings related to cast shortening and
203	assignment within conditional expression
204
2052015-11-18  Even Rouault <even.rouault at spatialys.com>
206
207	* libtiff/*.c: fix clang -Wshorten-64-to-32 warnings
208
2092015-11-18  Even Rouault <even.rouault at spatialys.com>
210
211	* libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL
212	to please MSVC 2013
213
2142015-11-17  Even Rouault <even.rouault at spatialys.com>
215
216	* libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction
217	if BitsPerPixel > 24, so as to avoid huge memory allocation and file
218	read attempts
219
2202015-11-02  Even Rouault <even.rouault at spatialys.com>
221
222	* libtiff/tif_dirread.c: remove duplicated assignment (reported by
223	Clang static analyzer)
224
2252015-10-28  Even Rouault <even.rouault at spatialys.com>
226
227	* libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c,
228	libtiff/tif_jpeg_12.c: suppress warnings about 'no previous
229	declaration/prototype'
230
2312015-10-19  Even Rouault <even.rouault at spatialys.com>
232
233	* libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix
234	'warning: negative integer implicitly converted to unsigned type' warning
235	(part of -Wconversion)
236
2372015-10-17  Even Rouault <even.rouault at spatialys.com>
238
239	* libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c,
240	  libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/)
241
2422015-09-12  Bob Friesenhahn  <[email protected]>
243
244	* libtiff 4.0.6 released.
245
246	* html/v4.0.6.html: Added release notes for 4.0.6.
247
2482015-09-06  Bob Friesenhahn  <[email protected]>
249
250	* tools/tiffgt.c: Silence glut API deprecation warnings on MacOS
251	X.  Patch by Roger Leigh.
252
253	* Makefile.am: Added a 'coverity' rule to assist with Coverity
254	submissions.
255
256	* tools/tiff2pdf.c: Fix compiler warning about unused function
257	when JPEG is not available.
258
259	* tools/fax2ps.c (main): Detect failure to write to temporary
260	file.
261
2622015-09-05  Bob Friesenhahn  <[email protected]>
263
264	* libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8):
265	Change implementation so that it does not sometimes overflow the
266	range of a 32-bit int and to avoid a signed vs unsigned compare
267	compiler warning.
268	(TIFF_INT64_MAX): Avoid use of platform-specific large constants.
269	(TIFF_UINT32_MAX): Avoid use of platform-specific large constants.
270
2712015-09-01  Bob Friesenhahn  <[email protected]>
272
273	* Makefile.am (distcheck-hook), configure.ac: Applied patches by
274	Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue
275	with BSD make and to make use of cmake in 'distcheck' target
276	conditional on if cmake is available.
277
278	* CMakeLists.txt, Makefile.am, configure.ac: Applied patches by
279	Roger Leigh (via tiff mailing list on 2015-09-01).
280
281	CMake build is now included in 'distcheck' target.
282
283	Builds with CMake 2.8.9 and newer.
284
285	Tar is now resquested to use POSIX PAX format.
286
2872015-08-31  Bob Friesenhahn  <[email protected]>
288
289	* CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by
290	Roger Leigh (via tiff mailing list on 2015-08-31.
291
292	CMake reads all version information directly from configure.ac to
293	avoid duplication of values.  This basically greps over the file
294	for the LIBTIFF_* variables, then translates them to the form
295	needed for cmake. This includes the release version and libtool
296	shared library version information.
297
298	Make shared/static library building configurable.  Currently it
299	always builds shared libraries, with static libs having a _static
300	suffix (copying zlib, but it means it's got a non-standard name).
301	CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the
302	other, which is now used instead.  There's now a single "tiff"
303	target to build either shared or static as required, and all the
304	tests and tools are linked with this. Note: the Windows tests fail
305	when linked with a static libtiff (says: libtiff.dll not found).
306	Not really a regression since this was not tested up to this
307	point, and it's likely the unit tests haven't (ever?) been run on
308	Windows with a static libtiff, so there's some additional
309	portability issue here to address.  Works fine on UNIX systems,
310	and fine on Windows with the default to build a DLL.
311
312	Add a missing file which wasn't being distributed, causing unit
313	tests to fail.  Note that "find . -name '*.cmake'" lists all the
314	CMake files which need distributing in addition to all the
315	CMakeLists.txt files (which now are distributed).
316
3172015-08-31  Even Rouault <even.rouault at spatialys.com>
318
319	* libtiff/tif_predict.c: pedantic change to add explicit masking
320	with 0xff before casting to uchar in floating-point horizontal
321	differencing and accumulation routines.
322
3232015-08-31  Even Rouault <even.rouault at spatialys.com>
324
325	* libtiff/tif_predict.c: fix generation of output with 16 bit
326	or 32 bit integer, when byte swapping is needed, in
327	horizontal predictor (#2521). Also fixes decoding when there is
328	a single pixel to code (unlikely case...) and byte swapping is
329	involved.
330
3312015-08-30  Even Rouault <even.rouault at spatialys.com>
332
333	* libtiff/tif_lzw.c: make nextdata a unsigned type to avoid
334	undefined behaviour with shifts (gcc -fsanitize=shift)
335
3362015-08-30  Even Rouault <even.rouault at spatialys.com>
337
338	* libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c:
339	add explicit masking with 0xff before casting
340	to unsigned char (make icc -check=conversions happy)
341
342	* libtiff/tif_predict.c: operate on unsigned datatypes when
343	computing/applying differences to avoid undefined behaviour of
344	signed types (C standard compliance)
345
3462015-08-30  Bob Friesenhahn  <[email protected]>
347
348	* configure.ac: libtiff 4.0.5 released.
349
3502015-08-29  Bob Friesenhahn  <[email protected]>
351
352	* CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing
353	list on 2015-08-29) to add ld-version-script option to cmake build
354	to match autoconf.  Note: defaults to 'on' to be ABI-compatible by
355	default with common Linux distribution builds.  Note that the
356	autoconf configure script defaults to 'off'.
357
358	* html/build.html: Applied patch by Roger Leigh (via tiff mailing
359	list on 2015-08-29) to describe how to use CMake to build libtiff.
360
3612015-08-28  Bob Friesenhahn  <[email protected]>
362
363	* html/v4.0.5.html: Added HTML file describing the changes which
364	will appear in the 4.0.5 release.
365
3662015-08-23  Bob Friesenhahn  <[email protected]>
367
368	* libtiff/tiffiop.h: For MinGW comiles, make sure that build
369	supports necessary __MSVCRT_VERSION__ (at least at least 0x800).
370	Otherwise large files can not be supported for POSIX-style I/O.
371
372	* tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit
373	builds about cast to thandle_t.
374
375	* test/rewrite_tag.c (main): Does not require any arguments.
376
3772015-08-20  Bob Friesenhahn  <[email protected]>
378
379	* tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to
380	fix build issues when using Cmake due to Windows large file
381	changes.
382
3832015-08-18  Bob Friesenhahn  <[email protected]>
384
385	* libtiff/tiffiop.h: First cut at supporting large files under
386	Microsoft Windows using tif_unix.c and the libtiff tools.  This
387	only works if the Windows CDK is new enough to support the APIs
388	used (Visual C++ 2005 or later).  Support for large files is not
389	actually tested yet.
390
3912015-08-15  Bob Friesenhahn  <[email protected]>
392
393	* libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that
394	client_data is initialized to a known value, and to report an
395	error on two memory allocation failures.
396
3972015-08-13  Bob Friesenhahn  <[email protected]>
398
399	* CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx
400	symbol versioning.  Patch was mailed to libtiff list on Thu, 13
401	Aug 2015.
402
4032015-07-04  Bob Friesenhahn  <[email protected]>
404
405	* cmake: Add d suffix to debug libraries with MSVC.  Patch #3 of 3
406	by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20
407	+0100.
408
409	* cmake: Add extra warning flags.  Patch #2 of 3 by Roger Leigh
410	posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
411
412	* cmake: Correct snprintf fallback for VS2015.  Patch #1 of 3 by
413	Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
414
4152015-06-24  Bob Friesenhahn  <[email protected]>
416
417	* CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to
418	libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several
419	corrections to ensure that the autotools build still works were
420	added by me.  I have not yet tested the build using 'cmake' or
421	MSVC with 'nmake'.
422
4232015-06-21  Bob Friesenhahn  <[email protected]>
424
425	* test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG
426	library so only execute if JPEG is available.
427
428	* libtiff 4.0.4 released.
429
430	* configure.ac: Add a HAVE_FOO Automake conditional for each
431	add-on library.
432
433	* test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode
434	requires JPEG support to compile.  Use Automake conditional to
435	only include it when JPEG support is available.
436
437	* html/build.html: Try to improve the nmake-based VC++ build
438	description.
439
440	* libtiff/tiffconf.vc.h: Build fixes based on testing.
441
442	* libtiff/tif_config.vc.h: Build fixes based on testing.
443
444	* libtiff/libtiff.def: TIFFRasterScanline does not exist so remove
445	export for it.
446
4472015-06-20  Bob Friesenhahn  <[email protected]>
448
449	* libtiff/tif_config.vc.h: Make adjustments to match the new
450	definitions that configure produces, including for WIN64.  Still
451	needs to be tested.
452
453	* configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting
454	specifier.  64-bit MinGW supports 'long long' but support for
455	'lld' is not assured by the run-time DLLs and so GCC warns.
456	Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition
457	and printf format specifier to deal with printing values of
458	'size_t' type.  In particular, this was necessary for WIN64.
459	Added a configure test for if the system headers provide 'optarg'
460	(normal case) and block out the many explicit 'extern' statements
461	in the utilities.  This was found to be necessary under Windows
462	when getopt is in a DLL and the symbols are already imported with
463	dllimport via standard header files.
464
465	* test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32
466	and boolean in MinGW build due to including jpeglib.h.
467
468	* test/rewrite_tag.c (main): Fix problem with location of variable
469	declaration.
470
471	* libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs,
472	TIFFReadRGBAImageOriented, TIFFSetCompressionScheme,
473	TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc,
474	TIFFRasterScanline, TIFFSetErrorHandlerExt,
475	TIFFSetWarningHandlerExt, TIFFNumberOfDirectories,
476	TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory,
477	TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by
478	Roger Leigh and justified by use in libtiff tests, documentation,
479	and changelog notes.  Also sorted symbol list and removed
480	duplicate entries.
481
4822015-06-16  Bob Friesenhahn  <[email protected]>
483
484	* libtiff/tif_getimage.c: Fix four Coverity issues related to
485	unintended sign extension.
486
4872015-06-16  Even Rouault <even.rouault at spatialys.com>
488
489	* libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna)
490
4912015-06-14  Lee Howard  <[email protected]>
492
493	* libtiff/tif_unix.c: contribution from Vadim Zeitlin on
494	Bugzilla Bug #2510 fixes several harmless but still annoying
495	warnings
496
497	* configure: contribution from Ludolf Holzheid on Bugzilla
498	Bug #2498.  Adds an option to select the file I/O style on
499	Windows hosts.
500
501	* libtiff/tif_getimage.c: contribution from Gary Cramblitt
502	on Bugzilla Bug #2409.  Correct reading of certain tiled TIFFs.
503
504	* configure, configure.ac: contribution from Marcos H. Woehrmann
505	on Bugzilla Bug #2405.  Correct shell equality operator.
506
507	* tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt
508	on Bugzilla Bug #2401.  Appropriately call glFlush().
509
510	* tools/tiff2pdf.c: change ColorTransform from "0" to "1"
511	following Bugzilla Bug #2150.
512
5132015-06-13  Lee Howard  <[email protected]>
514
515	* libtiff/tif_lzw.c: contribution from Andy Cave - decode
516	files that contain consecutive CODE_CLEAR codes.
517
518	* tools/tiff2pdf.c: contribution from Antti S. Lankila on
519	Bugzilla Bug #2078. Suppress initial output of the header.
520
521	* tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy -
522	Take care in using the return value from snprintf().
523
524	* tools/tiffcrop.c: contribution from Eduardo Robles Elvira -
525	correctly copy the compression tag from the source TIFF.
526
527	* tools/tiff2ps.c: contribution from Eduardo Robles Elvira -
528	correct sizing and scaling problems with output document.
529
5302015-06-10  Bob Friesenhahn  <[email protected]>
531
532	* libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two
533	clean implementations in order to avoid pre-processor hell.  Only
534	one of the implementations is used in a given build.
535
5362015-06-08  Even Rouault <even.rouault at spatialys.com>
537
538	* libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12
539	case
540
5412015-06-07  Bob Friesenhahn  <[email protected]>
542
543	* libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975
544	"Division or modulo by zero".
545	(TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division
546	or modulo by zero".
547	(TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by
548	zero".
549	(TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by
550	zero".
551
552	* libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and
553	715974 "Division or modulo by zero".
554
5552015-05-31  Bob Friesenhahn  <[email protected]>
556
557	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity
558	1134470 "Logically dead code" by making the roll-over check
559	explicit.
560
561	* libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227
562	"Division or modulo by zero".
563	(LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by
564	zero".
565	(LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by
566	zero".
567	(LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by
568	zero".
569
570	* libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix
571	Coverity 298626 "Logically dead code".
572	(TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead
573	code".
574	(TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead
575	code".
576	(TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead
577	code"
578
579	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++
580	operator precedenc in evaluation.  Might quench Coverity 1134470
581	"Logically dead code".
582
583	* libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands
584	don't affect result".  This change uses ifdefs to include
585	applicable code based on properties of libjpeg.  Still needs to be
586	re-tested with 12-bit "6b" and "MK1".
587
5882015-05-30  Bob Friesenhahn  <[email protected]>
589
590	* libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310
591	"Resource leak".
592
593	* libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix
594	Coverity 601720 "Resource leak".
595
596	* libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624
597	"Dereference before null check".
598
599	* libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400
600	"Missing break in switch".
601
602	* contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer
603	size calculation for overflow.
604
605	* contrib/addtiffo/addtiffo.c (main): Possibly address Coverity
606	1024226 "Untrusted value as argument".
607
608	* tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted
609	value as argument".
610	(checksignature): Fix Coverity 1024894 "Ignoring number of bytes
611	read".
612	(readextension): Fix Coverity 1024893 "Ignoring number of bytes
613	read".
614	(readgifimage): Fix Coverity 1024890 "Ignoring number of bytes
615	read".
616	(readraster): Fix Coverity 1024891 "Ignoring number of bytes
617	read".
618	(readgifimage): Fix Coverity 1024892 "Ignoring number of bytes
619	read".
620
621	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181
622	"Structurally dead code".
623
624	* tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return
625	value from library".
626	(guessSize): Fix Coverity 1024888 "Unchecked return value from
627	library".
628	(guessSize): Fix Coverity 1214162 "Ignoring number of bytes read".
629	(guessSize): Fix Coverity 1024889 "Unchecked return value from
630	library".
631
632	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621
633	"Resource leak".
634	(t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead
635	code".
636	(t2p_write_pdf): Fix Coverity 1227690 "Unused value".
637
6382015-05-29  Bob Friesenhahn  <[email protected]>
639
640	* contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468
641	"Infinite loop".
642	(formatIPTC): Fix Coverity 1024727 "Truncated stdio return value".
643	(formatIPTC): Fix Coverity 1214240 "Untrusted loop bound".
644
6452015-05-28  Bob Friesenhahn  <[email protected]>
646
647	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
648	Coverity 298615 "Resource leak".
649	(TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign
650	extension".
651
652	* tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value
653	as argument".
654	(main): Fix Coverity 1024678 "Unchecked return value from
655	library".
656	(main): Fix Coverity 1024679 "Unchecked return value from
657	library".
658	(main): Fix Coverity 1214160 "Ignoring number of bytes read".
659
660	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
661	Coverity 298615 "Resource leak".
662
663	* tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309
664	"Resource leak".
665
666	* tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource
667	leak".
668	(cpStrips): Fix Coverity 1024305 "Resource leak".
669
6702015-05-27  Bob Friesenhahn  <[email protected]>
671
672	* tools/ras2tiff.c: Fix Sun Raster header definition to be safe
673	for 64-bit systems.  Add some header validations.  Should fix many
674	Coverity issues.
675	(main): Fix Coverity 1301206: "Integer handling issues  (BAD_SHIFT)".
676	(main): Quiet Coverity 1024223 "Untrusted value as argument".
677
678	* tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting
679	level does not match indentation".
680	(get_histogram): Quiet Coverity 1024386 "Out-of-bounds read".
681	This was a benign mis-diagnosis but added code to enforce against
682	buffer overflow.
683
684	* tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical
685	vs. bitwise operator".
686	(readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or
687	modulo by zero".
688	(readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead
689	code".
690	(writeSingleSection): Fix Coverity 1024796 "Nesting level does not
691	match indentation".
692	(writeCroppedImage): Fix Coverity 1024797 "Nesting level does not
693	match indentation".
694	(loadImage): Fix Coverity 1299741 "Dereference before null check".
695	(loadImage): Fix Coverity 1299740 "Out-of-bounds write".
696
6972015-03-02  Even Rouault  <[email protected]>
698
699	* tools/tiffdither.c: check memory allocations to avoid writing to
700	NULL pointer. Also check multiplication overflow. Fixes #2501,
701	CVE-2014-8128. Derived from patch by Petr Gajdos.
702
7032015-01-26  Even Rouault  <[email protected]>
704
705	* add html/v4.0.4beta.html under version control
706	* HOWTO-RELEASE: write that cvs add html/vX.X.html must be used
707
7082015-01-26  Even Rouault  <[email protected]>
709
710	* libtiff 4.0.4beta released
711
7122015-01-26  Even Rouault  <[email protected]>
713
714	* automake: updated to 1.15
715	* libtool: updated to 2.4.5
716
7172015-01-22  Even Rouault  <[email protected]>
718
719	* tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
720
7212015-01-05  Frank Warmerdam  <[email protected]>
722
723	* html/bugs.html: remove note about needing to email the tiff mailing
724	list administrator about being approved for membership, this appears
725	not to be true.
726
7272015-01-05  Olivier Paquet  <[email protected]>
728
729	* tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
730
7312015-01-03  Even Rouault  <[email protected]>
732
733	* libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
734	when reading more than 65535 directories, and effectively error out when
735	reaching that limit.
736
7372014-12-29  Even Rouault  <[email protected]>
738
739	* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
740	markers to avoid emitting a warning (even if, according to the TechNote,
741	there are admitedly unusual/not recommended or even forbidden variants, but
742	they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
743	SOF9 and SOF10).
744	Define in_color_space and input_components to the right values in
745	JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
746	libjpeg API documentation, so as to be compatible with mozjpeg library.
747	Note: the default settings of mozjpeg will produce progressive scans, which
748	is forbidden by the TechNote.
749
7502014-12-29  Even Rouault  <[email protected]>
751
752	* libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
753	to avoid buffer leak (fix previous fix, found by Coverity scan)
754
7552014-12-29  Even Rouault  <[email protected]>
756
757	* libtiff/tif_next.c: add new tests to check that we don't read outside of
758	the compressed input stream buffer.
759
760	* libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
761    in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
762    putcontig8bitYCbCr21tile cases.
763
7642014-12-27  Even Rouault  <[email protected]>
765
766	* libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
767	extented tags installed by user code through the extender mechaninm before
768	calling the extender callback (GDAL #5054)
769
7702014-12-26  Bob Friesenhahn  <[email protected]>
771
772	* tools/tiffcrop.c: Fix warnings about variables set but not used.
773
774	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
775	but not used.
776
777	* tools/tiffgt.c: Fix warnings about unused parameters.
778
779	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
780
7812014-12-25  Even Rouault  <[email protected]>
782
783	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
784	various typos found by Debian lintian tool (GDAL #5756)
785
7862014-12-24  Even Rouault  <[email protected]>
787
788	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
789	http://bugzilla.maptools.org/show_bug.cgi?id=2235
790
7912014-12-24  Even Rouault  <[email protected]>
792
793	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
794	http://bugzilla.maptools.org/show_bug.cgi?id=2445
795
7962014-12-24  Even Rouault  <[email protected]>
797
798	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
799	Derived from patch by Petr Gajdos,
800	http://bugzilla.maptools.org/show_bug.cgi?id=2443
801
8022014-12-23  Even Rouault  <[email protected]>
803
804	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
805	of _TIFFFillStriles(). This solves crashing bug on corrupted
806	images generated by afl.
807
8082014-12-23  Even Rouault  <[email protected]>
809
810	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
811	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
812	images generated by afl.
813
8142014-12-21  Bob Friesenhahn  <[email protected]>
815
816	* tools/tiffdump.c: Guard against arithmetic overflow when
817	calculating allocation buffer sizes.
818
8192014-12-21  Even Rouault  <[email protected]>
820
821	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
822	SamplesPerPixel = 3. Enforce that
823	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
824
8252014-12-21  Even Rouault  <[email protected]>
826
827	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
828	copying. The right fix would be to properly copy it, but not worth the burden
829	for those esoteric utilities.
830	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
831
8322014-12-21  Even Rouault  <[email protected]>
833
834	* tools/thumbnail.c: fix out-of-buffer write
835	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
836
8372014-12-21  Even Rouault  <[email protected]>
838
839	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
840	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
841	COMPRESSION_CCITTFAX4
842	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
843
8442014-12-21  Even Rouault  <[email protected]>
845
846	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
847	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
848
8492014-12-21  Even Rouault  <[email protected]>
850
851	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
852	TIFFTAG_SAMPLESPERPIXEL
853
8542014-12-21  Even Rouault  <[email protected]>
855
856	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
857	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
858	Description: fix for Debian bug #741451
859	tiffcp crashes when converting JPEG-encoded TIFF to a different
860	encoding (like none or lzw). For example this will probably fail:
861	tiffcp -c none jpeg_encoded_file.tif output.tif
862	The reason is that when the input file contains JPEG data,
863	the tiffcp code forces conversion to RGB space. However,
864	the output normally inherits YCbCr subsampling parameters
865	from the input, which leads to a smaller working buffer
866	than necessary. The buffer is subsequently overrun inside
867	cpStripToTile() (called from writeBufferToContigTiles).
868	Note that the resulting TIFF file would be scrambled even
869	if tiffcp wouldn't crash, since the output file would contain
870	RGB data intepreted as subsampled YCbCr values.
871	This patch fixes the problem by forcing RGB space on the output
872	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
873	Author: Tomasz Buchert <[email protected]>
874
8752014-12-21  Even Rouault  <[email protected]>
876
877	Fix various crasher bugs on fuzzed images.
878	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
879	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
880	the directory
881	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
882	TransferFunction if BitsPerSample has not yet been read, otherwise reading
883	it later will cause user code to crash if BitsPerSample > 1
884	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
885	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
886	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
887	instead of imagewidth to avoid crash
888	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
889	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
890	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
891	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
892	* tools/tiffdump.c: fix crash due to overflow of entry count.
893
8942014-12-15  Even Rouault  <[email protected]>
895
896	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
897	all tiles/strips to include quantization tables even when the jpegtablesmode
898	had the JPEGTABLESMODE_QUANT bit set.
899	Also add explicit removal of Huffman tables when jpegtablesmode has the
900	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
901	first tile/strip (only useful in update scenarios. create-only was
902	fine)
903
9042014-12-09  Bob Friesenhahn  <[email protected]>
905
906	* tools/tiff2pdf.c: Assure that memory size calculations for
907	_TIFFmalloc() do not overflow the range of tmsize_t.
908
9092014-12-07  Even Rouault  <[email protected]>
910
911	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
912	Valgrind and Address Sanitizer on test suite
913
9142014-12-07  Bob Friesenhahn  <[email protected]>
915
916	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
917	tag can return one channel, with the other two channels set to
918	NULL.  The tiff2pdf code was expecting that other two channels
919	were duplicate pointers in the case where there is only one
920	channel.  Detect this condition in order to avoid a crash, and
921	presumably perform correctly with just one channel.
922
9232014-12-06  Bob Friesenhahn  <[email protected]>
924
925	* tools/tiffdump.c: Fix double-free bug.
926
9272014-11-27  Even Rouault  <[email protected]>
928
929	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
930	Visual Studio 2015 aka VC 14 aka MSVC 1900
931
9322014-11-20  Even Rouault  <[email protected]>
933
934	* libtiff/tif_lzw.c: prevent potential null dereference of
935	sp->dec_codetab in LZWPreDecode (bug #2459)
936
937	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
938	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
939
940	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
941
942	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
943	Coverity happier (not a bug, #2459)
944
945	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
946	(not a bug, #2459)
947
948	* tools/tiff2pdf.c: close PDF file (bug #2479)
949
950	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
951
952	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
953	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
954
955	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
956	(bug #2459) and add missing va_end in dump_info (#2459)
957
958	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
959
9602014-11-20  Even Rouault  <[email protected]>
961	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
962	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
963
9642014-11-20  Even Rouault  <[email protected]>
965	* automake: updated to 1.14.1
966	* libtool: updated to 2.4.3
967	* HOWTO-RELEASE: small update about autotools building order
968
9692014-10-20  Olivier Paquet  <[email protected]>
970	* tools/tiff2pdf.c: Preserve input file directory order when pages
971	are tagged with the same page number.
972
9732014-08-31  Bob Friesenhahn  <[email protected]>
974
975	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
976	count for tag should be a warning rather than an error since
977	errors terminate processing.
978
9792014-06-07  Bob Friesenhahn  <[email protected]>
980
981	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
982	was wrongly described.  Fix suggested by Miguel Medalha.
983
9842014-05-06  Bob Friesenhahn  <[email protected]>
985
986	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
987	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
988	Reviewed and forwarded by Lee Howard.
989
9902013-11-30  Frank Warmerdam  <[email protected]>
991
992	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
993
9942013-10-21  Frank Warmerdam  <[email protected]>
995
996	* libtiff/tif_dir.c: generate error in case of directory count
997	overflow.
998
9992013-10-01  Frank Warmerdam  <[email protected]>
1000
1001	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
1002	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
1003
10042013-09-12  Bob Friesenhahn  <[email protected]>
1005
1006	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
1007	be defective, then set it to zero before returning error in order
1008	to terminate processing of truncated TIFF.  Issue found and fix
1009	suggested by Richard Nolde.
1010
10112013-08-14  Frank Warmerdam  <[email protected]>
1012
1013	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
1014
10152013-08-13  Frank Warmerdam  <[email protected]>
1016
1017	* tools/gif2tiff.c: Be more careful about corrupt or
1018	hostile input files (#2450, CVE-2013-4231)
1019
1020	* tools/tiff2pdf.c: terminate after failure of allocating
1021	ycbcr buffer (bug #2449, CVE-2013-4232)
1022
10232013-07-09  Frank Warmerdam  <[email protected]>
1024
1025	* tools/tiffinfo.c: Default various values fetched with
1026	TIFFGetField() to avoid being uninitialized.
1027
10282013-05-02  Tom Lane  <[email protected]>
1029
1030	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
1031	t2p_process_jpeg_strip to be at least marginally competent.  The
1032	approach is still fundamentally flawed, but at least now it won't
1033	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
1034
10352013-05-02  Tom Lane  <[email protected]>
1036
1037	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
1038 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
1039 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
1040 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
1041 	large enough, and eliminate substantially all uses of sprintf(buf,
1042 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
1043 	protect against overflow of fixed-size buffers.  This responds in
1044 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
1045 	t2p_write_pdf_page(), but in general it seems like a good idea to
1046 	deprecate use of sprintf().
1047
10482013-03-29  Bob Friesenhahn  <[email protected]>
1049
1050	* configure.ac: Applied patch by Brad Smith to improve pkg-config
1051	static linking by adding -lm to Libs.private when needed.
1052
10532013-03-05  Tom Lane  <[email protected]>
1054
1055	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
1056 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
1057 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
1058 	tools/tiffdither.c: Sync tool usage printouts and man pages with
1059 	reality (quite a few options had escaped being documented in one
1060 	or both places).  Per an old report from Miroslav Vadkerti.
1061
10622013-01-25  Bob Friesenhahn  <[email protected]>
1063
1064	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
1065	rotation angle was set by the auto rotate check, it was retained
1066	for all pages that followed instead ofa being retested for each
1067	page.  Patch by Richard Nolde.
1068
10692013-01-18  Frank Warmerdam  <[email protected]>
1070
1071	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
1072	64bit linux.
1073
1074	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
1075	http://bugzilla.maptools.org/show_bug.cgi?id=2427
1076
10772012-12-20  Tom Lane  <[email protected]>
1078
1079	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
1080	it will pass with more versions of libjpeg.  (There are at least
1081	three in active use now, and JPEG_LIB_VERSION doesn't tell us
1082	enough to uniquely identify expected results.)
1083
10842012-12-12  Tom Lane  <[email protected]>
1085
1086	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
1087	field_passcount fields: it had the TIFF_VARIABLE and
1088	TIFF_VARIABLE2 cases backwards.
1089
10902012-12-10  Tom Lane  <[email protected]>
1091
1092	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
1093 	check the linebytes calculation too, get the max() calculation
1094 	straight, avoid redundant error messages, check for malloc
1095 	failure.
1096
10972012-12-10  Tom Lane  <[email protected]>
1098
1099	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
1100 	(to enlarge tbuf for possible partial stride at end) so that
1101 	overflow in the integer addition is detected.  Per gripe from
1102 	Huzaifa Sidhpurwala.
1103
11042012-12-03  Bob Friesenhahn  <[email protected]>
1105
1106	* tools/tiffset.c: tiffset now supports a -u option to unset a
1107	tag.  Patch by Zach Baker. See
1108	http://bugzilla.maptools.org/show_bug.cgi?id=2419
1109
11102012-11-18  Bob Friesenhahn  <[email protected]>
1111
1112	* automake: Update Automake to 1.12.5 release.
1113
1114	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
1115	require malloc() to return NULL pointer if requested allocation
1116	size is zero.  Assure that _TIFFmalloc does.
1117
11182012-11-01  Frank Warmerdam  <[email protected]>
1119
1120	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
1121	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
1122	Red Hat Security Response team for the fix.
1123
11242012-10-18  Frank Warmerdam  <[email protected]>
1125
1126	* tif_zip.c: Avoid crash on NULL error messages.
1127
11282012-09-22  Bob Friesenhahn  <[email protected]>
1129
1130	* libtiff 4.0.3 released.
1131
11322012-09-20  Bob Friesenhahn  <[email protected]>
1133
1134	* Makefile.am: Update to Automake 1.12.4
1135
11362012-08-19  Bob Friesenhahn  <[email protected]>
1137
1138	* Makefile.in: Update to Automake 1.12.3
1139
1140	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
1141	some TIFF/FX support in libtiff.  Add the tag definitions to
1142	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
1143	and also fixes an error in a comment.  Adds the photometric values
1144	to tif_print.c, and fixes a bug.  These changes are by Steve
1145	Underwood.
1146
11472012-08-13  Frank Warmerdam  <[email protected]>
1148
1149	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
1150	compressed file: http://trac.osgeo.org/gdal/ticket/4771
1151
11522012-08-02  Frank Warmerdam  <[email protected]>
1153
1154	* libtiff/tif_dirread.c: report error in case of mismatch value
1155	counts for tags (ie. DotRange).
1156
11572012-07-26  Tom Lane  <[email protected]>
1158
1159	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
1160 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
1161	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
1162	as external accessors for the opaque type TIFFField.
1163
1164	* tools/tiffset.c: Make tiffset use the above functions instead of
1165	relying on library private headers.
1166
11672012-07-19  Tom Lane  <[email protected]>
1168
1169	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
1170	after a malloc failure.  No crash risk AFAICS, but the program
1171	might not report exit code 1 as desired.  h/t [email protected]
1172
11732012-07-18  Tom Lane  <[email protected]>
1174
1175	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
1176	prevents core dumps or perhaps even arbitrary code execution when
1177	processing a corrupt input file (CVE-2012-3401).
1178
11792012-07-06  Bob Friesenhahn  <[email protected]>
1180
1181	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
1182	IJG JPEG 7+ uses a different upsampling algorithm which produces
1183	different numeric results.
1184
1185	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
1186	work with IJG JPEG 7+.
1187
11882012-07-04  Bob Friesenhahn  <[email protected]>
1189
1190	* test/raw_decode.c: Add changes so that test can run with build
1191	directory outside of source directory.
1192
11932012-07-02  Frank Warmerdam  <[email protected]>
1194
1195	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
1196	imagery (http://trac.osgeo.org/gdal/ticket/4732)
1197
11982012-06-20  Frank Warmerdam  <[email protected]>
1199
1200	* libtiff/tif_fax3.c: fix memory initialization of runs, only
1201	partly done.
1202
1203	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
1204	full "stride" past the end.
1205
12062012-06-19  Frank Warmerdam  <[email protected]>
1207
1208	* libtiff/tif_packbits.c: fix read past end of data buffer.
1209
12102012-06-15  Frank Warmerdam  <[email protected]>
1211
1212	*  libtiff 4.0.2 released.
1213
1214	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
1215	warnings with clang.
1216
12172012-06-15  Tom Lane  <[email protected]>
1218
1219	* tools/tiff2pdf.c: Defend against integer overflows while
1220	calculating required buffer sizes (CVE-2012-2113).
1221
12222012-06-12  Frank Warmerdam  <[email protected]>
1223
1224	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
1225
1226	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
1227
12282012-06-07  Frank Warmerdam  <[email protected]>
1229
1230	* libtiff/tif_print.c: avoid pretty printing other fields when
1231	we don't have the proper amount and type of data or if the field
1232	is actually autodefined.
1233
12342012-06-05  Frank Warmerdam  <[email protected]>
1235
1236	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
1237	ycbcrsubsampling values result in a runtime error, not just an
1238	assertion.
1239
1240	* tests/custom_dir.c: Add testing of EXIF and custom directory
1241	reading and writing.
1242
1243	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
1244	and TIFFCreateEXIFDirectory() functions.
1245
1246	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
1247	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
1248	differently.  This is to avoid using special TIFFGetField/TIFFSetField
1249	rules for these fields in non-image directories (like EXIF).
1250
12512012-06-04  Frank Warmerdam  <[email protected]>
1252
1253	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
1254	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
1255	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
1256
12572012-06-01  Frank Warmerdam  <[email protected]>
1258
1259	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
1260
1261	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
1262	http://bugzilla.maptools.org/show_bug.cgi?id=2379
1263
1264	* libtiff/tif_unix.c: use strerror() to return a more specific error message
1265	on failed open.
1266	http://bugzilla.maptools.org/show_bug.cgi?id=2341
1267
1268	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
1269	http://bugzilla.maptools.org/show_bug.cgi?id=2386
1270
1271	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
1272	for testing jpeg in tiff image decoding including the "raw" decode interface.
1273
12742012-05-31  Frank Warmerdam  <[email protected]>
1275
1276	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
1277	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
1278	sampling values.
1279
1280	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
1281
1282	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
1283	http://bugzilla.maptools.org/show_bug.cgi?id=2398
1284
12852012-05-29  Frank Warmerdam  <[email protected]>
1286
1287	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
1288	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
1289	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
1290	to get/set functions for different tags!
1291
1292	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
1293	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
1294
12952012-05-24  Frank Warmerdam  <[email protected]>
1296
1297	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
1298	accumulate" and overwrite the end by one word in at least some cases.
1299
13002012-05-23  Frank Warmerdam  <[email protected]>
1301
1302	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
1303
1304	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
1305
1306	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
1307	the same image.
1308
1309	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
1310	stripbytecounts or stripoffsets or where loading these fails.
1311
1312	* libtiff/tif_print.c: be careful about whether min/max values are singular
1313	or one per sample.
1314
1315	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
1316	May affect things like ISOSpeedRatings.
1317
1318	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
1319	in some cases.
1320
13212012-05-19  Bob Friesenhahn  <[email protected]>
1322
1323	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
1324	example for how to retreive the value of unsupported tags.
1325
13262012-03-30  Frank Warmerdam  <[email protected]>
1327
1328	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
1329	care of Tom Lane @ Red Hat.
1330
13312012-02-18  Bob Friesenhahn  <[email protected]>
1332
1333	* libtiff 4.0.1 released.
1334
1335	* Update automake used to 1.11.3.
1336
1337	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
1338	attribute specification to lessen the risk of accidental macro
1339	substitution.  Patch from Vincent Torri.
1340
13412012-01-31  Frank Warmerdam  <[email protected]>
1342
1343	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
1344	assumption tag fetching is always successful.
1345
1346	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
1347
13482012-01-22  Bob Friesenhahn  <[email protected]>
1349
1350	* configure.ac: Add support for using library symbol versioning on
1351	ELF systems with the GNU linker.  Support is enabled via
1352	--enable-ld-version-script.  Disabled by default for now until
1353	there is a decision for how to deploy a libtiff with versioned
1354	symbols after libtiff 4.0.0 was already released.
1355
13562011-12-22  Bob Friesenhahn  <[email protected]>
1357
1358	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
1359
1360	tif_win32.c.  Patch by Edward Lam.
1361
1362	* configure.ac: Add libtiff private dependency on -llzma for
1363	pkg-config.  Patch by Mark Brand.
1364	Updated Automake to 1.11.2.
1365
13662011-12-21  Bob Friesenhahn  <[email protected]>
1367
1368	* libtiff 4.0.0 released.
1369
13702011-12-08  Frank Warmerdam  <[email protected]>
1371
1372	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
1373	of _TIFFFillStriles() results (#gdal 4372)
1374
13752011-12-07  Frank Warmerdam  <[email protected]>
1376
1377	* libtiff/tif_dirread.c: fixes to deal with invalid files where
1378	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
1379
1380	* libtiff/tif_dirread.c: fix error reporting when there is no
1381	tag information struct and name (gdal #4373)
1382
13832011-10-22  Bob Friesenhahn  <[email protected]>
1384
1385	* Update GNU libtool to 2.4.2.
1386
1387	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
1388	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
1389	Deroulers.
1390
13912011-06-21  Frank Warmerdam  <[email protected]>
1392
1393	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
1394
13952011-05-31  Jim Meyering  <[email protected]>
1396
1397	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
1398	upon failure to allocate "resizeddata".
1399	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
1400	allocation failure, not before.
1401	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
1402	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
1403	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
1404	NULL-deref and possible overflow
1405	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
1406	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
1407	and set of otherwise unused local, data_is_empty.
1408	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
1409	Diagnose out-of-memory failure and return 0 rather than
1410	dereferencing NULL.
1411
14122011-05-24  Frank Warmerdam  <[email protected]>
1413
1414	* libtiff/tif_dirread.c: produce special error message for zero tag
1415	directories instead of error out on the malloc(0) failure.
1416
14172011-05-16  Frank Warmerdam  <[email protected]>
1418
1419	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
1420	related declarations as they are in active use by libraries
1421	such as libgeotiff, and work just fine.  (#2315)
1422
14232011-04-20  Frank Warmerdam  <[email protected]>
1424
1425	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
1426	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
1427	http://bugzilla.maptools.org/show_bug.cgi?id=2315
1428
1429	* libtiff/libtiff.def: add some missing (64bit) APIs.
1430	http://bugzilla.maptools.org/show_bug.cgi?id=2316
1431
14322011-04-09  Bob Friesenhahn  <[email protected]>
1433
1434	* libtiff 4.0.0beta7 released.
1435
14362011-04-09  Bob Friesenhahn  <[email protected]>
1437
1438	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
1439	the run-time target whereas target is used to specify the final
1440	output target if the package is a build tool (like a compiler),
1441	which libtiff is not.  Resolves libtiff bug 2307 "Use
1442	AC_CANONICAL_HOST macro".
1443
14442011-04-02  Bob Friesenhahn  <[email protected]>
1445
1446	* configure.ac: Support configuring TIFF_INT64_FORMAT and
1447	TIFF_UINT64_FORMAT appropriately for MinGW32.
1448
1449	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
1450	printf conventions for 64-bit types because it uses the WIN32 CRT.
1451
1452	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
1453	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
1454	printf conventions for 64-bit types because it uses the WIN32 CRT.
1455
1456	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
1457	understood by WIN32 CRT.
1458
1459	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
1460
1461	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
1462	it is much more portable.  Tmpfile is included in ISO/IEC
1463	9899:1990 and the WIN32 CRT.
1464
14652011-03-26  Frank Warmerdam  <[email protected]>
1466
1467	* tools/tiffset.c: add -d and -sd switches to allow operation on
1468	a particular directory, not just the first (jef).
1469
14702011-03-21  Frank Warmerdam  <[email protected]>
1471
1472	* libtiff/tif_thunder.c: Correct potential buffer overflow with
1473	thunder encoded files with wrong bitspersample set.  The libtiff
1474	development team would like to thank Marin Barbella and TippingPoint's
1475	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
1476	CVE-2011-1167).
1477	http://bugzilla.maptools.org/show_bug.cgi?id=2300
1478
14792011-03-10  Frank Warmerdam  <[email protected]>
1480
1481	* libtiff/tif_fax3.h: Fix to last change allowing zero length
1482	runs at the start of a scanline - needed for legal cases.
1483
14842011-03-02  Frank Warmerdam  <[email protected]>
1485
1486	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
1487	a move left.  Without this, a malicious input file can generate an
1488	indefinitely large series of runs without a0 ever reaching the right
1489	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
1490	This is a modified version of a patch proposed by Drew Yao of Apple
1491	Product Security.  It adds an unexpected() report, and disallows the
1492	equality case, since emitting a run without increasing a0 still allows
1493	buffer overrun.
1494
14952011-02-23  Frank Warmerdam  <[email protected]>
1496
1497	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
1498
1499	* tools/tiff2rgba.c: close source file on error to make leak
1500	detection easier.
1501
1502	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
1503
1504	http://bugzilla.maptools.org/show_bug.cgi?id=2295
1505
15062011-02-22  Frank Warmerdam  <[email protected]>
1507
1508	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
1509	_SUPPORT)
1510
15112011-02-18  Frank Warmerdam  <[email protected]>
1512
1513	* configure.ac, configure: Added support for --enable-chunky-strip-read
1514	configure option to enable the experimental feature from a couple
1515	months ago for reading big strips in chunks.
1516
1517	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
1518	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
1519	Implement optional support for deferring the load of strip/tile
1520	offset and size tags for optimized scanning of directories.  Enabled
1521	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
1522	#define in tif_config.h).
1523
15242011-02-11  Frank Warmerdam  <[email protected]>
1525
1526	* libtiff/tif_print.c: remove unused variable.
1527
15282011-02-09  Frank Warmerdam  <[email protected]>
1529
1530	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
1531	with non-console (popup message) builds on win32.
1532
1533	http://bugzilla.maptools.org/show_bug.cgi?id=2293
1534
15352011-01-24  Olivier Paquet  <[email protected]>
1536
1537	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
1538	tif_print.c, tiff.h, tiffiop.h} : Added support for
1539	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
1540	values for each sample. Presents the min/max of all samples by default for
1541	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
1542	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
1543	http://www.asmail.be/msg0055458208.html
1544
15452011-01-06  Frank Warmerdam  <[email protected]>
1546
1547	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
1548	maintained.
1549
1550	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
1551	for CHUNKY_STRIP_READ_SUPPORT.
1552
1553	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
1554	during JPEGPreDecode and JPEGDecode calls.
1555	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
1556	as compression formats like JPEG keep 16 lines interleaved in a sense
1557	and might need to touch	quite a bit of data.
1558
1559	http://trac.osgeo.org/gdal/ticket/3894
1560
15612011-01-03  Lee Howard <[email protected]>
1562
1563	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
1564	caused by commit on 2010-12-14.  Submitted by e-mail from
1565	Even Rouault <[email protected]>
1566
15672010-12-31  Olivier Paquet  <[email protected]>
1568
1569	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
1570	http://bugzilla.maptools.org/show_bug.cgi?id=2266
1571
15722010-12-23  Andrey Kiselev  <[email protected]>
1573
1574	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
1575	compression level parameter (preset) for Deflate and LZMA encoders,
1576	e.g "-c lzma:p1" or "-c zip:p9".
1577
1578	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
1579	(preset) in LZMAVSetField().
1580
15812010-12-18  Bob Friesenhahn  <[email protected]>
1582
1583	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
1584	Makefile.
1585
15862010-12-14  Andrey Kiselev  <[email protected]>
1587
1588	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
1589	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
1590	TIFF compression scheme LZMA reserving a new value 34925 for
1591	Compression tag. As per
1592	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
1593
15942010-12-14  Lee Howard <[email protected]>
1595
1596	* libtiff/tif_dirread.c: tolerate some cases where
1597	FIELD_COLORMAP is missing
1598	http://bugzilla.maptools.org/show_bug.cgi?id=2189
1599
16002010-12-14  Lee Howard <[email protected]>
1601
1602	* libtiff/tif_read.c: change read_ahead to tmsize_t
1603	http://bugzilla.maptools.org/show_bug.cgi?id=2222
1604
16052010-12-14  Lee Howard <[email protected]>
1606
1607	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
1608	Windows except on Cygwin
1609	http://bugzilla.maptools.org/show_bug.cgi?id=2224
1610
16112010-12-14  Lee Howard <[email protected]>
1612
1613	* tools/gif2tiff.c: fix buffer overrun
1614	http://bugzilla.maptools.org/show_bug.cgi?id=2270
1615
16162010-12-14  Lee Howard <[email protected]>
1617
1618	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
1619	to improve compatibility with various viewers
1620	submitted by e-mail from Dwight Kelly <[email protected]>
1621
16222010-12-13  Lee Howard <[email protected]>
1623
1624	* tools/fax2ps.c: be consistent with page-numbering
1625	http://bugzilla.maptools.org/show_bug.cgi?id=2225
1626
16272010-12-13  Lee Howard <[email protected]>
1628
1629	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
1630	resolves CVE-2010-2595
1631	http://bugzilla.maptools.org/show_bug.cgi?id=2208
1632
16332010-12-13  Lee Howard <[email protected]>
1634
1635	* tools/tiffcrop.c: new release by Richard Nolde
1636	http://bugzilla.maptools.org/show_bug.cgi?id=2004
1637
16382010-12-12  Lee Howard <[email protected]>
1639
1640	* tools/tiff2pdf.c: fix colors for images with RGBA
1641	interleaved data
1642	http://bugzilla.maptools.org/show_bug.cgi?id=2250
1643
16442010-12-12  Lee Howard <[email protected]>
1645
1646	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
1647	http://bugzilla.maptools.org/show_bug.cgi?id=2164
1648
16492010-12-11  Lee Howard <[email protected]>
1650
1651	* tools/tiff2pdf.c: remove invalid duplication for Lab
1652	http://bugzilla.maptools.org/show_bug.cgi?id=2162
1653
16542010-12-11  Lee Howard <[email protected]>
1655
1656	* libtiff/tif_jpeg.c: fix use of clumplines calculation
1657	http://bugzilla.maptools.org/show_bug.cgi?id=2149
1658
16592010-12-11  Lee Howard <[email protected]>
1660
1661	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
1662	http://bugzilla.maptools.org/show_bug.cgi?id=2118
1663
16642010-12-11  Lee Howard <[email protected]>
1665
1666	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
1667	  libtiff/tif_zip.c: fix build errors for VC6
1668	http://bugzilla.maptools.org/show_bug.cgi?id=2105
1669
16702010-12-11  Lee Howard <[email protected]>
1671
1672	* libtiff/tif_stream.cxx: warnings cleanup
1673	http://bugzilla.maptools.org/show_bug.cgi?id=2091
1674	* libtiff/tif_dirread.c: warnings cleanup
1675	http://bugzilla.maptools.org/show_bug.cgi?id=2092
1676
16772010-12-11  Lee Howard <[email protected]>
1678
1679	* tools/tiff2pdf.c: add fill-page option
1680	http://bugzilla.maptools.org/show_bug.cgi?id=2051
1681
16822010-12-11  Lee Howard <[email protected]>
1683
1684	* libtiff/tif_dirread.c: modify warnings
1685	http://bugzilla.maptools.org/show_bug.cgi?id=2016
1686
16872010-12-11  Lee Howard <[email protected]>
1688
1689	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
1690        http://bugzilla.maptools.org/show_bug.cgi?id=1999
1691
16922010-12-11  Lee Howard <[email protected]>
1693
1694	* tools/tiffinfoce.c: strip byte counts are uint64* now
1695
16962010-12-11  Lee Howard <[email protected]>
1697
1698        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
1699        or missing byte-count tag
1700        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
1701        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
1702
17032010-12-08  Lee Howard <[email protected]>
1704
1705        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
1706        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
1707
17082010-12-06  Lee Howard <[email protected]>
1709
1710        * libtiff/tif_open.c: Fix mode check before opening a file.
1711        http://bugzilla.maptools.org/show_bug.cgi?id=1906
1712
17132010-11-27  Bob Friesenhahn  <[email protected]>
1714
1715	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
1716	Patch by Vincent Torri.
1717
17182010-10-21  Frank Warmerdam  <[email protected]>
1719
1720	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
1721
1722	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
1723
1724	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
1725
17262010-09-25  Lee Howard <[email protected]>
1727
1728	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
1729	with additional command line options for Document Title,
1730	Document Creator, and Page Orientation
1731
17322010-07-13  Bob Friesenhahn  <[email protected]>
1733
1734	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
1735	potentially unterminated buffer due to using an exceptionally long
1736	file name.
1737
17382010-07-08  Andrey Kiselev  <[email protected]>
1739
1740	* tools/tiff2pdf.c: Fixed ID buffer filling in
1741	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
1742
17432010-07-07  Andrey Kiselev  <[email protected]>
1744
1745	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
1746	to expected value as the warning message suggests. As per bug
1747	http://bugzilla.maptools.org/show_bug.cgi?id=1963
1748
17492010-07-06  Andrey Kiselev  <[email protected]>
1750
1751	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
1752	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
1753	which should be set by value.
1754
1755	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
1756	and _TIFFFieldWithName() if the tag is not found in the tag table.
1757	This should be normal situation and returned NULL value should be
1758	properly handled by the caller.
1759
17602010-07-02  Andrey Kiselev  <[email protected]>
1761
1762	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
1763	integer type conversions. As per bug
1764	http://bugzilla.maptools.org/show_bug.cgi?id=2207
1765
1766	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
1767	WhitePoint tag as per bug
1768	http://bugzilla.maptools.org/show_bug.cgi?id=2042
1769
1770	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1771	working with YCbCr image in PickContigCase(). As per bug
1772	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1773
1774	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1775	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1776	we don't need any post-processing. That helps to reset the hook if we
1777	previously set this field to some other value and the hook was
1778	initialized accordingly. As per bug
1779	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1780
17812010-07-01  Andrey Kiselev  <[email protected]>
1782
1783	* tools/tiffgt.c: Properly check the raster buffer allocations for
1784	integer overflows. As per bug
1785	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1786
1787	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1788	upstream.
1789
1790	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1791	multiply_32() and multiply_64() functions into tif_aux.c file and
1792	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1793
17942010-06-30  Andrey Kiselev  <[email protected]>
1795
1796	* tools/tiff2pdf.c: Better generation of ID field in
1797	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1798
1799	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1800	converting JPEG encoded tiles.
1801
1802	* tools/tiff2pdf.c: Better handling of string fields, use static
1803	string buffers instead of dynamically allocated, use strncpy() instead
1804	of strcpy(), control the string lengths.
1805
18062010-06-25  Andrey Kiselev  <[email protected]>
1807
1808	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1809	referencing to uninitialized memory in some cases (e.g. when tile size
1810	set bigger than the image size).
1811
18122010-06-15  Bob Friesenhahn  <[email protected]>
1813
1814	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1815	subsampled data since tiffcrop currently doesn't support it.  Fix
1816	JPEG support.
1817
18182010-06-13  Frank Warmerdam  <[email protected]>
1819
1820	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1821
1822	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1823	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1824	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1825	size is larger.  Also, there are a bunch of places that try to
1826	memset() a malloc'd buffer before checking for malloc failure, which
1827	would result in core dump if there actually were a failure. (#2211)
1828
18292010-06-11  Bob Friesenhahn  <[email protected]>
1830
1831	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1832	avoid compiler warnings if parameter types are not sign
1833	consistent.
1834
1835	* libtiff 4.0.0alpha6 released.
1836
1837	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1838	European page size dimensions.  Added an option to allow the user
1839	to specify a custom page size on the command line.  Fix the case
1840	where a page size specified with a fractional part was being
1841	coerced to an integer by retyping the variables that define the
1842	paper size.
1843
1844	* html/index.html: Update for the 3.9.3 release.
1845
1846	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1847	YCbCr subsampled data since tiffcp currently doesn't support it.
1848	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1849
1850	* Update libtool to version 2.2.10.
1851
18522010-06-10  Bob Friesenhahn  <[email protected]>
1853
1854	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1855	multiplier is zero.
1856
18572010-06-09  Bob Friesenhahn  <[email protected]>
1858
1859	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1860	CVE-2010-1411 was not complete.
1861
1862	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1863	multiply two integers.  Returns zero if there is an integer
1864	overflow.
1865
1866	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1867	is reported when reading the input file.
1868
18692010-06-08  Bob Friesenhahn  <[email protected]>
1870
1871	* Update libtool to version 2.2.8.
1872
1873	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1874	buffer due to integer overflow in TIFFroundup() and several other
1875	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1876	fixes CVE-2010-1411.
1877
1878	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1879	result in an integer overflow. This causes TIFFroundup() to also
1880	return zero if there would be an integer overflow.
1881
1882	* contrib: Add an emacs formatting mode footer to all source files
1883	so that emacs can be effectively used.
1884
18852010-06-03  Oliver Chen Feng <[email protected]>
1886
1887	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1888	file PAGENUMBER value in sequence for users who care the page
1889	sequence, this will also prevent tiff2pdf from creating pdf file from
1890	the merged tiff file with wrong page sequence.
1891
18922010-05-08  Olivier Paquet  <[email protected]>
1893
1894	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1895	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1896	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1897	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1898	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1899
19002010-05-07  Frank Warmerdam  <[email protected]>
1901
1902	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1903	JPEGPreEncode(), not just when we want to output local tables.
1904	Otherwise the quality used during compression may not be right and
1905	might not match the tables in the tables tag.   This bug only occurs
1906	when seeking between directories in the midst of writing blocks.
1907	http://trac.osgeo.org/gdal/ticket/3539
1908
19092010-05-06  Andrey Kiselev  <[email protected]>
1910
1911	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1912	Regenerated from the source.
1913
19142010-05-05  Olivier Paquet  <[email protected]>
1915
1916	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1917	had stopped working. Also made it always print 6 floats instead of
1918	2*SamplesPerPixel.
1919	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1920	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1921	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1922	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1923
19242010-05-05  Frank Warmerdam  <[email protected]>
1925
1926	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1927	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1928
19292010-04-21  Frank Warmerdam  <[email protected]>
1930
1931	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1932	JPEGSetupEncode() is called if the tables already seem to be
1933	established.  This prevents spurious updates and rewriting of
1934	directories with jpegtables when doing updates to existing images.
1935	http://trac.osgeo.org/gdal/ticket/3539
1936
19372010-04-20  Olivier Paquet  <[email protected]>
1938
1939	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1940	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1941	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1942	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1943	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1944
19452010-04-10  Bob Friesenhahn  <[email protected]>
1946
1947	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
1948	when the tag count value is zero.  Error handling is still a
1949	regression since in 3.9.2, empty tags are skipped (with a warning)
1950	rather than returning a hard error and refusing to read the file.
1951
1952	* tools/ppm2tiff.c (main): While case for parsing comment line
1953	requires extra parenthesis to work as expected.  Reported by
1954	Thomas Sinclair.
1955
19562010-04-02  Frank Warmerdam  <[email protected]>
1957
1958	* libtiff/tif_read.c (primarily): Add support for
1959	CHUNKY_STRIP_READ_SUPPORT where large strips are
1960	read in chunks for applications using TIFFReadScanline().
1961	This is intended to make it more practical work with very
1962	large compressed one-strip files.   Feature is off by default.
1963	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
1964	http://trac.osgeo.org/gdal/ticket/3514
1965
19662010-03-31  Frank Warmerdam  <[email protected]>
1967
1968	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
1969	directories so previously placed directories will be migrated to
1970	the end of file if needed.
1971
19722010-03-30  Frank Warmerdam  <[email protected]>
1973
1974	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
1975	to support operating on strips/tiles of more than 256MB.
1976	http://trac.osgeo.org/gdal/ticket/3512
1977
19782010-03-10  Bob Friesenhahn  <[email protected]>
1979
1980	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
1981	that it is clearly a memory allocation error message, and also
1982	includes the size of the allocation request.
1983
19842010-02-22  Lee Howard  <[email protected]>
1985
1986	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
1987	the JPEG TIFF as is is not required in order to prevent it from
1988	being unused and filled with invalid data.  (Leave it to be
1989	generated by later activity.)
1990	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1991	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
1992	data rather than skipping them.  This fixes the ability to view in
1993	Acrobat Reader, Evince, and Ghostscript.
1994	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1995	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
1996	strips.
1997	http://bugzilla.maptools.org/show_bug.cgi?id=2029
1998
19992009-12-03  Frank Warmerdam  <[email protected]>
2000
2001	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
2002	Made so that when working with downsampled images a stub function
2003	reporting an error is used for tif_decoderow.  We cannot meaningfully
2004	support reading scanlines in this situation.  (#1936)
2005
2006	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
2007	resetting of the upsampling values (gdal:#3259).
2008	http://bugzilla.maptools.org/show_bug.cgi?id=1936
2009
20102009-11-30  Frank Warmerdam  <[email protected]>
2011
2012	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
2013	tools/ras2tiff.c: Fix resource leaks on error.
2014	http://bugzilla.maptools.org/show_bug.cgi?id=2121
2015
2016	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
2017	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
2018	of as a custom(generic) field to avoid a potential reentrancy problem.
2019	http://bugzilla.maptools.org/show_bug.cgi?id=2125
2020
2021	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
2022	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
2023	const, and display_sRGB static and const.
2024	http://bugzilla.maptools.org/show_bug.cgi?id=2124
2025
20262009-11-04  Bob Friesenhahn  <[email protected]>
2027
2028	* libtiff 4.0.0alpha5 released.
2029
20302009-11-03  Bob Friesenhahn  <[email protected]>
2031
2032	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
2033	version has undergone substantial testing with arbitrary sample
2034	bit depths.  Also eliminates GCC compilation warnings.
2035
20362009-11-02  Bob Friesenhahn  <[email protected]>
2037
2038	* port/libport.h: Add extern declarations for getopt standard
2039	globals.
2040
20412009-10-31  Bob Friesenhahn  <[email protected]>
2042
2043	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
2044	noticed in 64-bit build of libtiff with Visual Studio 2005.
2045	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
2046	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
2047
2048	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
2049	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
2050	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
2051	http://bugzilla.maptools.org/show_bug.cgi?id=2068
2052
20532009-10-29  Bob Friesenhahn  <[email protected]>
2054
2055	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
2056	pointer" warnings.
2057
20582009-10-28  Bob Friesenhahn  <[email protected]>
2059
2060	* html/tools.html: Add manual page links, and a summary
2061	description of tiffcrop.
2062
20632009-10-07  Bob Friesenhahn  <[email protected]>
2064
2065	* configure.ac: x86_64 should use the same fill order as i386.
2066
20672009-09-24  Bob Friesenhahn  <[email protected]>
2068
2069	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
2070	Nolde.  Major updates to add significant functionality for reading
2071	and writing tile based images with bit depths not a multiple of 8
2072	which cannot be handled by tiffcp.
2073
20742009-09-03  Bob Friesenhahn  <[email protected]>
2075
2076	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
2077	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
2078	"Bug 2090 - OJPEG crash with libjpeg v7".
2079	http://bugzilla.maptools.org/show_bug.cgi?id=2090
2080
20812009-09-03  Frank Warmerdam  <[email protected]>
2082
2083	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
2084	interface when stoponerror is set.
2085	http://bugzilla.maptools.org/show_bug.cgi?id=2071
2086
20872009-08-30  Bob Friesenhahn  <[email protected]>
2088
2089	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
2090	fix build with gcc when using the "-Wformat
2091	-Werror=format-security" flags.
2092
20932009-08-29  Bob Friesenhahn  <[email protected]>
2094
2095	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
2096	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
2097	utilities tests.
2098
20992009-08-28  Bob Friesenhahn  <[email protected]>
2100
2101	* tools/tiffinfo.c: tiffinfo should return error status to the
2102	caller.  Register a private error callback to accomplish that.
2103
2104	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
2105	PNM formats so that we will be able to test more of the tools.
2106	While adding these test images I notice that bmp2tiff and gif2tiff
2107	only support ancient versions of their respective formats.
2108
21092009-08-27  Bob Friesenhahn  <[email protected]>
2110
2111	* libtiff 4.0.0alpha4 released.
2112
2113	* HOWTO-RELEASE: Improved release instructions.
2114
21152009-08-24  Bob Friesenhahn  <[email protected]>
2116
2117	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
2118	fixes for "Bug 2023 - nroff errors in manual pages".
2119	http://bugzilla.maptools.org/show_bug.cgi?id=2023
2120
2121	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
2122	CVE-2009-2347 libtiff: integer overflows in various inter-color
2123	space conversion tools".
2124	http://bugzilla.maptools.org/show_bug.cgi?id=2079
2125
2126	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
2127	Berkenbilt for "Bug 2024 - possible null pointer dereference with
2128	one-line fix".
2129	http://bugzilla.maptools.org/show_bug.cgi?id=2024
2130
2131	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
2132	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
2133	segfault after setting tdir_tag = IGNORE".
2134	http://bugzilla.maptools.org/show_bug.cgi?id=1895
2135
21362009-08-23  Bob Friesenhahn  <[email protected]>
2137
2138	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
2139	tiffcrop.sh into a collection of many specific tests.  Re-wrote
2140	all of the existing tests to be based on some simple shell
2141	functions.  Make distcheck works again.
2142
2143	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
2144	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
2145	tests under valgrind.
2146
21472009-08-21  Bob Friesenhahn  <[email protected]>
2148
2149	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
2150	build.
2151
2152	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
2153	actually activated since it needed to be enabled in this
2154	Makefile.am.  Also activated parallel-tests mode since it offers
2155	useful features such as per-test .log files and a summary test
2156	report .log file.
2157
21582009-08-20  Bob Friesenhahn  <[email protected]>
2159
2160	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
2161	libtool 2.2.6.  Enabled support for silent build rules
2162	(--enable-silent-rules or 'make V=0') and colorized tests.
2163
2164	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
2165
21662009-06-30  Frank Warmerdam  <[email protected]>
2167
2168	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
2169
2170	* tools/tiffcp.c: add -c sgilog support.
2171
2172	* libtiff/tif_luv.c: correct return codes from encoderow to be
2173	1 on success instead of zero.
2174	http://bugzilla.maptools.org/show_bug.cgi?id=2069
2175
2176	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
2177	#1085 for a better underflow fix that errors properly.
2178	http://bugzilla.maptools.org/show_bug.cgi?id=2065
2179	http://bugzilla.maptools.org/show_bug.cgi?id=1985
2180
21812009-06-26  Frank Warmerdam  <[email protected]>
2182
2183	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
2184	fails on oddly sized 12bit jpeg compressed ycbcr images.
2185
21862009-06-22  Frank Warmerdam  <[email protected]>
2187
2188	* libtiff/tif_lzw.c: Fix buffer underflow bug.
2189	http://bugzilla.maptools.org/show_bug.cgi?id=2065
2190
21912009-06-21  Frank Warmerdam  <[email protected]>
2192
2193	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
2194	for dual mode 8/12 bit jpeg support.
2195
21962009-06-03  Frank Warmerdam  <[email protected]>
2197
2198	* libtiff/tif_write.c: do not override the planar configuration to be
2199	contig for one sample files if planar configuration is already set.
2200	http://bugzilla.maptools.org/show_bug.cgi?id=2057
2201
22022009-06-02  Frank Warmerdam  <[email protected]>
2203
2204	* libtiff/libtiff.def: Add TIFFUnsetField.
2205
22062009-05-03  Frank Warmerdam  <[email protected]>
2207
2208	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
2209	error reports to use "%s" as format string.
2210	http://trac.osgeo.org/gdal/ticket/2976
2211
22122009-03-12  Frank Warmerdam  <[email protected]>
2213
2214	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
2215	for some codecs (#2020).
2216
22172009-02-12  Frank Warmerdam  <[email protected]>
2218
2219	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
2220	http://bugzilla.maptools.org/show_bug.cgi?id=2005
2221
22222009-02-09  Frank Warmerdam  <[email protected]>
2223
2224	* libtiff/tif_dirread.c: Improve allocation safety when allocated
2225	buffer for large tags.  (#1998)  Related to (#1993)
2226
22272009-02-06  Frank Warmerdam  <[email protected]>
2228
2229	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
2230	test suite should pass.
2231
22322009-02-05  Frank Warmerdam  <[email protected]>
2233
2234	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
2235	but at the 2GB boundary to avoid overflow on 32bit systems.
2236	http://bugzilla.maptools.org/show_bug.cgi?id=1993
2237
2238	* libtiff/tif_dirread.c: Remove some assertions that blow due to
2239	corrupt files rather than in response to library internal
2240	inconsistencies.
2241	http://bugzilla.maptools.org/show_bug.cgi?id=1995
2242	http://bugzilla.maptools.org/show_bug.cgi?id=1991
2243
2244	* libtiff/tif_dirread.c: Fixed testing for failed result from
2245	TIFFReadDirectoryFindFieldInfo().
2246	http://bugzilla.maptools.org/show_bug.cgi?id=1992
2247
22482009-01-23  Frank Warmerdam  <[email protected]>
2249
2250	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
2251	http://bugzilla.maptools.org/show_bug.cgi?id=1911
2252
2253	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
2254
2255	http://bugzilla.maptools.org/show_bug.cgi?id=1924
2256
2257	* tools/tiffcrop.c: initialize xres/yres values.
2258
2259	* test/*.sh - default ${srcdir} to local directory.
2260
2261	* test/common.sh - start verbose mode after common settings.
2262
2263	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
2264	avoid type mismatches on different platforms.
2265	http://bugzilla.maptools.org/show_bug.cgi?id=1889
2266
22672009-01-22  Frank Warmerdam  <[email protected]>
2268
2269	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
2270	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
2271
2272	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
2273	defined, primarily to reduce prototype warnings on windows.
2274
2275	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
2276	about unused parameters, and uninitialized variables.
2277
22782009-01-21  Bob Friesenhahn  <[email protected]>
2279
2280	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
2281	order to trace full execution detail while executing the test suite.
2282
22832009-01-20  Frank Warmerdam  <[email protected]>
2284
2285	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
2286
22872009-01-20  Bob Friesenhahn  <[email protected]>
2288
2289	* test/Makefile.am (CLEANFILES): Make sure that test output files
2290	are removed by 'make clean'
2291
2292	* Update autotools for 4.0.0 beta3
2293
2294	* 4.0.0 beta3 produced.
2295
22962009-01-12  Bob Friesenhahn  <[email protected]>
2297
2298	* test/tiffcrop.sh: New test script for tiffcrop from Richard
2299	Nolde.
2300
2301	* tools/tiff2ps.c: Remove spurious message to stderr.
2302
23032009-01-11  Bob Friesenhahn  <[email protected]>
2304
2305	* tools/tiff2ps.c: Incorporated significant functionality update
2306	from Richard Nolde.  In particular, support for rotating the image
2307	by 90, 180, 270, and 'auto' has been added.
2308
2309	* man/tiffcrop.1: Incorporated documentation updates from Richard
2310	Nolde.
2311
2312	* tools/tiffcrop.c: Incorporated significant functionality update
2313	from Richard Nolde.
2314
23152008-12-31  Bob Friesenhahn  <[email protected]>
2316
2317	* libtiff/tiffio.h: GCC will now validate format specifications
2318	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
2319	TIFFWarningExt() in order to reveal bugs.
2320
2321	* Many fixes throughout to work better as a 64-bit build.
2322
23232008-12-30  Bob Friesenhahn  <[email protected]>
2324
2325	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
2326	tags now require 64-bit parameter rather than 32-bit.
2327
2328	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
2329	64-bit values.
2330
2331	* tools/thumbnail.c: Eliminate crash noticed while running test
2332	suite.
2333
23342008-12-29  Bob Friesenhahn  <[email protected]>
2335
2336	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
2337	Initialize stack variables to avoid compiler warning.
2338
2339	* tools/tiffinfoce.c (main): Use toff_t for offset type when
2340	retrieving offset of EXIF IFD.
2341
2342	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
2343	TIFFClientOpen() callback and other external function definitions.
2344
2345	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
2346	type now.  Fixes crash when dumping files containing an EXIF IFD.
2347
2348	* m4/libtool.m4: Update to libtool 2.2.6.
2349
23502008-12-21  Frank Warmerdam  <[email protected]>
2351
2352	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
2353
2354	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
2355	strip for the last partial strip in a jpeg compressed file.
2356	http://bugzilla.maptools.org/show_bug.cgi?id=1981
2357
23582008-10-29  Frank Warmerdam  <[email protected]>
2359
2360	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
2361	we take the shortcut to only update the strip/tile offsets in place.
2362	http://trac.osgeo.org/gdal/ticket/2621
2363
23642008-10-21  Andrey Kiselev  <[email protected]>
2365
2366	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
2367	the older versions retained).
2368
23692008-10-09  Frank Warmerdam  <[email protected]>
2370
2371	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
2372	IPP enabled version of libjpeg from Intel.
2373	http://bugzilla.maptools.org/show_bug.cgi?id=1951
2374
23752008-09-05  Andrey Kiselev  <[email protected]>
2376
2377	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
2378	Required for libtiff 4.0.
2379
2380	* tools/tiffsplit.c: Use dynamically allocated array instead of static
2381	when constructing output file names.
2382
23832008-09-03  Andrey Kiselev  <[email protected]>
2384
2385	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
2386	doing the filename/path construction.
2387
2388	* tools/tiff2pdf.c: More appropriate format string in
2389	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
2390
2391	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
2392
2393	http://bugzilla.maptools.org/show_bug.cgi?id=1929
2394
2395	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
2396	CVE-2008-2327 security issue.
2397
23982008-09-01  Frank Warmerdam  <[email protected]>
2399
2400	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
2401
2402	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
2403	depending on whether the file is bigtiff or classic tiff.
2404	http://bugzilla.maptools.org/show_bug.cgi?id=1917
2405
24062008-08-12  Edward Lam  <[email protected]>
2407
2408	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
2409	consistent (__int64) casting when testing if _lseeki64 has
2410	successfully seeked as requested.  This is necessary for large
2411	file support to work since off_t is only 32-bit.
2412
24132008-07-29  Frank Warmerdam  <[email protected]>
2414
2415	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
2416	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
2417	with control logic to return runtime errors (c/o Even Rouault) (#1927).
2418
24192008-06-17  Frank Warmerdam  <[email protected]>
2420
2421	* tools/tiffcrop.c: Fix some portability problems.
2422
2423	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
2424	used in tif_jpeg.c.
2425
2426	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
2427	as TIFFOpen().
2428
24292008-06-01  Frank Warmerdam  <[email protected]>
2430
2431	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
2432	like Sparc/Solaris.
2433	http://bugzilla.maptools.org/show_bug.cgi?id=1892
2434
24352008-05-27  Frank Warmerdam  <[email protected]>
2436
2437	* libtiff.def: Add TIFFFindField
2438	http://bugzilla.maptools.org/show_bug.cgi?id=1891
2439
24402008-05-26  Frank Warmerdam  <[email protected]>
2441
2442	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
2443
2444	* li2008-04-15  Andrey Kiselev  <[email protected]>
2445
2446btiff/tif_win32.c: Replace custom Win32 memory api with generic
2447	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
2448	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
2449
2450	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
2451	in windows version (care of Edward Lam).
2452
24532008-05-24  Frank Warmerdam  <[email protected]>
2454
2455	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
2456	compression codec codes.
2457
2458	* tif_dirwrite.c: fix potential memory leak.
2459
2460	* tif_dirread.c: Fix unchecked malloc result.
2461
24622008-05-24  Bob Friesenhahn  <[email protected]>
2463
2464	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
2465	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
2466	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
2467	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
2468	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
2469	suggestions from Lee Howard posted to the tiff list on 13 Sep
2470	2007.
2471
24722008-05-23  Frank Warmerdam  <[email protected]>
2473
2474	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
2475	possible runtime problem reported by coverity.
2476
2477	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
2478
2479	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
2480	http://bugzilla.maptools.org/show_bug.cgi?id=1888
2481
2482	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
2483
2484	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
2485
2486	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
2487	Cleanup scanline allocation to avoid coverity warning.
2488
2489	* tools/thumbnail.c: Check for TIFFOpen() failure.
2490
24912008-05-18  Frank Warmerdam  <[email protected]>
2492
2493	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
2494	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
2495	why this is needed.
2496
24972008-05-09  Bob Friesenhahn  <[email protected]>
2498
2499	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
2500	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
2501
25022008-04-15  Andrey Kiselev  <[email protected]>
2503
2504	* test/: Test suite updated. Everything is passed now.
2505
2506	* libtiff/tif_dirinfo.c: Fixed description of the
2507	TIFFTAG_NUMBEROFINKS tag.
2508
25092008-04-14  Andrey Kiselev  <[email protected]>
2510
2511	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
2512	Get rid of some of "dereferencing type-punned" warnings by converting
2513	tdir_offset field of TIFFDirEntry structure into union.
2514
25152008-04-10  Andrey Kiselev  <[email protected]>
2516
2517	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
2518	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
2519	from the public interface. Type of its 'count' parameter changed
2520	from uint32 to tmsize_t.
2521
2522	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
2523	of the tiff structure have the size_t type instead of uint32.
2524
25252008-04-09  Andrey Kiselev  <[email protected]>
2526
2527	* tools/tiffdump.c: Added support for MSVS 6.0.
2528
2529	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
2530	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
2531	point values on MSVS 6.0 platform.
2532
25332008-03-14  Frank Warmerdam  <[email protected]>
2534
2535	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
2536	TIFFReadDirEntryArray() since they are interfering with seemingly
2537	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
2538
25392008-02-09  Joris Van Damme  <[email protected]>
2540
2541	* tif_dirread.c: Added handling for the case of number of values for
2542	PageNumber tag different from 2 (previously resulted in an assert
2543	indicating lack of handling and was forgotten about)
2544
25452008-02-01  Frank Warmerdam  <[email protected]>
2546
2547	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
2548	the actual jpeg data stream if the first strip/tile has zero size.
2549	This is the case when GDAL creates a new file with zero sizes, closes
2550	and reopens it.
2551
25522008-01-07  Frank Warmerdam  <[email protected]>
2553
2554	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
2555
25562008-01-01  Frank Warmerdam  <[email protected]>
2557
2558	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
2559
2560	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
2561	targets.
2562
2563	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
2564	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
2565	(x64).
2566
2567	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
2568	and TIFFFieldWithName() now return TIFFField pointers instead of
2569	TIFFFieldInfo pointers.
2570
2571	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
2572	exist. This makes it compile again on Windows
2573
2574	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
2575	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
2576
2577	* test/rewrite_tag.c: New test for TIFFRewriteField().
2578
25792007-12-31  Frank Warmerdam  <[email protected]>
2580
2581	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
2582	rewrites one field "on disk" updating an existing directory
2583	entry.  Lots of limitations still...
2584
2585	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
2586	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
2587	the strip offset/size values are dirty but nothing else about the
2588	directory is dirty.  In flush handle "just stripmaps dirty" as a
2589	special case that just rewrites these values without otherwise
2590	modifying the directory on disk using TIFFRewriteField().
2591
2592	We also modify logic so that in update mode the directory is not
2593	marked dirty on read, but only when something is changed.  This
2594	means we need to keep track of updates to the stripmap stuff in
2595	TIFFAppendToStrip().
2596
25972007-12-10  Frank Warmerdam  <[email protected]>
2598
2599	* tif_jpeg.c: Improve ability to switch between encoding and decoding
2600	in the jpeg code (gdal bug #2033).
2601
26022007-11-23  Frank Warmerdam  <[email protected]>
2603
2604	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
2605	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
2606	rawcp/rawcc buffer are for writing and thus may require flushing.
2607	Necessary to distinguish whether they need to be written to disk when
2608	in mixed read/write mode and doing a mixture of writing followed by
2609	reading.  http://trac.osgeo.org/gdal/ticket/1758
2610
26112007-11-23  Andrey Kiselev  <[email protected]>
2612
2613	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
2614	from Alexey Chupahin.
2615
26162007-11-02  Frank Warmerdam  <[email protected]>
2617
2618	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
2619	establishing if an existing tile can be rewritten to the same location
2620	by comparing the current size to all the other blocks in the same
2621	directory.  This is dangerous in many situations and can easily
2622	corrupt a file.  (observed in esoteric GDAL situation that's hard to
2623	document).  This change involves leaving the stripbytecount[] values
2624	unaltered till TIFFAppendToStrip().  Now we only write a block back
2625	to the same location it used to be at if the new data is the same
2626	size or smaller - otherwise we move it to the end of file.
2627
2628	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
2629	data when writing the directory just because we have BEENWRITING at
2630	some point in the past.  This was causing odd junk to be written out
2631	in a tile of data when a single tile had an interleaving of reading
2632	and writing with reading last.  (highlighted by gdal
2633	autotest/gcore/tif_write.py test 7.
2634
2635	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
2636	modifying callers buffer.
2637	http://trac.osgeo.org/gdal/ticket/1965
2638
2639	* tif_predict.c/h: more fixes related to last item, keeping a
2640	distinct pfunc for encode and decode cases as these were getting
2641	mixed up sometimes.
2642	http://trac.osgeo.org/gdal/ticket/1948
2643
26442007-11-01  Frank Warmerdam  <[email protected]>
2645
2646	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
2647	predictor based encoding and decoding works in read-write update
2648	mode properly.
2649	http://trac.osgeo.org/gdal/ticket/1948
2650
26512007-10-24  Joris Van Damme  <[email protected]>
2652
2653	* tif_dirread.c: Fixed problem with bogus file triggering
2654	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
2655	ChopUpSingleUncompressedStrip
2656
26572007-10-22  Joris Van Damme  <[email protected]>
2658
2659	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
2660	at best, access violation at worst, when subsampled JPEG compressed imagery
2661	is decoded without the JPEG_COLORMODE feature
2662
26632007-10-11  Frank Warmerdam  <[email protected]>
2664
2665	* html/index.html: Update "people responsible" section.
2666
26672007-10-05  Frank Warmerdam  <[email protected]>
2668
2669	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
2670	as reported on the mailing list.
2671
26722007-10-01  Joris Van Damme  <[email protected]>
2673
2674	* changed some more incorrect %lud printf flags to %lu
2675
26762007-09-29  Joris Van Damme  <[email protected]>
2677
2678	* tif_dirread.c: Strip chopping interfered badly with uncompressed
2679	subsampled images because it tried to divide subsampled rowblocks,
2680	leading to all sorts of errors throughout the library for these
2681	images. Fixed by making strip chopping divide in row counts that
2682	are a multiple of vertical subsampling value.
2683
26842007-09-28  Joris Van Damme  <[email protected]>
2685
2686	* tif_dirread.c: Logical cast working around compiler warning
2687
2688	* tif_read.c: Correction of some error flags and parameter lists
2689
26902007-09-27  Joris Van Damme  <[email protected]>
2691
2692	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
2693	when dealing with large bitspersample values, shutting up purification
2694	tools that warn about truncation, though it remains incorrect and
2695	indicates a conceptual problem there.
2696
2697	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
2698	of first IFD) to proper place because it badly interfered with memory
2699	mapping, resulting in mapping flag even with dummy mapping functions
2700	that returned 0 whilst at the same time the mapping tif_size wasn't
2701	set, thus resulting in continuous incorrect beyond-eof errors.
2702
27032007-09-24  Joris Van Damme  <[email protected]>
2704
2705	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
2706	inconsistent use of const in tiffFields and exifFields definition
2707
27082007-09-20  Frank Warmerdam  <[email protected]>
2709
2710	* tif_dirwrite.c: Always write tile/strip offsets and sizes
2711	using LONG8 type when output format is BigTIFF.  The
2712	TIFFWriteDirectoryTagLongLong8Array() function was restructured
2713	accordingly.
2714
2715	* tif_dirread.c: Improvements to error reporting text in
2716	TIFFFetchDirectory().
2717
27182007-09-19  Bob Friesenhahn  <[email protected]>
2719
2720	* test/images: Added a small collection of test images for use by
2721	test programs and scripts.
2722	* test/tiffinfo.sh: A trivial example test script.
2723	* test/common.sh: Added small script for setting the environment
2724	used by script-based tests.
2725
27262007-08-24  Frank Warmerdam  <[email protected]>
2727
2728	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
2729	zero when writing directory contents to preserve the ability to
2730	rewrite directories in place, even in the middle of a directory
2731	chain.
2732
2733	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
2734	definitions that are missing.  Existing definitions are silently
2735	ignored.
2736
2737	* tif_dirread.c: Add runtime error for fields for which no definition
2738	is found (in addition to an assert for developers) in
2739	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
2740	prudent.
2741
27422007-08-10  Joris Van Damme  <[email protected]>
2743
2744	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
2745	from _TIFFRGBAImage structure to revert unwanted ABI change.
2746
27472007-08-10  Joris Van Damme  <[email protected]>
2748
2749	* libtiff/tif_win32.c: use SetFilePointer instead of
2750	SetFilePointerEx, as per bug
2751
2752	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
2753
27542007-07-19  Andrey Kiselev  <[email protected]>
2755
2756	* libtiff/tif_stream.cxx: Put all callback functions declarations
2757	inside extern "C" block.
2758
2759	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
2760	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
2761	formatter instead of "%lld" with MSVC compiler.
2762
2763	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
2764	_TIFFUInt64ToDouble() functions.
2765
27662007-07-18  Andrey Kiselev  <[email protected]>
2767
2768	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
2769	integer constants.
2770
2771	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2772	remove tif_config.h/tiffconf.h during cleaning. As per bug
2773
2774	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2775
2776	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2777
2778	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2779
27802007-07-13  Andrey Kiselev  <[email protected]>
2781
2782	* libtiff 4.0.0alpha released.
2783
27842007-07-12  Andrey Kiselev  <[email protected]>
2785
2786	* tools/tiff2pdf.c: Added missed extern optind as per bug
2787
2788	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2789
2790	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2791	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2792	extending scheme completed.
2793
27942007-07-11  Bob Friesenhahn  <[email protected]>
2795
2796	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2797	use standard C++ library size types and attempt to detect overflow
2798	cases.
2799
28002007-07-08  Andrey Kiselev  <[email protected]>
2801
2802	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2803	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2804	tag extending scheme. Use the new scheme everywhere.
2805
2806	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2807	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2808	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2809	TIFFFIeldInfo structure replaced with TIFFField structure.
2810	TIFFFieldInfo retained for the backward compatibility.
2811
28122007-07-05  Bob Friesenhahn  <[email protected]>
2813
2814	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2815	defined.
2816
28172007-07-04  Andrey Kiselev  <[email protected]>
2818
2819	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2820	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2821	removed.
2822
2823	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2824	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2825	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2826	These tags are not codec-specific and relate to image content, so
2827	process them as other normal tags.
2828
2829	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2830	public tiffio.h to private tif_dir.h.
2831
2832	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2833	outdated.
2834
28352007-07-03  Andrey Kiselev  <[email protected]>
2836
2837	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2838	tif_win3.c}: Obsoleted portability stuff removed.
2839
2840	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2841
2842	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2843
2844	Patch from William Bader.
2845
2846	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2847	significant upgrade of the whole utility as per bug
2848
2849	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2850
2851	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2852	PDF file using TIFFClientOpen() machinery as it is implemented
2853	by Leon Bottou.
2854
28552007-06-26  Bob Friesenhahn  <[email protected]>
2856
2857	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2858	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2859	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2860	allow returning -1 for errors.
2861	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2862
28632007-06-25  Bob Friesenhahn  <[email protected]>
2864
2865	* port/strtoull.c: New porting function in case strtoull() is not
2866	available on the target system.
2867	* configure.ac: Add configure support for determining sized types
2868	in a portable way and performing necessary substitutions in
2869	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2870	definitions.
2871
28722007-04-27  Andrey Kiselev  <[email protected]>
2873
2874	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2875
2876	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2877
28782007-04-07  Andrey Kiselev  <[email protected]>
2879
2880	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2881	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2882	tif_predict.c, tif_zip.c}: Finally fix bug
2883
2884	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2885
2886	by introducing _TIFFMergeFieldInfo() returning integer error status
2887	instead of void in case of problems with field merging (e.g., if the
2888	field with such a tag already registered). TIFFMergeFieldInfo() in
2889	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2890	check returned value.
2891
28922007-04-07  Frank Warmerdam  <[email protected]>
2893
2894	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2895	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2896
28972007-04-06  Frank Warmerdam  <[email protected]>
2898
2899	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2900	will convert from decompressor to compressor or compress to decompress
2901	if required by the force arguments.  This works around a problem in
2902	where the JPEGFixupTestSubsampling() may cause a decompressor to
2903	be setup on a directory when later a compressor is required with the
2904	force flag set.  Occurs with the addtiffo program for instance.
2905
29062007-04-06  Andrey Kiselev  <[email protected]>
2907
2908	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2909	functionality from Richard Nolde. As per bug
2910
2911	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2912
29132007-03-28  Frank Warmerdam  <[email protected]>
2914
2915	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2916
29172007-03-17  Joris Van Damme  <[email protected]>
2918
2919	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2920
29212007-03-07  Joris Van Damme  <[email protected]>
2922
2923	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2924	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2925	factor. This bug is mentioned in:
2926	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2927	http://www.asmail.be/msg0054766825.html
2928
29292007-03-07  Joris Van Damme  <[email protected]>
2930
2931	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2932
2933	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2934	unused arguments by standard C indication for the same
2935
29362007-02-27  Andrey Kiselev  <[email protected]>
2937
2938	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2939	counters in TIFFFetchData(). Should finally fix the issue
2940
2941	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2942
29432007-02-24  Andrey Kiselev  <[email protected]>
2944
2945	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
2946	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2947
2948	* libtiff/tif_dirread.c: Added special function to handle
2949	SubjectDistance EXIF tag as per bug
2950
2951	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
2952
2953	* tools/tiff2pdf.c: Do not assume inches when the resolution units
2954	do not specified. As per bug
2955
2956	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2957
2958	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
2959	it was set as infinite. As per bug
2960
2961	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2962
2963	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
2964	by Richard Nolde. As per bug
2965
2966	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
2967
29682007-02-22  Andrey Kiselev  <[email protected]>
2969
2970	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
2971	ExtraSamples == 999 produced by Corel Draw. As per bug
2972
2973	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
2974
2975	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
2976	changed from tsize_t to uint32 to be able to work with data arrays
2977	larger than 2GB. Fixes bug
2978
2979	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2980
2981	Idea submitted by Matt Hancher.
2982
29832007-01-31  Andrey Kiselev  <[email protected]>
2984
2985	* tools/tif2rgba.c: This utility does not work properly on big-endian
2986	architectures. It was fixed including the bug
2987
2988	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
2989
29902007-01-15  Mateusz Loskot <[email protected]>
2991
2992	* Submitted libtiff port for Windows CE platform
2993	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
2994	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
2995	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
2996	functons from tif_win32.c.
2997	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
2998	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
2999	standard header files for Windows CE build.
3000	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
3001
30022006-11-19  Frank Warmerdam  <[email protected]>
3003
3004	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
3005	we move a strip.
3006	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
3007
30082006-10-13  Andrey Kiselev  <[email protected]>
3009
3010	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
3011	in Gentoo bug ():
3012
3013	http://bugs.gentoo.org/show_bug.cgi?id=142383
3014
3015	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
3016	Though it is still far from the state of being working and useful.
3017
30182006-10-12  Andrey Kiselev  <[email protected]>
3019
3020	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
3021	method.
3022
3023	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
3024	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
3025
3026	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
3027	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
3028
3029	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
3030	vulnerabilities, reported in Gentoo bug ():
3031
3032	http://bugs.gentoo.org/show_bug.cgi?id=142383
3033
30342006-09-28  Andrey Kiselev  <[email protected]>
3035
3036	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
3037	vulnerabilities, as per	Gentoo bug ():
3038
3039	http://bugs.gentoo.org/show_bug.cgi?id=142383
3040
30412006-09-27  Frank Warmerdam  <[email protected]>
3042
3043	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
3044	encoding and decoding on the same read-write TIFF handle.  The LZW
3045	code can now maintain encode and decode state at the same time. The
3046	ZIP code will switch back and forth as needed.
3047	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
3048
30492006-09-20  Frank Warmerdam  <[email protected]>
3050
3051	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
3052	tif_config.vc.h for easier identification by folks using an IDE.
3053
30542006-07-25  Frank Warmerdam  <[email protected]>
3055
3056	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
3057
30582006-07-19  Frank Warmerdam  <[email protected]>
3059
3060	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
3061	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
3062	to bug report by Peng Gao with black strip at bottom of images.
3063
30642006-07-12  Frank Warmerdam  <[email protected]>
3065
3066	* tif_dirwrite.c: make sure to use uint32 for wordcount in
3067	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
3068	It already seems to have been done for other field types.  Needed
3069	for "tiffset" on files with geotiff ascii text.
3070
30712006-07-04  Bob Friesenhahn  <[email protected]>
3072
3073	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
3074	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
3075	its use does not appear to be required, so use it only when it is
3076	available.
3077
30782006-06-24  Andrey Kiselev  <[email protected]>
3079
3080	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
3081
3082	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
3083	function TIFFFetchDirectory() avoiding code duplication in
3084	TIFFReadDirectory() and TIFFReadCustomDirectory().
3085
30862006-06-19  Frank Warmerdam  <[email protected]>
3087
3088	* tools/tiff2pdf.c: Fix handling of -q values.
3089	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
3090
30912006-06-17  Frank Warmerdam  <[email protected]>
3092
3093	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
3094	files.  Modified TIFFReadDirectory() to not invoke
3095	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
3096	but one of them is zero.
3097	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
3098
30992006-06-08  Andrey Kiselev  <[email protected]>
3100
3101	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
3102	checking code in the separate function TIFFCheckDirOffset().
3103
3104	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
3105
3106	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
3107
3108	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
3109
3110	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
3111
3112	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
3113
3114	* tools/tiff2pdf.c: Fixed buffer overflow condition in
3115	t2p_write_pdf_string() as per bug
3116
3117	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
3118
31192006-06-07  Andrey Kiselev  <[email protected]>
3120
3121	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
3122	support for JBIG compression scheme (34661 code) contributed by Lee
3123	Howard. As per bug
3124
3125	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
3126
3127	* configure, configure.ac: OJPEG support enabled by default.
3128
3129	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
3130
31312006-06-03  Bob Friesenhahn  <[email protected]>
3132
3133	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
3134	TIFFPrintDirectory().  Joris Van Damme authored the fix.
3135
31362006-04-21  Andrey Kiselev  <[email protected]>
3137
3138	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
3139	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
3140
3141	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
3142	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
3143	Added support for OpenVMS by Alexey Chupahin, [email protected].
3144
31452006-04-20  Andrey Kiselev  <[email protected]>
3146
3147	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
3148	Properly set the binary mode for stdin stream as per bug
3149	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
3150
3151	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
3152	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
3153	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
3154	tiffset.1}: Improvements in page formatting as per bug
3155	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
3156
3157	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
3158	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
3159
31602006-04-18  Frank Warmerdam  <[email protected]>
3161
3162	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
3163	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
3164
31652006-04-12  Joris Van Damme  <[email protected]>
3166
3167	* libtiff/tif_getimage.c: Added support for planarconfig separate
3168	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
3169
31702006-04-11  Joris Van Damme  <[email protected]>
3171
3172	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
3173	- Conversion of unassociated alpha to associated alpha now done with
3174	  more performant LUT, and calculation more correct
3175	- Conversion of 16bit data to 8bit data now done with
3176	  more performant LUT, and calculation more correct
3177	- Bugfix of handling of 16bit RGB with unassociated alpha
3178
31792006-04-11  Joris Van Damme  <[email protected]>
3180
3181	* libtiff/tif_getimage.c:
3182	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
3183	  buffer for alpha strile and filled it, only to never read it back.
3184	  Removed allocation and fill.
3185	- Minor rename of vars in gtTileSeparate and gtStripSeparate
3186	  anticipating planned functionality extension
3187
31882006-04-08  Joris Van Damme  <[email protected]>
3189
3190	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
3191	and pickTileSeparateCase to PickSeparateCase as both work on strips as
3192	well
3193
3194	* libtiff/tif_getimage.c: moved img->get selection from
3195	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
3196	logical hook for planned functionality extension
3197
31982006-04-08  Joris Van Damme  <[email protected]>
3199
3200	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
3201	of inappropriate use of jpeg_abort instead of jpeg_destroy
3202
32032006-04-07  Joris Van Damme  <[email protected]>
3204
3205	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
3206	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
3207	on subsampled images - this ought to get sorted when we feel brave
3208	enough to replace TIFFScanlineSize alltogether
3209
3210	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
3211
32122006-04-04  Joris Van Damme  <[email protected]>
3213
3214	* libtiff/tiffio.h: added new type tstrile_t
3215
3216	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
3217	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
3218	toff_t*
3219
3220	* libtiff/tif_ojpeg.c: totally new implementation
3221
3222	* libtiff/tif_dirread.c: added several hacks to suit new support of
3223	OJPEG
3224
3225	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
3226	of OJPEG images in favor of tif_getimage.c native handling of
3227	YCbCr and desubsampling
3228
32292006-03-29  Frank Warmerdam  <[email protected]>
3230
3231	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
3232	interpretation causes the "upsampled" flag to be recomputed.  Fixes
3233	peculiar bug where photometric flag had to be set before jpegcolormode
3234	flag.
3235
32362006-03-25  Joris Van Damme  <[email protected]>
3237
3238	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
3239
3240	* libtiff/tif_strip.c: temporarilly added two new versions of
3241	TIFFScanlineSize
3242	  - TIFFNewScanlineSize: proposed new version, after all related
3243	    issues and side-effects are sorted out
3244	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
3245	This needs further sorting out.
3246
32472006-03-25  Joris Van Damme  <[email protected]>
3248
3249	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
3250	of last truncated strip data to TIFFWriteEncodedStrip
3251
32522006-03-25  Joris Van Damme  <[email protected]>
3253
3254	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
3255
32562006-03-25  Joris Van Damme  <[email protected]>
3257
3258	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
3259
3260	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
3261
3262	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
3263	prepare	the path for new tif_ojpeg.c
3264
32652006-03-23  Andrey Kiselev  <[email protected]>
3266
3267	* libtiff 3.8.2 released.
3268
3269	* tools/Makefile.am: Use runtime paths linker flags when rpath
3270	option enabled.
3271
32722006-03-21  Andrey Kiselev  <[email protected]>
3273
3274	* libtiff/libtiff.def: Added missed exports as per bug
3275	http://bugzilla.remotesensing.org/attachment.cgi?id=337
3276
3277	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
3278	tools/Makefile.vc: Makefiles improvements as per bug
3279	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
3280
3281	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
3282	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
3283	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
3284
3285	* libtiff/tif_strip.c: Take subsampling in account when calculating
3286	TIFFScanlineSize().
3287
3288	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
3289
32902006-03-17  Andrey Kiselev  <[email protected]>
3291
3292	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
3293	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
3294
3295	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
3296	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
3297
32982006-03-16  Andrey Kiselev  <[email protected]>
3299
3300	* libtiff/tiffiop.h: Added decalration for
3301	_TIFFSetDefaultCompressionState().
3302
3303	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
3304	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
3305	codec cleanup methods. As per bug
3306
3307	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
3308
33092006-03-15  Andrey Kiselev  <[email protected]>
3310
3311	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
3312	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
3313
3314	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
3315	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
3316
3317	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
3318	removed; move here the STRIP_SIZE_DEFAULT macro definition.
3319
3320	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
3321	macro definition.
3322
3323	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
3324
33252006-03-14  Andrey Kiselev  <[email protected]>
3326
3327	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
3328	in TIFFReadDirectory, because it is always set at the start of
3329	function and we allow TIFFs without that tag set.
3330
33312005-03-13  Andrey Kiselev  <[email protected]>
3332
3333	* libtiff 3.8.1 released.
3334
33352006-03-07  Andrey Kiselev  <[email protected]>
3336
3337	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
3338	function as per bug
3339	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3340
3341	* libtiff/tif_dirread.c: More wise check for integer overflow
3342	condition as per bug
3343	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3344
3345	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
3346	Properly restore setfield/getfield methods in cleanup functions. As
3347	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3348
33492006-03-03  Andrey Kiselev  <[email protected]>
3350
3351	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
3352	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
3353
3354	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
3355	TIFFPredictorCleanup() in codec cleanup methods. As per bug
3356
3357	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3358
3359	* libtiff/tif_dirread.c: Fixed integer overflow condition in
3360	TIFFFetchData() function. As per bug
3361
3362	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3363
33642006-03-01  Andrey Kiselev  <[email protected]>
3365
3366	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
3367	TIFFSetField() method, not directly. As per bug
3368
3369	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
3370
3371	* tools/ppm2tiff.c: Added support for PBM files as per bug
3372	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
3373
33742006-02-27  Andrey Kiselev  <[email protected]>
3375
3376	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
3377	to avoid crash as per bug
3378
3379	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
3380
33812006-02-26  Andrey Kiselev  <[email protected]>
3382
3383	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
3384	t2p_sample_rgba_to_rgb() was used in place of each other, that was
3385	resulted in problems with RGBA images with associated alpha.
3386	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
3387
33882006-02-23  Andrey Kiselev  <[email protected]>
3389
3390	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
3391	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
3392
3393	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
3394	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
3395	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
3396
3397	* tools/tiff2ps.c: Properly scale all the pages when converting
3398	multipage TIFF with /width/height/center options set. As per bug
3399
3400	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
3401
34022006-02-15  Andrey Kiselev  <[email protected]>
3403
3404	* tools/tiff2pdf.c: Do not create output file until all option checks
3405	will be done. As per bug
3406
3407	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
3408
3409	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
3410	list of input files as per bug:
3411
3412	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
3413
34142006-02-09  Andrey Kiselev  <[email protected]>
3415
3416	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
3417	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
3418
3419	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
3420	TIFFRGBAImage interface.
3421
3422	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
3423	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
3424
34252006-02-07  Frank Warmerdam  <[email protected]>
3426
3427	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
3428	compressed TIFF files, per submission from Dan Cobra.
3429
34302006-02-07  Andrey Kiselev  <[email protected]>
3431
3432	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
3433	cast values to avoid warnings. As per bug
3434	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3435
3436	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
3437	appropriate. As per bug
3438	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3439
3440	* libtiff/tif_aux.c: Fixed type of temporary variable in
3441	_TIFFCheckMalloc() as per bug
3442	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3443
34442006-02-06  Andrey Kiselev  <[email protected]>
3445
3446	* libtiff/tif_aux.c: Return static array when fetching default
3447	YCbCrCoefficients (another problem, reported a the
3448	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
3449
34502006-02-03  Andrey Kiselev  <[email protected]>
3451
3452	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
3453	YCbCrSubsampling and DotRange tags as per bugs
3454
3455	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
3456	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
3457
3458	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
3459	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
3460
3461	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
3462
34632006-01-23  Andrey Kiselev  <[email protected]>
3464
3465	* libtool related stuff updated from the 2.1a branch.
3466
34672006-01-11  Frank Warmerdam  <[email protected]>
3468
3469	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
3470	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
3471	properly as per bug:
3472	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
3473
34742006-01-09  Bob Friesenhahn  <[email protected]>
3475
3476	* configure.ac: Fix with_default_strip_size comparison as reported
3477	by Norihiko Murase.
3478
34792006-01-08  Bob Friesenhahn  <[email protected]>
3480
3481	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
3482	incorrectly, tests were not actually testing the uninstalled
3483	libtiff.  Now they are.
3484
34852006-01-04  Andrey Kiselev  <[email protected]>
3486
3487	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
3488	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
3489	should be uint32 value.
3490
34912006-01-02  Bob Friesenhahn  <[email protected]>
3492
3493	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
3494	be used if build directory is not the same as source directory.
3495	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
3496	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
3497	and re-sorted tag names in alphabetical order.
3498
34992005-12-29  Andrey Kiselev  <[email protected]>
3500
3501	* libtiff 3.8.0 released.
3502
35032005-12-28  Bob Friesenhahn  <[email protected]>
3504
3505	* tools/bmp2tiff.c (main): Fixed warning regarding returning
3506	inconsistent types from a condition.
3507	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
3508	format.
3509	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
3510
35112005-12-28  Joris Van Damme  <[email protected]>
3512
3513	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
3514
35152005-12-27  Andrey Kiselev  <[email protected]>
3516
3517	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
3518	windows.h, to reduce the compile time.
3519
35202005-12-26  Bob Friesenhahn  <[email protected]>
3521
3522	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
3523
35242005-12-26  Andrey Kiselev  <[email protected]>
3525
3526	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
3527	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
3528	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
3529	private functions to retrieve FieldInfo arrays.
3530
35312005-12-24  Bob Friesenhahn  <[email protected]>
3532
3533	* html/build.html: Added some additional instructions for when
3534	building using MSVC under Windows.  Also fixed two HTML syntax
3535	errors and used HTML Tidy to tidy up the HTML syntax and
3536	formatting.
3537
35382005-12-24  Andrey Kiselev  <[email protected]>
3539
3540	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
3541	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
3542	StoNits tags custom.
3543
35442005-12-23  Andrey Kiselev  <[email protected]>
3545
3546	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
3547	WhitePoint tag custom.
3548
3549	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
3550
35512005-12-23  Joris Van Damme  <[email protected]>
3552
3553	* libtiff/tiffio.h: fixed typo that potentially resulted in
3554	redefininition of USE_WIN32_FILEIO
3555
3556	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
3557	calls in core LibTiff.
3558
35592005-12-21  Andrey Kiselev  <[email protected]>
3560
3561	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
3562	Photoshop and ICCProfile tags custom.
3563
35642005-12-21  Joris Van Damme  <[email protected]>
3565
3566	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
3567	newer code to get context indicator in error handler and still
3568	remain compatible with older code: Done TIFFError calls everywhere
3569	except in tools
3570
35712005-12-20  Andrey Kiselev  <[email protected]>
3572
3573	* tools/tiffcp.c: Added many error reporting messages; fixed integer
3574	overflow as per bug
3575
3576	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
3577
35782005-12-16  Frank Warmerdam  <[email protected]>
3579
3580	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
3581	YCbCr images in jpeg compressed TIFF files.
3582
35832005-12-14  Andrey Kiselev  <[email protected]>
3584
3585	* tools/tiffcp.c: Return non-zero status when reading fails (again).
3586
35872005-12-13  Andrey Kiselev  <[email protected]>
3588
3589	* tools/tiffcp.c: Return non-zero status when reading fails.
3590
35912005-12-12  Andrey Kiselev  <[email protected]>
3592
3593	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
3594
35952005-12-09  Andrey Kiselev  <[email protected]>
3596
3597	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
3598	custom.
3599
3600	* tools/tiffinfo.c: Print EXIF directory contents if exist.
3601
3602	* libtiff/tiff.h: Few EXIF tag numbers added.
3603
3604	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
3605	tiffio.h}: Preliminary support to read custom directories. New
3606	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
3607
36082005-12-07  Andrey Kiselev  <[email protected]>
3609
3610	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
3611	More work to implement custom directory read support.
3612
3613	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
3614	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
3615	tags custom.
3616
36172005-12-05  Andrey Kiselev  <[email protected]>
3618
3619	* libtiff/tif_dirread.c: One more workaround for broken
3620	StripByteCounts tag. Handle the case when StripByteCounts array filled
3621	with completely wrong values.
3622
36232005-11-30  Andrey Kiselev  <[email protected]>
3624
3625	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
3626	in the TIFFOpenW() function as per bug
3627
3628	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
3629
3630	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
3631	functions as per bug
3632
3633	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
3634
36352005-11-20  Frank Warmerdam  <[email protected]>
3636
3637	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
3638	for MS MDI format.
3639	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
3640
3641	* .cvsignore: many files added, and a few update according
3642	to suggestion of Brad HArds on tiff mailing list.
3643
36442005-11-03  Frank Warmerdam  <[email protected]>
3645
3646	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
3647	public.
3648
36492005-10-31  Andrey Kiselev  <[email protected]>
3650
3651	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
3652	as per bug
3653
3654	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
3655
3656	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
3657	as per bug
3658
3659	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
3660
3661	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
3662	problem as per bug
3663
3664	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
3665
3666	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
3667
3668	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
3669
3670	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
3671	ResolutionUnit tags modifiable during write process. As per bug
3672
3673	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
3674
3675	* tools/tiffsplit.c: Copy fax related fields over splitted parts
3676	as per bug
3677
3678	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
3679
36802005-10-21  Frank Warmerdam  <[email protected]>
3681
3682	* tif_dirread.c: Don't try and split single strips into "0" strips
3683	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
3684	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
3685
36862005-10-20  Joris Van Damme  <[email protected]>
3687
3688	* tif_fax3.c: changed 'at scanline ...' style warning/errors
3689	with incorrect use of tif_row, to 'at line ... of
3690	strip/tile ...' style
3691
36922005-10-15  Frank Warmerdam  <[email protected]>
3693
3694	* tif_write.c: fixed setting of planarconfig as per bug report
3695	on the mailing list from Joris.
3696
36972005-10-07  Andrey Kiselev  <[email protected]>
3698
3699	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
3700	tif_dirread.c}: Make the default strip size configurable via the
3701	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
3702
37032005-09-30  Bob Friesenhahn  <[email protected]>
3704
3705	* html/support.html: Fixed link to documentation on Greg Ward's
3706	LogLuv TIFF format.
3707
37082005-09-28  Andrey Kiselev  <[email protected]>
3709
3710	* tools/tiffdump.c: Fixed crash when reading malformed tags.
3711
37122005-09-20  Andrey Kiselev  <[email protected]>
3713
3714	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
3715	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
3716
37172005-09-12  Andrey Kiselev  <[email protected]>
3718
3719	* libtiff 3.7.4 released.
3720
3721	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
3722	from Patrick Welche (all scripts moved in the 'config' and 'm4'
3723	directories).
3724
37252005-09-12  Frank Warmerdam  <[email protected]>
3726
3727	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
3728
37292005-09-05  Frank Warmerdam  <[email protected]>
3730
3731	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
3732	also set it to NULL to avoid double free when re-setting custom
3733	string fields as per:
3734
3735	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
3736
37372005-08-12  Frank Warmerdam  <[email protected]>
3738
3739	* libtiff/tif_print.c: avoid signed/unsigned warning.
3740
3741	* libtiff/tif_dirread.c: removed unused variable.
3742
37432005-07-30  Frank Warmerdam  <[email protected]>
3744
3745	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
3746	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
3747	pass on bigendian (macosx) system.
3748
37492005-07-28  Andrey Kiselev  <[email protected]>
3750
3751	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
3752	CheckMalloc() function to _TIFFCheckMalloc() and make it available
3753	globally as an internal helper routine.
3754
37552005-07-27  Andrey Kiselev  <[email protected]>
3756
3757	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
3758	the custom tags handling code.
3759
37602005-07-26  Andrey Kiselev  <[email protected]>
3761
3762	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
3763	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
3764	function, use TIFFFetchNormalTag() instead as per bug
3765
3766	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3767
3768	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
3769	instead.
3770
3771	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3772
3773	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3774
37752005-07-25  Andrey Kiselev  <[email protected]>
3776
3777	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3778
3779	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3780
37812005-07-21  Andrey Kiselev  <[email protected]>
3782
3783	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3784	the TIFFWriteCheck() function in case of single band images (as per
3785	TIFF spec).
3786
37872005-07-12  Andrey Kiselev  <[email protected]>
3788
3789	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3790	support for SCons software building tool (http://www.scons.org/).
3791	This is experimental infrastructure and it will exist along with the
3792	autotools mechanics.
3793
37942005-07-07  Andrey Kiselev  <[email protected]>
3795
3796	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3797	the NetBSD source tree (the old	4-clause BSD license changed to
3798	the new 3-clause one).
3799
3800	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3801	replacement module.
3802
3803	* port/dummy.c: Make the dummy function static.
3804
38052005-07-06  Andrey Kiselev  <[email protected]>
3806
3807	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3808
3809	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3810	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3811	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3812
38132005-07-04  Andrey Kiselev  <[email protected]>
3814
3815	* libtiff 3.7.3 released.
3816
3817	* configure, configure.ac: Do not use empty -R option when linking
3818	with --enable-rpath.
3819
38202005-07-01  Andrey Kiselev  <[email protected]>
3821
3822	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3823	reading the first IFD when needed. As per bug
3824
3825	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3826
3827	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3828	effects.
3829
38302005-06-23  Andrey Kiselev  <[email protected]>
3831
3832	* tools/tiff2pdf.c: Print two characters per loop in the
3833	t2p_write_pdf_trailer(). As per bug
3834
3835	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3836
3837	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3838	per bug
3839
3840	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3841
3842	* acinclude.m4: Updated to latest OpenGL test macros versions.
3843
3844	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3845	platform. As per bug
3846
3847	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3848
38492005-06-14  Andrey Kiselev  <[email protected]>
3850
3851	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3852	and YClipPathUnits tags.
3853
38542005-06-07  Andrey Kiselev  <[email protected]>
3855
3856	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3857	use pixel sized shift in contigous case.
3858
38592005-06-06  Andrey Kiselev  <[email protected]>
3860
3861	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3862	Make overviews working for contiguos images.
3863
38642005-06-03  Andrey Kiselev  <[email protected]>
3865
3866	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3867	time one.
3868
3869	* libtiff/tif_predict.c: Floating point predictor now works on
3870	big-endian hosts.
3871
38722005-06-01  Andrey Kiselev  <[email protected]>
3873
3874	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3875	ASCII values.
3876
3877	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3878	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3879	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3880	TargetPrinter tags custom.
3881
3882	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3883	TIFF_CODERSETUP flag (to fix memry leaks).
3884
3885	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3886	allocating.
3887
38882005-05-26  Andrey Kiselev  <[email protected]>
3889
3890	* configure.ac, libtiff/Makefile.am: Added workaround for
3891	OpenBSD/MirOS soname problem as per bug
3892
3893	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3894
3895	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3896	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3897	per bug
3898
3899	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3900
39012005-05-25  Andrey Kiselev  <[email protected]>
3902
3903	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3904	the fscanf() function. As per bug
3905
3906	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3907
3908	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3909	uint16 array when fetching the BYTE and SBYTE filds, so we should
3910	consider result as pointer to uint16 array and not as array of chars.
3911	As per bug
3912
3913	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3914
3915	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3916
3917	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3918
3919	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3920	mode in CreateFile() call as per bug
3921
3922	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3923
3924	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3925	libtiffxx libraries as per bug
3926
3927	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3928
3929	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3930	GDAL.
3931
39322005-05-23  Frank Warmerdam  <[email protected]>
3933
3934	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3935	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3936	in directory.
3937
39382005-05-22  Frank Warmerdam  <[email protected]>
3939
3940	* libtiff/tif_dirread.c: Changed the code that computes
3941	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3942	zero. This is a common case with GDAL indicating a "null" tile/strip.
3943
39442005-05-17  Andrey Kiselev  <[email protected]>
3945
3946	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
3947
39482005-05-06  Frank Warmerdam  <[email protected]>
3949
3950	* libtiff/tif_dirread.c: Applied similar change to
3951	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
3952
3953	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3954
3955	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
3956
39572005-05-06  Andrey Kiselev  <[email protected]>
3958	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
3959	added new option '-b' to use interpolation in output PDF files (Bruno
3960	Ledoux).
3961
39622005-05-05  Frank Warmerdam  <[email protected]>
3963
3964	* libtiff/tif_dirread.c: Ensure that broken files with too many
3965	values in PerSampleShorts work ok instead of crashing.
3966
3967	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3968
39692005-04-27  Andrey Kiselev  <[email protected]>
3970
3971	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
3972	input file.
3973
39742005-04-15  Andrey Kiselev  <[email protected]>
3975
3976	* libtiff/tif_predict.c: Added ability to encode floating point
3977	predictor, as per TIFF Technical Note 3.
3978
39792005-04-14  Andrey Kiselev  <[email protected]>
3980
3981	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
3982	floating point predictor, as per TIFF Technical Note 3.
3983
39842005-04-13  Andrey Kiselev  <[email protected]>
3985
3986	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
3987	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
3988	swap 24-bit floating point values.
3989
3990	* libtiff/tiff.h: Added predictor constants.
3991
39922005-04-08  Andrey Kiselev  <[email protected]>
3993
3994	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
3995	values in _TIFFVSetField() function. Inspired by the bug
3996
3997	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3998
3999	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
4000	as per bug
4001
4002	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
4003
40042005-03-30  Andrey Kiselev  <[email protected]>
4005
4006	* libtiff/tif_open.c: Do not read header in case the output file
4007	should be truncated (Ron).
4008
4009	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
4010	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
4011
4012	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
4013
40142005-03-22  Andrey Kiselev  <[email protected]>
4015
4016	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
4017	rpath option.
4018
40192005-03-21  Andrey Kiselev  <[email protected]>
4020
4021	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
4022	tags.
4023
40242005-03-18  Andrey Kiselev  <[email protected]>
4025
4026	* libtiff/dirinfo.c: Added DNG tags.
4027
4028	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
4029	handling code.
4030
4031	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
4032	added DNG 1.1.0.0 tags.
4033
4034	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
4035	bug
4036
4037	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
4038
4039	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
4040
40412005-03-17  Andrey Kiselev  <[email protected]>
4042
4043	* nmake.opt: Build with Win32 CRT library by default.
4044
4045	* tools/tiff2ps.c: Fixed typo in page size handling code.
4046
4047	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
4048	by value.
4049
4050	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
4051
40522005-03-15  Andrey Kiselev  <[email protected]>
4053
4054	* libtiff 3.7.2 released.
4055
40562005-03-09  Andrey Kiselev  <[email protected]>
4057
4058	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
4059	floating point data; complain on unsupported bit depths.
4060
40612005-03-05  Andrey Kiselev  <[email protected]>
4062
4063	* tif_stream.cxx: Use ios namespace instead of ios_base to support
4064	GCC 2.95.
4065
4066	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
4067	Lee Howard for HylaFax DCS tag
4068	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
4069
40702005-03-04  Andrey Kiselev  <[email protected]>
4071
4072	* configure, configure.ac: Use -rpath option instead of -R as per bug
4073
4074	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
4075
4076	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
4077	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
4078	software. As per bug
4079
4080	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
4081
4082	* nmake.opt, html/build.html: Add more comments, change the config
4083	file organization a bit as per bug
4084
4085	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
4086
4087	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
4088	as per bug
4089
4090	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
4091
40922005-03-03  Andrey Kiselev  <[email protected]>
4093
4094	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
4095	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
4096
4097	* tools/fax2ps.c: Replace insecure mktemp() function with the
4098	tmpfile() as per bug
4099
4100	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
4101
41022005-02-04  Andrey Kiselev  <[email protected]>
4103
4104	* libtiff/tiff.h: Changed the int8 definition to be always signed char
4105	as per bug
4106
4107	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
4108
4109	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
4110	block as per bug
4111
4112	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
4113
41142005-02-03  Bob Friesenhahn  <[email protected]>
4115
4116	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
4117	display more correctly.  Images display brighter than they should
4118	on a Sun workstation.
4119
41202005-02-03  Andrey Kiselev  <[email protected]>
4121
4122	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
4123	suspicious values in the tags. As per bugs
4124
4125	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
4126
4127	and
4128
4129	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
4130
4131	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
4132
4133	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
4134
41352005-01-31  Bob Friesenhahn  <[email protected]>
4136
4137	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
4138	(TIFFTAG_TILELENGTH): Corrected description.
4139
41402005-01-30  Andrey Kiselev  <[email protected]>
4141
4142	* configure.ac: Fixes for --with-docdir option as per bug
4143
4144	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
4145
4146	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
4147	bug
4148
4149	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
4150
4151	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
4152	Michael Rinne and Edward Lam.
4153
41542005-01-15  Andrey Kiselev  <[email protected]>
4155
4156	* configure.ac: Make the documentation directory location configurable
4157	via the --with-docdir option (as suggested by Jeremy C. Reed).
4158
4159	* libtiff/tif_color.c: Use double as the second argument of pow()
4160	function in TIFFCIELabToRGBInit(). As per bug
4161
4162	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
4163
4164	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
4165	integer as per bug
4166
4167	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
4168
4169	* libtiff/tif_getimage.c: Always fill the error message buffer in
4170	TIFFRGBAImageBegin() as per bug
4171
4172	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
4173
41742005-01-12  Andrey Kiselev  <[email protected]>
4175
4176	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
4177	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
4178	tags as per bug
4179
4180	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
4181
4182	* libtiff/tif_win32.c: Fixed message formatting in functions
4183	Win32WarningHandler() and Win32ErrorHandler() as per bug
4184
4185	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
4186
4187	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
4188	per bug
4189
4190	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
4191
41922005-01-11  Andrey Kiselev  <[email protected]>
4193
4194	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
4195	"C"' section as per bug
4196
4197	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
4198
4199	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
4200	compiler to avoid double definition of BSD types as per bug
4201
4202	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4203
4204	* libtiff/Makefile.am: Place the C++ stream API in the separate
4205	library called libtiffxx to avoid unneeded dependencies. Probably
4206	there will be more C++ API in the future. As per bugs
4207
4208	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
4209
4210	and
4211
4212	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
4213
42142005-01-05  Andrey Kiselev  <[email protected]>
4215
4216	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
4217	wrong tag counts (Dmitry V. Levin, Martin Pitt).
4218
4219	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
4220	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
4221
42222004-12-25  Andrey Kiselev  <[email protected]>
4223
4224	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
4225	RGB-images as per bug
4226
4227	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
4228
4229
4230	* tools/tiffset.c: Convert character option to integer value as per
4231	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
4232
42332004-12-20  Andrey Kiselev  <[email protected]>
4234
4235	* libtiff 3.7.1 released.
4236
4237	* html/tiffset.1.html: Add missed manual page as per bug
4238
4239	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
4240
4241	* libtiff/tiff.h: Revert back libtiff data type definitions as per
4242	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
4243
42442004-12-19  Andrey Kiselev  <[email protected]>
4245
4246	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
4247	checking for tag count in TIFFReadDirectory() function. As per bug
4248
4249	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
4250
4251	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
4252	CheckMallock() function.
4253
4254	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
4255	RGB-images as per bug
4256
4257	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
4258
42592004-12-15  Frank Warmerdam  <[email protected]>
4260
4261	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
4262	SunPro compiler.
4263
42642004-12-11  Bob Friesenhahn  <[email protected]>
4265
4266	* autogen.sh: aclocal and autoheader should be executed after
4267	libtoolize.  Also add '-I .' to aclocal invocation to check
4268	current directory for macros.
4269
42702004-12-10  Andrey Kiselev  <[email protected]>
4271
4272	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
4273	as per bugs
4274
4275	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
4276
4277	and
4278
4279	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
4280
42812004-12-04  Andrey Kiselev  <[email protected]>
4282
4283	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
4284
4285	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
4286
4287	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
4288	mode as per bug
4289
4290	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
4291
4292	* libtiff/tif_config.in.vc: Removed unneded definitions for
4293	read/open/close/lseek functions to fix the
4294
4295	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
4296
42972004-12-03  Andrey Kiselev  <[email protected]>
4298
4299	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
4300	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
4301	must be removed in the future, as it was never used properly. As per
4302	bug
4303
4304	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
4305
43062004-11-30  Bob Friesenhahn  <[email protected]>
4307
4308	* libtiff/tif_jpeg.c: Added a work-around in order to allow
4309	compilation with the heavily modified version of libjpeg delivered
4310	with Cygwin.
4311
43122004-11-29  Andrey Kiselev  <[email protected]>
4313
4314	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
4315	counts. As per bug
4316
4317	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
4318
4319	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
4320
4321	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
4322
43232004-11-28  Andrey Kiselev  <[email protected]>
4324
4325	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
4326	on Windows.
4327
4328	* nmake.opt: Add missed DLLNAME variable.
4329
43302004-11-26  Frank Warmerdam  <[email protected]>
4331
4332	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
4333
43342004-11-24  Andrey Kiselev  <[email protected]>
4335
4336	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
4337	per bug
4338
4339	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
4340
4341	* man/tiffset.1: Added manual page for tiffset tool written by Jay
4342	Berkenbilt. As per bug
4343
4344	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
4345
43462004-11-23  Frank Warmerdam  <[email protected]>
4347
4348	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
4349
43502004-11-21  Frank Warmerdam  <[email protected]>
4351
4352	* html/document.html: Updated Adobe web links as per email from Joris.
4353
43542004-11-21  Andrey Kiselev  <[email protected]>
4355
4356	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
4357	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
4358	use C++ streams should #include <tiffio.hxx>.
4359
43602004-11-13  Andrey Kiselev  <[email protected]>
4361
4362	* libtiff/tiff.h: Added Adobe DNG tags.
4363
4364	* libtiff/tif_win32.c: Typo fixed.
4365
4366	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
4367	be compliant with the latest standard. Appropriate additions in
4368	makefiles now completed.
4369
43702004-11-11  Andrey Kiselev  <[email protected]>
4371
4372	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
4373	different tag types. As per bug
4374
4375	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
4376
43772004-11-10  Andrey Kiselev  <[email protected]>
4378
4379	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
4380	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
4381
43822004-11-09  Andrey Kiselev  <[email protected]>
4383
4384	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
4385
43862004-11-07  Andrey Kiselev  <[email protected]>
4387
4388	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
4389	contributed by Edward Lam (see
4390	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
4391	Though no changes in any makefiles yet.
4392
43932004-11-05  Frank Warmerdam  <[email protected]>
4394
4395	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
4396	is bad. This is the callers responsibility.
4397	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
4398
43992004-11-05  Andrey Kiselev  <[email protected]>
4400
4401	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
4402	function to work with the double byte strings (used to represent
4403	filenames in some locales). As per bug
4404
4405	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
4406
4407	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
4408	Compression tags of type LONG from broken TIFFS as per bug
4409
4410	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
4411
4412	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
4413	the writecount should have uint32 type. As per bug
4414
4415	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
4416
4417	* libtiff/tif_write.c: Fixed wrong if() statement in
4418	TIFFAppendToStrip() function as per bug
4419
4420	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
4421
44222004-11-04  Andrey Kiselev  <[email protected]>
4423
4424	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
4425	field. The caller should supply a count when setting this field. As
4426	per bug
4427
4428	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
4429
4430	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
4431	uint32 count. Use this type everywhere.
4432
44332004-11-03  Frank Warmerdam  <[email protected]>
4434
4435	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
4436
44372004-11-02  Frank Warmerdam  <[email protected]>
4438
4439	* tools/tiff2rgba.c: removed extra newlines in usage message.
4440
44412004-10-30  Andrey Kiselev  <[email protected]>
4442
4443	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
4444
4445	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
4446	tags (Tristan Hill).
4447
44482004-10-30  Frank Warmerdam  <[email protected]>
4449
4450	* libtiff/tiffiop.h: added fallback definition of assert() if we
4451	don't have assert.h.
4452
44532004-10-29  Andrey Kiselev  <[email protected]>
4454
4455	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
4456	choosing when the incorrect Group4Options tag set. As per bug
4457
4458	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
4459
4460	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
4461	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
4462	TIFFWriteNormalTag().
4463
44642004-10-28  Andrey Kiselev  <[email protected]>
4465
4466	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
4467	tags (Peter Fales).
4468
4469	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
4470
44712004-10-28  Frank Warmerdam  <[email protected]>
4472
4473	* tools/tiff2pdf.c: added casts to avoid warnings.
4474
4475	* libtiff/libtiff.def: Added several more entry points required
4476	to link fax2tiff.c against the DLL on windows.
4477
44782004-10-27  Andrey Kiselev  <[email protected]>
4479
4480	* configure, configure.ac: Added --enable-rpath option to embed linker
4481	paths into library binary.
4482
44832004-10-26  Andrey Kiselev  <[email protected]>
4484
4485	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
4486
4487	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
4488	(Vladimir Nadvornik, Dmitry V. Levin).
4489
44902004-10-16  Andrey Kiselev  <[email protected]>
4491
4492	* libtiff 3.7.0 released.
4493
44942004-10-15  Bob Friesenhahn  <[email protected]>
4495
4496	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
4497	in this file so its inclusion is removed.  Including stdio.h
4498	sometimes incurs an INT32 typedef conflict between MinGW's
4499	basetsd.h and libjpeg's jmorecfg.h.
4500
45012004-10-15  Andrey Kiselev  <[email protected]>
4502
4503	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
4504
45052004-10-13  Bob Friesenhahn  <[email protected]>
4506
4507	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
4508	conflict noticed under MinGW.
4509	* ltmain.sh: Fix for MinGW compilation.
4510
45112004-10-13  Frank Warmerdam  <[email protected]>
4512
4513	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
4514	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
4515
45162004-10-12  Andrey Kiselev  <[email protected]>
4517
4518	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
4519	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
4520	properly (Dmitry V. Levin, Marcus Meissner).
4521
45222004-10-11  Andrey Kiselev  <[email protected]>
4523
4524	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
4525	to TIFF_IFD.
4526
45272004-10-10  Andrey Kiselev  <[email protected]>
4528
4529	* tools/bmp2tif.c: Check the space allocation results.
4530
45312004-10-09  Andrey Kiselev  <[email protected]>
4532
4533	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
4534	of the TIFFDirectory structure with the 0 instead of -1 to avoid
4535	confusing integer overflows in TIFFTileRowSize() for striped images.
4536
4537	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
4538	by Ross A. Finlayson.
4539
4540	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
4541
4542	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
4543
45442004-10-08  Frank Warmerdam  <[email protected]>
4545
4546	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
4547	of tif_fieldinfo.
4548
4549	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
4550
45512004-10-04  Bob Friesenhahn  <[email protected]>
4552
4553	* contrib/iptcutil/README: Added the missing README which goes
4554	along with iptcutil.
4555
45562004-10-03  Andrey Kiselev  <[email protected]>
4557
4558	* libtiff/tif_compress.c: Improved error reporting in
4559	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
4560
45612004-10-02  Andrey Kiselev  <[email protected]>
4562
4563	* libtiff 3.7.0beta2 released.
4564
4565	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
4566	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
4567	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
4568	allocations and	integer overflows (Dmitry V. Levin).
4569
4570	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
4571
45722004-10-01  Frank Warmerdam  <[email protected]>
4573
4574	* libtiff/tif_open.c: added a more informative message if a BigTIFF
4575	file is opened.
4576
45772004-09-30  Frank Warmerdam  <[email protected]>
4578
4579	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
4580	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
4581	in the Adobe XMP Specification.
4582
45832004-09-29  Andrey Kiselev  <[email protected]>
4584
4585	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
4586	memset().
4587
4588	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
4589	from Dmitry V. Levin to fix possible integer overflow problems.
4590
45912004-09-28  Andrey Kiselev  <[email protected]>
4592
4593	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
4594	(Dmitry V. Levin).
4595
45962004-09-26  Andrey Kiselev  <[email protected]>
4597
4598	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
4599	Optimize checking for the strip bounds.
4600
4601	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
4602	TIFFRasterScanlineSize() functions report zero in the case of integer
4603	overflow now. Properly handle this case in TIFFReadDirectory()
4604	(patches from Dmitry V. Levin).
4605
46062004-09-25  Andrey Kiselev  <[email protected]>
4607
4608	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
4609	macro where appropriate.
4610
4611	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
4612	noted by Gennady Khokhorin.
4613
4614	* libtiff/tif_dirread.c: Always check the return values, returned
4615	by the _TIFFmalloc() (Dmitry V. Levin).
4616
4617	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
4618	functions (Dmitry V. Levin).
4619
4620	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
4621	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
4622	TIFFGrowStrips() (found by Dmitry V. Levin).
4623
46242004-09-24  Andrey Kiselev  <[email protected]>
4625
4626	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
4627	to get the list of configured codecs.
4628
4629	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
4630	Dmitry V. Levin.
4631
46322004-09-23  Andrey Kiselev  <[email protected]>
4633
4634	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
4635	possible integer overflow in CheckMalloc() function.
4636
46372004-09-22  Andrey Kiselev  <[email protected]>
4638
4639	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
4640	of plain TIFFhowmany() where appropriate.
4641
46422004-09-21  Andrey Kiselev  <[email protected]>
4643
4644	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
4645
46462004-09-19  Andrey Kiselev  <[email protected]>
4647
4648	* libtiff 3.7.0beta released.
4649
4650	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
4651	overruns fixed, as noted by Chris Evans.
4652
46532004-09-14  Bob Friesenhahn  <[email protected]>
4654
4655	* commit: Added a script to make it more convenient to commit
4656	updates.  The CVS commit message is extracted from this ChangeLog
4657	file.
4658
46592004-09-14  Andrey Kiselev  <[email protected]>
4660
4661	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
4662	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
4663	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
4664	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
4665	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
4666	tif_config.h.in, tiffiop.h}:
4667	Get rid of BSD data types (u_char, u_short, u_int, u_long).
4668
46692004-09-13  Bob Friesenhahn  <[email protected]>
4670
4671	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
4672	specification. Reference libtiff bug tracking system to submit
4673	private tag additions.
4674
46752004-09-12  Bob Friesenhahn  <[email protected]>
4676
4677	* tools/tiffgt.c: Include "tif_config.h".
4678
4679	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
4680	tiffgt.  This results in the 'compile' script being added to the
4681	project.
4682
4683	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
4684	required to find OpenGL headers necessary to build tiffgt.  Also
4685	ensure that the libtiff that we built is used rather than some other
4686	libtiff installed on the system.
4687
46882004-09-12  Andrey Kiselev  <[email protected]>
4689
4690	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
4691	libraries.
4692
46932004-09-11  Bob Friesenhahn  <[email protected]>
4694
4695	* configure.ac: Pass library configuration defines via
4696	tif_config.h rather than extending CPPFLAGS. Configure a
4697	libtiff/tiffconf.h in order to satisfy application requirements
4698	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
4699	this causes failure to build on systems which properly respect
4700	this request.
4701
4702	* libtiff/tiffconf.h.in: New file to act as the template for the
4703	configured tiffconf.h
4704
4705	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
4706
47072004-09-10  Frank Warmerdam  <[email protected]>
4708
4709	* html/internals.html: Split off a discussion of adding new tags
4710	into addingtags.html.
4711
47122004-09-10  Andrey Kiselev  <[email protected]>
4713
4714	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
4715
4716	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
4717
4718	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4719
4720	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
4721
4722	* libtiff/tif_dirread.c: Don't reject to read tags of the
4723	SamplesPerPixel size when the tag count is greater than number of
4724	samples as per bug
4725
4726	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
4727
4728	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
4729	defining int8/uint8/... etc. types. As per bug
4730
4731	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
4732
47332004-09-09  Frank Warmerdam  <[email protected]>
4734
4735	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
4736	to avoid compile warnings about getopt() and a few other things.
4737
47382004-09-02  Andrey Kiselev  <[email protected]>
4739
4740	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
4741	assigning magic in TIFFFetchFloat().
4742
47432004-09-01  Andrey Kiselev  <[email protected]>
4744
4745	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
4746	to avoid requirement for tiffiop.h inclusion in some applications. See
4747	here
4748
4749	http://www.asmail.be/msg0054799560.html
4750
4751	for details.
4752
4753	* tools/fax2tiff.c: Use the new functions in the code.
4754
47552004-08-25  Andrey Kiselev  <[email protected]>
4756
4757	* tools/tiff2pdf.c: Initialize arrays properly.
4758
4759	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
4760	properly initialize array in PSDataBW().
4761
47622004-08-24  Andrey Kiselev  <[email protected]>
4763
4764	* tools/tiff2pdf.c: More fixes for bug
4765
4766	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4767
4768	from Ross Finlayson.
4769
47702004-08-23  Andrey Kiselev  <[email protected]>
4771
4772	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4773
4774	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4775	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4776
4777	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4778
4779	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4780
47812004-08-20  Andrey Kiselev  <[email protected]>
4782
4783	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4784	that the input file has compression, photometric interpretation,
4785	etcetra, tags or if not than a more descriptive error is returned.
4786
4787	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4788	code, responsible for tag data type checking.
4789
47902004-08-19  Andrey Kiselev  <[email protected]>
4791
4792	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4793	variable as per bug
4794
4795	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4796
47972004-08-16  Andrey Kiselev  <[email protected]>
4798
4799	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4800	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4801
48022004-08-01  Andrey Kiselev  <[email protected]>
4803
4804	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4805	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4806
48072004-07-24  Andrey Kiselev  <[email protected]>
4808
4809	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4810	separate package. All libtiff tools are updated to not advertise an
4811	abcence of LZW support.
4812
48132004-07-12  Andrey Kiselev  <[email protected]>
4814
4815	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4816
48172004-07-11  Andrey Kiselev  <[email protected]>
4818
4819	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4820	messages, as suggested by Bernd Herd.
4821
48222004-07-03  Andrey Kiselev  <[email protected]>
4823
4824	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4825	when setting custom tags by value. Reported by Eric Fieleke.
4826
48272004-06-14  Andrey Kiselev  <[email protected]>
4828
4829	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4830
48312004-06-08  Andrey Kiselev  <[email protected]>
4832
4833	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4834	into TIFFs.
4835
48362004-06-07  Andrey Kiselev  <[email protected]>
4837
4838	* libtiff 3.7.0alpha released.
4839
48402004-06-06  Andrey Kiselev  <[email protected]>
4841
4842	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4843	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4844	ones :-).
4845
4846	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4847	problems in 64-bit environment).
4848
48492004-06-05  Andrey Kiselev  <[email protected]>
4850
4851	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4852	Tags can be supplied by the mnemonic name or number.
4853
4854	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4855	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4856
48572004-05-27  Andrey Kiselev  <[email protected]>
4858
4859	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4860	markers as per bug
4861
4862	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4863
48642004-05-24  Andrey Kiselev  <[email protected]>
4865
4866	* tools/tiffsplit.c: Don't forget to copy Photometric
4867	Interpretation tag.
4868
48692004-05-20  Andrey Kiselev  <[email protected]>
4870
4871	* libtiff/{tif_open.c, tiffio.h}: New function added:
4872	TIFFIsBigEndian(). Function returns nonzero if given was file written
4873	in big-endian order.
4874
4875	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4876	files. Now output files will be written using the same byte order
4877	flag as	in the input image. See
4878
4879	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4880
4881	for details.
4882
48832004-05-19  Frank Warmerdam  <[email protected]>
4884
4885	* libtiff/tif_print.c: added (untested) support for printing
4886	SSHORT, SLONG and SRATIONAL fields.
4887
4888	* tools/tiffcp.c: close output file on normal exit.
4889
48902004-05-17  Andrey Kiselev  <[email protected]>
4891
4892	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4893	if compression type mismatches. See
4894
4895	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4896
48972004-04-30  Andrey Kiselev  <[email protected]>
4898
4899	* libtiff/tif_strip.c: Never return 0 from the
4900	TIFFNumberOfStrips().
4901
49022004-04-29  Andrey Kiselev  <[email protected]>
4903
4904	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4905	store single SampleFormat value for multisampled images. See
4906
4907	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4908
49092004-04-25  Andrey Kiselev  <[email protected]>
4910
4911	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4912	int16 and int32 types to avoid complains on some compilers. Details at
4913
4914	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4915
49162004-04-20  Andrey Kiselev  <[email protected]>
4917
4918	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4919
4920	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4921
49222004-04-14  Andrey Kiselev  <[email protected]>
4923
4924	* libtiff/tif_write.c: Allow in-place updating of the compressed
4925	images (don't work properly with all codecs). For details see GDAL bug
4926
4927	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4928
49292004-04-06  Andrey Kiselev  <[email protected]>
4930
4931	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4932	in the Intergarph JPEG compressed TIFF images as per bug:
4933
4934	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4935
49362004-04-04  Frank Warmerdam  <[email protected]>
4937
4938	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4939	via bad2.
4940
49412004-03-26  Andrey Kiselev  <[email protected]>
4942
4943	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4944	JPEG compression of grayscale images.
4945
4946	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
4947	present in the input image.
4948
49492004-03-19  Andrey Kiselev  <[email protected]>
4950
4951	* {many}: The first attempt to switch to autotools.
4952
49532004-03-03  Andrey Kiselev  <[email protected]>
4954
4955	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
4956	TIFFClientOpen() when the appropriate client functions was not
4957	supplied by user.
4958
49592004-03-02  Frank Warmerdam  <[email protected]>
4960
4961	* tools/ycbcr.c: fixed main() declaration as per:
4962	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
4963
49642004-02-26  Andrey Kiselev  <[email protected]>
4965
4966	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
4967	images. Reported by Artem Mirolubov.
4968
4969	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
4970	tag type in TIFFFetchNormalTag() as per bug
4971
4972	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
4973
49742004-02-17  Frank Warmerdam  <[email protected]>
4975
4976	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
4977	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
4978
49792004-02-05  Andrey Kiselev  <[email protected]>
4980
4981	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
4982	bug
4983
4984	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
4985
4986	But we need more work on fax codec to support update mode.
4987
49882004-01-30  Frank Warmerdam  <[email protected]>
4989
4990	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
4991	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
4992	Scott Reynolds.
4993
49942004-01-29  Andrey Kiselev  <[email protected]>
4995
4996	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
4997	and TIFFTAG_INDEXED as per bug
4998
4999	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
5000
5001	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
5002	NULL before proceeding further as per bug
5003
5004	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
5005
5006	Check results, returned by the TIFFFdOpen() before returning and close
5007	file if TIFFFdOpen() failed as per bug
5008
5009	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
5010
5011	* libtiff/tif_open.c: More fixes for
5012
5013	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
5014
50152004-01-28  Andrey Kiselev  <[email protected]>
5016
5017	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
5018	TIFFCleanup() from the TIFFClose() in order to fix the bug
5019
5020	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
5021
5022	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
5023	InkNames tag as per bug
5024
5025	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
5026
5027	Memory leak fixed.
5028
50292004-01-21  Frank Warmerdam  <[email protected]>
5030
5031	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
5032	are field_passcount=TRUE properly.  Arguably anonymous custom tags
5033	should be declared as passcount=FALSE, but I don't want to change
5034	that without a careful review.
5035
50362004-01-20  Andrey Kiselev  <[email protected]>
5037
5038	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
5039	stripped image in TIFFWriteBufferSetup(). As per bug
5040
5041	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
5042
50432004-01-11  Andrey Kiselev  <[email protected]>
5044
5045	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
5046	patch from Gerben Koopmans.
5047
5048	* libtiff/tif_dirread.c: Check field_passcount value before setting
5049	the value of undefined type, patch from Gerben Koopmans.
5050
50512004-01-02  Andrey Kiselev  <[email protected]>
5052
5053	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
5054	non-RGB images.
5055
50562003-12-31  Andrey Kiselev  <[email protected]>
5057
5058	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
5059	pointer passed. Patch supplied by Larry Grill.
5060
5061	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
5062	suggested by Jeremy C. Reed.
5063
50642003-12-26  Andrey Kiselev  <[email protected]>
5065
5066	* libtiff 3.6.1 released.
5067
50682003-12-24  Andrey Kiselev  <[email protected]>
5069
5070	* config.guess, config.sub: Updated from the recent upstream.
5071
50722003-12-22  Andrey Kiselev  <[email protected]>
5073
5074	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
5075	More cleanups in color conversion interface, added appropriate manual
5076	page.
5077
50782003-12-19  Andrey Kiselev  <[email protected]>
5079
5080	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
5081	per bug
5082
5083	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
5084
5085	* tools/tiff2ps.c: Added support for alpha channel. Fixes
5086
5087	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
5088
5089	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
5090	Interface for Lab->RGB color conversion is finally cleaned up.
5091	Added support for ReferenceBlackWhite tag handling when converted from
5092	YCbCr color space. The latter closes
5093
5094	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
5095
50962003-12-07  Andrey Kiselev  <[email protected]>
5097
5098	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
5099
5100	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
5101	library.
5102
51032003-12-06  Andrey Kiselev  <[email protected]>
5104
5105	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
5106	file and properly use it for CIE Lab->RGB transform.
5107
51082003-12-04  Andrey Kiselev  <[email protected]>
5109
5110	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
5111	conversion routines now in the tif_color.c module. New function
5112	TIFFYCbCrtoRGB() available in TIFF API.
5113
5114	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
5115
51162003-12-03  Andrey Kiselev  <[email protected]>
5117
5118	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
5119	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
5120	module.
5121
5122	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
5123	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
5124	Finally resolved problems with orientation handling. TIFFRGBAImage
5125	interface now properly supports all possible orientations, i.e. images
5126	will be flipped both in horizontal and vertical directions if
5127	required. 'Known bugs' section now removed from the appropriate manual
5128	pages. Closed bug entry:
5129
5130	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
5131
51322003-12-02  Andrey Kiselev  <[email protected]>
5133
5134	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
5135	function calls as per bug
5136
5137	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
5138
51392003-11-28 Ross Finlayson  <[email protected]>
5140
5141	* tools/tiff2pdf.c:  Some bugs fixed.
5142
51432003-11-27  Andrey Kiselev  <[email protected]>
5144
5145	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
5146	reported by Antonio Scuri.
5147
5148	* man/tiff2pdf.1: Few improvements in page layout.
5149
5150	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
5151	 Added support fpr tiff2pdf manual page.
5152
51532003-11-26 Ross Finlayson  <[email protected]>
5154
5155	* /man/tiff2pdf.1:  File added to repository.
5156
51572003-11-26  Andrey Kiselev  <[email protected]>
5158
5159	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
5160	 Added support fpr tiff2pdf utility.
5161
51622003-11-25  Ross Finlayson  <[email protected]>
5163
5164	* /tools/tiff2pdf.c:  File added to repository.
5165
51662003-11-22  Andrey Kiselev  <[email protected]>
5167
5168	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
5169
51702003-11-21  Andrey Kiselev  <[email protected]>
5171
5172	* /tools/raw2tiff.c: #include <getopt.h> removed.
5173
5174	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
5175	sgigt utility removed and replaced with the completely rewritten
5176	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
5177	there is a lot of things to improve.
5178
5179	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
5180	extract the fields from the OJPEG files. Patch supplied by Ross
5181	Finlayson.
5182
5183	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
5184	Added new function TIFFIsCODECConfigured(), suggested by Ross
5185	Finlayson.
5186
51872003-11-18  Andrey Kiselev  <[email protected]>
5188
5189	* libtiff/tif_dirinfo.c: Implemented binary search in
5190	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
5191
5192	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
5193	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
5194
51952003-11-17  Frank Warmerdam  <[email protected]>
5196
5197	* tif_dirread.c: do not mark all anonymously defined tags to be
5198	IGNOREd.
5199
52002003-11-17  Andrey Kiselev  <[email protected]>
5201
5202	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
5203	TIFFDataWidth() function insted of tiffDataWidth array.
5204
52052003-11-16  Andrey Kiselev  <[email protected]>
5206
5207	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
5208	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
5209
52102003-11-15  Frank Warmerdam  <[email protected]>
5211
5212	* Makefile.in: fixed missing backslash for tif_color.c in list.
5213
52142003-11-13  Andrey Kiselev  <[email protected]>
5215
5216	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
5217	New color space conversion code: CIE L*a*b* 1976 images now supported
5218	by the TIFFRGBAImage interface. All introduced routines go to new
5219	module tif_color.c. Eventually all color conversion functions should
5220	be moved there.
5221
52222003-11-12  Andrey Kiselev  <[email protected]>
5223
5224	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
5225	with the reverse byte order (it is reported by the magic header
5226	field). Problem reported by Andreas Wiesmann.
5227
5228	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
5229	calculation function. Guessing mechanics now documented in manual page.
5230
52312003-11-11  Andrey Kiselev  <[email protected]>
5232
5233	* tools/raw2tiff.c: Implemented image size guessing using
5234	correlation coefficient calculation between two neighbour lines.
5235
52362003-11-09  Frank Warmerdam  <[email protected]>
5237
5238	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
5239	planarconfig_contig case in TIFFComputeTile().
5240
5241	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
5242
52432003-11-09  Andrey Kiselev  <[email protected]>
5244
5245	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
5246
52472003-11-07  Andrey Kiselev  <[email protected]>
5248
5249	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
5250	Added TIFFRawStripSize() function as suggested by Chris Hanson.
5251
52522003-11-03  Andrey Kiselev  <[email protected]>
5253
5254	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
5255	per bug
5256
5257	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
5258
52592003-10-29  Andrey Kiselev  <[email protected]>
5260
5261	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
5262
5263	* html/build.html: Added note about GNU make requirement.
5264
52652003-10-25  Andrey Kiselev  <[email protected]>
5266
5267	* Makefile.in: Fixes in using MAKEFLAGS as per bug
5268
5269	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
5270
5271	* port/install.sh.in: Option -p added to the mkdir command to create
5272	all directory tree structure before installing.
5273
52742003-10-18  Andrey Kiselev  <[email protected]>
5275
5276	* /tools/tiff2ps.c: #include <strings.h> replaced with the
5277	#include <string.h>.
5278
52792003-10-16  Andrey Kiselev  <[email protected]>
5280
5281	* Makefile.in: Add an absolute path to the test_pics.sh call.
5282
52832003-10-12  Andrey Kiselev  <[email protected]>
5284
5285	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
5286	typedefs.
5287
52882003-10-09  Andrey Kiselev  <[email protected]>
5289
5290	* configure, libtiff/{Makefile.in, mkversion.c}:
5291	Relative buildings fixed.
5292
5293	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
5294	rule.
5295
52962003-10-07  Andrey Kiselev  <[email protected]>
5297
5298	* Makefile.in: Added missed v3.6.0.html.
5299
5300	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
5301	ORIENTATION_BOTLEFT.
5302
53032003-10-04  Andrey Kiselev  <[email protected]>
5304
5305	* 3.6.0 final release.
5306
53072003-10-03  Andrey Kiselev  <[email protected]>
5308
5309	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
5310	function TIFFReadRGBAImageOriented() implemented to retrieve raster
5311	array with user-specified origin position as suggested by Jason Frank.
5312	See
5313
5314	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
5315
5316	for details.
5317
5318	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
5319	instead of TIFFReadRGBAImage().
5320
5321	* tools/tiff2ps.c: Fixed possible endless loop as per bug
5322
5323	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
5324
53252003-09-30  Andrey Kiselev  <[email protected]>
5326
5327	* libtiff/tif_dirread.c: Check field counter against number of fields
5328	in order to fix
5329
5330	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
5331
5332	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
5333
5334	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
5335
53362003-09-25  Andrey Kiselev  <[email protected]>
5337
5338	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
5339	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
5340
5341	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
5342
53432003-09-23  Andrey Kiselev  <[email protected]>
5344
5345	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
5346
5347	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
5348
53492003-08-21  Andrey Kiselev  <[email protected]>
5350
5351	* tools/tiffmedian.c: int declaration replaced with the uint32 to
5352	support large images as per bug
5353
5354	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
5355
53562003-08-12  Andrey Kiselev  <[email protected]>
5357
5358 	* libtiff/Makefile.in: Fixed problem with building in different
5359	directory.
5360
5361	* tools/tiff2ps.c: Added missing #include <strings.h>.
5362
5363	* libtiff/tif_dirwrite.c: More fixes for custom tags code
5364	from Ashley Dreier.
5365
53662003-08-07  Andrey Kiselev  <[email protected]>
5367
5368	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
5369	Patch submitted by Balatoni Denes (with corrections from Tom
5370	Kacvinsky).
5371
5372	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
5373	being used. Reported by Tom Kacvinsky.
5374
5375	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
5376	reported by Ashley Dreier.
5377
5378	* libtiff/tif_print.c: Fixed problem with float tags reading, support
5379	for printing RATIONAL and BYTE tags added.
5380
53812003-08-05  Andrey Kiselev  <[email protected]>
5382
5383	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
5384	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
5385	problems with predictor initialization. Remove O_RDONLY check during
5386	state block allocation to be able open LZW compressed files in update
5387	mode.
5388
5389	Problem exist for libtiff version of the tif_lzw.c module. One from
5390	lzw-compression-kit hasn't such troubles.
5391
53922003-08-04  Frank Warmerdam  <[email protected]>
5393
5394	* libtiff/tif_write.c: modified tif_write.c so that the various
5395	encoded write functions use tif_postdecode() to apply byte order
5396	swapping (swab) to the application passed data buffer if the same
5397	would be done when reading.  This allows us to write pixel data with
5398	more than 8 bits per sample to existing files of a non-native byte
5399	order.  One side effect of this change is the applications buffer
5400	itself is altered in this case by the act of writing.
5401
5402	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
5403
54042003-07-25  Frank Warmerdam  <[email protected]>
5405
5406	* libtiff/tif_open.c: avoid signed/unsigned casting warning
5407	initializing typemask as per patch from J.A. Strother.
5408
5409	* tools/tiffcp.c: fixed signed/unsigned casting warning.
5410
5411	* libtiff/tif_print.c: dos2unix conversion.
5412
5413	* tools/tiffsplit.c: increased the maximum number of pages that
5414	can be split.  Patch provided by Andrew J. Montalenti.
5415
54162003-07-11  Andrey Kiselev  <[email protected]>
5417
5418	* tools/raw2tiff.c: Added option `-p' to explicitly select color
5419	space of input image data. Closes
5420
5421	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
5422
54232003-07-08  Frank Warmerdam  <[email protected]>
5424
5425	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
5426	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
5427	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
5428	avoid casting warning at /W4.
5429
54302003-07-03  Andrey Kiselev  <[email protected]>
5431
5432	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
5433
54342003-06-30  Andrey Kiselev  <[email protected]>
5435
5436	* libtiff/tif_pixarlog.c: Unused variables removed.
5437
5438	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
5439	EstimateStripByteCounts() as per bug
5440
5441	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
5442
5443	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
5444	64-bit architectures as per bug
5445
5446	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
5447
5448	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
5449	unknown data type.
5450
54512003-06-19  Frank Warmerdam  <[email protected]>
5452
5453	* libtiff/tif_print.c: fixed some serious bugs when printing
5454	custom tags ... almost certain to crash.
5455
5456	* libtiff/tif_dirread.c: Don't ignore custom fields that are
5457	autodefined.  Not sure how this got to be like this.
5458
54592003-06-18  Andrey Kiselev  <[email protected]>
5460
5461	* 3.6.0 Beta2 released.
5462
5463	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
5464	comparing as per bug
5465
5466	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
5467
5468	`-z' option now can be used to set the number of reported different
5469	bytes.
5470
54712003-06-09  Andrey Kiselev  <[email protected]>
5472
5473	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
5474	to -r option to get the entire image as one strip. See
5475
5476	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5477
5478	for details.
5479
54802003-06-04  Andrey Kiselev  <[email protected]>
5481
5482	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
5483	values as per bug
5484
5485	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5486
54872003-05-27  Frank Warmerdam  <[email protected]>
5488
5489	* libtiff/tif_jpeg.c: modified segment_height calculation to always
5490	be a full height tile for tiled images.  Also changed error to just
5491	be a warning.
5492
54932003-05-25  Andrey Kiselev  <[email protected]>
5494
5495	* tools/fax2tiff.c: Page numbering fixed, as per bug
5496
5497	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
5498
54992003-05-20  Andrey Kiselev  <[email protected]>
5500
5501	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5502	configure, Makefile.in:	Switched back to the old behaviour. Likely
5503	better solution should be found for OJPEG support.
5504
55052003-05-11  Andrey Kiselev  <[email protected]>
5506
5507	* libtiff/mkversion.c: Fixed problem with wrong string size when
5508	reading RELEASE-DATE file.
5509
55102003-05-07  Andrey Kiselev  <[email protected]>
5511
5512	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
5513	index was out of range.
5514
55152003-05-06  Andrey Kiselev  <[email protected]>
5516
5517	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5518	configure, Makefile.in:	Improved libtiff compilation with OJPEG
5519	support. Now no need for patching IJG JPEG library, hack requred by
5520	libtiff will be compiled and used in-place. Implemented with
5521	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
5522
5523	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
5524	TIFFVGetFieldDefaulted() function.
5525
55262003-05-05  Andrey Kiselev  <[email protected]>
5527
5528	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
5529	comments.
5530
5531	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
5532	was not copied from source image.
5533
5534	* libtiff/getimage.c: Workaround for some images without correct
5535	info about alpha channel as per bug
5536
5537	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
5538
55392003-04-29  Andrey Kiselev  <[email protected]>
5540
5541	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
5542	It basically allows one to use the /flateDecode filter for ZIP
5543	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
5544
5545	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
5546
5547	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
5548	as per bug
5549
5550	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
5551
55522003-04-17  Andrey Kiselev  <[email protected]>
5553
5554	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
5555	due to problems with multidirectory images. Quality of error messages
5556	improved.
5557
55582003-04-16  Andrey Kiselev  <[email protected]>
5559
5560	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
5561	encoded images. See bug entries
5562
5563	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
5564
5565	and
5566
5567	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5568
5569	* libtiff/tif_dirread.c: Additional check for StripByteCounts
5570	correctness. Fixes
5571
5572	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
5573
55742003-03-12  Andrey Kiselev  <[email protected]>
5575
5576	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
5577	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
5578	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
5579	tiffmedian.c}: Added library version reporting facility to all tools.
5580
55812003-03-06  Frank Warmerdam  <[email protected]>
5582
5583	* port/install.sh.in: Fixed problems with install producing paths
5584	like ///usr/local/lib on cygwin.
5585
55862003-02-27  Andrey Kiselev  <[email protected]>
5587
5588	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
5589	raw input page. Patch supplied by Julien Gaulmin. See
5590
5591	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
5592
5593	for details.
5594
55952003-02-26  Frank Warmerdam  <[email protected]>
5596
5597	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
5598	responsible for byte swapping complex image data.
5599
5600	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
5601	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
5602
56032003-02-07  Andrey Kiselev  <[email protected]>
5604
5605	* tools/ppm2tiff.c: Fixed problem with too many arguments.
5606
56072003-02-04  Andrey Kiselev  <[email protected]>
5608
5609	* tools/raw2tiff.c: Memory leak fixed.
5610
56112003-02-03  Andrey Kiselev  <[email protected]>
5612
5613	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
5614	(thanks, Julien!). More switches for fax2tiff tool for better control
5615	of input and output. Details at
5616
5617	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
5618
56192003-02-03  Frank Warmerdam  <[email protected]>
5620
5621	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
5622	library so that we can check if there is already any tile/strip data
5623	before deciding between creating a compressor or a decompressor.
5624
56252003-01-31  Frank Warmerdam  <[email protected]>
5626
5627	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
5628	a pre-existing compressed image.  That is, image writing to
5629	pre-existing compressed images is not allowed.
5630
5631	* libtiff/tif_open.c: Removed error if opening a compressed file
5632	in update mode.
5633
5634	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
5635
56362003-01-31  Andrey Kiselev  <[email protected]>
5637
5638	* config.guess, config.sub: Updated to recent upstream versions.
5639
56402003-01-15  Frank Warmerdam  <[email protected]>
5641
5642	* cut 3.6.0 Beta release.
5643
56442002-12-20  Andrey Kiselev  <[email protected]>
5645
5646	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
5647	in wrong way as per bug
5648
5649	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
5650
56512002-12-17  Frank Warmerdam  <[email protected]>
5652
5653	* libtiff/tif_dirread.c: Allow wrong sized arrays in
5654	TIFFFetchStripThing().
5655
5656	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
5657
56582002-12-02  Frank Warmerdam  <[email protected]>
5659
5660	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
5661	Was using realloc even first time.  Fix by Igor Venevtsev.
5662
56632002-11-30  Frank Warmerdam  <[email protected]>
5664
5665	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
5666	field value.
5667
5668	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
5669	tags in TIFFVGetField() ... added missing break.
5670
56712002-10-14  Frank Warmerdam  <[email protected]>
5672
5673	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
5674	the scanline buffer long enough when writing rgb triplets.
5675	The scanline needs to be 3 X the number of dots or else it will
5676	contain	an incomplete triplet and programs that try to separate
5677	the eps by redefining the colorimage operator will get messed up.
5678	Patch supplied by William Bader.
5679
5680	* Makefile.in: added tif_extension.c to file list as per
5681	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
5682
56832002-10-11  Andrey Kiselev  <[email protected]>
5684
5685	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
5686	large files (>2GiB) supporting. New option in the config.site:
5687	LARGEFILE="yes". Should be enough for I/O of the large files.
5688
56892002-10-10  Frank Warmerdam  <[email protected]>
5690
5691	* libtiff/html/v3.6.0.html: new release notes.
5692
5693	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
5694	link for Andrey.  Pointer to v3.6.0.html.
5695
5696	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
5697
56982002-10-07  Andrey Kiselev  <[email protected]>
5699	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
5700	(thanks, Sebastian!). New switches:
5701	-b # for a bottom margin of # inches
5702	-c   center image
5703	-l # for a left margin of # inches
5704	-r   rotate the image by 180 degrees
5705	New features merged with code for shrinking/overlapping.
5706	Previously added -c and -n switches (for overriding PS units) renamed
5707	in -x and -y respectively.
5708
5709	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
5710
5711	* html/man/*.html: Updated from actual manual pages.
5712
57132002-10-06  Frank Warmerdam  <[email protected]>
5714
5715	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
5716	size on windows.  Use #define boolean hack.
5717
5718	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
5719
5720	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
5721	USING_VISUALAGE is defined.
5722
5723	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5724
57252002-10-03  Frank Warmerdam  <[email protected]>
5726
5727	* libtiff/tiff.h: added COMPRESSION_JP2000.
5728
57292002-10-02  Andrey Kiselev  <[email protected]>
5730
5731	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
5732	by the TIFFFetchByteArray() function. Should finally resolve
5733
5734	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5735
5736	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
5737
5738	* html/Makefile.in: New targets added: html and groffhtml for
5739	producing HTML representations of the manual pages automatically.
5740	html target uses man2html tool, groffhtml uses groff tool.
5741
57422002-09-29  Frank Warmerdam  <[email protected]>
5743
5744	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
5745	from John H. DuBois III.
5746
57472002-09-15  Andrey Kiselev  <[email protected]>
5748
5749	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
5750	manual page for raw2tiff(1) tool.
5751
57522002-09-12  Andrey Kiselev  <[email protected]>
5753
5754	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
5755	the tiffio.h header file.
5756
5757	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
5758	manual page for TIFFDataWidth() function
5759
57602002-09-08  Frank Warmerdam  <[email protected]>
5761
5762	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
5763	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
5764
5765	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
5766	since we are unable to properly include the amount to skip.
5767
5768	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
5769
57702002-09-02  Andrey Kiselev  <[email protected]>
5771
5772	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5773	in TIFFFetchByteArray(). Problem described at
5774	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5775
57762002-08-22  Andrey Kiselev  <[email protected]>
5777
5778	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5779	in _TIFFSetupFieldInfo() function.
5780	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5781
5782	* /libtiff/tif_lzw.c: Additional consistency checking added in
5783	LZWDecode() and LZWDecodeCompat().
5784	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5785	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5786
5787	* /libtiff/tif_lzw.c:
5788	Added check for valid code lengths in LZWDecode() and
5789	LZWDecodeCompat(). Fixes
5790	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5791
57922002-08-16  Andrey Kiselev  <[email protected]>
5793
5794	* /libtiff/{Makefile.vc, libtiff.def}:
5795	Missed declarations added.
5796
57972002-08-15  Frank Warmerdam  <[email protected]>
5798
5799	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5800	return code from the underlying pick function.
5801
5802	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5803
5804	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5805	with FIELD_CUSTOM as mentioned in bug 169.
5806
5807	* tif_close.c: added logic to free dynamically created anonymous
5808	field definitions to correct a small memory leak.
5809
5810	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5811
58122002-08-10  Andrey Kiselev  <[email protected]>
5813
5814	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5815	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5816
58172002-07-31  Frank Warmerdam  <[email protected]>
5818
5819	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5820	JPEGDecode() as per bugzilla bug (issue 1):
5821
5822	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5823
5824	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5825	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5826	present in the tiff tags.
5827
5828	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5829
5830	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5831	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5832	fooled with the value.
5833
5834	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5835
58362002-06-22  Andrey Kiselev  <[email protected]>
5837
5838	* /tools/tiff2ps.c: Added workaround for some software that may crash
5839	when last strip of image contains fewer number of scanlines than
5840	specified by the `/Height' variable. See
5841	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5842	for explanation.
5843
58442002-06-21  Andrey Kiselev  <[email protected]>
5845
5846	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5847	splitting long images in several pages. See
5848	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5849	Patch granted by John Williams <[email protected]>.
5850
58512002-06-11  Frank Warmerdam  <[email protected]>
5852
5853	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5854	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5855	This one is described in:
5856
5857	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5858
5859	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5860
5861	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5862
58632002-05-10  Andrey Kiselev  <[email protected]>
5864
5865	* tools/tiff2ps: New commandline switches to override resolution
5866	units obtained from the input file. Closes
5867	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5868
58692002-04-26  Andrey Kiselev  <[email protected]>
5870
5871	* libtiff/libtiff.def: Added missed declaration.
5872
58732002-04-22  Andrey Kiselev  <[email protected]>
5874
5875	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5876	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5877
58782002-04-20  Andrey Kiselev  <[email protected]>
5879
5880	* libtiff/tif_open.c: Pointers to custom procedures
5881	in TIFFClientOpen() are checked to be not NULL-pointers.
5882
58832002-04-18  Andrey Kiselev  <[email protected]>
5884
5885	* libtiff/libtiff.def: Added missed declarations.
5886
5887	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5888
58892002-04-16  Andrey Kiselev  <[email protected]>
5890
5891	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5892	Should finally close
5893	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5894
58952002-04-10  Andrey Kiselev  <[email protected]>
5896
5897	* tools/tiff2ps: Division by zero fixed.
5898	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5899
59002002-04-09  Andrey Kiselev  <[email protected]>
5901
5902	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5903	TIFFCheckpointDirectory() routine added.
5904	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5905
5906	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5907	for the new function.
5908
59092002-04-08  Andrey Kiselev  <[email protected]>
5910
5911	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5912	additional members tif->tif_decodestatus and tif->tif_encodestatus
5913	for correct handling of unconfigured codecs (we should not try to read
5914	data or to define data size without correct codecs).
5915
5916	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5917	changed. Now it has used tif->tif_decodestatus and
5918	tif->tif_encodestatus.
5919	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5920	case of __cvs_8.tif test image).
5921
5922	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5923	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5924	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5925	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5926
59272002-04-04  Andrey Kiselev  <[email protected]>
5928
5929	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5930	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5931	files by skipping bad strips.
5932	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5933
59342002-04-03  Frank Warmerdam  <[email protected]>
5935
5936	* libtiff/tif_dirwrite.c: Removed some dead code.
5937
5938	* libtiff/*: Cleanup some warnings.
5939
5940	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5941	for variable length FIELD_CUSTOM values.  Was int * but should be
5942	u_short *.
5943
59442002-04-01  Andrey Kiselev  <[email protected]>
5945
5946	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
5947	utility (at cpStripToTile routine).
5948
59492002-03-27  Frank Warmerdam  <[email protected]>
5950
5951	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
5952
5953	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
5954
5955	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
5956	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
5957
5958	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
5959	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
5960
59612002-03-26  Dwight Kelly  <[email protected]>
5962
5963	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5964	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
5965	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
5966	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
5967	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
5968	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
5969
59702002-03-26  Andrey Kiselev  <[email protected]>
5971
5972	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
5973	now also uses TIFFRGBAImageOK before reading. This is additional fix
5974	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5975
59762002-03-25  Andrey Kiselev  <[email protected]>
5977
5978	* libtiff/: tif_getimage.c: Additional check for supported
5979	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
5980	TIFFRGBAImageOK before reading.
5981	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5982
59832002-03-15  Andrey Kiselev  <[email protected]>
5984
5985	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5986	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
5987	TIFFDataType sizes instead of working with tiffDataWidth array
5988	directly. Should prevent out-of-borders bugs in case of unknown or
5989	broken data types.  EstimateStripByteCounts routine modified, so it
5990	won't work when tags with uknown sizes founded.
5991	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
5992
59932002-03-13  Andrey Kiselev  <[email protected]>
5994
5995	* libtiff/tif_getimage.c: Added support for correct handling
5996	`Orientation' tag in gtTileContig. Should be added in other gt*
5997	functions as well, but I have not images for testing yet. Partially
5998	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5999
60002002-03-10  Andrey Kiselev  <[email protected]>
6001
6002	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
6003	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
6004	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
6005	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
6006
60072002-03-08  Andrey Kiselev  <[email protected]>
6008
6009	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
6010	be stripped when installing, utility binaries will do.	Closes
6011	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
6012
60132002-02-28  Frank Warmerdam  <[email protected]>
6014
6015	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
6016
6017	* man/libtiff.3t: added copyright tag info.
6018
60192002-02-11  Frank Warmerdam  <[email protected]>
6020
6021	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
6022
6023	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
6024
6025	* man/Makefile.in: Patch DESTDIR handling
6026
6027	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
6028
6029	* configure: OpenBSD changes for Sparc64 and DSO version.
6030
6031	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
6032
60332002-02-05  Frank Warmerdam  <[email protected]>
6034
6035	* config.site/configure: added support for OJPEG=yes option to enable
6036	OJPEG support from config.site.
6037
60382002-01-27  Frank Warmerdam  <[email protected]>
6039
6040	* html/document.html: fixed links for TIFf 6 docs.
6041
60422002-01-18  Frank Warmerdam  <[email protected]>
6043
6044	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
6045
6046	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
6047	decodestrip function returns anything not greater than zero as per
6048	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
6049
6050	* configure: Modify CheckForBigEndian so it can work in a cross
6051	compiled situation.
6052
60532002-01-16  Frank Warmerdam  <[email protected]>
6054
6055	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
6056
6057	* tools/tiffset.c: fix bug in error reporting.
6058
6059	* tools/tiffcp.c: fix several warnings that show up with -Wall.
6060
60612002-01-04  Frank Warmerdam  <[email protected]>
6062
6063	* libtiff/tif_jpeg.c: fixed computation of segment_width for
6064	tiles files to avoid error about it not matching the
6065	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
6066	size.") for ITIFF files.  Apparently the problem was incorporated since
6067	3.5.5, presumably during the OJPEG/JPEG work recently.
6068
60692001-12-15  Frank Warmerdam  <[email protected]>
6070
6071	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
6072
6073	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
6074
6075	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
6076	(defined in tiffconf.h - 1 by default) then the RGBA interface
6077	will assume that a fourth extra sample is ASSOCALPHA if the
6078	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
6079	the library, but makes it work better with RGBA files produced by
6080	lots of applications that don't mark the alpha values properly.
6081
6082	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
6083	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
6084
60852001-12-12  Frank Warmerdam  <[email protected]>
6086
6087	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
6088	override those from tiff directory.  This makes this work with
6089	ImageGear generated files.
6090
60912001-12-07  Frank Warmerdam  <[email protected]>
6092
6093	* html/Makefile.in: added missing images per bug 92.
6094
6095	* port/Makefile.in: fixed clean target per bug 92.
6096
60972001-11-28  Frank Warmerdam  <[email protected]>
6098
6099	* Reissue 3.5.7 release.
6100
6101	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
6102	YYYYMMDD so that it is increasing over time.
6103
6104	* Makefile.in: Ensure that tiffvers.h is regenerated in the
6105	make release target.
6106
6107	* Makefile.in: added libtiff/tiffvers.h to the release file list.
6108
61092001-11-23  Frank Warmerdam  <[email protected]>
6110
6111	* added html/v3.5.7.html, updated html/index.html.
6112
6113	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
6114
61152001-11-15  Frank Warmerdam  <[email protected]>
6116
6117	* configure: fixed test for -lm.
6118
61192001-11-02  Frank Warmerdam  <[email protected]>
6120
6121	* Added PHOTOMETRIC_ITULAB as per bug 90.
6122
6123	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
6124
61252001-10-10  Frank Warmerdam  <[email protected]>
6126
6127	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
6128	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
6129	in keeping with TIFF 6.0 standard in tiff.h
6130
6131	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
6132
61332001-09-26  Frank Warmerdam  <[email protected]>
6134
6135	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
6136	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
6137
61382001-09-24  Frank Warmerdam  <[email protected]>
6139
6140	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
6141
6142	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
6143
6144	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
6145	error about LZW not being available.
6146
6147	* libtiff/tif_dir.c: propagate failure to initialize compression
6148	back from TIFFSetField() as an error status, so applications can
6149	detect failure.
6150
6151	* libtiff/tif_dir.c: removed the auto replacement of
6152	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
6153
6154	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
6155	from CVS as they are all supposed to be auto-generated by configure.
6156
61572001-09-22  Frank Warmerdam  <[email protected]>
6158
6159	* libtiff/tif_ojpeg.c: new update from Scott.
6160
61612001-09-09  Frank Warmerdam  <[email protected]>
6162
6163	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
6164	always use the "safe" version, even if there is a very slight
6165	cost in performance.
6166
6167	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
6168
6169	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
6170	in two places.
6171
6172	* libtiff/tif_getimage.c: Fixed problem with reading strips or
6173	tiles that don't start on a tile boundary.  Fix contributed by
6174	Josep Vallverdu (from HP), and further described in bug 47.
6175
6176	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
6177
6178	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
6179
6180	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
6181
61822001-09-06  Frank Warmerdam  <[email protected]>
6183
6184	* libtiff/tif_packbits.c: fixed memory overrun error.
6185
6186	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
6187
61882001-08-31  Frank Warmerdam  <[email protected]>
6189
6190	* libtiff/tif_getimage.c: relax handling of contig case where
6191	there are extra samples that are supposed to be ignored.  This
6192	should now work for 8bit greyscale or palletted images.
6193
6194	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
6195
61962001-08-28  Frank Warmerdam  <[email protected]>
6197
6198	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
6199	images with more than four samples per pixel.  See:
6200
6201	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
6202
62032001-08-10  Frank Warmerdam  <[email protected]>
6204
6205	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
6206	in TIFFReadRGBATile() to avoid issues in cases of overlapping
6207	buffers.  See Bug 69 in Bugzilla.
6208
6209	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
6210
6211	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
6212
62132001-08-09  Frank Warmerdam  <[email protected]>
6214
6215	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
6216	when checking for 64 bit architectures as per bugzilla bug 67.
6217
62182001-07-27  Frank Warmerdam  <[email protected]>
6219
6220	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
6221	bug 66.
6222
62232001-07-20  Frank Warmerdam  <[email protected]>
6224
6225	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
6226	has been included.
6227
62282001-07-19  Frank Warmerdam  <[email protected]>
6229
6230	* libtiff/tif_open.c: Seek back to zero after failed read,
6231	before writing header.
6232
62332001-07-18  Frank Warmerdam  <[email protected]>
6234
6235	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
6236	much better.  Now depends on having patched libjpeg as per
6237	patch in contrib/ojpeg/*.
6238
62392001-07-17  Frank Warmerdam  <[email protected]>
6240
6241	* */Makefile.in: added DESTDIR support.
6242
6243	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
6244
62452001-07-16  Frank Warmerdam  <[email protected]>
6246
6247	* configure, libtiff/Makefile.in: applied OpenBSD patches
6248	as per:
6249
6250	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
6251
62522001-06-28  Frank Warmerdam  <[email protected]>
6253
6254	* libtiff/tif_getimage.c: Fixed so that failure is properly
6255	reported by gtTileContig, gtStripContig, gtTileSeparate and
6256	gtStripSeparate.
6257
6258	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
6259
6260	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
6261	Updated bug section of tiffcmp.1 to note tiled file issues.
6262
6263	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
6264
62652001-06-22  Frank Warmerdam  <[email protected]>
6266
6267	* configure: Changes for DSO generation on AIX provided by
6268	John Marquart <[email protected]>.
6269
6270	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
6271	on Darwin thanks to Robert Krajewski ([email protected]) and
6272	Keisuke Fujii ([email protected]).
6273
62742001-06-13  Frank Warmerdam  <[email protected]>
6275
6276	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
6277
6278	* man/tiff2rgba.1: new
6279
62802001-05-22  Frank Warmerdam  <[email protected]>
6281
6282	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
6283
62842001-05-13  Frank Warmerdam  <[email protected]>
6285
6286	* libtiff/tools/thumbnail.c: changed default output compression
6287	to packbits from LZW since LZW isn't generally available.
6288
62892001-05-12  Frank Warmerdam  <[email protected]>
6290
6291	* libtiff/tif_ojpeg.c: New.
6292	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
6293	to OJPEG support.
6294
6295	Scott Marovich <[email protected]> supplied OJPEG support.
6296
62972001-05-11  Frank Warmerdam  <[email protected]>
6298
6299	* tiff.h: removed, it duplicates libtiff/tiff.h.
6300
63012001-05-08  Frank Warmerdam  <[email protected]>
6302
6303	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
6304	ensure everything is in order.
6305
6306	* libtiff/libtiff.def: added TIFFCreateDirectory and
6307	TIFFDefaultStripSize as per:
6308
6309	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
6310
63112001-05-02  Frank Warmerdam  <[email protected]>
6312
6313	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
6314	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
6315	force use of uint32 counts instead of short counts.
6316
6317	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
6318	case of writing TIFF_BYTE/TIFF_SBYTE fields.
6319
6320	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
6321
63222001-05-01  Frank Warmerdam  <[email protected]>
6323
6324	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
6325	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
6326
63272001-04-05  Frank Warmerdam  <[email protected]>
6328
6329	* tiffio.h: removed C++ style comment.
6330
6331	* configure: fixed up SCRIPT_SH/SHELL handling.
6332
6333	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
6334
6335	* config.guess: documented more variables as per bug 40.
6336
63372001-04-03  Frank Warmerdam  <[email protected]>
6338
6339	* configure, *Makefile.in: Various changes to improve configuration
6340	for HP/UX specifically, and also in general.  They include:
6341	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
6342	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
6343	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
6344	 - Use -${MAKEFLAGS} in sub makes from makefiles.
6345
6346	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
6347
63482001-04-02  Frank Warmerdam  <[email protected]>
6349
6350	* libtiff/tiff.h: Applied hac to try and resolve the problem
6351	with the inttypes.h include file on AIX.
6352
6353	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
6354
6355	* VERSION: update to 3.5.7 beta in preparation for release.
6356
6357	* configure/config.site: modified to check if -lm is needed for
6358	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
6359
6360	* config.guess: updated wholesale to an FSF version apparently
6361	from 1998 (as opposed to 1994).  This is mainly inspired by
6362	providing for MacOS X support.
6363
63642001-03-29  Frank Warmerdam  <[email protected]>
6365
6366	* configure, Makefile.in, etc: added support for OPTIMIZER being
6367	set from config.site.
6368
63692001-03-28  Frank Warmerdam  <[email protected]>
6370
6371	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
6372
6373	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
6374	sizes. It fixes two problems:
6375
6376	Without	scaling (-S) the fax is now centered on the page size specified
6377	with -H	and/or -W. Before, fax2ps was using an obscure and practially
6378	useless algorithm to allocate the image relative to Letter sized paper
6379	which sometime sled to useless whitespace on the paper, while at the
6380	same time cutting of the faxes printable area at the opposite border.
6381
6382	Second, scaling now preserves aspect ratio, which makes unusual faxes
6383	(in particular short ones) print properly.
6384
6385	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
6386
6387	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
6388	Bruce A. Mallett.  See check message for detailed information
6389	on all the changes, including a faster encoder, fixes for level
6390	2 PostScript, and support for the imagemask operator.
6391
63922001-03-27  Frank Warmerdam  <[email protected]>
6393
6394	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
6395	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
6396
6397	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
6398
63992001-03-16  Frank Warmerdam  <[email protected]>
6400
6401	* tif_dirinfo.c: moved definition of copyright tag in field list.
6402	Apparently they have to be in sorted order by tag id.
6403
64042001-03-13  Frank Warmerdam  <[email protected]>
6405
6406	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
6407	images in RGBA interface.
6408
64092001-03-02  Frank Warmerdam  <[email protected]>
6410
6411	* Added TIFFTAG_COPYRIGHT support.
6412
64132001-02-19  Frank Warmerdam  <[email protected]>
6414
6415	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
6416	with support for extracting subimages with the ,n syntax, and also
6417	adding the -b bias removal flag.
6418
64192001-02-16  Frank Warmerdam  <[email protected]>
6420
6421	* libtiff/libtiff.def: Brent Roman submitted new version adding
6422	serveral missing entry points.
6423
6424	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
6425	Some sort of weird VMS thing.
6426
6427	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
6428
6429	* tif_luv.c/tiff.h/tiffio.h:
6430	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
6431	([email protected]).  He writes:
6432
6433	1) I improved the gamut-mapping function in tif_luv.c for imaginary
6434	colors, because some images were being super-saturated on the input
6435	side and this resulted in some strange color shifts in the output.
6436
6437	2) I added a psuedotag in tiff.h to control random dithering during
6438	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
6439	on for 24-bit LogLuv output.  Dithering improves the average color
6440	accuracy over the image.
6441
6442	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
6443	tiffio.h, to expose internal routines for converting between LogLuv and
6444	XYZ coordinates.  This is helpful for writing more efficient,
6445	specialized conversion routines, especially for reading LogLuv files.
6446
6447	Changes applied with minor edits.
6448
64492001-01-23  Frank Warmerdam  <[email protected]>
6450
6451	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
6452	whether we are encoding or decoding.  This is to ensure graceful
6453	recovery if TIFFClientOpen() discovers an attempt to open a compressed
6454	file for "r+" access, and subsequently close it, as it resets the
6455	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
6456	compressor's concept of whether it is in encode or decode mode.
6457
64582001-01-08  Mike Welles <[email protected]>
6459
6460	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
6461
64622001-01-07  Frank Warmerdam  <[email protected]>
6463
6464	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
6465	as per bug report by Patrick Connor.
6466
64672000-12-28  Frank Warmerdam  <[email protected]>
6468
6469	* Added RELEASE-DATE file to release file list.
6470
6471	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
6472
64732000-12-22  Mike Welles <[email protected]>
6474        * added link to CVS mirror from index.html
6475
6476	* updated html/internals.html to note that LZW compression is
6477	  not supported by default.
6478
64792000-12-22  Frank Warmerdam  <[email protected]>
6480
6481	* updated html/libtiff.html to not point at Niles' old JPL web site
6482	for the man pages, point at www.libtiff.org.
6483
64842000-12-21  Frank Warmerdam  <[email protected]>
6485
6486	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
6487	Leonard Rosenthol <[email protected]>.  May interfere
6488	with correct building on older systems.  If so, please let me know.
6489
64902000-12-19 Mike Welles <[email protected]>
6491
6492	* Took out LZW Encoding from tif_lzw.c
6493
6494	* Created HOWTO-RELEASE
6495
6496	* Created html/v3.5.6.html
6497
6498	* updated index.html
6499
65002000-12-01  Frank Warmerdam  <[email protected]>
6501
6502	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
6503	Patches supplied by Frank Cringle <[email protected]>
6504	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
6505
65062000-11-24  Frank Warmerdam  <[email protected]>
6507
6508	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
6509	target so that the private headers required by libgeotiff can be
6510	installed with the others.  They are not installed by default.
6511
6512	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
6513	targets so libtiff.so will be built with an explicit dependency
6514	on libm.so.
6515
6516	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
6517	libtiff.so.3.5.5.
6518
6519	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
6520	file, or ALPHA version logic.  Added stuff about DIST_POINT in
6521	place of DIST_TYPE and the alpha release number stuff.
6522
65232000-11-22  Frank Warmerdam  <[email protected]>
6524
6525	* I have applied a patch from Steffen Moeller <[email protected]> to
6526	the configure script so that it now accepts the --prefix, and
6527	--exec-prefix directives.
6528
65292000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
6530
6531	* I have made a variety of modifications in an effort to ensure the
6532	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
6533	file which seems to be updated regularly.
6534
6535	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
6536	   version include file.
6537	 o renamed version.h to tiffvers.h because we now have to install it
6538	   with the public libtiff include files.
6539	 o include tiffvers.h in tiffio.h.
6540	 o updated tif_version.c to use tiffvers.h.
6541	 o Updated Makefile.in accordingly.
6542
6543	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
6544	I have updated the win32 detection rules in tiffcomp.h.
6545
65462000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
6547
6548	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
6549	the strip/tile width and height aren't multiples of the sampling size.
6550	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
6551	Some patches from Rick LaMont of Dot C Software.
6552
6553	* Modified tif_packbits.c encoder to avoid compressing more
6554	data than provided if rowsize doesn't factor into provided data
6555	(such as occurs for YCbCr).
6556
65572000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
6558
6559	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
6560	roundup if rows_per_strip not a multiple of vertical sample size.
6561
65622000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
6563
6564	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
6565	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6566	from [email protected].
6567
6568	* Modified tif_packbits.c decoding to avoid overrunning the
6569	output buffer, and to issue a warning if data needs to be
6570	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6571
65722000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
6573
6574	* Modified tiff2bw to ensure portions add to 100%, and that
6575	white is properly recovered.
6576
6577	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
6578	Patch c/o Stanislav Brabec <[email protected]>
6579
65802000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
6581
6582	* Modified TIFFClientOpen() to emit an error on an attempt to
6583	open a comperessed file for update (O_RDWR/r+) access.  This is
6584	because the compressor/decompressor code gets very confused when
6585	the mode is O_RDWR, assuming this means writing only.  See
6586	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
6587
65882000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
6589
6590	* Added GNULDdso target an`d switched linux and freebsd to use it.
6591
65922000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
6593
6594	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
6595	of EXPAND1D() as per bug 11 (from Roman).
6596
65972000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
6598	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
6599	cygwin compatibility.
6600
6601	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
6602	be a proper fix to the buffer sizing problem.  See
6603	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
6604
6605	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
6606	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
6607	Thanks to Nick Lamb <[email protected]> for reporting the
6608	bug and proving the patch.
6609
66102000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
6611
6612	* Fixed tif_jpeg.c so avoid destroying the decompressor before
6613	we are done access data thanks to bug report from:
6614	Michael Eckstein <[email protected]>.
6615
6616	* Reverted tif_flush change.
6617
66182000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
6619
6620	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
6621	error when TIFF_BEENWRITING is not set.  This ensures that the
6622	directory contents can still be flushed by TIFFFlush().
6623
66242000-08-14  Frank Warmerdam  <[email protected]>
6625
6626	* tif_open.c: Don't set MMAP for O_RDWR files.
6627
6628	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
6629	so that files opened for update can be strip chopped too.
6630
6631	* tif_read.c: fixed up bug with files missing rowsperstrip and
6632	the strips per separation fix done a few weeks ago.
6633
66342000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
6635
6636	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
6637	SAMPLEFORMAT_COMPLEXINT.
6638
66392000-07-13  Mike Welles <[email protected]>
6640
6641	* index.html, bugs.html: added bugzilla info.
6642
66432000-07-12  Frank Warmerdam  <[email protected]>
6644
6645	* tif_read.c: fix subtle bug with determining the number of
6646	rows for strips that are the last strip in a separation but
6647	not the last strip of all in TIFFReadEncodedStrip().
6648
6649	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
6650	Peter Skarpetis <[email protected]>
6651
66522000-06-15  Frank Warmerdam  <[email protected]>
6653
6654	* Modified tiffio.h logic with regard to including windows.h.  It
6655	won't include it when building with __CYGWIN__.
6656
66572000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
6658
6659	* README: update to mention www.libtiff.org, don't list Sam's old
6660	email address.
6661
6662	* configure: Fixed DSO test for Linux as per patch from
6663	  Jan Van Buggenhout <[email protected]>.
6664
66652000-04-21  Frank Warmerdam  <[email protected]>
6666
6667	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
6668	one tile/strip images with an offset, and byte count of zero. These
6669	could be "unpopulated" images.
6670
66712000-04-18  Frank Warmerdam  <[email protected]>
6672
6673	* contrib/addtiffo: Added "averaging" resampling option.
6674
6675	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
6676
6677Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
6678
6679	* tools/Makefile.in: Modified to install properly on SGI.
6680
66812000-04-12  Mike Welles	     <[email protected]>
6682	* configure:  Fixed stupid mistake in libc6 test on Linux
6683
66842000-04-04  Mike Welles	     <[email protected]>
6685	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
6686	  caught by BoundsChecker.  From Arvan Pritchard
6687	  <[email protected]>  (untested).
6688
6689	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
6690	  Arvan Pritchard <[email protected]>
6691
6692	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
6693	  Arvan Pritchard <[email protected]>
6694
66952000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
6696
6697	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
6698
66992000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
6700
6701	* fax2ps: Fixed mixup of width and height in bounding box statement
6702	as per submission by Nalin Dahyabhai <[email protected]>.
6703
67042000-03-27  Mike Welles	     <[email protected]>
6705
6706	* fax2ps:  Modified printruns to take uint32 instead of uint16.
6707	Patch courtesy of Bernt Herd <[email protected]>
6708
67092000-03-20  Mike Welles	     <[email protected]>
6710
6711	* configure: added test for libc6 for linux targets.  Bug reported by
6712        Stanislav Brabec <[email protected]>
6713
6714	* Added 3.5 docs to html/Makefile.in.
6715	Thanks to  Stanislav Brabec <[email protected]>
6716
6717	* configure: fixed bugs in sed scripts
6718	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
6719	fix submitted to Stanislav Brabec <[email protected]>
6720
6721	* tools/iptcutil was not in files list, and wasn't being
6722	added to tar archive.  Updated Makefile.in.
6723
67242000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
6725
6726	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
6727	conversion for the run arrays.
6728
67292000-03-03  Frank Warmerdam  <[email protected]>
6730
6731	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
6732	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
6733
67342000-03-02  Frank Warmerdam  <[email protected]>
6735
6736	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
6737
6738	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
6739	to avoid overruns encountered with frle_bug.tif.
6740
6741Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
6742
6743	* Fixed tools/tiffcmp so that stopondiff testing works.
6744	  Patch care of Joseph Orost <[email protected]>.
6745
67462000-01-28    <warmerda@CS46980-B>
6747
6748	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
6749	  set to 1, and added default (off) setting in tiffconf.h.  This
6750	  should eventually be set by the configure script somehow.
6751
6752	  The original work on all these 2-4GB changes was done by
6753	  Peter Smith ([email protected]).
6754
6755	* Modified tif_win32.c to support 2-4GB seeks.
6756
6757	* tentatively changed toff_t to be unsigned instead of signed to
6758	  facilitate support for 2-4GB files.
6759
6760	* Updated a variety of files to use toff_t.  Fixed some mixups
6761	  between toff_t and tsize_t.
6762
6763Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
6764
6765	* Largely reimplemented contrib/addtiffo to avoid temp files,
6766	updating the TIFF file in place.  Fixed a few other bugs to.
6767
6768	* Set tif_rawdatasize to zero when freeing raw data buffer in
6769	TIFFWriteDirectory().
6770
6771	* Enabled "REWRITE_HACK" in tif_write.c by default.
6772
6773	* Fix bug in tif_write.c when switching between reading one directory
6774	and writing to another.
6775
6776	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6777
6778Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6779
6780	* Added TIFFmemory(3t) functions to libtiff.def.
6781
6782Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6783
6784	* Added libtiff/libtiff.def to TIFFILES distribution list.
6785
6786Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6787
6788	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6789
6790	* Altered descriptions in tools to reflect "by default" lzw not supported
6791
6792	* Updated index.html to note lzw compression kit.
6793
6794Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6795
6796	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6797
6798Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6799
6800	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6801
6802	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6803	  when LZW compression invoked.
6804
6805	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6806	  in tools to reflect removal of LZW compression
6807
6808Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6809
6810        * Fixed bug that caused LZW (non) compression to segfault. Added
6811	  warning about LZW compression removed being removed, and why.
6812
6813	* Added nostrip to install in tools/Makefile.in so that debugging
6814	  symbols are kept.
6815
6816Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6817
6818	* Added patch from Ivo Penzar <[email protected]>,
6819	  supporting Adobe ZIP deflate.  Untested.
6820
6821Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6822
6823	* Made Packbits the default compression in tools/tiff2rgba.c instead
6824	of LZW.
6825
6826Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6827
6828	* Added tif_luv to contrib/djgpp/Makefile.lib.
6829
6830Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6831
6832        * Added zip creation to relase makefile target
6833
6834	* Added html for TIFFWriteTile.3t man page.
6835
6836Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6837
6838	* Added some changes to tif_write.c to support rewriting existing
6839	fixed sized tiles and strips.  Code mods disabled by default, only
6840	enabled if REWRITE_HACK is defined for now.
6841
6842Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6843
6844	* Added TIFFWriteTile.3t man page.
6845
6846Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6847
6848	* Added notes on use of makefile.vc in build.html, and fixed
6849	email subscription address.
6850
6851199-11-28  Mike Welles <[email protected]>
6852
6853	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6854
6855	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6856	   from Bruce Carmeron <[email protected]> -- modifications of
6857	   changes made by Frank (sun cc still complained on cast).
6858
6859	*  Added tiffconf.h to install target per request from Bill
6860	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6861 	   know features have been compiled into the TIFF library in order to
6862	   handle things properly".
6863
6864Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6865
6866	* fixed various VC++ warnings as suggested by Gilles Vollant
6867	<[email protected]>.
6868
6869Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6870
6871	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6872	not imply applications are responsible for image data swapping.
6873
68741999-11-22  Mike Welles <[email protected]>
6875	*  HTML-ized the man pages, added to html/man
6876
6877	*  Removed LZW Compression to comply with Unisys patent extortion.
6878
68791999-09-29  Mike Welles		<[email protected]>
6880	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6881	   From Ivo Penzar <[email protected].
6882
6883	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6884	   memory mapped files. <[email protected]>
6885
68861999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6887	* Corrected alpha versioning.
6888
6889	* Removed distinction between  alpha and release targets in Makefile.in.
6890
6891	* added release.stamp target, which tags cvs tree, and updates
6892	  "RELEASE-DATE"
6893
6894	* added releasediff target, which diffs tree with source as of
6895	  date in "RELEASE-DATE"
6896
6897	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6898	  away from alpha/non-alpha distinctions).
6899
6900	* updated html to reflect release
6901
69021999-09-23    <warmerda@CS46980-B>
6903
6904	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6905
6906	* Added CYGWIN case in configure.
6907
6908Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6909
6910	* Applied Francois Dagand's patch to handle fax decompression bug.
6911	  (sizes >= 65536 were failing)
6912
6913Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6914
6915	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6916	  by Christopher Lawton <[email protected]>
6917
6918Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6919
6920	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6921	  Albert Chin-A-Young <[email protected]>
6922
6923	* Added TIFFReassignTagToIgnore() API on behalf of
6924	  Bruce Cameron <[email protected]>.  Man page still pending.
6925
6926Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6927
6928	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6929	files to provide for a rudimentary testsuite.
6930
6931	* Added contrib/tags back from old distribution ... fixed up a bit.
6932
69331999-08-16    <warmerda@CS46980-B>
6934
6935	* Added simple makefile.vc makefiles for building with MS VC++
6936	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6937	better solutions for some users.
6938
6939Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6940
6941	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6942	put it in tools since part of it is in C++.
6943
69441999-08-16  Michael L. Welles  <[email protected]>
6945
6946	* Updated html/index.html with anon CVS instructions.
6947
6948Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
6949
6950	* pre-remove so link before softlink in LINUXdso action in
6951	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
6952	the first.
6953
6954	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
6955	colormaps owned by the TIFF handle itself when trying to fixup wrong
6956	(eight bit) colormaps.  Corrected by maintaining a private copy of
6957	the colormap.
6958
6959	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
6960	tif_getimage.c.
6961
6962	* CVS Repository placed at remotesensing.org.  ChangeLog added.
6963