xref: /libtiff-4.0.7/ChangeLog (revision 65d7db09)
12016-09-24  Bob Friesenhahn  <[email protected]>
2
3	* libtiff/tif_getimage.c (TIFFRGBAImageOK): Reject attempts to
4	read floating point images.
5
6	* libtiff/tif_predict.c (PredictorSetup): Enforce bits-per-sample
7	requirements of floating point predictor (3).  Fixes CVE-2016-3622
8	"Divide By Zero in the tiff2rgba tool."
9
102016-09-23 Even Rouault <even.rouault at spatialys.com>
11
12	* tools/tiffcrop.c: fix various out-of-bounds write vulnerabilities
13	in heap or stack allocated buffers. Reported as MSVR 35093,
14	MSVR 35096 and MSVR 35097. Discovered by Axel Souchet and Vishal
15	Chauhan from the MSRC Vulnerabilities & Mitigations team.
16	* tools/tiff2pdf.c: fix out-of-bounds write vulnerabilities in
17	heap allocate buffer in t2p_process_jpeg_strip(). Reported as MSVR
18	35098. Discovered by Axel Souchet and Vishal Chauhan from the MSRC
19	Vulnerabilities & Mitigations team.
20	* libtiff/tif_pixarlog.c: fix out-of-bounds write vulnerabilities
21	in heap allocated buffers. Reported as MSVR 35094. Discovered by
22	Axel Souchet and Vishal Chauhan from the MSRC Vulnerabilities &
23	Mitigations team.
24	* libtiff/tif_write.c: fix issue in error code path of TIFFFlushData1()
25	that didn't reset the tif_rawcc and tif_rawcp members. I'm not
26	completely sure if that could happen in practice outside of the odd
27	behaviour of t2p_seekproc() of tiff2pdf). The report points that a
28	better fix could be to check the return value of TIFFFlushData1() in
29	places where it isn't done currently, but it seems this patch is enough.
30	Reported as MSVR 35095. Discovered by Axel Souchet & Vishal Chauhan &
31	Suha Can from the MSRC Vulnerabilities & Mitigations team.
32
332016-09-20  Bob Friesenhahn  <[email protected]>
34
35	* html/man/index.html: Comment out links to documentation for
36	abandoned utilities.
37
382016-09-17 Even Rouault <even.rouault at spatialys.com>
39
40	* libtiff/tif_lzma.c: typo fix in comment
41
422016-09-04 Even Rouault <even.rouault at spatialys.com>
43
44	* libtiff/*.c: fix warnings raised by clang 3.9 -Wcomma
45
462016-09-03 Even Rouault <even.rouault at spatialys.com>
47
48	* libtiff/tif_dirwrite.c, libtiff/tif_color.c: fix warnings raised
49	by GCC 5 / clang -Wfloat-conversion
50
512016-08-16 Even Rouault <even.rouault at spatialys.com>
52
53	* tools/tiffcrop.c: fix C99'ism.
54
552016-08-15 Even Rouault <even.rouault at spatialys.com>
56
57	* tools/tiff2bw.c: fix weight computation that could result of color
58	value overflow (no security implication). Fix bugzilla #2550.
59	Patch by Frank Freudenberg.
60
612016-08-15 Even Rouault <even.rouault at spatialys.com>
62
63	* tools/rgb2ycbcr.c: validate values of -v and -h parameters to
64	avoid potential divide by zero. Fixes CVE-2016-3623 (bugzilla #2569)
65
662016-08-15 Even Rouault <even.rouault at spatialys.com>
67
68	* tools/tiffcrop.c: Fix out-of-bounds write in loadImage().
69	From patch libtiff-CVE-2016-3991.patch from
70	libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro (bugzilla #2543)
71
722016-08-15 Even Rouault <even.rouault at spatialys.com>
73
74	* libtiff/tif_pixarlog.c: Fix write buffer overflow in PixarLogEncode
75	if more input samples are provided than expected by PixarLogSetupEncode.
76	Idea based on libtiff-CVE-2016-3990.patch from
77	libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, but with different and
78	simpler check. (bugzilla #2544)
79
802016-08-15 Even Rouault <even.rouault at spatialys.com>
81
82	* tools/tiff2rgba.c: Fix integer overflow in size of allocated
83	buffer, when -b mode is enabled, that could result in out-of-bounds
84	write. Based initially on patch tiff-CVE-2016-3945.patch from
85	libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, with correction for
86	invalid tests that rejected valid files. (bugzilla #2545)
87
882016-07-11 Even Rouault <even.rouault at spatialys.com>
89
90	* tools/tiffcrop.c: Avoid access outside of stack allocated array
91	on a tiled separate TIFF with more than 8 samples per pixel.
92	Reported by Kaixiang Zhang of the Cloud Security Team, Qihoo 360
93	(CVE-2016-5321 / CVE-2016-5323 , bugzilla #2558 / #2559)
94
952016-07-10 Even Rouault <even.rouault at spatialys.com>
96
97	* libtiff/tif_read.c: Fix out-of-bounds read on
98	memory-mapped files in TIFFReadRawStrip1() and TIFFReadRawTile1()
99	when stripoffset is beyond tmsize_t max value (reported by
100	Mathias Svensson)
101
1022016-07-10 Even Rouault <even.rouault at spatialys.com>
103
104	* tools/tiffdump.c: fix a few misaligned 64-bit reads warned
105	by -fsanitize
106
1072016-07-03 Even Rouault <even.rouault at spatialys.com>
108
109	* libtiff/tif_read.c: make TIFFReadEncodedStrip() and
110	TIFFReadEncodedTile() directly use user provided buffer when
111	no compression (and other conditions) to save a memcpy().
112
113	* libtiff/tif_write.c: make TIFFWriteEncodedStrip() and
114	TIFFWriteEncodedTile() directly use user provided buffer when
115	no compression to save a memcpy().
116
1172016-07-01  Even Rouault <even.rouault at spatialys.com>
118
119	* libtiff/tif_luv.c: validate that for COMPRESSION_SGILOG and
120	PHOTOMETRIC_LOGL, there is only one sample per pixel. Avoid
121	potential invalid memory write on corrupted/unexpected images when
122	using the TIFFRGBAImageBegin() interface (reported by
123	Clay Wood)
124
1252016-06-28  Even Rouault <even.rouault at spatialys.com>
126
127	* libtiff/tif_pixarlog.c: fix potential buffer write overrun in
128	PixarLogDecode() on corrupted/unexpected images (reported by Mathias Svensson)
129	(CVE-2016-5875)
130
1312016-06-15  Bob Friesenhahn  <[email protected]>
132
133	* libtiff/libtiff.def: Added _TIFFMultiply32 and _TIFFMultiply64
134	to libtiff.def
135
1362016-06-05  Bob Friesenhahn  <[email protected]>
137
138	* tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff,
139	ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from
140	the distribution.  The libtiff tools rgb2ycbcr and thumbnail are
141	only built in the build tree for testing.  Old files are put in
142	new 'archive' subdirectory of the source repository, but not in
143	distribution archives.  These changes are made in order to lessen
144	the maintenance burden.
145
1462016-05-10  Bob Friesenhahn  <[email protected]>
147
148	* libtiff/tif_config.vc.h (HAVE_SNPRINTF): Add a '1' to the
149	HAVE_SNPRINTF definition.'
150
1512016-05-09  Bob Friesenhahn  <[email protected]>
152
153	* libtiff/tif_config.vc.h (HAVE_SNPRINTF): Applied patch by Edward
154	Lam to define HAVE_SNPRINTF for Visual Studio 2015.
155
1562016-04-27  Even Rouault <even.rouault at spatialys.com>
157
158	* libtiff/tif_dirread.c: when compiled with DEFER_STRILE_LOAD,
159	fix regression, introduced on 2014-12-23, when reading a one-strip
160	file without a StripByteCounts tag. GDAL #6490
161
1622016-04-07  Bob Friesenhahn  <[email protected]>
163
164	* html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for
165	purposes of security issue reporting.
166
1672016-01-23  Even Rouault <even.rouault at spatialys.com>
168
169	* libtiff/*: upstream typo fixes (mostly contributed by Kurt Schwehr)
170	coming from GDAL internal libtiff
171
1722016-01-09  Even Rouault <even.rouault at spatialys.com>
173
174	* libtiff/tif_fax3.h: make Param member of TIFFFaxTabEnt structure
175	a uint16 to reduce size of the binary.
176
1772016-01-03  Even Rouault <even.rouault at spatialys.com>
178
179	* libtiff/tif_read.c, tif_dirread.c: fix indentation issues raised
180	by GCC 6 -Wmisleading-indentation
181
1822015-12-27  Even Rouault <even.rouault at spatialys.com>
183
184	* libtiff/tif_pixarlog.c: avoid zlib error messages to pass a NULL
185	string to %s formatter, which is undefined behaviour in sprintf().
186
1872015-12-27  Even Rouault <even.rouault at spatialys.com>
188
189	* libtiff/tif_next.c: fix potential out-of-bound write in NeXTDecode()
190	triggered by http://lcamtuf.coredump.cx/afl/vulns/libtiff5.tif
191	(bugzilla #2508)
192
1932015-12-27  Even Rouault <even.rouault at spatialys.com>
194
195	* libtiff/tif_luv.c: fix potential out-of-bound writes in decode
196	functions in non debug builds by replacing assert()s by regular if
197	checks (bugzilla #2522).
198	Fix potential out-of-bound reads in case of short input data.
199
2002015-12-26  Even Rouault <even.rouault at spatialys.com>
201
202	* libtiff/tif_getimage.c: fix out-of-bound reads in TIFFRGBAImage
203	interface in case of unsupported values of SamplesPerPixel/ExtraSamples
204	for LogLUV / CIELab. Add explicit call to TIFFRGBAImageOK() in
205	TIFFRGBAImageBegin(). Fix CVE-2015-8665 reported by limingxing and
206	CVE-2015-8683 reported by zzf of Alibaba.
207
2082015-12-21  Even Rouault <even.rouault at spatialys.com>
209
210	* libtiff/tif_dirread.c: workaround false positive warning of Clang Static
211	Analyzer about null pointer dereference in TIFFCheckDirOffset().
212
2132015-12-19  Even Rouault <even.rouault at spatialys.com>
214
215	* libtiff/tif_fax3.c: remove dead assignment in Fax3PutEOLgdal(). Found
216	by Clang Static Analyzer
217
2182015-12-18  Even Rouault <even.rouault at spatialys.com>
219
220	* libtiff/tif_dirwrite.c: fix truncation to 32 bit of file offsets in
221	TIFFLinkDirectory() and TIFFWriteDirectorySec() when aligning directory
222	offsets on a even offset (affects BigTIFF). This was a regression of the
223	changeset of 2015-10-19.
224
2252015-12-12  Even Rouault <even.rouault at spatialys.com>
226
227	* libtiff/tif_write.c: TIFFWriteEncodedStrip() and TIFFWriteEncodedTile()
228	should return -1 in case of failure of tif_encodestrip() as documented
229	* libtiff/tif_dumpmode.c: DumpModeEncode() should return 0 in case of
230	failure so that the above mentionned functions detect the error.
231
2322015-12-06  Even Rouault <even.rouault at spatialys.com>
233
234	* libtiff/uvcode.h: const'ify uv_code array
235
2362015-12-06  Even Rouault <even.rouault at spatialys.com>
237
238	* libtiff/tif_dirinfo.c: const'ify tiffFields, exifFields,
239	tiffFieldArray and exifFieldArray arrays
240
2412015-12-06  Even Rouault <even.rouault at spatialys.com>
242
243	* libtiff/tif_print.c: constify photoNames and orientNames arrays
244
2452015-12-06  Even Rouault <even.rouault at spatialys.com>
246
247	* libtiff/tif_close.c, libtiff/tif_extension.c : rename link
248	variable to avoid -Wshadow warnings
249
2502015-11-22  Even Rouault <even.rouault at spatialys.com>
251
252	* libtiff/*.c: fix typos in comments (patch by Kurt Schwehr)
253
2542015-11-22  Even Rouault <even.rouault at spatialys.com>
255
256	* libtiff/*.c: fix MSVC warnings related to cast shortening and
257	assignment within conditional expression
258
2592015-11-18  Even Rouault <even.rouault at spatialys.com>
260
261	* libtiff/*.c: fix clang -Wshorten-64-to-32 warnings
262
2632015-11-18  Even Rouault <even.rouault at spatialys.com>
264
265	* libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL
266	to please MSVC 2013
267
2682015-11-17  Even Rouault <even.rouault at spatialys.com>
269
270	* libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction
271	if BitsPerPixel > 24, so as to avoid huge memory allocation and file
272	read attempts
273
2742015-11-02  Even Rouault <even.rouault at spatialys.com>
275
276	* libtiff/tif_dirread.c: remove duplicated assignment (reported by
277	Clang static analyzer)
278
2792015-10-28  Even Rouault <even.rouault at spatialys.com>
280
281	* libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c,
282	libtiff/tif_jpeg_12.c: suppress warnings about 'no previous
283	declaration/prototype'
284
2852015-10-19  Even Rouault <even.rouault at spatialys.com>
286
287	* libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix
288	'warning: negative integer implicitly converted to unsigned type' warning
289	(part of -Wconversion)
290
2912015-10-17  Even Rouault <even.rouault at spatialys.com>
292
293	* libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c,
294	  libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/)
295
2962015-09-12  Bob Friesenhahn  <[email protected]>
297
298	* libtiff 4.0.6 released.
299
300	* html/v4.0.6.html: Added release notes for 4.0.6.
301
3022015-09-06  Bob Friesenhahn  <[email protected]>
303
304	* tools/tiffgt.c: Silence glut API deprecation warnings on MacOS
305	X.  Patch by Roger Leigh.
306
307	* Makefile.am: Added a 'coverity' rule to assist with Coverity
308	submissions.
309
310	* tools/tiff2pdf.c: Fix compiler warning about unused function
311	when JPEG is not available.
312
313	* tools/fax2ps.c (main): Detect failure to write to temporary
314	file.
315
3162015-09-05  Bob Friesenhahn  <[email protected]>
317
318	* libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8):
319	Change implementation so that it does not sometimes overflow the
320	range of a 32-bit int and to avoid a signed vs unsigned compare
321	compiler warning.
322	(TIFF_INT64_MAX): Avoid use of platform-specific large constants.
323	(TIFF_UINT32_MAX): Avoid use of platform-specific large constants.
324
3252015-09-01  Bob Friesenhahn  <[email protected]>
326
327	* Makefile.am (distcheck-hook), configure.ac: Applied patches by
328	Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue
329	with BSD make and to make use of cmake in 'distcheck' target
330	conditional on if cmake is available.
331
332	* CMakeLists.txt, Makefile.am, configure.ac: Applied patches by
333	Roger Leigh (via tiff mailing list on 2015-09-01).
334
335	CMake build is now included in 'distcheck' target.
336
337	Builds with CMake 2.8.9 and newer.
338
339	Tar is now resquested to use POSIX PAX format.
340
3412015-08-31  Bob Friesenhahn  <[email protected]>
342
343	* CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by
344	Roger Leigh (via tiff mailing list on 2015-08-31.
345
346	CMake reads all version information directly from configure.ac to
347	avoid duplication of values.  This basically greps over the file
348	for the LIBTIFF_* variables, then translates them to the form
349	needed for cmake. This includes the release version and libtool
350	shared library version information.
351
352	Make shared/static library building configurable.  Currently it
353	always builds shared libraries, with static libs having a _static
354	suffix (copying zlib, but it means it's got a non-standard name).
355	CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the
356	other, which is now used instead.  There's now a single "tiff"
357	target to build either shared or static as required, and all the
358	tests and tools are linked with this. Note: the Windows tests fail
359	when linked with a static libtiff (says: libtiff.dll not found).
360	Not really a regression since this was not tested up to this
361	point, and it's likely the unit tests haven't (ever?) been run on
362	Windows with a static libtiff, so there's some additional
363	portability issue here to address.  Works fine on UNIX systems,
364	and fine on Windows with the default to build a DLL.
365
366	Add a missing file which wasn't being distributed, causing unit
367	tests to fail.  Note that "find . -name '*.cmake'" lists all the
368	CMake files which need distributing in addition to all the
369	CMakeLists.txt files (which now are distributed).
370
3712015-08-31  Even Rouault <even.rouault at spatialys.com>
372
373	* libtiff/tif_predict.c: pedantic change to add explicit masking
374	with 0xff before casting to uchar in floating-point horizontal
375	differencing and accumulation routines.
376
3772015-08-31  Even Rouault <even.rouault at spatialys.com>
378
379	* libtiff/tif_predict.c: fix generation of output with 16 bit
380	or 32 bit integer, when byte swapping is needed, in
381	horizontal predictor (#2521). Also fixes decoding when there is
382	a single pixel to code (unlikely case...) and byte swapping is
383	involved.
384
3852015-08-30  Even Rouault <even.rouault at spatialys.com>
386
387	* libtiff/tif_lzw.c: make nextdata a unsigned type to avoid
388	undefined behaviour with shifts (gcc -fsanitize=shift)
389
3902015-08-30  Even Rouault <even.rouault at spatialys.com>
391
392	* libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c:
393	add explicit masking with 0xff before casting
394	to unsigned char (make icc -check=conversions happy)
395
396	* libtiff/tif_predict.c: operate on unsigned datatypes when
397	computing/applying differences to avoid undefined behaviour of
398	signed types (C standard compliance)
399
4002015-08-30  Bob Friesenhahn  <[email protected]>
401
402	* configure.ac: libtiff 4.0.5 released.
403
4042015-08-29  Bob Friesenhahn  <[email protected]>
405
406	* CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing
407	list on 2015-08-29) to add ld-version-script option to cmake build
408	to match autoconf.  Note: defaults to 'on' to be ABI-compatible by
409	default with common Linux distribution builds.  Note that the
410	autoconf configure script defaults to 'off'.
411
412	* html/build.html: Applied patch by Roger Leigh (via tiff mailing
413	list on 2015-08-29) to describe how to use CMake to build libtiff.
414
4152015-08-28  Bob Friesenhahn  <[email protected]>
416
417	* html/v4.0.5.html: Added HTML file describing the changes which
418	will appear in the 4.0.5 release.
419
4202015-08-23  Bob Friesenhahn  <[email protected]>
421
422	* libtiff/tiffiop.h: For MinGW comiles, make sure that build
423	supports necessary __MSVCRT_VERSION__ (at least at least 0x800).
424	Otherwise large files can not be supported for POSIX-style I/O.
425
426	* tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit
427	builds about cast to thandle_t.
428
429	* test/rewrite_tag.c (main): Does not require any arguments.
430
4312015-08-20  Bob Friesenhahn  <[email protected]>
432
433	* tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to
434	fix build issues when using Cmake due to Windows large file
435	changes.
436
4372015-08-18  Bob Friesenhahn  <[email protected]>
438
439	* libtiff/tiffiop.h: First cut at supporting large files under
440	Microsoft Windows using tif_unix.c and the libtiff tools.  This
441	only works if the Windows CDK is new enough to support the APIs
442	used (Visual C++ 2005 or later).  Support for large files is not
443	actually tested yet.
444
4452015-08-15  Bob Friesenhahn  <[email protected]>
446
447	* libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that
448	client_data is initialized to a known value, and to report an
449	error on two memory allocation failures.
450
4512015-08-13  Bob Friesenhahn  <[email protected]>
452
453	* CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx
454	symbol versioning.  Patch was mailed to libtiff list on Thu, 13
455	Aug 2015.
456
4572015-07-04  Bob Friesenhahn  <[email protected]>
458
459	* cmake: Add d suffix to debug libraries with MSVC.  Patch #3 of 3
460	by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20
461	+0100.
462
463	* cmake: Add extra warning flags.  Patch #2 of 3 by Roger Leigh
464	posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
465
466	* cmake: Correct snprintf fallback for VS2015.  Patch #1 of 3 by
467	Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
468
4692015-06-24  Bob Friesenhahn  <[email protected]>
470
471	* CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to
472	libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several
473	corrections to ensure that the autotools build still works were
474	added by me.  I have not yet tested the build using 'cmake' or
475	MSVC with 'nmake'.
476
4772015-06-21  Bob Friesenhahn  <[email protected]>
478
479	* test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG
480	library so only execute if JPEG is available.
481
482	* libtiff 4.0.4 released.
483
484	* configure.ac: Add a HAVE_FOO Automake conditional for each
485	add-on library.
486
487	* test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode
488	requires JPEG support to compile.  Use Automake conditional to
489	only include it when JPEG support is available.
490
491	* html/build.html: Try to improve the nmake-based VC++ build
492	description.
493
494	* libtiff/tiffconf.vc.h: Build fixes based on testing.
495
496	* libtiff/tif_config.vc.h: Build fixes based on testing.
497
498	* libtiff/libtiff.def: TIFFRasterScanline does not exist so remove
499	export for it.
500
5012015-06-20  Bob Friesenhahn  <[email protected]>
502
503	* libtiff/tif_config.vc.h: Make adjustments to match the new
504	definitions that configure produces, including for WIN64.  Still
505	needs to be tested.
506
507	* configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting
508	specifier.  64-bit MinGW supports 'long long' but support for
509	'lld' is not assured by the run-time DLLs and so GCC warns.
510	Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition
511	and printf format specifier to deal with printing values of
512	'size_t' type.  In particular, this was necessary for WIN64.
513	Added a configure test for if the system headers provide 'optarg'
514	(normal case) and block out the many explicit 'extern' statements
515	in the utilities.  This was found to be necessary under Windows
516	when getopt is in a DLL and the symbols are already imported with
517	dllimport via standard header files.
518
519	* test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32
520	and boolean in MinGW build due to including jpeglib.h.
521
522	* test/rewrite_tag.c (main): Fix problem with location of variable
523	declaration.
524
525	* libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs,
526	TIFFReadRGBAImageOriented, TIFFSetCompressionScheme,
527	TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc,
528	TIFFRasterScanline, TIFFSetErrorHandlerExt,
529	TIFFSetWarningHandlerExt, TIFFNumberOfDirectories,
530	TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory,
531	TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by
532	Roger Leigh and justified by use in libtiff tests, documentation,
533	and changelog notes.  Also sorted symbol list and removed
534	duplicate entries.
535
5362015-06-16  Bob Friesenhahn  <[email protected]>
537
538	* libtiff/tif_getimage.c: Fix four Coverity issues related to
539	unintended sign extension.
540
5412015-06-16  Even Rouault <even.rouault at spatialys.com>
542
543	* libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna)
544
5452015-06-14  Lee Howard  <[email protected]>
546
547	* libtiff/tif_unix.c: contribution from Vadim Zeitlin on
548	Bugzilla Bug #2510 fixes several harmless but still annoying
549	warnings
550
551	* configure: contribution from Ludolf Holzheid on Bugzilla
552	Bug #2498.  Adds an option to select the file I/O style on
553	Windows hosts.
554
555	* libtiff/tif_getimage.c: contribution from Gary Cramblitt
556	on Bugzilla Bug #2409.  Correct reading of certain tiled TIFFs.
557
558	* configure, configure.ac: contribution from Marcos H. Woehrmann
559	on Bugzilla Bug #2405.  Correct shell equality operator.
560
561	* tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt
562	on Bugzilla Bug #2401.  Appropriately call glFlush().
563
564	* tools/tiff2pdf.c: change ColorTransform from "0" to "1"
565	following Bugzilla Bug #2150.
566
5672015-06-13  Lee Howard  <[email protected]>
568
569	* libtiff/tif_lzw.c: contribution from Andy Cave - decode
570	files that contain consecutive CODE_CLEAR codes.
571
572	* tools/tiff2pdf.c: contribution from Antti S. Lankila on
573	Bugzilla Bug #2078. Suppress initial output of the header.
574
575	* tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy -
576	Take care in using the return value from snprintf().
577
578	* tools/tiffcrop.c: contribution from Eduardo Robles Elvira -
579	correctly copy the compression tag from the source TIFF.
580
581	* tools/tiff2ps.c: contribution from Eduardo Robles Elvira -
582	correct sizing and scaling problems with output document.
583
5842015-06-10  Bob Friesenhahn  <[email protected]>
585
586	* libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two
587	clean implementations in order to avoid pre-processor hell.  Only
588	one of the implementations is used in a given build.
589
5902015-06-08  Even Rouault <even.rouault at spatialys.com>
591
592	* libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12
593	case
594
5952015-06-07  Bob Friesenhahn  <[email protected]>
596
597	* libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975
598	"Division or modulo by zero".
599	(TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division
600	or modulo by zero".
601	(TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by
602	zero".
603	(TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by
604	zero".
605
606	* libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and
607	715974 "Division or modulo by zero".
608
6092015-05-31  Bob Friesenhahn  <[email protected]>
610
611	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity
612	1134470 "Logically dead code" by making the roll-over check
613	explicit.
614
615	* libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227
616	"Division or modulo by zero".
617	(LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by
618	zero".
619	(LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by
620	zero".
621	(LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by
622	zero".
623
624	* libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix
625	Coverity 298626 "Logically dead code".
626	(TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead
627	code".
628	(TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead
629	code".
630	(TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead
631	code"
632
633	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++
634	operator precedenc in evaluation.  Might quench Coverity 1134470
635	"Logically dead code".
636
637	* libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands
638	don't affect result".  This change uses ifdefs to include
639	applicable code based on properties of libjpeg.  Still needs to be
640	re-tested with 12-bit "6b" and "MK1".
641
6422015-05-30  Bob Friesenhahn  <[email protected]>
643
644	* libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310
645	"Resource leak".
646
647	* libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix
648	Coverity 601720 "Resource leak".
649
650	* libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624
651	"Dereference before null check".
652
653	* libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400
654	"Missing break in switch".
655
656	* contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer
657	size calculation for overflow.
658
659	* contrib/addtiffo/addtiffo.c (main): Possibly address Coverity
660	1024226 "Untrusted value as argument".
661
662	* tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted
663	value as argument".
664	(checksignature): Fix Coverity 1024894 "Ignoring number of bytes
665	read".
666	(readextension): Fix Coverity 1024893 "Ignoring number of bytes
667	read".
668	(readgifimage): Fix Coverity 1024890 "Ignoring number of bytes
669	read".
670	(readraster): Fix Coverity 1024891 "Ignoring number of bytes
671	read".
672	(readgifimage): Fix Coverity 1024892 "Ignoring number of bytes
673	read".
674
675	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181
676	"Structurally dead code".
677
678	* tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return
679	value from library".
680	(guessSize): Fix Coverity 1024888 "Unchecked return value from
681	library".
682	(guessSize): Fix Coverity 1214162 "Ignoring number of bytes read".
683	(guessSize): Fix Coverity 1024889 "Unchecked return value from
684	library".
685
686	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621
687	"Resource leak".
688	(t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead
689	code".
690	(t2p_write_pdf): Fix Coverity 1227690 "Unused value".
691
6922015-05-29  Bob Friesenhahn  <[email protected]>
693
694	* contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468
695	"Infinite loop".
696	(formatIPTC): Fix Coverity 1024727 "Truncated stdio return value".
697	(formatIPTC): Fix Coverity 1214240 "Untrusted loop bound".
698
6992015-05-28  Bob Friesenhahn  <[email protected]>
700
701	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
702	Coverity 298615 "Resource leak".
703	(TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign
704	extension".
705
706	* tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value
707	as argument".
708	(main): Fix Coverity 1024678 "Unchecked return value from
709	library".
710	(main): Fix Coverity 1024679 "Unchecked return value from
711	library".
712	(main): Fix Coverity 1214160 "Ignoring number of bytes read".
713
714	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
715	Coverity 298615 "Resource leak".
716
717	* tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309
718	"Resource leak".
719
720	* tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource
721	leak".
722	(cpStrips): Fix Coverity 1024305 "Resource leak".
723
7242015-05-27  Bob Friesenhahn  <[email protected]>
725
726	* tools/ras2tiff.c: Fix Sun Raster header definition to be safe
727	for 64-bit systems.  Add some header validations.  Should fix many
728	Coverity issues.
729	(main): Fix Coverity 1301206: "Integer handling issues  (BAD_SHIFT)".
730	(main): Quiet Coverity 1024223 "Untrusted value as argument".
731
732	* tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting
733	level does not match indentation".
734	(get_histogram): Quiet Coverity 1024386 "Out-of-bounds read".
735	This was a benign mis-diagnosis but added code to enforce against
736	buffer overflow.
737
738	* tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical
739	vs. bitwise operator".
740	(readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or
741	modulo by zero".
742	(readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead
743	code".
744	(writeSingleSection): Fix Coverity 1024796 "Nesting level does not
745	match indentation".
746	(writeCroppedImage): Fix Coverity 1024797 "Nesting level does not
747	match indentation".
748	(loadImage): Fix Coverity 1299741 "Dereference before null check".
749	(loadImage): Fix Coverity 1299740 "Out-of-bounds write".
750
7512015-03-02  Even Rouault  <[email protected]>
752
753	* tools/tiffdither.c: check memory allocations to avoid writing to
754	NULL pointer. Also check multiplication overflow. Fixes #2501,
755	CVE-2014-8128. Derived from patch by Petr Gajdos.
756
7572015-01-26  Even Rouault  <[email protected]>
758
759	* add html/v4.0.4beta.html under version control
760	* HOWTO-RELEASE: write that cvs add html/vX.X.html must be used
761
7622015-01-26  Even Rouault  <[email protected]>
763
764	* libtiff 4.0.4beta released
765
7662015-01-26  Even Rouault  <[email protected]>
767
768	* automake: updated to 1.15
769	* libtool: updated to 2.4.5
770
7712015-01-22  Even Rouault  <[email protected]>
772
773	* tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
774
7752015-01-05  Frank Warmerdam  <[email protected]>
776
777	* html/bugs.html: remove note about needing to email the tiff mailing
778	list administrator about being approved for membership, this appears
779	not to be true.
780
7812015-01-05  Olivier Paquet  <[email protected]>
782
783	* tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
784
7852015-01-03  Even Rouault  <[email protected]>
786
787	* libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
788	when reading more than 65535 directories, and effectively error out when
789	reaching that limit.
790
7912014-12-29  Even Rouault  <[email protected]>
792
793	* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
794	markers to avoid emitting a warning (even if, according to the TechNote,
795	there are admitedly unusual/not recommended or even forbidden variants, but
796	they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
797	SOF9 and SOF10).
798	Define in_color_space and input_components to the right values in
799	JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
800	libjpeg API documentation, so as to be compatible with mozjpeg library.
801	Note: the default settings of mozjpeg will produce progressive scans, which
802	is forbidden by the TechNote.
803
8042014-12-29  Even Rouault  <[email protected]>
805
806	* libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
807	to avoid buffer leak (fix previous fix, found by Coverity scan)
808
8092014-12-29  Even Rouault  <[email protected]>
810
811	* libtiff/tif_next.c: add new tests to check that we don't read outside of
812	the compressed input stream buffer.
813
814	* libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
815    in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
816    putcontig8bitYCbCr21tile cases.
817
8182014-12-27  Even Rouault  <[email protected]>
819
820	* libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
821	extented tags installed by user code through the extender mechaninm before
822	calling the extender callback (GDAL #5054)
823
8242014-12-26  Bob Friesenhahn  <[email protected]>
825
826	* tools/tiffcrop.c: Fix warnings about variables set but not used.
827
828	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
829	but not used.
830
831	* tools/tiffgt.c: Fix warnings about unused parameters.
832
833	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
834
8352014-12-25  Even Rouault  <[email protected]>
836
837	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
838	various typos found by Debian lintian tool (GDAL #5756)
839
8402014-12-24  Even Rouault  <[email protected]>
841
842	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
843	http://bugzilla.maptools.org/show_bug.cgi?id=2235
844
8452014-12-24  Even Rouault  <[email protected]>
846
847	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
848	http://bugzilla.maptools.org/show_bug.cgi?id=2445
849
8502014-12-24  Even Rouault  <[email protected]>
851
852	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
853	Derived from patch by Petr Gajdos,
854	http://bugzilla.maptools.org/show_bug.cgi?id=2443
855
8562014-12-23  Even Rouault  <[email protected]>
857
858	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
859	of _TIFFFillStriles(). This solves crashing bug on corrupted
860	images generated by afl.
861
8622014-12-23  Even Rouault  <[email protected]>
863
864	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
865	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
866	images generated by afl.
867
8682014-12-21  Bob Friesenhahn  <[email protected]>
869
870	* tools/tiffdump.c: Guard against arithmetic overflow when
871	calculating allocation buffer sizes.
872
8732014-12-21  Even Rouault  <[email protected]>
874
875	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
876	SamplesPerPixel = 3. Enforce that
877	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
878
8792014-12-21  Even Rouault  <[email protected]>
880
881	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
882	copying. The right fix would be to properly copy it, but not worth the burden
883	for those esoteric utilities.
884	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
885
8862014-12-21  Even Rouault  <[email protected]>
887
888	* tools/thumbnail.c: fix out-of-buffer write
889	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
890
8912014-12-21  Even Rouault  <[email protected]>
892
893	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
894	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
895	COMPRESSION_CCITTFAX4
896	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
897
8982014-12-21  Even Rouault  <[email protected]>
899
900	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
901	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
902
9032014-12-21  Even Rouault  <[email protected]>
904
905	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
906	TIFFTAG_SAMPLESPERPIXEL
907
9082014-12-21  Even Rouault  <[email protected]>
909
910	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
911	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
912	Description: fix for Debian bug #741451
913	tiffcp crashes when converting JPEG-encoded TIFF to a different
914	encoding (like none or lzw). For example this will probably fail:
915	tiffcp -c none jpeg_encoded_file.tif output.tif
916	The reason is that when the input file contains JPEG data,
917	the tiffcp code forces conversion to RGB space. However,
918	the output normally inherits YCbCr subsampling parameters
919	from the input, which leads to a smaller working buffer
920	than necessary. The buffer is subsequently overrun inside
921	cpStripToTile() (called from writeBufferToContigTiles).
922	Note that the resulting TIFF file would be scrambled even
923	if tiffcp wouldn't crash, since the output file would contain
924	RGB data intepreted as subsampled YCbCr values.
925	This patch fixes the problem by forcing RGB space on the output
926	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
927	Author: Tomasz Buchert <[email protected]>
928
9292014-12-21  Even Rouault  <[email protected]>
930
931	Fix various crasher bugs on fuzzed images.
932	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
933	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
934	the directory
935	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
936	TransferFunction if BitsPerSample has not yet been read, otherwise reading
937	it later will cause user code to crash if BitsPerSample > 1
938	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
939	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
940	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
941	instead of imagewidth to avoid crash
942	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
943	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
944	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
945	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
946	* tools/tiffdump.c: fix crash due to overflow of entry count.
947
9482014-12-15  Even Rouault  <[email protected]>
949
950	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
951	all tiles/strips to include quantization tables even when the jpegtablesmode
952	had the JPEGTABLESMODE_QUANT bit set.
953	Also add explicit removal of Huffman tables when jpegtablesmode has the
954	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
955	first tile/strip (only useful in update scenarios. create-only was
956	fine)
957
9582014-12-09  Bob Friesenhahn  <[email protected]>
959
960	* tools/tiff2pdf.c: Assure that memory size calculations for
961	_TIFFmalloc() do not overflow the range of tmsize_t.
962
9632014-12-07  Even Rouault  <[email protected]>
964
965	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
966	Valgrind and Address Sanitizer on test suite
967
9682014-12-07  Bob Friesenhahn  <[email protected]>
969
970	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
971	tag can return one channel, with the other two channels set to
972	NULL.  The tiff2pdf code was expecting that other two channels
973	were duplicate pointers in the case where there is only one
974	channel.  Detect this condition in order to avoid a crash, and
975	presumably perform correctly with just one channel.
976
9772014-12-06  Bob Friesenhahn  <[email protected]>
978
979	* tools/tiffdump.c: Fix double-free bug.
980
9812014-11-27  Even Rouault  <[email protected]>
982
983	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
984	Visual Studio 2015 aka VC 14 aka MSVC 1900
985
9862014-11-20  Even Rouault  <[email protected]>
987
988	* libtiff/tif_lzw.c: prevent potential null dereference of
989	sp->dec_codetab in LZWPreDecode (bug #2459)
990
991	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
992	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
993
994	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
995
996	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
997	Coverity happier (not a bug, #2459)
998
999	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
1000	(not a bug, #2459)
1001
1002	* tools/tiff2pdf.c: close PDF file (bug #2479)
1003
1004	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
1005
1006	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
1007	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
1008
1009	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
1010	(bug #2459) and add missing va_end in dump_info (#2459)
1011
1012	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
1013
10142014-11-20  Even Rouault  <[email protected]>
1015	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
1016	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
1017
10182014-11-20  Even Rouault  <[email protected]>
1019	* automake: updated to 1.14.1
1020	* libtool: updated to 2.4.3
1021	* HOWTO-RELEASE: small update about autotools building order
1022
10232014-10-20  Olivier Paquet  <[email protected]>
1024	* tools/tiff2pdf.c: Preserve input file directory order when pages
1025	are tagged with the same page number.
1026
10272014-08-31  Bob Friesenhahn  <[email protected]>
1028
1029	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
1030	count for tag should be a warning rather than an error since
1031	errors terminate processing.
1032
10332014-06-07  Bob Friesenhahn  <[email protected]>
1034
1035	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
1036	was wrongly described.  Fix suggested by Miguel Medalha.
1037
10382014-05-06  Bob Friesenhahn  <[email protected]>
1039
1040	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
1041	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
1042	Reviewed and forwarded by Lee Howard.
1043
10442013-11-30  Frank Warmerdam  <[email protected]>
1045
1046	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
1047
10482013-10-21  Frank Warmerdam  <[email protected]>
1049
1050	* libtiff/tif_dir.c: generate error in case of directory count
1051	overflow.
1052
10532013-10-01  Frank Warmerdam  <[email protected]>
1054
1055	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
1056	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
1057
10582013-09-12  Bob Friesenhahn  <[email protected]>
1059
1060	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
1061	be defective, then set it to zero before returning error in order
1062	to terminate processing of truncated TIFF.  Issue found and fix
1063	suggested by Richard Nolde.
1064
10652013-08-14  Frank Warmerdam  <[email protected]>
1066
1067	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
1068
10692013-08-13  Frank Warmerdam  <[email protected]>
1070
1071	* tools/gif2tiff.c: Be more careful about corrupt or
1072	hostile input files (#2450, CVE-2013-4231)
1073
1074	* tools/tiff2pdf.c: terminate after failure of allocating
1075	ycbcr buffer (bug #2449, CVE-2013-4232)
1076
10772013-07-09  Frank Warmerdam  <[email protected]>
1078
1079	* tools/tiffinfo.c: Default various values fetched with
1080	TIFFGetField() to avoid being uninitialized.
1081
10822013-05-02  Tom Lane  <[email protected]>
1083
1084	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
1085	t2p_process_jpeg_strip to be at least marginally competent.  The
1086	approach is still fundamentally flawed, but at least now it won't
1087	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
1088
10892013-05-02  Tom Lane  <[email protected]>
1090
1091	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
1092 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
1093 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
1094 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
1095 	large enough, and eliminate substantially all uses of sprintf(buf,
1096 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
1097 	protect against overflow of fixed-size buffers.  This responds in
1098 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
1099 	t2p_write_pdf_page(), but in general it seems like a good idea to
1100 	deprecate use of sprintf().
1101
11022013-03-29  Bob Friesenhahn  <[email protected]>
1103
1104	* configure.ac: Applied patch by Brad Smith to improve pkg-config
1105	static linking by adding -lm to Libs.private when needed.
1106
11072013-03-05  Tom Lane  <[email protected]>
1108
1109	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
1110 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
1111 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
1112 	tools/tiffdither.c: Sync tool usage printouts and man pages with
1113 	reality (quite a few options had escaped being documented in one
1114 	or both places).  Per an old report from Miroslav Vadkerti.
1115
11162013-01-25  Bob Friesenhahn  <[email protected]>
1117
1118	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
1119	rotation angle was set by the auto rotate check, it was retained
1120	for all pages that followed instead ofa being retested for each
1121	page.  Patch by Richard Nolde.
1122
11232013-01-18  Frank Warmerdam  <[email protected]>
1124
1125	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
1126	64bit linux.
1127
1128	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
1129	http://bugzilla.maptools.org/show_bug.cgi?id=2427
1130
11312012-12-20  Tom Lane  <[email protected]>
1132
1133	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
1134	it will pass with more versions of libjpeg.  (There are at least
1135	three in active use now, and JPEG_LIB_VERSION doesn't tell us
1136	enough to uniquely identify expected results.)
1137
11382012-12-12  Tom Lane  <[email protected]>
1139
1140	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
1141	field_passcount fields: it had the TIFF_VARIABLE and
1142	TIFF_VARIABLE2 cases backwards.
1143
11442012-12-10  Tom Lane  <[email protected]>
1145
1146	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
1147 	check the linebytes calculation too, get the max() calculation
1148 	straight, avoid redundant error messages, check for malloc
1149 	failure.
1150
11512012-12-10  Tom Lane  <[email protected]>
1152
1153	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
1154 	(to enlarge tbuf for possible partial stride at end) so that
1155 	overflow in the integer addition is detected.  Per gripe from
1156 	Huzaifa Sidhpurwala.
1157
11582012-12-03  Bob Friesenhahn  <[email protected]>
1159
1160	* tools/tiffset.c: tiffset now supports a -u option to unset a
1161	tag.  Patch by Zach Baker. See
1162	http://bugzilla.maptools.org/show_bug.cgi?id=2419
1163
11642012-11-18  Bob Friesenhahn  <[email protected]>
1165
1166	* automake: Update Automake to 1.12.5 release.
1167
1168	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
1169	require malloc() to return NULL pointer if requested allocation
1170	size is zero.  Assure that _TIFFmalloc does.
1171
11722012-11-01  Frank Warmerdam  <[email protected]>
1173
1174	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
1175	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
1176	Red Hat Security Response team for the fix.
1177
11782012-10-18  Frank Warmerdam  <[email protected]>
1179
1180	* tif_zip.c: Avoid crash on NULL error messages.
1181
11822012-09-22  Bob Friesenhahn  <[email protected]>
1183
1184	* libtiff 4.0.3 released.
1185
11862012-09-20  Bob Friesenhahn  <[email protected]>
1187
1188	* Makefile.am: Update to Automake 1.12.4
1189
11902012-08-19  Bob Friesenhahn  <[email protected]>
1191
1192	* Makefile.in: Update to Automake 1.12.3
1193
1194	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
1195	some TIFF/FX support in libtiff.  Add the tag definitions to
1196	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
1197	and also fixes an error in a comment.  Adds the photometric values
1198	to tif_print.c, and fixes a bug.  These changes are by Steve
1199	Underwood.
1200
12012012-08-13  Frank Warmerdam  <[email protected]>
1202
1203	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
1204	compressed file: http://trac.osgeo.org/gdal/ticket/4771
1205
12062012-08-02  Frank Warmerdam  <[email protected]>
1207
1208	* libtiff/tif_dirread.c: report error in case of mismatch value
1209	counts for tags (ie. DotRange).
1210
12112012-07-26  Tom Lane  <[email protected]>
1212
1213	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
1214 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
1215	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
1216	as external accessors for the opaque type TIFFField.
1217
1218	* tools/tiffset.c: Make tiffset use the above functions instead of
1219	relying on library private headers.
1220
12212012-07-19  Tom Lane  <[email protected]>
1222
1223	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
1224	after a malloc failure.  No crash risk AFAICS, but the program
1225	might not report exit code 1 as desired.  h/t [email protected]
1226
12272012-07-18  Tom Lane  <[email protected]>
1228
1229	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
1230	prevents core dumps or perhaps even arbitrary code execution when
1231	processing a corrupt input file (CVE-2012-3401).
1232
12332012-07-06  Bob Friesenhahn  <[email protected]>
1234
1235	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
1236	IJG JPEG 7+ uses a different upsampling algorithm which produces
1237	different numeric results.
1238
1239	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
1240	work with IJG JPEG 7+.
1241
12422012-07-04  Bob Friesenhahn  <[email protected]>
1243
1244	* test/raw_decode.c: Add changes so that test can run with build
1245	directory outside of source directory.
1246
12472012-07-02  Frank Warmerdam  <[email protected]>
1248
1249	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
1250	imagery (http://trac.osgeo.org/gdal/ticket/4732)
1251
12522012-06-20  Frank Warmerdam  <[email protected]>
1253
1254	* libtiff/tif_fax3.c: fix memory initialization of runs, only
1255	partly done.
1256
1257	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
1258	full "stride" past the end.
1259
12602012-06-19  Frank Warmerdam  <[email protected]>
1261
1262	* libtiff/tif_packbits.c: fix read past end of data buffer.
1263
12642012-06-15  Frank Warmerdam  <[email protected]>
1265
1266	*  libtiff 4.0.2 released.
1267
1268	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
1269	warnings with clang.
1270
12712012-06-15  Tom Lane  <[email protected]>
1272
1273	* tools/tiff2pdf.c: Defend against integer overflows while
1274	calculating required buffer sizes (CVE-2012-2113).
1275
12762012-06-12  Frank Warmerdam  <[email protected]>
1277
1278	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
1279
1280	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
1281
12822012-06-07  Frank Warmerdam  <[email protected]>
1283
1284	* libtiff/tif_print.c: avoid pretty printing other fields when
1285	we don't have the proper amount and type of data or if the field
1286	is actually autodefined.
1287
12882012-06-05  Frank Warmerdam  <[email protected]>
1289
1290	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
1291	ycbcrsubsampling values result in a runtime error, not just an
1292	assertion.
1293
1294	* tests/custom_dir.c: Add testing of EXIF and custom directory
1295	reading and writing.
1296
1297	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
1298	and TIFFCreateEXIFDirectory() functions.
1299
1300	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
1301	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
1302	differently.  This is to avoid using special TIFFGetField/TIFFSetField
1303	rules for these fields in non-image directories (like EXIF).
1304
13052012-06-04  Frank Warmerdam  <[email protected]>
1306
1307	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
1308	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
1309	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
1310
13112012-06-01  Frank Warmerdam  <[email protected]>
1312
1313	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
1314
1315	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
1316	http://bugzilla.maptools.org/show_bug.cgi?id=2379
1317
1318	* libtiff/tif_unix.c: use strerror() to return a more specific error message
1319	on failed open.
1320	http://bugzilla.maptools.org/show_bug.cgi?id=2341
1321
1322	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
1323	http://bugzilla.maptools.org/show_bug.cgi?id=2386
1324
1325	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
1326	for testing jpeg in tiff image decoding including the "raw" decode interface.
1327
13282012-05-31  Frank Warmerdam  <[email protected]>
1329
1330	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
1331	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
1332	sampling values.
1333
1334	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
1335
1336	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
1337	http://bugzilla.maptools.org/show_bug.cgi?id=2398
1338
13392012-05-29  Frank Warmerdam  <[email protected]>
1340
1341	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
1342	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
1343	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
1344	to get/set functions for different tags!
1345
1346	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
1347	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
1348
13492012-05-24  Frank Warmerdam  <[email protected]>
1350
1351	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
1352	accumulate" and overwrite the end by one word in at least some cases.
1353
13542012-05-23  Frank Warmerdam  <[email protected]>
1355
1356	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
1357
1358	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
1359
1360	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
1361	the same image.
1362
1363	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
1364	stripbytecounts or stripoffsets or where loading these fails.
1365
1366	* libtiff/tif_print.c: be careful about whether min/max values are singular
1367	or one per sample.
1368
1369	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
1370	May affect things like ISOSpeedRatings.
1371
1372	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
1373	in some cases.
1374
13752012-05-19  Bob Friesenhahn  <[email protected]>
1376
1377	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
1378	example for how to retreive the value of unsupported tags.
1379
13802012-03-30  Frank Warmerdam  <[email protected]>
1381
1382	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
1383	care of Tom Lane @ Red Hat.
1384
13852012-02-18  Bob Friesenhahn  <[email protected]>
1386
1387	* libtiff 4.0.1 released.
1388
1389	* Update automake used to 1.11.3.
1390
1391	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
1392	attribute specification to lessen the risk of accidental macro
1393	substitution.  Patch from Vincent Torri.
1394
13952012-01-31  Frank Warmerdam  <[email protected]>
1396
1397	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
1398	assumption tag fetching is always successful.
1399
1400	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
1401
14022012-01-22  Bob Friesenhahn  <[email protected]>
1403
1404	* configure.ac: Add support for using library symbol versioning on
1405	ELF systems with the GNU linker.  Support is enabled via
1406	--enable-ld-version-script.  Disabled by default for now until
1407	there is a decision for how to deploy a libtiff with versioned
1408	symbols after libtiff 4.0.0 was already released.
1409
14102011-12-22  Bob Friesenhahn  <[email protected]>
1411
1412	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
1413
1414	tif_win32.c.  Patch by Edward Lam.
1415
1416	* configure.ac: Add libtiff private dependency on -llzma for
1417	pkg-config.  Patch by Mark Brand.
1418	Updated Automake to 1.11.2.
1419
14202011-12-21  Bob Friesenhahn  <[email protected]>
1421
1422	* libtiff 4.0.0 released.
1423
14242011-12-08  Frank Warmerdam  <[email protected]>
1425
1426	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
1427	of _TIFFFillStriles() results (#gdal 4372)
1428
14292011-12-07  Frank Warmerdam  <[email protected]>
1430
1431	* libtiff/tif_dirread.c: fixes to deal with invalid files where
1432	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
1433
1434	* libtiff/tif_dirread.c: fix error reporting when there is no
1435	tag information struct and name (gdal #4373)
1436
14372011-10-22  Bob Friesenhahn  <[email protected]>
1438
1439	* Update GNU libtool to 2.4.2.
1440
1441	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
1442	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
1443	Deroulers.
1444
14452011-06-21  Frank Warmerdam  <[email protected]>
1446
1447	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
1448
14492011-05-31  Jim Meyering  <[email protected]>
1450
1451	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
1452	upon failure to allocate "resizeddata".
1453	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
1454	allocation failure, not before.
1455	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
1456	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
1457	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
1458	NULL-deref and possible overflow
1459	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
1460	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
1461	and set of otherwise unused local, data_is_empty.
1462	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
1463	Diagnose out-of-memory failure and return 0 rather than
1464	dereferencing NULL.
1465
14662011-05-24  Frank Warmerdam  <[email protected]>
1467
1468	* libtiff/tif_dirread.c: produce special error message for zero tag
1469	directories instead of error out on the malloc(0) failure.
1470
14712011-05-16  Frank Warmerdam  <[email protected]>
1472
1473	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
1474	related declarations as they are in active use by libraries
1475	such as libgeotiff, and work just fine.  (#2315)
1476
14772011-04-20  Frank Warmerdam  <[email protected]>
1478
1479	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
1480	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
1481	http://bugzilla.maptools.org/show_bug.cgi?id=2315
1482
1483	* libtiff/libtiff.def: add some missing (64bit) APIs.
1484	http://bugzilla.maptools.org/show_bug.cgi?id=2316
1485
14862011-04-09  Bob Friesenhahn  <[email protected]>
1487
1488	* libtiff 4.0.0beta7 released.
1489
14902011-04-09  Bob Friesenhahn  <[email protected]>
1491
1492	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
1493	the run-time target whereas target is used to specify the final
1494	output target if the package is a build tool (like a compiler),
1495	which libtiff is not.  Resolves libtiff bug 2307 "Use
1496	AC_CANONICAL_HOST macro".
1497
14982011-04-02  Bob Friesenhahn  <[email protected]>
1499
1500	* configure.ac: Support configuring TIFF_INT64_FORMAT and
1501	TIFF_UINT64_FORMAT appropriately for MinGW32.
1502
1503	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
1504	printf conventions for 64-bit types because it uses the WIN32 CRT.
1505
1506	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
1507	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
1508	printf conventions for 64-bit types because it uses the WIN32 CRT.
1509
1510	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
1511	understood by WIN32 CRT.
1512
1513	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
1514
1515	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
1516	it is much more portable.  Tmpfile is included in ISO/IEC
1517	9899:1990 and the WIN32 CRT.
1518
15192011-03-26  Frank Warmerdam  <[email protected]>
1520
1521	* tools/tiffset.c: add -d and -sd switches to allow operation on
1522	a particular directory, not just the first (jef).
1523
15242011-03-21  Frank Warmerdam  <[email protected]>
1525
1526	* libtiff/tif_thunder.c: Correct potential buffer overflow with
1527	thunder encoded files with wrong bitspersample set.  The libtiff
1528	development team would like to thank Marin Barbella and TippingPoint's
1529	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
1530	CVE-2011-1167).
1531	http://bugzilla.maptools.org/show_bug.cgi?id=2300
1532
15332011-03-10  Frank Warmerdam  <[email protected]>
1534
1535	* libtiff/tif_fax3.h: Fix to last change allowing zero length
1536	runs at the start of a scanline - needed for legal cases.
1537
15382011-03-02  Frank Warmerdam  <[email protected]>
1539
1540	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
1541	a move left.  Without this, a malicious input file can generate an
1542	indefinitely large series of runs without a0 ever reaching the right
1543	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
1544	This is a modified version of a patch proposed by Drew Yao of Apple
1545	Product Security.  It adds an unexpected() report, and disallows the
1546	equality case, since emitting a run without increasing a0 still allows
1547	buffer overrun.
1548
15492011-02-23  Frank Warmerdam  <[email protected]>
1550
1551	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
1552
1553	* tools/tiff2rgba.c: close source file on error to make leak
1554	detection easier.
1555
1556	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
1557
1558	http://bugzilla.maptools.org/show_bug.cgi?id=2295
1559
15602011-02-22  Frank Warmerdam  <[email protected]>
1561
1562	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
1563	_SUPPORT)
1564
15652011-02-18  Frank Warmerdam  <[email protected]>
1566
1567	* configure.ac, configure: Added support for --enable-chunky-strip-read
1568	configure option to enable the experimental feature from a couple
1569	months ago for reading big strips in chunks.
1570
1571	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
1572	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
1573	Implement optional support for deferring the load of strip/tile
1574	offset and size tags for optimized scanning of directories.  Enabled
1575	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
1576	#define in tif_config.h).
1577
15782011-02-11  Frank Warmerdam  <[email protected]>
1579
1580	* libtiff/tif_print.c: remove unused variable.
1581
15822011-02-09  Frank Warmerdam  <[email protected]>
1583
1584	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
1585	with non-console (popup message) builds on win32.
1586
1587	http://bugzilla.maptools.org/show_bug.cgi?id=2293
1588
15892011-01-24  Olivier Paquet  <[email protected]>
1590
1591	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
1592	tif_print.c, tiff.h, tiffiop.h} : Added support for
1593	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
1594	values for each sample. Presents the min/max of all samples by default for
1595	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
1596	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
1597	http://www.asmail.be/msg0055458208.html
1598
15992011-01-06  Frank Warmerdam  <[email protected]>
1600
1601	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
1602	maintained.
1603
1604	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
1605	for CHUNKY_STRIP_READ_SUPPORT.
1606
1607	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
1608	during JPEGPreDecode and JPEGDecode calls.
1609	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
1610	as compression formats like JPEG keep 16 lines interleaved in a sense
1611	and might need to touch	quite a bit of data.
1612
1613	http://trac.osgeo.org/gdal/ticket/3894
1614
16152011-01-03  Lee Howard <[email protected]>
1616
1617	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
1618	caused by commit on 2010-12-14.  Submitted by e-mail from
1619	Even Rouault <[email protected]>
1620
16212010-12-31  Olivier Paquet  <[email protected]>
1622
1623	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
1624	http://bugzilla.maptools.org/show_bug.cgi?id=2266
1625
16262010-12-23  Andrey Kiselev  <[email protected]>
1627
1628	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
1629	compression level parameter (preset) for Deflate and LZMA encoders,
1630	e.g "-c lzma:p1" or "-c zip:p9".
1631
1632	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
1633	(preset) in LZMAVSetField().
1634
16352010-12-18  Bob Friesenhahn  <[email protected]>
1636
1637	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
1638	Makefile.
1639
16402010-12-14  Andrey Kiselev  <[email protected]>
1641
1642	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
1643	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
1644	TIFF compression scheme LZMA reserving a new value 34925 for
1645	Compression tag. As per
1646	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
1647
16482010-12-14  Lee Howard <[email protected]>
1649
1650	* libtiff/tif_dirread.c: tolerate some cases where
1651	FIELD_COLORMAP is missing
1652	http://bugzilla.maptools.org/show_bug.cgi?id=2189
1653
16542010-12-14  Lee Howard <[email protected]>
1655
1656	* libtiff/tif_read.c: change read_ahead to tmsize_t
1657	http://bugzilla.maptools.org/show_bug.cgi?id=2222
1658
16592010-12-14  Lee Howard <[email protected]>
1660
1661	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
1662	Windows except on Cygwin
1663	http://bugzilla.maptools.org/show_bug.cgi?id=2224
1664
16652010-12-14  Lee Howard <[email protected]>
1666
1667	* tools/gif2tiff.c: fix buffer overrun
1668	http://bugzilla.maptools.org/show_bug.cgi?id=2270
1669
16702010-12-14  Lee Howard <[email protected]>
1671
1672	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
1673	to improve compatibility with various viewers
1674	submitted by e-mail from Dwight Kelly <[email protected]>
1675
16762010-12-13  Lee Howard <[email protected]>
1677
1678	* tools/fax2ps.c: be consistent with page-numbering
1679	http://bugzilla.maptools.org/show_bug.cgi?id=2225
1680
16812010-12-13  Lee Howard <[email protected]>
1682
1683	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
1684	resolves CVE-2010-2595
1685	http://bugzilla.maptools.org/show_bug.cgi?id=2208
1686
16872010-12-13  Lee Howard <[email protected]>
1688
1689	* tools/tiffcrop.c: new release by Richard Nolde
1690	http://bugzilla.maptools.org/show_bug.cgi?id=2004
1691
16922010-12-12  Lee Howard <[email protected]>
1693
1694	* tools/tiff2pdf.c: fix colors for images with RGBA
1695	interleaved data
1696	http://bugzilla.maptools.org/show_bug.cgi?id=2250
1697
16982010-12-12  Lee Howard <[email protected]>
1699
1700	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
1701	http://bugzilla.maptools.org/show_bug.cgi?id=2164
1702
17032010-12-11  Lee Howard <[email protected]>
1704
1705	* tools/tiff2pdf.c: remove invalid duplication for Lab
1706	http://bugzilla.maptools.org/show_bug.cgi?id=2162
1707
17082010-12-11  Lee Howard <[email protected]>
1709
1710	* libtiff/tif_jpeg.c: fix use of clumplines calculation
1711	http://bugzilla.maptools.org/show_bug.cgi?id=2149
1712
17132010-12-11  Lee Howard <[email protected]>
1714
1715	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
1716	http://bugzilla.maptools.org/show_bug.cgi?id=2118
1717
17182010-12-11  Lee Howard <[email protected]>
1719
1720	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
1721	  libtiff/tif_zip.c: fix build errors for VC6
1722	http://bugzilla.maptools.org/show_bug.cgi?id=2105
1723
17242010-12-11  Lee Howard <[email protected]>
1725
1726	* libtiff/tif_stream.cxx: warnings cleanup
1727	http://bugzilla.maptools.org/show_bug.cgi?id=2091
1728	* libtiff/tif_dirread.c: warnings cleanup
1729	http://bugzilla.maptools.org/show_bug.cgi?id=2092
1730
17312010-12-11  Lee Howard <[email protected]>
1732
1733	* tools/tiff2pdf.c: add fill-page option
1734	http://bugzilla.maptools.org/show_bug.cgi?id=2051
1735
17362010-12-11  Lee Howard <[email protected]>
1737
1738	* libtiff/tif_dirread.c: modify warnings
1739	http://bugzilla.maptools.org/show_bug.cgi?id=2016
1740
17412010-12-11  Lee Howard <[email protected]>
1742
1743	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
1744        http://bugzilla.maptools.org/show_bug.cgi?id=1999
1745
17462010-12-11  Lee Howard <[email protected]>
1747
1748	* tools/tiffinfoce.c: strip byte counts are uint64* now
1749
17502010-12-11  Lee Howard <[email protected]>
1751
1752        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
1753        or missing byte-count tag
1754        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
1755        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
1756
17572010-12-08  Lee Howard <[email protected]>
1758
1759        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
1760        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
1761
17622010-12-06  Lee Howard <[email protected]>
1763
1764        * libtiff/tif_open.c: Fix mode check before opening a file.
1765        http://bugzilla.maptools.org/show_bug.cgi?id=1906
1766
17672010-11-27  Bob Friesenhahn  <[email protected]>
1768
1769	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
1770	Patch by Vincent Torri.
1771
17722010-10-21  Frank Warmerdam  <[email protected]>
1773
1774	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
1775
1776	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
1777
1778	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
1779
17802010-09-25  Lee Howard <[email protected]>
1781
1782	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
1783	with additional command line options for Document Title,
1784	Document Creator, and Page Orientation
1785
17862010-07-13  Bob Friesenhahn  <[email protected]>
1787
1788	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
1789	potentially unterminated buffer due to using an exceptionally long
1790	file name.
1791
17922010-07-08  Andrey Kiselev  <[email protected]>
1793
1794	* tools/tiff2pdf.c: Fixed ID buffer filling in
1795	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
1796
17972010-07-07  Andrey Kiselev  <[email protected]>
1798
1799	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
1800	to expected value as the warning message suggests. As per bug
1801	http://bugzilla.maptools.org/show_bug.cgi?id=1963
1802
18032010-07-06  Andrey Kiselev  <[email protected]>
1804
1805	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
1806	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
1807	which should be set by value.
1808
1809	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
1810	and _TIFFFieldWithName() if the tag is not found in the tag table.
1811	This should be normal situation and returned NULL value should be
1812	properly handled by the caller.
1813
18142010-07-02  Andrey Kiselev  <[email protected]>
1815
1816	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
1817	integer type conversions. As per bug
1818	http://bugzilla.maptools.org/show_bug.cgi?id=2207
1819
1820	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
1821	WhitePoint tag as per bug
1822	http://bugzilla.maptools.org/show_bug.cgi?id=2042
1823
1824	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1825	working with YCbCr image in PickContigCase(). As per bug
1826	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1827
1828	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1829	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1830	we don't need any post-processing. That helps to reset the hook if we
1831	previously set this field to some other value and the hook was
1832	initialized accordingly. As per bug
1833	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1834
18352010-07-01  Andrey Kiselev  <[email protected]>
1836
1837	* tools/tiffgt.c: Properly check the raster buffer allocations for
1838	integer overflows. As per bug
1839	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1840
1841	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1842	upstream.
1843
1844	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1845	multiply_32() and multiply_64() functions into tif_aux.c file and
1846	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1847
18482010-06-30  Andrey Kiselev  <[email protected]>
1849
1850	* tools/tiff2pdf.c: Better generation of ID field in
1851	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1852
1853	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1854	converting JPEG encoded tiles.
1855
1856	* tools/tiff2pdf.c: Better handling of string fields, use static
1857	string buffers instead of dynamically allocated, use strncpy() instead
1858	of strcpy(), control the string lengths.
1859
18602010-06-25  Andrey Kiselev  <[email protected]>
1861
1862	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1863	referencing to uninitialized memory in some cases (e.g. when tile size
1864	set bigger than the image size).
1865
18662010-06-15  Bob Friesenhahn  <[email protected]>
1867
1868	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1869	subsampled data since tiffcrop currently doesn't support it.  Fix
1870	JPEG support.
1871
18722010-06-13  Frank Warmerdam  <[email protected]>
1873
1874	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1875
1876	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1877	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1878	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1879	size is larger.  Also, there are a bunch of places that try to
1880	memset() a malloc'd buffer before checking for malloc failure, which
1881	would result in core dump if there actually were a failure. (#2211)
1882
18832010-06-11  Bob Friesenhahn  <[email protected]>
1884
1885	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1886	avoid compiler warnings if parameter types are not sign
1887	consistent.
1888
1889	* libtiff 4.0.0alpha6 released.
1890
1891	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1892	European page size dimensions.  Added an option to allow the user
1893	to specify a custom page size on the command line.  Fix the case
1894	where a page size specified with a fractional part was being
1895	coerced to an integer by retyping the variables that define the
1896	paper size.
1897
1898	* html/index.html: Update for the 3.9.3 release.
1899
1900	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1901	YCbCr subsampled data since tiffcp currently doesn't support it.
1902	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1903
1904	* Update libtool to version 2.2.10.
1905
19062010-06-10  Bob Friesenhahn  <[email protected]>
1907
1908	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1909	multiplier is zero.
1910
19112010-06-09  Bob Friesenhahn  <[email protected]>
1912
1913	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1914	CVE-2010-1411 was not complete.
1915
1916	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1917	multiply two integers.  Returns zero if there is an integer
1918	overflow.
1919
1920	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1921	is reported when reading the input file.
1922
19232010-06-08  Bob Friesenhahn  <[email protected]>
1924
1925	* Update libtool to version 2.2.8.
1926
1927	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1928	buffer due to integer overflow in TIFFroundup() and several other
1929	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1930	fixes CVE-2010-1411.
1931
1932	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1933	result in an integer overflow. This causes TIFFroundup() to also
1934	return zero if there would be an integer overflow.
1935
1936	* contrib: Add an emacs formatting mode footer to all source files
1937	so that emacs can be effectively used.
1938
19392010-06-03  Oliver Chen Feng <[email protected]>
1940
1941	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1942	file PAGENUMBER value in sequence for users who care the page
1943	sequence, this will also prevent tiff2pdf from creating pdf file from
1944	the merged tiff file with wrong page sequence.
1945
19462010-05-08  Olivier Paquet  <[email protected]>
1947
1948	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1949	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1950	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1951	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1952	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1953
19542010-05-07  Frank Warmerdam  <[email protected]>
1955
1956	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1957	JPEGPreEncode(), not just when we want to output local tables.
1958	Otherwise the quality used during compression may not be right and
1959	might not match the tables in the tables tag.   This bug only occurs
1960	when seeking between directories in the midst of writing blocks.
1961	http://trac.osgeo.org/gdal/ticket/3539
1962
19632010-05-06  Andrey Kiselev  <[email protected]>
1964
1965	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1966	Regenerated from the source.
1967
19682010-05-05  Olivier Paquet  <[email protected]>
1969
1970	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1971	had stopped working. Also made it always print 6 floats instead of
1972	2*SamplesPerPixel.
1973	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1974	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1975	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1976	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1977
19782010-05-05  Frank Warmerdam  <[email protected]>
1979
1980	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1981	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1982
19832010-04-21  Frank Warmerdam  <[email protected]>
1984
1985	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1986	JPEGSetupEncode() is called if the tables already seem to be
1987	established.  This prevents spurious updates and rewriting of
1988	directories with jpegtables when doing updates to existing images.
1989	http://trac.osgeo.org/gdal/ticket/3539
1990
19912010-04-20  Olivier Paquet  <[email protected]>
1992
1993	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1994	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1995	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1996	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1997	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1998
19992010-04-10  Bob Friesenhahn  <[email protected]>
2000
2001	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
2002	when the tag count value is zero.  Error handling is still a
2003	regression since in 3.9.2, empty tags are skipped (with a warning)
2004	rather than returning a hard error and refusing to read the file.
2005
2006	* tools/ppm2tiff.c (main): While case for parsing comment line
2007	requires extra parenthesis to work as expected.  Reported by
2008	Thomas Sinclair.
2009
20102010-04-02  Frank Warmerdam  <[email protected]>
2011
2012	* libtiff/tif_read.c (primarily): Add support for
2013	CHUNKY_STRIP_READ_SUPPORT where large strips are
2014	read in chunks for applications using TIFFReadScanline().
2015	This is intended to make it more practical work with very
2016	large compressed one-strip files.   Feature is off by default.
2017	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
2018	http://trac.osgeo.org/gdal/ticket/3514
2019
20202010-03-31  Frank Warmerdam  <[email protected]>
2021
2022	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
2023	directories so previously placed directories will be migrated to
2024	the end of file if needed.
2025
20262010-03-30  Frank Warmerdam  <[email protected]>
2027
2028	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
2029	to support operating on strips/tiles of more than 256MB.
2030	http://trac.osgeo.org/gdal/ticket/3512
2031
20322010-03-10  Bob Friesenhahn  <[email protected]>
2033
2034	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
2035	that it is clearly a memory allocation error message, and also
2036	includes the size of the allocation request.
2037
20382010-02-22  Lee Howard  <[email protected]>
2039
2040	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
2041	the JPEG TIFF as is is not required in order to prevent it from
2042	being unused and filled with invalid data.  (Leave it to be
2043	generated by later activity.)
2044	http://bugzilla.maptools.org/show_bug.cgi?id=2135
2045	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
2046	data rather than skipping them.  This fixes the ability to view in
2047	Acrobat Reader, Evince, and Ghostscript.
2048	http://bugzilla.maptools.org/show_bug.cgi?id=2135
2049	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
2050	strips.
2051	http://bugzilla.maptools.org/show_bug.cgi?id=2029
2052
20532009-12-03  Frank Warmerdam  <[email protected]>
2054
2055	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
2056	Made so that when working with downsampled images a stub function
2057	reporting an error is used for tif_decoderow.  We cannot meaningfully
2058	support reading scanlines in this situation.  (#1936)
2059
2060	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
2061	resetting of the upsampling values (gdal:#3259).
2062	http://bugzilla.maptools.org/show_bug.cgi?id=1936
2063
20642009-11-30  Frank Warmerdam  <[email protected]>
2065
2066	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
2067	tools/ras2tiff.c: Fix resource leaks on error.
2068	http://bugzilla.maptools.org/show_bug.cgi?id=2121
2069
2070	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
2071	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
2072	of as a custom(generic) field to avoid a potential reentrancy problem.
2073	http://bugzilla.maptools.org/show_bug.cgi?id=2125
2074
2075	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
2076	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
2077	const, and display_sRGB static and const.
2078	http://bugzilla.maptools.org/show_bug.cgi?id=2124
2079
20802009-11-04  Bob Friesenhahn  <[email protected]>
2081
2082	* libtiff 4.0.0alpha5 released.
2083
20842009-11-03  Bob Friesenhahn  <[email protected]>
2085
2086	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
2087	version has undergone substantial testing with arbitrary sample
2088	bit depths.  Also eliminates GCC compilation warnings.
2089
20902009-11-02  Bob Friesenhahn  <[email protected]>
2091
2092	* port/libport.h: Add extern declarations for getopt standard
2093	globals.
2094
20952009-10-31  Bob Friesenhahn  <[email protected]>
2096
2097	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
2098	noticed in 64-bit build of libtiff with Visual Studio 2005.
2099	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
2100	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
2101
2102	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
2103	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
2104	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
2105	http://bugzilla.maptools.org/show_bug.cgi?id=2068
2106
21072009-10-29  Bob Friesenhahn  <[email protected]>
2108
2109	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
2110	pointer" warnings.
2111
21122009-10-28  Bob Friesenhahn  <[email protected]>
2113
2114	* html/tools.html: Add manual page links, and a summary
2115	description of tiffcrop.
2116
21172009-10-07  Bob Friesenhahn  <[email protected]>
2118
2119	* configure.ac: x86_64 should use the same fill order as i386.
2120
21212009-09-24  Bob Friesenhahn  <[email protected]>
2122
2123	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
2124	Nolde.  Major updates to add significant functionality for reading
2125	and writing tile based images with bit depths not a multiple of 8
2126	which cannot be handled by tiffcp.
2127
21282009-09-03  Bob Friesenhahn  <[email protected]>
2129
2130	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
2131	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
2132	"Bug 2090 - OJPEG crash with libjpeg v7".
2133	http://bugzilla.maptools.org/show_bug.cgi?id=2090
2134
21352009-09-03  Frank Warmerdam  <[email protected]>
2136
2137	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
2138	interface when stoponerror is set.
2139	http://bugzilla.maptools.org/show_bug.cgi?id=2071
2140
21412009-08-30  Bob Friesenhahn  <[email protected]>
2142
2143	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
2144	fix build with gcc when using the "-Wformat
2145	-Werror=format-security" flags.
2146
21472009-08-29  Bob Friesenhahn  <[email protected]>
2148
2149	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
2150	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
2151	utilities tests.
2152
21532009-08-28  Bob Friesenhahn  <[email protected]>
2154
2155	* tools/tiffinfo.c: tiffinfo should return error status to the
2156	caller.  Register a private error callback to accomplish that.
2157
2158	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
2159	PNM formats so that we will be able to test more of the tools.
2160	While adding these test images I notice that bmp2tiff and gif2tiff
2161	only support ancient versions of their respective formats.
2162
21632009-08-27  Bob Friesenhahn  <[email protected]>
2164
2165	* libtiff 4.0.0alpha4 released.
2166
2167	* HOWTO-RELEASE: Improved release instructions.
2168
21692009-08-24  Bob Friesenhahn  <[email protected]>
2170
2171	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
2172	fixes for "Bug 2023 - nroff errors in manual pages".
2173	http://bugzilla.maptools.org/show_bug.cgi?id=2023
2174
2175	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
2176	CVE-2009-2347 libtiff: integer overflows in various inter-color
2177	space conversion tools".
2178	http://bugzilla.maptools.org/show_bug.cgi?id=2079
2179
2180	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
2181	Berkenbilt for "Bug 2024 - possible null pointer dereference with
2182	one-line fix".
2183	http://bugzilla.maptools.org/show_bug.cgi?id=2024
2184
2185	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
2186	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
2187	segfault after setting tdir_tag = IGNORE".
2188	http://bugzilla.maptools.org/show_bug.cgi?id=1895
2189
21902009-08-23  Bob Friesenhahn  <[email protected]>
2191
2192	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
2193	tiffcrop.sh into a collection of many specific tests.  Re-wrote
2194	all of the existing tests to be based on some simple shell
2195	functions.  Make distcheck works again.
2196
2197	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
2198	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
2199	tests under valgrind.
2200
22012009-08-21  Bob Friesenhahn  <[email protected]>
2202
2203	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
2204	build.
2205
2206	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
2207	actually activated since it needed to be enabled in this
2208	Makefile.am.  Also activated parallel-tests mode since it offers
2209	useful features such as per-test .log files and a summary test
2210	report .log file.
2211
22122009-08-20  Bob Friesenhahn  <[email protected]>
2213
2214	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
2215	libtool 2.2.6.  Enabled support for silent build rules
2216	(--enable-silent-rules or 'make V=0') and colorized tests.
2217
2218	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
2219
22202009-06-30  Frank Warmerdam  <[email protected]>
2221
2222	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
2223
2224	* tools/tiffcp.c: add -c sgilog support.
2225
2226	* libtiff/tif_luv.c: correct return codes from encoderow to be
2227	1 on success instead of zero.
2228	http://bugzilla.maptools.org/show_bug.cgi?id=2069
2229
2230	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
2231	#1085 for a better underflow fix that errors properly.
2232	http://bugzilla.maptools.org/show_bug.cgi?id=2065
2233	http://bugzilla.maptools.org/show_bug.cgi?id=1985
2234
22352009-06-26  Frank Warmerdam  <[email protected]>
2236
2237	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
2238	fails on oddly sized 12bit jpeg compressed ycbcr images.
2239
22402009-06-22  Frank Warmerdam  <[email protected]>
2241
2242	* libtiff/tif_lzw.c: Fix buffer underflow bug.
2243	http://bugzilla.maptools.org/show_bug.cgi?id=2065
2244
22452009-06-21  Frank Warmerdam  <[email protected]>
2246
2247	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
2248	for dual mode 8/12 bit jpeg support.
2249
22502009-06-03  Frank Warmerdam  <[email protected]>
2251
2252	* libtiff/tif_write.c: do not override the planar configuration to be
2253	contig for one sample files if planar configuration is already set.
2254	http://bugzilla.maptools.org/show_bug.cgi?id=2057
2255
22562009-06-02  Frank Warmerdam  <[email protected]>
2257
2258	* libtiff/libtiff.def: Add TIFFUnsetField.
2259
22602009-05-03  Frank Warmerdam  <[email protected]>
2261
2262	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
2263	error reports to use "%s" as format string.
2264	http://trac.osgeo.org/gdal/ticket/2976
2265
22662009-03-12  Frank Warmerdam  <[email protected]>
2267
2268	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
2269	for some codecs (#2020).
2270
22712009-02-12  Frank Warmerdam  <[email protected]>
2272
2273	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
2274	http://bugzilla.maptools.org/show_bug.cgi?id=2005
2275
22762009-02-09  Frank Warmerdam  <[email protected]>
2277
2278	* libtiff/tif_dirread.c: Improve allocation safety when allocated
2279	buffer for large tags.  (#1998)  Related to (#1993)
2280
22812009-02-06  Frank Warmerdam  <[email protected]>
2282
2283	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
2284	test suite should pass.
2285
22862009-02-05  Frank Warmerdam  <[email protected]>
2287
2288	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
2289	but at the 2GB boundary to avoid overflow on 32bit systems.
2290	http://bugzilla.maptools.org/show_bug.cgi?id=1993
2291
2292	* libtiff/tif_dirread.c: Remove some assertions that blow due to
2293	corrupt files rather than in response to library internal
2294	inconsistencies.
2295	http://bugzilla.maptools.org/show_bug.cgi?id=1995
2296	http://bugzilla.maptools.org/show_bug.cgi?id=1991
2297
2298	* libtiff/tif_dirread.c: Fixed testing for failed result from
2299	TIFFReadDirectoryFindFieldInfo().
2300	http://bugzilla.maptools.org/show_bug.cgi?id=1992
2301
23022009-01-23  Frank Warmerdam  <[email protected]>
2303
2304	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
2305	http://bugzilla.maptools.org/show_bug.cgi?id=1911
2306
2307	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
2308
2309	http://bugzilla.maptools.org/show_bug.cgi?id=1924
2310
2311	* tools/tiffcrop.c: initialize xres/yres values.
2312
2313	* test/*.sh - default ${srcdir} to local directory.
2314
2315	* test/common.sh - start verbose mode after common settings.
2316
2317	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
2318	avoid type mismatches on different platforms.
2319	http://bugzilla.maptools.org/show_bug.cgi?id=1889
2320
23212009-01-22  Frank Warmerdam  <[email protected]>
2322
2323	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
2324	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
2325
2326	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
2327	defined, primarily to reduce prototype warnings on windows.
2328
2329	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
2330	about unused parameters, and uninitialized variables.
2331
23322009-01-21  Bob Friesenhahn  <[email protected]>
2333
2334	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
2335	order to trace full execution detail while executing the test suite.
2336
23372009-01-20  Frank Warmerdam  <[email protected]>
2338
2339	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
2340
23412009-01-20  Bob Friesenhahn  <[email protected]>
2342
2343	* test/Makefile.am (CLEANFILES): Make sure that test output files
2344	are removed by 'make clean'
2345
2346	* Update autotools for 4.0.0 beta3
2347
2348	* 4.0.0 beta3 produced.
2349
23502009-01-12  Bob Friesenhahn  <[email protected]>
2351
2352	* test/tiffcrop.sh: New test script for tiffcrop from Richard
2353	Nolde.
2354
2355	* tools/tiff2ps.c: Remove spurious message to stderr.
2356
23572009-01-11  Bob Friesenhahn  <[email protected]>
2358
2359	* tools/tiff2ps.c: Incorporated significant functionality update
2360	from Richard Nolde.  In particular, support for rotating the image
2361	by 90, 180, 270, and 'auto' has been added.
2362
2363	* man/tiffcrop.1: Incorporated documentation updates from Richard
2364	Nolde.
2365
2366	* tools/tiffcrop.c: Incorporated significant functionality update
2367	from Richard Nolde.
2368
23692008-12-31  Bob Friesenhahn  <[email protected]>
2370
2371	* libtiff/tiffio.h: GCC will now validate format specifications
2372	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
2373	TIFFWarningExt() in order to reveal bugs.
2374
2375	* Many fixes throughout to work better as a 64-bit build.
2376
23772008-12-30  Bob Friesenhahn  <[email protected]>
2378
2379	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
2380	tags now require 64-bit parameter rather than 32-bit.
2381
2382	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
2383	64-bit values.
2384
2385	* tools/thumbnail.c: Eliminate crash noticed while running test
2386	suite.
2387
23882008-12-29  Bob Friesenhahn  <[email protected]>
2389
2390	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
2391	Initialize stack variables to avoid compiler warning.
2392
2393	* tools/tiffinfoce.c (main): Use toff_t for offset type when
2394	retrieving offset of EXIF IFD.
2395
2396	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
2397	TIFFClientOpen() callback and other external function definitions.
2398
2399	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
2400	type now.  Fixes crash when dumping files containing an EXIF IFD.
2401
2402	* m4/libtool.m4: Update to libtool 2.2.6.
2403
24042008-12-21  Frank Warmerdam  <[email protected]>
2405
2406	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
2407
2408	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
2409	strip for the last partial strip in a jpeg compressed file.
2410	http://bugzilla.maptools.org/show_bug.cgi?id=1981
2411
24122008-10-29  Frank Warmerdam  <[email protected]>
2413
2414	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
2415	we take the shortcut to only update the strip/tile offsets in place.
2416	http://trac.osgeo.org/gdal/ticket/2621
2417
24182008-10-21  Andrey Kiselev  <[email protected]>
2419
2420	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
2421	the older versions retained).
2422
24232008-10-09  Frank Warmerdam  <[email protected]>
2424
2425	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
2426	IPP enabled version of libjpeg from Intel.
2427	http://bugzilla.maptools.org/show_bug.cgi?id=1951
2428
24292008-09-05  Andrey Kiselev  <[email protected]>
2430
2431	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
2432	Required for libtiff 4.0.
2433
2434	* tools/tiffsplit.c: Use dynamically allocated array instead of static
2435	when constructing output file names.
2436
24372008-09-03  Andrey Kiselev  <[email protected]>
2438
2439	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
2440	doing the filename/path construction.
2441
2442	* tools/tiff2pdf.c: More appropriate format string in
2443	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
2444
2445	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
2446
2447	http://bugzilla.maptools.org/show_bug.cgi?id=1929
2448
2449	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
2450	CVE-2008-2327 security issue.
2451
24522008-09-01  Frank Warmerdam  <[email protected]>
2453
2454	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
2455
2456	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
2457	depending on whether the file is bigtiff or classic tiff.
2458	http://bugzilla.maptools.org/show_bug.cgi?id=1917
2459
24602008-08-12  Edward Lam  <[email protected]>
2461
2462	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
2463	consistent (__int64) casting when testing if _lseeki64 has
2464	successfully seeked as requested.  This is necessary for large
2465	file support to work since off_t is only 32-bit.
2466
24672008-07-29  Frank Warmerdam  <[email protected]>
2468
2469	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
2470	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
2471	with control logic to return runtime errors (c/o Even Rouault) (#1927).
2472
24732008-06-17  Frank Warmerdam  <[email protected]>
2474
2475	* tools/tiffcrop.c: Fix some portability problems.
2476
2477	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
2478	used in tif_jpeg.c.
2479
2480	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
2481	as TIFFOpen().
2482
24832008-06-01  Frank Warmerdam  <[email protected]>
2484
2485	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
2486	like Sparc/Solaris.
2487	http://bugzilla.maptools.org/show_bug.cgi?id=1892
2488
24892008-05-27  Frank Warmerdam  <[email protected]>
2490
2491	* libtiff.def: Add TIFFFindField
2492	http://bugzilla.maptools.org/show_bug.cgi?id=1891
2493
24942008-05-26  Frank Warmerdam  <[email protected]>
2495
2496	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
2497
2498	* li2008-04-15  Andrey Kiselev  <[email protected]>
2499
2500btiff/tif_win32.c: Replace custom Win32 memory api with generic
2501	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
2502	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
2503
2504	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
2505	in windows version (care of Edward Lam).
2506
25072008-05-24  Frank Warmerdam  <[email protected]>
2508
2509	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
2510	compression codec codes.
2511
2512	* tif_dirwrite.c: fix potential memory leak.
2513
2514	* tif_dirread.c: Fix unchecked malloc result.
2515
25162008-05-24  Bob Friesenhahn  <[email protected]>
2517
2518	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
2519	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
2520	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
2521	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
2522	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
2523	suggestions from Lee Howard posted to the tiff list on 13 Sep
2524	2007.
2525
25262008-05-23  Frank Warmerdam  <[email protected]>
2527
2528	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
2529	possible runtime problem reported by coverity.
2530
2531	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
2532
2533	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
2534	http://bugzilla.maptools.org/show_bug.cgi?id=1888
2535
2536	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
2537
2538	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
2539
2540	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
2541	Cleanup scanline allocation to avoid coverity warning.
2542
2543	* tools/thumbnail.c: Check for TIFFOpen() failure.
2544
25452008-05-18  Frank Warmerdam  <[email protected]>
2546
2547	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
2548	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
2549	why this is needed.
2550
25512008-05-09  Bob Friesenhahn  <[email protected]>
2552
2553	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
2554	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
2555
25562008-04-15  Andrey Kiselev  <[email protected]>
2557
2558	* test/: Test suite updated. Everything is passed now.
2559
2560	* libtiff/tif_dirinfo.c: Fixed description of the
2561	TIFFTAG_NUMBEROFINKS tag.
2562
25632008-04-14  Andrey Kiselev  <[email protected]>
2564
2565	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
2566	Get rid of some of "dereferencing type-punned" warnings by converting
2567	tdir_offset field of TIFFDirEntry structure into union.
2568
25692008-04-10  Andrey Kiselev  <[email protected]>
2570
2571	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
2572	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
2573	from the public interface. Type of its 'count' parameter changed
2574	from uint32 to tmsize_t.
2575
2576	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
2577	of the tiff structure have the size_t type instead of uint32.
2578
25792008-04-09  Andrey Kiselev  <[email protected]>
2580
2581	* tools/tiffdump.c: Added support for MSVS 6.0.
2582
2583	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
2584	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
2585	point values on MSVS 6.0 platform.
2586
25872008-03-14  Frank Warmerdam  <[email protected]>
2588
2589	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
2590	TIFFReadDirEntryArray() since they are interfering with seemingly
2591	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
2592
25932008-02-09  Joris Van Damme  <[email protected]>
2594
2595	* tif_dirread.c: Added handling for the case of number of values for
2596	PageNumber tag different from 2 (previously resulted in an assert
2597	indicating lack of handling and was forgotten about)
2598
25992008-02-01  Frank Warmerdam  <[email protected]>
2600
2601	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
2602	the actual jpeg data stream if the first strip/tile has zero size.
2603	This is the case when GDAL creates a new file with zero sizes, closes
2604	and reopens it.
2605
26062008-01-07  Frank Warmerdam  <[email protected]>
2607
2608	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
2609
26102008-01-01  Frank Warmerdam  <[email protected]>
2611
2612	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
2613
2614	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
2615	targets.
2616
2617	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
2618	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
2619	(x64).
2620
2621	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
2622	and TIFFFieldWithName() now return TIFFField pointers instead of
2623	TIFFFieldInfo pointers.
2624
2625	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
2626	exist. This makes it compile again on Windows
2627
2628	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
2629	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
2630
2631	* test/rewrite_tag.c: New test for TIFFRewriteField().
2632
26332007-12-31  Frank Warmerdam  <[email protected]>
2634
2635	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
2636	rewrites one field "on disk" updating an existing directory
2637	entry.  Lots of limitations still...
2638
2639	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
2640	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
2641	the strip offset/size values are dirty but nothing else about the
2642	directory is dirty.  In flush handle "just stripmaps dirty" as a
2643	special case that just rewrites these values without otherwise
2644	modifying the directory on disk using TIFFRewriteField().
2645
2646	We also modify logic so that in update mode the directory is not
2647	marked dirty on read, but only when something is changed.  This
2648	means we need to keep track of updates to the stripmap stuff in
2649	TIFFAppendToStrip().
2650
26512007-12-10  Frank Warmerdam  <[email protected]>
2652
2653	* tif_jpeg.c: Improve ability to switch between encoding and decoding
2654	in the jpeg code (gdal bug #2033).
2655
26562007-11-23  Frank Warmerdam  <[email protected]>
2657
2658	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
2659	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
2660	rawcp/rawcc buffer are for writing and thus may require flushing.
2661	Necessary to distinguish whether they need to be written to disk when
2662	in mixed read/write mode and doing a mixture of writing followed by
2663	reading.  http://trac.osgeo.org/gdal/ticket/1758
2664
26652007-11-23  Andrey Kiselev  <[email protected]>
2666
2667	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
2668	from Alexey Chupahin.
2669
26702007-11-02  Frank Warmerdam  <[email protected]>
2671
2672	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
2673	establishing if an existing tile can be rewritten to the same location
2674	by comparing the current size to all the other blocks in the same
2675	directory.  This is dangerous in many situations and can easily
2676	corrupt a file.  (observed in esoteric GDAL situation that's hard to
2677	document).  This change involves leaving the stripbytecount[] values
2678	unaltered till TIFFAppendToStrip().  Now we only write a block back
2679	to the same location it used to be at if the new data is the same
2680	size or smaller - otherwise we move it to the end of file.
2681
2682	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
2683	data when writing the directory just because we have BEENWRITING at
2684	some point in the past.  This was causing odd junk to be written out
2685	in a tile of data when a single tile had an interleaving of reading
2686	and writing with reading last.  (highlighted by gdal
2687	autotest/gcore/tif_write.py test 7.
2688
2689	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
2690	modifying callers buffer.
2691	http://trac.osgeo.org/gdal/ticket/1965
2692
2693	* tif_predict.c/h: more fixes related to last item, keeping a
2694	distinct pfunc for encode and decode cases as these were getting
2695	mixed up sometimes.
2696	http://trac.osgeo.org/gdal/ticket/1948
2697
26982007-11-01  Frank Warmerdam  <[email protected]>
2699
2700	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
2701	predictor based encoding and decoding works in read-write update
2702	mode properly.
2703	http://trac.osgeo.org/gdal/ticket/1948
2704
27052007-10-24  Joris Van Damme  <[email protected]>
2706
2707	* tif_dirread.c: Fixed problem with bogus file triggering
2708	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
2709	ChopUpSingleUncompressedStrip
2710
27112007-10-22  Joris Van Damme  <[email protected]>
2712
2713	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
2714	at best, access violation at worst, when subsampled JPEG compressed imagery
2715	is decoded without the JPEG_COLORMODE feature
2716
27172007-10-11  Frank Warmerdam  <[email protected]>
2718
2719	* html/index.html: Update "people responsible" section.
2720
27212007-10-05  Frank Warmerdam  <[email protected]>
2722
2723	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
2724	as reported on the mailing list.
2725
27262007-10-01  Joris Van Damme  <[email protected]>
2727
2728	* changed some more incorrect %lud printf flags to %lu
2729
27302007-09-29  Joris Van Damme  <[email protected]>
2731
2732	* tif_dirread.c: Strip chopping interfered badly with uncompressed
2733	subsampled images because it tried to divide subsampled rowblocks,
2734	leading to all sorts of errors throughout the library for these
2735	images. Fixed by making strip chopping divide in row counts that
2736	are a multiple of vertical subsampling value.
2737
27382007-09-28  Joris Van Damme  <[email protected]>
2739
2740	* tif_dirread.c: Logical cast working around compiler warning
2741
2742	* tif_read.c: Correction of some error flags and parameter lists
2743
27442007-09-27  Joris Van Damme  <[email protected]>
2745
2746	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
2747	when dealing with large bitspersample values, shutting up purification
2748	tools that warn about truncation, though it remains incorrect and
2749	indicates a conceptual problem there.
2750
2751	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
2752	of first IFD) to proper place because it badly interfered with memory
2753	mapping, resulting in mapping flag even with dummy mapping functions
2754	that returned 0 whilst at the same time the mapping tif_size wasn't
2755	set, thus resulting in continuous incorrect beyond-eof errors.
2756
27572007-09-24  Joris Van Damme  <[email protected]>
2758
2759	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
2760	inconsistent use of const in tiffFields and exifFields definition
2761
27622007-09-20  Frank Warmerdam  <[email protected]>
2763
2764	* tif_dirwrite.c: Always write tile/strip offsets and sizes
2765	using LONG8 type when output format is BigTIFF.  The
2766	TIFFWriteDirectoryTagLongLong8Array() function was restructured
2767	accordingly.
2768
2769	* tif_dirread.c: Improvements to error reporting text in
2770	TIFFFetchDirectory().
2771
27722007-09-19  Bob Friesenhahn  <[email protected]>
2773
2774	* test/images: Added a small collection of test images for use by
2775	test programs and scripts.
2776	* test/tiffinfo.sh: A trivial example test script.
2777	* test/common.sh: Added small script for setting the environment
2778	used by script-based tests.
2779
27802007-08-24  Frank Warmerdam  <[email protected]>
2781
2782	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
2783	zero when writing directory contents to preserve the ability to
2784	rewrite directories in place, even in the middle of a directory
2785	chain.
2786
2787	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
2788	definitions that are missing.  Existing definitions are silently
2789	ignored.
2790
2791	* tif_dirread.c: Add runtime error for fields for which no definition
2792	is found (in addition to an assert for developers) in
2793	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
2794	prudent.
2795
27962007-08-10  Joris Van Damme  <[email protected]>
2797
2798	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
2799	from _TIFFRGBAImage structure to revert unwanted ABI change.
2800
28012007-08-10  Joris Van Damme  <[email protected]>
2802
2803	* libtiff/tif_win32.c: use SetFilePointer instead of
2804	SetFilePointerEx, as per bug
2805
2806	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
2807
28082007-07-19  Andrey Kiselev  <[email protected]>
2809
2810	* libtiff/tif_stream.cxx: Put all callback functions declarations
2811	inside extern "C" block.
2812
2813	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
2814	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
2815	formatter instead of "%lld" with MSVC compiler.
2816
2817	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
2818	_TIFFUInt64ToDouble() functions.
2819
28202007-07-18  Andrey Kiselev  <[email protected]>
2821
2822	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
2823	integer constants.
2824
2825	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2826	remove tif_config.h/tiffconf.h during cleaning. As per bug
2827
2828	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2829
2830	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2831
2832	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2833
28342007-07-13  Andrey Kiselev  <[email protected]>
2835
2836	* libtiff 4.0.0alpha released.
2837
28382007-07-12  Andrey Kiselev  <[email protected]>
2839
2840	* tools/tiff2pdf.c: Added missed extern optind as per bug
2841
2842	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2843
2844	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2845	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2846	extending scheme completed.
2847
28482007-07-11  Bob Friesenhahn  <[email protected]>
2849
2850	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2851	use standard C++ library size types and attempt to detect overflow
2852	cases.
2853
28542007-07-08  Andrey Kiselev  <[email protected]>
2855
2856	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2857	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2858	tag extending scheme. Use the new scheme everywhere.
2859
2860	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2861	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2862	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2863	TIFFFIeldInfo structure replaced with TIFFField structure.
2864	TIFFFieldInfo retained for the backward compatibility.
2865
28662007-07-05  Bob Friesenhahn  <[email protected]>
2867
2868	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2869	defined.
2870
28712007-07-04  Andrey Kiselev  <[email protected]>
2872
2873	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2874	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2875	removed.
2876
2877	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2878	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2879	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2880	These tags are not codec-specific and relate to image content, so
2881	process them as other normal tags.
2882
2883	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2884	public tiffio.h to private tif_dir.h.
2885
2886	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2887	outdated.
2888
28892007-07-03  Andrey Kiselev  <[email protected]>
2890
2891	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2892	tif_win3.c}: Obsoleted portability stuff removed.
2893
2894	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2895
2896	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2897
2898	Patch from William Bader.
2899
2900	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2901	significant upgrade of the whole utility as per bug
2902
2903	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2904
2905	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2906	PDF file using TIFFClientOpen() machinery as it is implemented
2907	by Leon Bottou.
2908
29092007-06-26  Bob Friesenhahn  <[email protected]>
2910
2911	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2912	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2913	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2914	allow returning -1 for errors.
2915	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2916
29172007-06-25  Bob Friesenhahn  <[email protected]>
2918
2919	* port/strtoull.c: New porting function in case strtoull() is not
2920	available on the target system.
2921	* configure.ac: Add configure support for determining sized types
2922	in a portable way and performing necessary substitutions in
2923	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2924	definitions.
2925
29262007-04-27  Andrey Kiselev  <[email protected]>
2927
2928	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2929
2930	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2931
29322007-04-07  Andrey Kiselev  <[email protected]>
2933
2934	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2935	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2936	tif_predict.c, tif_zip.c}: Finally fix bug
2937
2938	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2939
2940	by introducing _TIFFMergeFieldInfo() returning integer error status
2941	instead of void in case of problems with field merging (e.g., if the
2942	field with such a tag already registered). TIFFMergeFieldInfo() in
2943	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2944	check returned value.
2945
29462007-04-07  Frank Warmerdam  <[email protected]>
2947
2948	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2949	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2950
29512007-04-06  Frank Warmerdam  <[email protected]>
2952
2953	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2954	will convert from decompressor to compressor or compress to decompress
2955	if required by the force arguments.  This works around a problem in
2956	where the JPEGFixupTestSubsampling() may cause a decompressor to
2957	be setup on a directory when later a compressor is required with the
2958	force flag set.  Occurs with the addtiffo program for instance.
2959
29602007-04-06  Andrey Kiselev  <[email protected]>
2961
2962	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2963	functionality from Richard Nolde. As per bug
2964
2965	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2966
29672007-03-28  Frank Warmerdam  <[email protected]>
2968
2969	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2970
29712007-03-17  Joris Van Damme  <[email protected]>
2972
2973	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2974
29752007-03-07  Joris Van Damme  <[email protected]>
2976
2977	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2978	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2979	factor. This bug is mentioned in:
2980	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2981	http://www.asmail.be/msg0054766825.html
2982
29832007-03-07  Joris Van Damme  <[email protected]>
2984
2985	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2986
2987	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2988	unused arguments by standard C indication for the same
2989
29902007-02-27  Andrey Kiselev  <[email protected]>
2991
2992	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2993	counters in TIFFFetchData(). Should finally fix the issue
2994
2995	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2996
29972007-02-24  Andrey Kiselev  <[email protected]>
2998
2999	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
3000	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
3001
3002	* libtiff/tif_dirread.c: Added special function to handle
3003	SubjectDistance EXIF tag as per bug
3004
3005	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
3006
3007	* tools/tiff2pdf.c: Do not assume inches when the resolution units
3008	do not specified. As per bug
3009
3010	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
3011
3012	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
3013	it was set as infinite. As per bug
3014
3015	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
3016
3017	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
3018	by Richard Nolde. As per bug
3019
3020	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
3021
30222007-02-22  Andrey Kiselev  <[email protected]>
3023
3024	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
3025	ExtraSamples == 999 produced by Corel Draw. As per bug
3026
3027	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
3028
3029	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
3030	changed from tsize_t to uint32 to be able to work with data arrays
3031	larger than 2GB. Fixes bug
3032
3033	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
3034
3035	Idea submitted by Matt Hancher.
3036
30372007-01-31  Andrey Kiselev  <[email protected]>
3038
3039	* tools/tif2rgba.c: This utility does not work properly on big-endian
3040	architectures. It was fixed including the bug
3041
3042	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
3043
30442007-01-15  Mateusz Loskot <[email protected]>
3045
3046	* Submitted libtiff port for Windows CE platform
3047	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
3048	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
3049	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
3050	functons from tif_win32.c.
3051	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
3052	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
3053	standard header files for Windows CE build.
3054	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
3055
30562006-11-19  Frank Warmerdam  <[email protected]>
3057
3058	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
3059	we move a strip.
3060	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
3061
30622006-10-13  Andrey Kiselev  <[email protected]>
3063
3064	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
3065	in Gentoo bug ():
3066
3067	http://bugs.gentoo.org/show_bug.cgi?id=142383
3068
3069	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
3070	Though it is still far from the state of being working and useful.
3071
30722006-10-12  Andrey Kiselev  <[email protected]>
3073
3074	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
3075	method.
3076
3077	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
3078	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
3079
3080	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
3081	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
3082
3083	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
3084	vulnerabilities, reported in Gentoo bug ():
3085
3086	http://bugs.gentoo.org/show_bug.cgi?id=142383
3087
30882006-09-28  Andrey Kiselev  <[email protected]>
3089
3090	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
3091	vulnerabilities, as per	Gentoo bug ():
3092
3093	http://bugs.gentoo.org/show_bug.cgi?id=142383
3094
30952006-09-27  Frank Warmerdam  <[email protected]>
3096
3097	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
3098	encoding and decoding on the same read-write TIFF handle.  The LZW
3099	code can now maintain encode and decode state at the same time. The
3100	ZIP code will switch back and forth as needed.
3101	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
3102
31032006-09-20  Frank Warmerdam  <[email protected]>
3104
3105	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
3106	tif_config.vc.h for easier identification by folks using an IDE.
3107
31082006-07-25  Frank Warmerdam  <[email protected]>
3109
3110	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
3111
31122006-07-19  Frank Warmerdam  <[email protected]>
3113
3114	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
3115	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
3116	to bug report by Peng Gao with black strip at bottom of images.
3117
31182006-07-12  Frank Warmerdam  <[email protected]>
3119
3120	* tif_dirwrite.c: make sure to use uint32 for wordcount in
3121	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
3122	It already seems to have been done for other field types.  Needed
3123	for "tiffset" on files with geotiff ascii text.
3124
31252006-07-04  Bob Friesenhahn  <[email protected]>
3126
3127	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
3128	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
3129	its use does not appear to be required, so use it only when it is
3130	available.
3131
31322006-06-24  Andrey Kiselev  <[email protected]>
3133
3134	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
3135
3136	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
3137	function TIFFFetchDirectory() avoiding code duplication in
3138	TIFFReadDirectory() and TIFFReadCustomDirectory().
3139
31402006-06-19  Frank Warmerdam  <[email protected]>
3141
3142	* tools/tiff2pdf.c: Fix handling of -q values.
3143	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
3144
31452006-06-17  Frank Warmerdam  <[email protected]>
3146
3147	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
3148	files.  Modified TIFFReadDirectory() to not invoke
3149	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
3150	but one of them is zero.
3151	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
3152
31532006-06-08  Andrey Kiselev  <[email protected]>
3154
3155	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
3156	checking code in the separate function TIFFCheckDirOffset().
3157
3158	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
3159
3160	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
3161
3162	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
3163
3164	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
3165
3166	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
3167
3168	* tools/tiff2pdf.c: Fixed buffer overflow condition in
3169	t2p_write_pdf_string() as per bug
3170
3171	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
3172
31732006-06-07  Andrey Kiselev  <[email protected]>
3174
3175	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
3176	support for JBIG compression scheme (34661 code) contributed by Lee
3177	Howard. As per bug
3178
3179	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
3180
3181	* configure, configure.ac: OJPEG support enabled by default.
3182
3183	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
3184
31852006-06-03  Bob Friesenhahn  <[email protected]>
3186
3187	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
3188	TIFFPrintDirectory().  Joris Van Damme authored the fix.
3189
31902006-04-21  Andrey Kiselev  <[email protected]>
3191
3192	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
3193	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
3194
3195	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
3196	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
3197	Added support for OpenVMS by Alexey Chupahin, [email protected].
3198
31992006-04-20  Andrey Kiselev  <[email protected]>
3200
3201	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
3202	Properly set the binary mode for stdin stream as per bug
3203	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
3204
3205	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
3206	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
3207	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
3208	tiffset.1}: Improvements in page formatting as per bug
3209	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
3210
3211	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
3212	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
3213
32142006-04-18  Frank Warmerdam  <[email protected]>
3215
3216	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
3217	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
3218
32192006-04-12  Joris Van Damme  <[email protected]>
3220
3221	* libtiff/tif_getimage.c: Added support for planarconfig separate
3222	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
3223
32242006-04-11  Joris Van Damme  <[email protected]>
3225
3226	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
3227	- Conversion of unassociated alpha to associated alpha now done with
3228	  more performant LUT, and calculation more correct
3229	- Conversion of 16bit data to 8bit data now done with
3230	  more performant LUT, and calculation more correct
3231	- Bugfix of handling of 16bit RGB with unassociated alpha
3232
32332006-04-11  Joris Van Damme  <[email protected]>
3234
3235	* libtiff/tif_getimage.c:
3236	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
3237	  buffer for alpha strile and filled it, only to never read it back.
3238	  Removed allocation and fill.
3239	- Minor rename of vars in gtTileSeparate and gtStripSeparate
3240	  anticipating planned functionality extension
3241
32422006-04-08  Joris Van Damme  <[email protected]>
3243
3244	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
3245	and pickTileSeparateCase to PickSeparateCase as both work on strips as
3246	well
3247
3248	* libtiff/tif_getimage.c: moved img->get selection from
3249	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
3250	logical hook for planned functionality extension
3251
32522006-04-08  Joris Van Damme  <[email protected]>
3253
3254	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
3255	of inappropriate use of jpeg_abort instead of jpeg_destroy
3256
32572006-04-07  Joris Van Damme  <[email protected]>
3258
3259	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
3260	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
3261	on subsampled images - this ought to get sorted when we feel brave
3262	enough to replace TIFFScanlineSize alltogether
3263
3264	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
3265
32662006-04-04  Joris Van Damme  <[email protected]>
3267
3268	* libtiff/tiffio.h: added new type tstrile_t
3269
3270	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
3271	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
3272	toff_t*
3273
3274	* libtiff/tif_ojpeg.c: totally new implementation
3275
3276	* libtiff/tif_dirread.c: added several hacks to suit new support of
3277	OJPEG
3278
3279	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
3280	of OJPEG images in favor of tif_getimage.c native handling of
3281	YCbCr and desubsampling
3282
32832006-03-29  Frank Warmerdam  <[email protected]>
3284
3285	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
3286	interpretation causes the "upsampled" flag to be recomputed.  Fixes
3287	peculiar bug where photometric flag had to be set before jpegcolormode
3288	flag.
3289
32902006-03-25  Joris Van Damme  <[email protected]>
3291
3292	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
3293
3294	* libtiff/tif_strip.c: temporarilly added two new versions of
3295	TIFFScanlineSize
3296	  - TIFFNewScanlineSize: proposed new version, after all related
3297	    issues and side-effects are sorted out
3298	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
3299	This needs further sorting out.
3300
33012006-03-25  Joris Van Damme  <[email protected]>
3302
3303	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
3304	of last truncated strip data to TIFFWriteEncodedStrip
3305
33062006-03-25  Joris Van Damme  <[email protected]>
3307
3308	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
3309
33102006-03-25  Joris Van Damme  <[email protected]>
3311
3312	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
3313
3314	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
3315
3316	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
3317	prepare	the path for new tif_ojpeg.c
3318
33192006-03-23  Andrey Kiselev  <[email protected]>
3320
3321	* libtiff 3.8.2 released.
3322
3323	* tools/Makefile.am: Use runtime paths linker flags when rpath
3324	option enabled.
3325
33262006-03-21  Andrey Kiselev  <[email protected]>
3327
3328	* libtiff/libtiff.def: Added missed exports as per bug
3329	http://bugzilla.remotesensing.org/attachment.cgi?id=337
3330
3331	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
3332	tools/Makefile.vc: Makefiles improvements as per bug
3333	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
3334
3335	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
3336	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
3337	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
3338
3339	* libtiff/tif_strip.c: Take subsampling in account when calculating
3340	TIFFScanlineSize().
3341
3342	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
3343
33442006-03-17  Andrey Kiselev  <[email protected]>
3345
3346	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
3347	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
3348
3349	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
3350	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
3351
33522006-03-16  Andrey Kiselev  <[email protected]>
3353
3354	* libtiff/tiffiop.h: Added decalration for
3355	_TIFFSetDefaultCompressionState().
3356
3357	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
3358	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
3359	codec cleanup methods. As per bug
3360
3361	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
3362
33632006-03-15  Andrey Kiselev  <[email protected]>
3364
3365	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
3366	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
3367
3368	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
3369	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
3370
3371	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
3372	removed; move here the STRIP_SIZE_DEFAULT macro definition.
3373
3374	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
3375	macro definition.
3376
3377	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
3378
33792006-03-14  Andrey Kiselev  <[email protected]>
3380
3381	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
3382	in TIFFReadDirectory, because it is always set at the start of
3383	function and we allow TIFFs without that tag set.
3384
33852005-03-13  Andrey Kiselev  <[email protected]>
3386
3387	* libtiff 3.8.1 released.
3388
33892006-03-07  Andrey Kiselev  <[email protected]>
3390
3391	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
3392	function as per bug
3393	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3394
3395	* libtiff/tif_dirread.c: More wise check for integer overflow
3396	condition as per bug
3397	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3398
3399	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
3400	Properly restore setfield/getfield methods in cleanup functions. As
3401	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3402
34032006-03-03  Andrey Kiselev  <[email protected]>
3404
3405	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
3406	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
3407
3408	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
3409	TIFFPredictorCleanup() in codec cleanup methods. As per bug
3410
3411	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3412
3413	* libtiff/tif_dirread.c: Fixed integer overflow condition in
3414	TIFFFetchData() function. As per bug
3415
3416	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3417
34182006-03-01  Andrey Kiselev  <[email protected]>
3419
3420	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
3421	TIFFSetField() method, not directly. As per bug
3422
3423	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
3424
3425	* tools/ppm2tiff.c: Added support for PBM files as per bug
3426	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
3427
34282006-02-27  Andrey Kiselev  <[email protected]>
3429
3430	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
3431	to avoid crash as per bug
3432
3433	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
3434
34352006-02-26  Andrey Kiselev  <[email protected]>
3436
3437	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
3438	t2p_sample_rgba_to_rgb() was used in place of each other, that was
3439	resulted in problems with RGBA images with associated alpha.
3440	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
3441
34422006-02-23  Andrey Kiselev  <[email protected]>
3443
3444	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
3445	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
3446
3447	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
3448	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
3449	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
3450
3451	* tools/tiff2ps.c: Properly scale all the pages when converting
3452	multipage TIFF with /width/height/center options set. As per bug
3453
3454	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
3455
34562006-02-15  Andrey Kiselev  <[email protected]>
3457
3458	* tools/tiff2pdf.c: Do not create output file until all option checks
3459	will be done. As per bug
3460
3461	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
3462
3463	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
3464	list of input files as per bug:
3465
3466	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
3467
34682006-02-09  Andrey Kiselev  <[email protected]>
3469
3470	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
3471	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
3472
3473	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
3474	TIFFRGBAImage interface.
3475
3476	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
3477	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
3478
34792006-02-07  Frank Warmerdam  <[email protected]>
3480
3481	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
3482	compressed TIFF files, per submission from Dan Cobra.
3483
34842006-02-07  Andrey Kiselev  <[email protected]>
3485
3486	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
3487	cast values to avoid warnings. As per bug
3488	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3489
3490	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
3491	appropriate. As per bug
3492	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3493
3494	* libtiff/tif_aux.c: Fixed type of temporary variable in
3495	_TIFFCheckMalloc() as per bug
3496	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3497
34982006-02-06  Andrey Kiselev  <[email protected]>
3499
3500	* libtiff/tif_aux.c: Return static array when fetching default
3501	YCbCrCoefficients (another problem, reported a the
3502	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
3503
35042006-02-03  Andrey Kiselev  <[email protected]>
3505
3506	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
3507	YCbCrSubsampling and DotRange tags as per bugs
3508
3509	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
3510	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
3511
3512	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
3513	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
3514
3515	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
3516
35172006-01-23  Andrey Kiselev  <[email protected]>
3518
3519	* libtool related stuff updated from the 2.1a branch.
3520
35212006-01-11  Frank Warmerdam  <[email protected]>
3522
3523	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
3524	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
3525	properly as per bug:
3526	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
3527
35282006-01-09  Bob Friesenhahn  <[email protected]>
3529
3530	* configure.ac: Fix with_default_strip_size comparison as reported
3531	by Norihiko Murase.
3532
35332006-01-08  Bob Friesenhahn  <[email protected]>
3534
3535	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
3536	incorrectly, tests were not actually testing the uninstalled
3537	libtiff.  Now they are.
3538
35392006-01-04  Andrey Kiselev  <[email protected]>
3540
3541	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
3542	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
3543	should be uint32 value.
3544
35452006-01-02  Bob Friesenhahn  <[email protected]>
3546
3547	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
3548	be used if build directory is not the same as source directory.
3549	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
3550	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
3551	and re-sorted tag names in alphabetical order.
3552
35532005-12-29  Andrey Kiselev  <[email protected]>
3554
3555	* libtiff 3.8.0 released.
3556
35572005-12-28  Bob Friesenhahn  <[email protected]>
3558
3559	* tools/bmp2tiff.c (main): Fixed warning regarding returning
3560	inconsistent types from a condition.
3561	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
3562	format.
3563	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
3564
35652005-12-28  Joris Van Damme  <[email protected]>
3566
3567	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
3568
35692005-12-27  Andrey Kiselev  <[email protected]>
3570
3571	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
3572	windows.h, to reduce the compile time.
3573
35742005-12-26  Bob Friesenhahn  <[email protected]>
3575
3576	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
3577
35782005-12-26  Andrey Kiselev  <[email protected]>
3579
3580	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
3581	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
3582	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
3583	private functions to retrieve FieldInfo arrays.
3584
35852005-12-24  Bob Friesenhahn  <[email protected]>
3586
3587	* html/build.html: Added some additional instructions for when
3588	building using MSVC under Windows.  Also fixed two HTML syntax
3589	errors and used HTML Tidy to tidy up the HTML syntax and
3590	formatting.
3591
35922005-12-24  Andrey Kiselev  <[email protected]>
3593
3594	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
3595	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
3596	StoNits tags custom.
3597
35982005-12-23  Andrey Kiselev  <[email protected]>
3599
3600	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
3601	WhitePoint tag custom.
3602
3603	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
3604
36052005-12-23  Joris Van Damme  <[email protected]>
3606
3607	* libtiff/tiffio.h: fixed typo that potentially resulted in
3608	redefininition of USE_WIN32_FILEIO
3609
3610	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
3611	calls in core LibTiff.
3612
36132005-12-21  Andrey Kiselev  <[email protected]>
3614
3615	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
3616	Photoshop and ICCProfile tags custom.
3617
36182005-12-21  Joris Van Damme  <[email protected]>
3619
3620	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
3621	newer code to get context indicator in error handler and still
3622	remain compatible with older code: Done TIFFError calls everywhere
3623	except in tools
3624
36252005-12-20  Andrey Kiselev  <[email protected]>
3626
3627	* tools/tiffcp.c: Added many error reporting messages; fixed integer
3628	overflow as per bug
3629
3630	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
3631
36322005-12-16  Frank Warmerdam  <[email protected]>
3633
3634	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
3635	YCbCr images in jpeg compressed TIFF files.
3636
36372005-12-14  Andrey Kiselev  <[email protected]>
3638
3639	* tools/tiffcp.c: Return non-zero status when reading fails (again).
3640
36412005-12-13  Andrey Kiselev  <[email protected]>
3642
3643	* tools/tiffcp.c: Return non-zero status when reading fails.
3644
36452005-12-12  Andrey Kiselev  <[email protected]>
3646
3647	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
3648
36492005-12-09  Andrey Kiselev  <[email protected]>
3650
3651	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
3652	custom.
3653
3654	* tools/tiffinfo.c: Print EXIF directory contents if exist.
3655
3656	* libtiff/tiff.h: Few EXIF tag numbers added.
3657
3658	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
3659	tiffio.h}: Preliminary support to read custom directories. New
3660	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
3661
36622005-12-07  Andrey Kiselev  <[email protected]>
3663
3664	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
3665	More work to implement custom directory read support.
3666
3667	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
3668	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
3669	tags custom.
3670
36712005-12-05  Andrey Kiselev  <[email protected]>
3672
3673	* libtiff/tif_dirread.c: One more workaround for broken
3674	StripByteCounts tag. Handle the case when StripByteCounts array filled
3675	with completely wrong values.
3676
36772005-11-30  Andrey Kiselev  <[email protected]>
3678
3679	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
3680	in the TIFFOpenW() function as per bug
3681
3682	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
3683
3684	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
3685	functions as per bug
3686
3687	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
3688
36892005-11-20  Frank Warmerdam  <[email protected]>
3690
3691	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
3692	for MS MDI format.
3693	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
3694
3695	* .cvsignore: many files added, and a few update according
3696	to suggestion of Brad HArds on tiff mailing list.
3697
36982005-11-03  Frank Warmerdam  <[email protected]>
3699
3700	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
3701	public.
3702
37032005-10-31  Andrey Kiselev  <[email protected]>
3704
3705	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
3706	as per bug
3707
3708	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
3709
3710	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
3711	as per bug
3712
3713	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
3714
3715	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
3716	problem as per bug
3717
3718	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
3719
3720	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
3721
3722	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
3723
3724	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
3725	ResolutionUnit tags modifiable during write process. As per bug
3726
3727	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
3728
3729	* tools/tiffsplit.c: Copy fax related fields over splitted parts
3730	as per bug
3731
3732	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
3733
37342005-10-21  Frank Warmerdam  <[email protected]>
3735
3736	* tif_dirread.c: Don't try and split single strips into "0" strips
3737	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
3738	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
3739
37402005-10-20  Joris Van Damme  <[email protected]>
3741
3742	* tif_fax3.c: changed 'at scanline ...' style warning/errors
3743	with incorrect use of tif_row, to 'at line ... of
3744	strip/tile ...' style
3745
37462005-10-15  Frank Warmerdam  <[email protected]>
3747
3748	* tif_write.c: fixed setting of planarconfig as per bug report
3749	on the mailing list from Joris.
3750
37512005-10-07  Andrey Kiselev  <[email protected]>
3752
3753	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
3754	tif_dirread.c}: Make the default strip size configurable via the
3755	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
3756
37572005-09-30  Bob Friesenhahn  <[email protected]>
3758
3759	* html/support.html: Fixed link to documentation on Greg Ward's
3760	LogLuv TIFF format.
3761
37622005-09-28  Andrey Kiselev  <[email protected]>
3763
3764	* tools/tiffdump.c: Fixed crash when reading malformed tags.
3765
37662005-09-20  Andrey Kiselev  <[email protected]>
3767
3768	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
3769	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
3770
37712005-09-12  Andrey Kiselev  <[email protected]>
3772
3773	* libtiff 3.7.4 released.
3774
3775	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
3776	from Patrick Welche (all scripts moved in the 'config' and 'm4'
3777	directories).
3778
37792005-09-12  Frank Warmerdam  <[email protected]>
3780
3781	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
3782
37832005-09-05  Frank Warmerdam  <[email protected]>
3784
3785	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
3786	also set it to NULL to avoid double free when re-setting custom
3787	string fields as per:
3788
3789	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
3790
37912005-08-12  Frank Warmerdam  <[email protected]>
3792
3793	* libtiff/tif_print.c: avoid signed/unsigned warning.
3794
3795	* libtiff/tif_dirread.c: removed unused variable.
3796
37972005-07-30  Frank Warmerdam  <[email protected]>
3798
3799	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
3800	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
3801	pass on bigendian (macosx) system.
3802
38032005-07-28  Andrey Kiselev  <[email protected]>
3804
3805	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
3806	CheckMalloc() function to _TIFFCheckMalloc() and make it available
3807	globally as an internal helper routine.
3808
38092005-07-27  Andrey Kiselev  <[email protected]>
3810
3811	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
3812	the custom tags handling code.
3813
38142005-07-26  Andrey Kiselev  <[email protected]>
3815
3816	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
3817	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
3818	function, use TIFFFetchNormalTag() instead as per bug
3819
3820	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3821
3822	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
3823	instead.
3824
3825	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3826
3827	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3828
38292005-07-25  Andrey Kiselev  <[email protected]>
3830
3831	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3832
3833	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3834
38352005-07-21  Andrey Kiselev  <[email protected]>
3836
3837	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3838	the TIFFWriteCheck() function in case of single band images (as per
3839	TIFF spec).
3840
38412005-07-12  Andrey Kiselev  <[email protected]>
3842
3843	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3844	support for SCons software building tool (http://www.scons.org/).
3845	This is experimental infrastructure and it will exist along with the
3846	autotools mechanics.
3847
38482005-07-07  Andrey Kiselev  <[email protected]>
3849
3850	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3851	the NetBSD source tree (the old	4-clause BSD license changed to
3852	the new 3-clause one).
3853
3854	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3855	replacement module.
3856
3857	* port/dummy.c: Make the dummy function static.
3858
38592005-07-06  Andrey Kiselev  <[email protected]>
3860
3861	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3862
3863	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3864	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3865	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3866
38672005-07-04  Andrey Kiselev  <[email protected]>
3868
3869	* libtiff 3.7.3 released.
3870
3871	* configure, configure.ac: Do not use empty -R option when linking
3872	with --enable-rpath.
3873
38742005-07-01  Andrey Kiselev  <[email protected]>
3875
3876	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3877	reading the first IFD when needed. As per bug
3878
3879	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3880
3881	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3882	effects.
3883
38842005-06-23  Andrey Kiselev  <[email protected]>
3885
3886	* tools/tiff2pdf.c: Print two characters per loop in the
3887	t2p_write_pdf_trailer(). As per bug
3888
3889	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3890
3891	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3892	per bug
3893
3894	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3895
3896	* acinclude.m4: Updated to latest OpenGL test macros versions.
3897
3898	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3899	platform. As per bug
3900
3901	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3902
39032005-06-14  Andrey Kiselev  <[email protected]>
3904
3905	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3906	and YClipPathUnits tags.
3907
39082005-06-07  Andrey Kiselev  <[email protected]>
3909
3910	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3911	use pixel sized shift in contigous case.
3912
39132005-06-06  Andrey Kiselev  <[email protected]>
3914
3915	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3916	Make overviews working for contiguos images.
3917
39182005-06-03  Andrey Kiselev  <[email protected]>
3919
3920	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3921	time one.
3922
3923	* libtiff/tif_predict.c: Floating point predictor now works on
3924	big-endian hosts.
3925
39262005-06-01  Andrey Kiselev  <[email protected]>
3927
3928	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3929	ASCII values.
3930
3931	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3932	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3933	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3934	TargetPrinter tags custom.
3935
3936	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3937	TIFF_CODERSETUP flag (to fix memry leaks).
3938
3939	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3940	allocating.
3941
39422005-05-26  Andrey Kiselev  <[email protected]>
3943
3944	* configure.ac, libtiff/Makefile.am: Added workaround for
3945	OpenBSD/MirOS soname problem as per bug
3946
3947	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3948
3949	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3950	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3951	per bug
3952
3953	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3954
39552005-05-25  Andrey Kiselev  <[email protected]>
3956
3957	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3958	the fscanf() function. As per bug
3959
3960	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3961
3962	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3963	uint16 array when fetching the BYTE and SBYTE filds, so we should
3964	consider result as pointer to uint16 array and not as array of chars.
3965	As per bug
3966
3967	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3968
3969	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3970
3971	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3972
3973	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3974	mode in CreateFile() call as per bug
3975
3976	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3977
3978	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3979	libtiffxx libraries as per bug
3980
3981	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3982
3983	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3984	GDAL.
3985
39862005-05-23  Frank Warmerdam  <[email protected]>
3987
3988	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3989	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3990	in directory.
3991
39922005-05-22  Frank Warmerdam  <[email protected]>
3993
3994	* libtiff/tif_dirread.c: Changed the code that computes
3995	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3996	zero. This is a common case with GDAL indicating a "null" tile/strip.
3997
39982005-05-17  Andrey Kiselev  <[email protected]>
3999
4000	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
4001
40022005-05-06  Frank Warmerdam  <[email protected]>
4003
4004	* libtiff/tif_dirread.c: Applied similar change to
4005	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
4006
4007	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
4008
4009	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
4010
40112005-05-06  Andrey Kiselev  <[email protected]>
4012	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
4013	added new option '-b' to use interpolation in output PDF files (Bruno
4014	Ledoux).
4015
40162005-05-05  Frank Warmerdam  <[email protected]>
4017
4018	* libtiff/tif_dirread.c: Ensure that broken files with too many
4019	values in PerSampleShorts work ok instead of crashing.
4020
4021	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
4022
40232005-04-27  Andrey Kiselev  <[email protected]>
4024
4025	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
4026	input file.
4027
40282005-04-15  Andrey Kiselev  <[email protected]>
4029
4030	* libtiff/tif_predict.c: Added ability to encode floating point
4031	predictor, as per TIFF Technical Note 3.
4032
40332005-04-14  Andrey Kiselev  <[email protected]>
4034
4035	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
4036	floating point predictor, as per TIFF Technical Note 3.
4037
40382005-04-13  Andrey Kiselev  <[email protected]>
4039
4040	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
4041	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
4042	swap 24-bit floating point values.
4043
4044	* libtiff/tiff.h: Added predictor constants.
4045
40462005-04-08  Andrey Kiselev  <[email protected]>
4047
4048	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
4049	values in _TIFFVSetField() function. Inspired by the bug
4050
4051	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
4052
4053	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
4054	as per bug
4055
4056	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
4057
40582005-03-30  Andrey Kiselev  <[email protected]>
4059
4060	* libtiff/tif_open.c: Do not read header in case the output file
4061	should be truncated (Ron).
4062
4063	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
4064	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
4065
4066	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
4067
40682005-03-22  Andrey Kiselev  <[email protected]>
4069
4070	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
4071	rpath option.
4072
40732005-03-21  Andrey Kiselev  <[email protected]>
4074
4075	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
4076	tags.
4077
40782005-03-18  Andrey Kiselev  <[email protected]>
4079
4080	* libtiff/dirinfo.c: Added DNG tags.
4081
4082	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
4083	handling code.
4084
4085	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
4086	added DNG 1.1.0.0 tags.
4087
4088	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
4089	bug
4090
4091	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
4092
4093	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
4094
40952005-03-17  Andrey Kiselev  <[email protected]>
4096
4097	* nmake.opt: Build with Win32 CRT library by default.
4098
4099	* tools/tiff2ps.c: Fixed typo in page size handling code.
4100
4101	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
4102	by value.
4103
4104	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
4105
41062005-03-15  Andrey Kiselev  <[email protected]>
4107
4108	* libtiff 3.7.2 released.
4109
41102005-03-09  Andrey Kiselev  <[email protected]>
4111
4112	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
4113	floating point data; complain on unsupported bit depths.
4114
41152005-03-05  Andrey Kiselev  <[email protected]>
4116
4117	* tif_stream.cxx: Use ios namespace instead of ios_base to support
4118	GCC 2.95.
4119
4120	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
4121	Lee Howard for HylaFax DCS tag
4122	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
4123
41242005-03-04  Andrey Kiselev  <[email protected]>
4125
4126	* configure, configure.ac: Use -rpath option instead of -R as per bug
4127
4128	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
4129
4130	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
4131	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
4132	software. As per bug
4133
4134	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
4135
4136	* nmake.opt, html/build.html: Add more comments, change the config
4137	file organization a bit as per bug
4138
4139	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
4140
4141	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
4142	as per bug
4143
4144	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
4145
41462005-03-03  Andrey Kiselev  <[email protected]>
4147
4148	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
4149	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
4150
4151	* tools/fax2ps.c: Replace insecure mktemp() function with the
4152	tmpfile() as per bug
4153
4154	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
4155
41562005-02-04  Andrey Kiselev  <[email protected]>
4157
4158	* libtiff/tiff.h: Changed the int8 definition to be always signed char
4159	as per bug
4160
4161	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
4162
4163	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
4164	block as per bug
4165
4166	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
4167
41682005-02-03  Bob Friesenhahn  <[email protected]>
4169
4170	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
4171	display more correctly.  Images display brighter than they should
4172	on a Sun workstation.
4173
41742005-02-03  Andrey Kiselev  <[email protected]>
4175
4176	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
4177	suspicious values in the tags. As per bugs
4178
4179	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
4180
4181	and
4182
4183	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
4184
4185	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
4186
4187	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
4188
41892005-01-31  Bob Friesenhahn  <[email protected]>
4190
4191	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
4192	(TIFFTAG_TILELENGTH): Corrected description.
4193
41942005-01-30  Andrey Kiselev  <[email protected]>
4195
4196	* configure.ac: Fixes for --with-docdir option as per bug
4197
4198	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
4199
4200	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
4201	bug
4202
4203	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
4204
4205	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
4206	Michael Rinne and Edward Lam.
4207
42082005-01-15  Andrey Kiselev  <[email protected]>
4209
4210	* configure.ac: Make the documentation directory location configurable
4211	via the --with-docdir option (as suggested by Jeremy C. Reed).
4212
4213	* libtiff/tif_color.c: Use double as the second argument of pow()
4214	function in TIFFCIELabToRGBInit(). As per bug
4215
4216	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
4217
4218	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
4219	integer as per bug
4220
4221	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
4222
4223	* libtiff/tif_getimage.c: Always fill the error message buffer in
4224	TIFFRGBAImageBegin() as per bug
4225
4226	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
4227
42282005-01-12  Andrey Kiselev  <[email protected]>
4229
4230	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
4231	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
4232	tags as per bug
4233
4234	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
4235
4236	* libtiff/tif_win32.c: Fixed message formatting in functions
4237	Win32WarningHandler() and Win32ErrorHandler() as per bug
4238
4239	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
4240
4241	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
4242	per bug
4243
4244	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
4245
42462005-01-11  Andrey Kiselev  <[email protected]>
4247
4248	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
4249	"C"' section as per bug
4250
4251	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
4252
4253	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
4254	compiler to avoid double definition of BSD types as per bug
4255
4256	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4257
4258	* libtiff/Makefile.am: Place the C++ stream API in the separate
4259	library called libtiffxx to avoid unneeded dependencies. Probably
4260	there will be more C++ API in the future. As per bugs
4261
4262	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
4263
4264	and
4265
4266	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
4267
42682005-01-05  Andrey Kiselev  <[email protected]>
4269
4270	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
4271	wrong tag counts (Dmitry V. Levin, Martin Pitt).
4272
4273	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
4274	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
4275
42762004-12-25  Andrey Kiselev  <[email protected]>
4277
4278	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
4279	RGB-images as per bug
4280
4281	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
4282
4283
4284	* tools/tiffset.c: Convert character option to integer value as per
4285	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
4286
42872004-12-20  Andrey Kiselev  <[email protected]>
4288
4289	* libtiff 3.7.1 released.
4290
4291	* html/tiffset.1.html: Add missed manual page as per bug
4292
4293	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
4294
4295	* libtiff/tiff.h: Revert back libtiff data type definitions as per
4296	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
4297
42982004-12-19  Andrey Kiselev  <[email protected]>
4299
4300	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
4301	checking for tag count in TIFFReadDirectory() function. As per bug
4302
4303	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
4304
4305	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
4306	CheckMallock() function.
4307
4308	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
4309	RGB-images as per bug
4310
4311	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
4312
43132004-12-15  Frank Warmerdam  <[email protected]>
4314
4315	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
4316	SunPro compiler.
4317
43182004-12-11  Bob Friesenhahn  <[email protected]>
4319
4320	* autogen.sh: aclocal and autoheader should be executed after
4321	libtoolize.  Also add '-I .' to aclocal invocation to check
4322	current directory for macros.
4323
43242004-12-10  Andrey Kiselev  <[email protected]>
4325
4326	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
4327	as per bugs
4328
4329	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
4330
4331	and
4332
4333	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
4334
43352004-12-04  Andrey Kiselev  <[email protected]>
4336
4337	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
4338
4339	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
4340
4341	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
4342	mode as per bug
4343
4344	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
4345
4346	* libtiff/tif_config.in.vc: Removed unneded definitions for
4347	read/open/close/lseek functions to fix the
4348
4349	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
4350
43512004-12-03  Andrey Kiselev  <[email protected]>
4352
4353	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
4354	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
4355	must be removed in the future, as it was never used properly. As per
4356	bug
4357
4358	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
4359
43602004-11-30  Bob Friesenhahn  <[email protected]>
4361
4362	* libtiff/tif_jpeg.c: Added a work-around in order to allow
4363	compilation with the heavily modified version of libjpeg delivered
4364	with Cygwin.
4365
43662004-11-29  Andrey Kiselev  <[email protected]>
4367
4368	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
4369	counts. As per bug
4370
4371	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
4372
4373	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
4374
4375	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
4376
43772004-11-28  Andrey Kiselev  <[email protected]>
4378
4379	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
4380	on Windows.
4381
4382	* nmake.opt: Add missed DLLNAME variable.
4383
43842004-11-26  Frank Warmerdam  <[email protected]>
4385
4386	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
4387
43882004-11-24  Andrey Kiselev  <[email protected]>
4389
4390	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
4391	per bug
4392
4393	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
4394
4395	* man/tiffset.1: Added manual page for tiffset tool written by Jay
4396	Berkenbilt. As per bug
4397
4398	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
4399
44002004-11-23  Frank Warmerdam  <[email protected]>
4401
4402	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
4403
44042004-11-21  Frank Warmerdam  <[email protected]>
4405
4406	* html/document.html: Updated Adobe web links as per email from Joris.
4407
44082004-11-21  Andrey Kiselev  <[email protected]>
4409
4410	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
4411	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
4412	use C++ streams should #include <tiffio.hxx>.
4413
44142004-11-13  Andrey Kiselev  <[email protected]>
4415
4416	* libtiff/tiff.h: Added Adobe DNG tags.
4417
4418	* libtiff/tif_win32.c: Typo fixed.
4419
4420	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
4421	be compliant with the latest standard. Appropriate additions in
4422	makefiles now completed.
4423
44242004-11-11  Andrey Kiselev  <[email protected]>
4425
4426	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
4427	different tag types. As per bug
4428
4429	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
4430
44312004-11-10  Andrey Kiselev  <[email protected]>
4432
4433	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
4434	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
4435
44362004-11-09  Andrey Kiselev  <[email protected]>
4437
4438	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
4439
44402004-11-07  Andrey Kiselev  <[email protected]>
4441
4442	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
4443	contributed by Edward Lam (see
4444	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
4445	Though no changes in any makefiles yet.
4446
44472004-11-05  Frank Warmerdam  <[email protected]>
4448
4449	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
4450	is bad. This is the callers responsibility.
4451	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
4452
44532004-11-05  Andrey Kiselev  <[email protected]>
4454
4455	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
4456	function to work with the double byte strings (used to represent
4457	filenames in some locales). As per bug
4458
4459	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
4460
4461	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
4462	Compression tags of type LONG from broken TIFFS as per bug
4463
4464	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
4465
4466	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
4467	the writecount should have uint32 type. As per bug
4468
4469	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
4470
4471	* libtiff/tif_write.c: Fixed wrong if() statement in
4472	TIFFAppendToStrip() function as per bug
4473
4474	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
4475
44762004-11-04  Andrey Kiselev  <[email protected]>
4477
4478	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
4479	field. The caller should supply a count when setting this field. As
4480	per bug
4481
4482	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
4483
4484	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
4485	uint32 count. Use this type everywhere.
4486
44872004-11-03  Frank Warmerdam  <[email protected]>
4488
4489	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
4490
44912004-11-02  Frank Warmerdam  <[email protected]>
4492
4493	* tools/tiff2rgba.c: removed extra newlines in usage message.
4494
44952004-10-30  Andrey Kiselev  <[email protected]>
4496
4497	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
4498
4499	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
4500	tags (Tristan Hill).
4501
45022004-10-30  Frank Warmerdam  <[email protected]>
4503
4504	* libtiff/tiffiop.h: added fallback definition of assert() if we
4505	don't have assert.h.
4506
45072004-10-29  Andrey Kiselev  <[email protected]>
4508
4509	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
4510	choosing when the incorrect Group4Options tag set. As per bug
4511
4512	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
4513
4514	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
4515	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
4516	TIFFWriteNormalTag().
4517
45182004-10-28  Andrey Kiselev  <[email protected]>
4519
4520	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
4521	tags (Peter Fales).
4522
4523	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
4524
45252004-10-28  Frank Warmerdam  <[email protected]>
4526
4527	* tools/tiff2pdf.c: added casts to avoid warnings.
4528
4529	* libtiff/libtiff.def: Added several more entry points required
4530	to link fax2tiff.c against the DLL on windows.
4531
45322004-10-27  Andrey Kiselev  <[email protected]>
4533
4534	* configure, configure.ac: Added --enable-rpath option to embed linker
4535	paths into library binary.
4536
45372004-10-26  Andrey Kiselev  <[email protected]>
4538
4539	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
4540
4541	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
4542	(Vladimir Nadvornik, Dmitry V. Levin).
4543
45442004-10-16  Andrey Kiselev  <[email protected]>
4545
4546	* libtiff 3.7.0 released.
4547
45482004-10-15  Bob Friesenhahn  <[email protected]>
4549
4550	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
4551	in this file so its inclusion is removed.  Including stdio.h
4552	sometimes incurs an INT32 typedef conflict between MinGW's
4553	basetsd.h and libjpeg's jmorecfg.h.
4554
45552004-10-15  Andrey Kiselev  <[email protected]>
4556
4557	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
4558
45592004-10-13  Bob Friesenhahn  <[email protected]>
4560
4561	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
4562	conflict noticed under MinGW.
4563	* ltmain.sh: Fix for MinGW compilation.
4564
45652004-10-13  Frank Warmerdam  <[email protected]>
4566
4567	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
4568	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
4569
45702004-10-12  Andrey Kiselev  <[email protected]>
4571
4572	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
4573	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
4574	properly (Dmitry V. Levin, Marcus Meissner).
4575
45762004-10-11  Andrey Kiselev  <[email protected]>
4577
4578	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
4579	to TIFF_IFD.
4580
45812004-10-10  Andrey Kiselev  <[email protected]>
4582
4583	* tools/bmp2tif.c: Check the space allocation results.
4584
45852004-10-09  Andrey Kiselev  <[email protected]>
4586
4587	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
4588	of the TIFFDirectory structure with the 0 instead of -1 to avoid
4589	confusing integer overflows in TIFFTileRowSize() for striped images.
4590
4591	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
4592	by Ross A. Finlayson.
4593
4594	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
4595
4596	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
4597
45982004-10-08  Frank Warmerdam  <[email protected]>
4599
4600	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
4601	of tif_fieldinfo.
4602
4603	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
4604
46052004-10-04  Bob Friesenhahn  <[email protected]>
4606
4607	* contrib/iptcutil/README: Added the missing README which goes
4608	along with iptcutil.
4609
46102004-10-03  Andrey Kiselev  <[email protected]>
4611
4612	* libtiff/tif_compress.c: Improved error reporting in
4613	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
4614
46152004-10-02  Andrey Kiselev  <[email protected]>
4616
4617	* libtiff 3.7.0beta2 released.
4618
4619	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
4620	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
4621	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
4622	allocations and	integer overflows (Dmitry V. Levin).
4623
4624	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
4625
46262004-10-01  Frank Warmerdam  <[email protected]>
4627
4628	* libtiff/tif_open.c: added a more informative message if a BigTIFF
4629	file is opened.
4630
46312004-09-30  Frank Warmerdam  <[email protected]>
4632
4633	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
4634	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
4635	in the Adobe XMP Specification.
4636
46372004-09-29  Andrey Kiselev  <[email protected]>
4638
4639	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
4640	memset().
4641
4642	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
4643	from Dmitry V. Levin to fix possible integer overflow problems.
4644
46452004-09-28  Andrey Kiselev  <[email protected]>
4646
4647	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
4648	(Dmitry V. Levin).
4649
46502004-09-26  Andrey Kiselev  <[email protected]>
4651
4652	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
4653	Optimize checking for the strip bounds.
4654
4655	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
4656	TIFFRasterScanlineSize() functions report zero in the case of integer
4657	overflow now. Properly handle this case in TIFFReadDirectory()
4658	(patches from Dmitry V. Levin).
4659
46602004-09-25  Andrey Kiselev  <[email protected]>
4661
4662	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
4663	macro where appropriate.
4664
4665	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
4666	noted by Gennady Khokhorin.
4667
4668	* libtiff/tif_dirread.c: Always check the return values, returned
4669	by the _TIFFmalloc() (Dmitry V. Levin).
4670
4671	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
4672	functions (Dmitry V. Levin).
4673
4674	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
4675	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
4676	TIFFGrowStrips() (found by Dmitry V. Levin).
4677
46782004-09-24  Andrey Kiselev  <[email protected]>
4679
4680	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
4681	to get the list of configured codecs.
4682
4683	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
4684	Dmitry V. Levin.
4685
46862004-09-23  Andrey Kiselev  <[email protected]>
4687
4688	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
4689	possible integer overflow in CheckMalloc() function.
4690
46912004-09-22  Andrey Kiselev  <[email protected]>
4692
4693	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
4694	of plain TIFFhowmany() where appropriate.
4695
46962004-09-21  Andrey Kiselev  <[email protected]>
4697
4698	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
4699
47002004-09-19  Andrey Kiselev  <[email protected]>
4701
4702	* libtiff 3.7.0beta released.
4703
4704	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
4705	overruns fixed, as noted by Chris Evans.
4706
47072004-09-14  Bob Friesenhahn  <[email protected]>
4708
4709	* commit: Added a script to make it more convenient to commit
4710	updates.  The CVS commit message is extracted from this ChangeLog
4711	file.
4712
47132004-09-14  Andrey Kiselev  <[email protected]>
4714
4715	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
4716	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
4717	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
4718	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
4719	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
4720	tif_config.h.in, tiffiop.h}:
4721	Get rid of BSD data types (u_char, u_short, u_int, u_long).
4722
47232004-09-13  Bob Friesenhahn  <[email protected]>
4724
4725	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
4726	specification. Reference libtiff bug tracking system to submit
4727	private tag additions.
4728
47292004-09-12  Bob Friesenhahn  <[email protected]>
4730
4731	* tools/tiffgt.c: Include "tif_config.h".
4732
4733	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
4734	tiffgt.  This results in the 'compile' script being added to the
4735	project.
4736
4737	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
4738	required to find OpenGL headers necessary to build tiffgt.  Also
4739	ensure that the libtiff that we built is used rather than some other
4740	libtiff installed on the system.
4741
47422004-09-12  Andrey Kiselev  <[email protected]>
4743
4744	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
4745	libraries.
4746
47472004-09-11  Bob Friesenhahn  <[email protected]>
4748
4749	* configure.ac: Pass library configuration defines via
4750	tif_config.h rather than extending CPPFLAGS. Configure a
4751	libtiff/tiffconf.h in order to satisfy application requirements
4752	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
4753	this causes failure to build on systems which properly respect
4754	this request.
4755
4756	* libtiff/tiffconf.h.in: New file to act as the template for the
4757	configured tiffconf.h
4758
4759	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
4760
47612004-09-10  Frank Warmerdam  <[email protected]>
4762
4763	* html/internals.html: Split off a discussion of adding new tags
4764	into addingtags.html.
4765
47662004-09-10  Andrey Kiselev  <[email protected]>
4767
4768	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
4769
4770	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
4771
4772	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4773
4774	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
4775
4776	* libtiff/tif_dirread.c: Don't reject to read tags of the
4777	SamplesPerPixel size when the tag count is greater than number of
4778	samples as per bug
4779
4780	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
4781
4782	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
4783	defining int8/uint8/... etc. types. As per bug
4784
4785	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
4786
47872004-09-09  Frank Warmerdam  <[email protected]>
4788
4789	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
4790	to avoid compile warnings about getopt() and a few other things.
4791
47922004-09-02  Andrey Kiselev  <[email protected]>
4793
4794	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
4795	assigning magic in TIFFFetchFloat().
4796
47972004-09-01  Andrey Kiselev  <[email protected]>
4798
4799	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
4800	to avoid requirement for tiffiop.h inclusion in some applications. See
4801	here
4802
4803	http://www.asmail.be/msg0054799560.html
4804
4805	for details.
4806
4807	* tools/fax2tiff.c: Use the new functions in the code.
4808
48092004-08-25  Andrey Kiselev  <[email protected]>
4810
4811	* tools/tiff2pdf.c: Initialize arrays properly.
4812
4813	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
4814	properly initialize array in PSDataBW().
4815
48162004-08-24  Andrey Kiselev  <[email protected]>
4817
4818	* tools/tiff2pdf.c: More fixes for bug
4819
4820	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4821
4822	from Ross Finlayson.
4823
48242004-08-23  Andrey Kiselev  <[email protected]>
4825
4826	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4827
4828	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4829	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4830
4831	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4832
4833	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4834
48352004-08-20  Andrey Kiselev  <[email protected]>
4836
4837	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4838	that the input file has compression, photometric interpretation,
4839	etcetra, tags or if not than a more descriptive error is returned.
4840
4841	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4842	code, responsible for tag data type checking.
4843
48442004-08-19  Andrey Kiselev  <[email protected]>
4845
4846	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4847	variable as per bug
4848
4849	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4850
48512004-08-16  Andrey Kiselev  <[email protected]>
4852
4853	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4854	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4855
48562004-08-01  Andrey Kiselev  <[email protected]>
4857
4858	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4859	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4860
48612004-07-24  Andrey Kiselev  <[email protected]>
4862
4863	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4864	separate package. All libtiff tools are updated to not advertise an
4865	abcence of LZW support.
4866
48672004-07-12  Andrey Kiselev  <[email protected]>
4868
4869	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4870
48712004-07-11  Andrey Kiselev  <[email protected]>
4872
4873	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4874	messages, as suggested by Bernd Herd.
4875
48762004-07-03  Andrey Kiselev  <[email protected]>
4877
4878	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4879	when setting custom tags by value. Reported by Eric Fieleke.
4880
48812004-06-14  Andrey Kiselev  <[email protected]>
4882
4883	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4884
48852004-06-08  Andrey Kiselev  <[email protected]>
4886
4887	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4888	into TIFFs.
4889
48902004-06-07  Andrey Kiselev  <[email protected]>
4891
4892	* libtiff 3.7.0alpha released.
4893
48942004-06-06  Andrey Kiselev  <[email protected]>
4895
4896	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4897	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4898	ones :-).
4899
4900	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4901	problems in 64-bit environment).
4902
49032004-06-05  Andrey Kiselev  <[email protected]>
4904
4905	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4906	Tags can be supplied by the mnemonic name or number.
4907
4908	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4909	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4910
49112004-05-27  Andrey Kiselev  <[email protected]>
4912
4913	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4914	markers as per bug
4915
4916	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4917
49182004-05-24  Andrey Kiselev  <[email protected]>
4919
4920	* tools/tiffsplit.c: Don't forget to copy Photometric
4921	Interpretation tag.
4922
49232004-05-20  Andrey Kiselev  <[email protected]>
4924
4925	* libtiff/{tif_open.c, tiffio.h}: New function added:
4926	TIFFIsBigEndian(). Function returns nonzero if given was file written
4927	in big-endian order.
4928
4929	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4930	files. Now output files will be written using the same byte order
4931	flag as	in the input image. See
4932
4933	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4934
4935	for details.
4936
49372004-05-19  Frank Warmerdam  <[email protected]>
4938
4939	* libtiff/tif_print.c: added (untested) support for printing
4940	SSHORT, SLONG and SRATIONAL fields.
4941
4942	* tools/tiffcp.c: close output file on normal exit.
4943
49442004-05-17  Andrey Kiselev  <[email protected]>
4945
4946	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4947	if compression type mismatches. See
4948
4949	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4950
49512004-04-30  Andrey Kiselev  <[email protected]>
4952
4953	* libtiff/tif_strip.c: Never return 0 from the
4954	TIFFNumberOfStrips().
4955
49562004-04-29  Andrey Kiselev  <[email protected]>
4957
4958	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4959	store single SampleFormat value for multisampled images. See
4960
4961	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4962
49632004-04-25  Andrey Kiselev  <[email protected]>
4964
4965	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4966	int16 and int32 types to avoid complains on some compilers. Details at
4967
4968	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4969
49702004-04-20  Andrey Kiselev  <[email protected]>
4971
4972	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4973
4974	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4975
49762004-04-14  Andrey Kiselev  <[email protected]>
4977
4978	* libtiff/tif_write.c: Allow in-place updating of the compressed
4979	images (don't work properly with all codecs). For details see GDAL bug
4980
4981	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4982
49832004-04-06  Andrey Kiselev  <[email protected]>
4984
4985	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4986	in the Intergarph JPEG compressed TIFF images as per bug:
4987
4988	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4989
49902004-04-04  Frank Warmerdam  <[email protected]>
4991
4992	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4993	via bad2.
4994
49952004-03-26  Andrey Kiselev  <[email protected]>
4996
4997	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4998	JPEG compression of grayscale images.
4999
5000	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
5001	present in the input image.
5002
50032004-03-19  Andrey Kiselev  <[email protected]>
5004
5005	* {many}: The first attempt to switch to autotools.
5006
50072004-03-03  Andrey Kiselev  <[email protected]>
5008
5009	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
5010	TIFFClientOpen() when the appropriate client functions was not
5011	supplied by user.
5012
50132004-03-02  Frank Warmerdam  <[email protected]>
5014
5015	* tools/ycbcr.c: fixed main() declaration as per:
5016	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
5017
50182004-02-26  Andrey Kiselev  <[email protected]>
5019
5020	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
5021	images. Reported by Artem Mirolubov.
5022
5023	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
5024	tag type in TIFFFetchNormalTag() as per bug
5025
5026	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
5027
50282004-02-17  Frank Warmerdam  <[email protected]>
5029
5030	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
5031	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
5032
50332004-02-05  Andrey Kiselev  <[email protected]>
5034
5035	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
5036	bug
5037
5038	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
5039
5040	But we need more work on fax codec to support update mode.
5041
50422004-01-30  Frank Warmerdam  <[email protected]>
5043
5044	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
5045	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
5046	Scott Reynolds.
5047
50482004-01-29  Andrey Kiselev  <[email protected]>
5049
5050	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
5051	and TIFFTAG_INDEXED as per bug
5052
5053	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
5054
5055	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
5056	NULL before proceeding further as per bug
5057
5058	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
5059
5060	Check results, returned by the TIFFFdOpen() before returning and close
5061	file if TIFFFdOpen() failed as per bug
5062
5063	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
5064
5065	* libtiff/tif_open.c: More fixes for
5066
5067	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
5068
50692004-01-28  Andrey Kiselev  <[email protected]>
5070
5071	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
5072	TIFFCleanup() from the TIFFClose() in order to fix the bug
5073
5074	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
5075
5076	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
5077	InkNames tag as per bug
5078
5079	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
5080
5081	Memory leak fixed.
5082
50832004-01-21  Frank Warmerdam  <[email protected]>
5084
5085	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
5086	are field_passcount=TRUE properly.  Arguably anonymous custom tags
5087	should be declared as passcount=FALSE, but I don't want to change
5088	that without a careful review.
5089
50902004-01-20  Andrey Kiselev  <[email protected]>
5091
5092	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
5093	stripped image in TIFFWriteBufferSetup(). As per bug
5094
5095	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
5096
50972004-01-11  Andrey Kiselev  <[email protected]>
5098
5099	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
5100	patch from Gerben Koopmans.
5101
5102	* libtiff/tif_dirread.c: Check field_passcount value before setting
5103	the value of undefined type, patch from Gerben Koopmans.
5104
51052004-01-02  Andrey Kiselev  <[email protected]>
5106
5107	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
5108	non-RGB images.
5109
51102003-12-31  Andrey Kiselev  <[email protected]>
5111
5112	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
5113	pointer passed. Patch supplied by Larry Grill.
5114
5115	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
5116	suggested by Jeremy C. Reed.
5117
51182003-12-26  Andrey Kiselev  <[email protected]>
5119
5120	* libtiff 3.6.1 released.
5121
51222003-12-24  Andrey Kiselev  <[email protected]>
5123
5124	* config.guess, config.sub: Updated from the recent upstream.
5125
51262003-12-22  Andrey Kiselev  <[email protected]>
5127
5128	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
5129	More cleanups in color conversion interface, added appropriate manual
5130	page.
5131
51322003-12-19  Andrey Kiselev  <[email protected]>
5133
5134	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
5135	per bug
5136
5137	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
5138
5139	* tools/tiff2ps.c: Added support for alpha channel. Fixes
5140
5141	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
5142
5143	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
5144	Interface for Lab->RGB color conversion is finally cleaned up.
5145	Added support for ReferenceBlackWhite tag handling when converted from
5146	YCbCr color space. The latter closes
5147
5148	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
5149
51502003-12-07  Andrey Kiselev  <[email protected]>
5151
5152	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
5153
5154	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
5155	library.
5156
51572003-12-06  Andrey Kiselev  <[email protected]>
5158
5159	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
5160	file and properly use it for CIE Lab->RGB transform.
5161
51622003-12-04  Andrey Kiselev  <[email protected]>
5163
5164	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
5165	conversion routines now in the tif_color.c module. New function
5166	TIFFYCbCrtoRGB() available in TIFF API.
5167
5168	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
5169
51702003-12-03  Andrey Kiselev  <[email protected]>
5171
5172	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
5173	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
5174	module.
5175
5176	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
5177	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
5178	Finally resolved problems with orientation handling. TIFFRGBAImage
5179	interface now properly supports all possible orientations, i.e. images
5180	will be flipped both in horizontal and vertical directions if
5181	required. 'Known bugs' section now removed from the appropriate manual
5182	pages. Closed bug entry:
5183
5184	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
5185
51862003-12-02  Andrey Kiselev  <[email protected]>
5187
5188	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
5189	function calls as per bug
5190
5191	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
5192
51932003-11-28 Ross Finlayson  <[email protected]>
5194
5195	* tools/tiff2pdf.c:  Some bugs fixed.
5196
51972003-11-27  Andrey Kiselev  <[email protected]>
5198
5199	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
5200	reported by Antonio Scuri.
5201
5202	* man/tiff2pdf.1: Few improvements in page layout.
5203
5204	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
5205	 Added support fpr tiff2pdf manual page.
5206
52072003-11-26 Ross Finlayson  <[email protected]>
5208
5209	* /man/tiff2pdf.1:  File added to repository.
5210
52112003-11-26  Andrey Kiselev  <[email protected]>
5212
5213	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
5214	 Added support fpr tiff2pdf utility.
5215
52162003-11-25  Ross Finlayson  <[email protected]>
5217
5218	* /tools/tiff2pdf.c:  File added to repository.
5219
52202003-11-22  Andrey Kiselev  <[email protected]>
5221
5222	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
5223
52242003-11-21  Andrey Kiselev  <[email protected]>
5225
5226	* /tools/raw2tiff.c: #include <getopt.h> removed.
5227
5228	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
5229	sgigt utility removed and replaced with the completely rewritten
5230	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
5231	there is a lot of things to improve.
5232
5233	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
5234	extract the fields from the OJPEG files. Patch supplied by Ross
5235	Finlayson.
5236
5237	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
5238	Added new function TIFFIsCODECConfigured(), suggested by Ross
5239	Finlayson.
5240
52412003-11-18  Andrey Kiselev  <[email protected]>
5242
5243	* libtiff/tif_dirinfo.c: Implemented binary search in
5244	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
5245
5246	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
5247	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
5248
52492003-11-17  Frank Warmerdam  <[email protected]>
5250
5251	* tif_dirread.c: do not mark all anonymously defined tags to be
5252	IGNOREd.
5253
52542003-11-17  Andrey Kiselev  <[email protected]>
5255
5256	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
5257	TIFFDataWidth() function insted of tiffDataWidth array.
5258
52592003-11-16  Andrey Kiselev  <[email protected]>
5260
5261	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
5262	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
5263
52642003-11-15  Frank Warmerdam  <[email protected]>
5265
5266	* Makefile.in: fixed missing backslash for tif_color.c in list.
5267
52682003-11-13  Andrey Kiselev  <[email protected]>
5269
5270	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
5271	New color space conversion code: CIE L*a*b* 1976 images now supported
5272	by the TIFFRGBAImage interface. All introduced routines go to new
5273	module tif_color.c. Eventually all color conversion functions should
5274	be moved there.
5275
52762003-11-12  Andrey Kiselev  <[email protected]>
5277
5278	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
5279	with the reverse byte order (it is reported by the magic header
5280	field). Problem reported by Andreas Wiesmann.
5281
5282	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
5283	calculation function. Guessing mechanics now documented in manual page.
5284
52852003-11-11  Andrey Kiselev  <[email protected]>
5286
5287	* tools/raw2tiff.c: Implemented image size guessing using
5288	correlation coefficient calculation between two neighbour lines.
5289
52902003-11-09  Frank Warmerdam  <[email protected]>
5291
5292	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
5293	planarconfig_contig case in TIFFComputeTile().
5294
5295	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
5296
52972003-11-09  Andrey Kiselev  <[email protected]>
5298
5299	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
5300
53012003-11-07  Andrey Kiselev  <[email protected]>
5302
5303	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
5304	Added TIFFRawStripSize() function as suggested by Chris Hanson.
5305
53062003-11-03  Andrey Kiselev  <[email protected]>
5307
5308	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
5309	per bug
5310
5311	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
5312
53132003-10-29  Andrey Kiselev  <[email protected]>
5314
5315	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
5316
5317	* html/build.html: Added note about GNU make requirement.
5318
53192003-10-25  Andrey Kiselev  <[email protected]>
5320
5321	* Makefile.in: Fixes in using MAKEFLAGS as per bug
5322
5323	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
5324
5325	* port/install.sh.in: Option -p added to the mkdir command to create
5326	all directory tree structure before installing.
5327
53282003-10-18  Andrey Kiselev  <[email protected]>
5329
5330	* /tools/tiff2ps.c: #include <strings.h> replaced with the
5331	#include <string.h>.
5332
53332003-10-16  Andrey Kiselev  <[email protected]>
5334
5335	* Makefile.in: Add an absolute path to the test_pics.sh call.
5336
53372003-10-12  Andrey Kiselev  <[email protected]>
5338
5339	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
5340	typedefs.
5341
53422003-10-09  Andrey Kiselev  <[email protected]>
5343
5344	* configure, libtiff/{Makefile.in, mkversion.c}:
5345	Relative buildings fixed.
5346
5347	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
5348	rule.
5349
53502003-10-07  Andrey Kiselev  <[email protected]>
5351
5352	* Makefile.in: Added missed v3.6.0.html.
5353
5354	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
5355	ORIENTATION_BOTLEFT.
5356
53572003-10-04  Andrey Kiselev  <[email protected]>
5358
5359	* 3.6.0 final release.
5360
53612003-10-03  Andrey Kiselev  <[email protected]>
5362
5363	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
5364	function TIFFReadRGBAImageOriented() implemented to retrieve raster
5365	array with user-specified origin position as suggested by Jason Frank.
5366	See
5367
5368	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
5369
5370	for details.
5371
5372	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
5373	instead of TIFFReadRGBAImage().
5374
5375	* tools/tiff2ps.c: Fixed possible endless loop as per bug
5376
5377	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
5378
53792003-09-30  Andrey Kiselev  <[email protected]>
5380
5381	* libtiff/tif_dirread.c: Check field counter against number of fields
5382	in order to fix
5383
5384	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
5385
5386	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
5387
5388	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
5389
53902003-09-25  Andrey Kiselev  <[email protected]>
5391
5392	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
5393	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
5394
5395	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
5396
53972003-09-23  Andrey Kiselev  <[email protected]>
5398
5399	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
5400
5401	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
5402
54032003-08-21  Andrey Kiselev  <[email protected]>
5404
5405	* tools/tiffmedian.c: int declaration replaced with the uint32 to
5406	support large images as per bug
5407
5408	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
5409
54102003-08-12  Andrey Kiselev  <[email protected]>
5411
5412 	* libtiff/Makefile.in: Fixed problem with building in different
5413	directory.
5414
5415	* tools/tiff2ps.c: Added missing #include <strings.h>.
5416
5417	* libtiff/tif_dirwrite.c: More fixes for custom tags code
5418	from Ashley Dreier.
5419
54202003-08-07  Andrey Kiselev  <[email protected]>
5421
5422	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
5423	Patch submitted by Balatoni Denes (with corrections from Tom
5424	Kacvinsky).
5425
5426	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
5427	being used. Reported by Tom Kacvinsky.
5428
5429	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
5430	reported by Ashley Dreier.
5431
5432	* libtiff/tif_print.c: Fixed problem with float tags reading, support
5433	for printing RATIONAL and BYTE tags added.
5434
54352003-08-05  Andrey Kiselev  <[email protected]>
5436
5437	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
5438	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
5439	problems with predictor initialization. Remove O_RDONLY check during
5440	state block allocation to be able open LZW compressed files in update
5441	mode.
5442
5443	Problem exist for libtiff version of the tif_lzw.c module. One from
5444	lzw-compression-kit hasn't such troubles.
5445
54462003-08-04  Frank Warmerdam  <[email protected]>
5447
5448	* libtiff/tif_write.c: modified tif_write.c so that the various
5449	encoded write functions use tif_postdecode() to apply byte order
5450	swapping (swab) to the application passed data buffer if the same
5451	would be done when reading.  This allows us to write pixel data with
5452	more than 8 bits per sample to existing files of a non-native byte
5453	order.  One side effect of this change is the applications buffer
5454	itself is altered in this case by the act of writing.
5455
5456	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
5457
54582003-07-25  Frank Warmerdam  <[email protected]>
5459
5460	* libtiff/tif_open.c: avoid signed/unsigned casting warning
5461	initializing typemask as per patch from J.A. Strother.
5462
5463	* tools/tiffcp.c: fixed signed/unsigned casting warning.
5464
5465	* libtiff/tif_print.c: dos2unix conversion.
5466
5467	* tools/tiffsplit.c: increased the maximum number of pages that
5468	can be split.  Patch provided by Andrew J. Montalenti.
5469
54702003-07-11  Andrey Kiselev  <[email protected]>
5471
5472	* tools/raw2tiff.c: Added option `-p' to explicitly select color
5473	space of input image data. Closes
5474
5475	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
5476
54772003-07-08  Frank Warmerdam  <[email protected]>
5478
5479	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
5480	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
5481	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
5482	avoid casting warning at /W4.
5483
54842003-07-03  Andrey Kiselev  <[email protected]>
5485
5486	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
5487
54882003-06-30  Andrey Kiselev  <[email protected]>
5489
5490	* libtiff/tif_pixarlog.c: Unused variables removed.
5491
5492	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
5493	EstimateStripByteCounts() as per bug
5494
5495	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
5496
5497	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
5498	64-bit architectures as per bug
5499
5500	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
5501
5502	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
5503	unknown data type.
5504
55052003-06-19  Frank Warmerdam  <[email protected]>
5506
5507	* libtiff/tif_print.c: fixed some serious bugs when printing
5508	custom tags ... almost certain to crash.
5509
5510	* libtiff/tif_dirread.c: Don't ignore custom fields that are
5511	autodefined.  Not sure how this got to be like this.
5512
55132003-06-18  Andrey Kiselev  <[email protected]>
5514
5515	* 3.6.0 Beta2 released.
5516
5517	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
5518	comparing as per bug
5519
5520	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
5521
5522	`-z' option now can be used to set the number of reported different
5523	bytes.
5524
55252003-06-09  Andrey Kiselev  <[email protected]>
5526
5527	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
5528	to -r option to get the entire image as one strip. See
5529
5530	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5531
5532	for details.
5533
55342003-06-04  Andrey Kiselev  <[email protected]>
5535
5536	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
5537	values as per bug
5538
5539	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5540
55412003-05-27  Frank Warmerdam  <[email protected]>
5542
5543	* libtiff/tif_jpeg.c: modified segment_height calculation to always
5544	be a full height tile for tiled images.  Also changed error to just
5545	be a warning.
5546
55472003-05-25  Andrey Kiselev  <[email protected]>
5548
5549	* tools/fax2tiff.c: Page numbering fixed, as per bug
5550
5551	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
5552
55532003-05-20  Andrey Kiselev  <[email protected]>
5554
5555	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5556	configure, Makefile.in:	Switched back to the old behaviour. Likely
5557	better solution should be found for OJPEG support.
5558
55592003-05-11  Andrey Kiselev  <[email protected]>
5560
5561	* libtiff/mkversion.c: Fixed problem with wrong string size when
5562	reading RELEASE-DATE file.
5563
55642003-05-07  Andrey Kiselev  <[email protected]>
5565
5566	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
5567	index was out of range.
5568
55692003-05-06  Andrey Kiselev  <[email protected]>
5570
5571	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5572	configure, Makefile.in:	Improved libtiff compilation with OJPEG
5573	support. Now no need for patching IJG JPEG library, hack requred by
5574	libtiff will be compiled and used in-place. Implemented with
5575	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
5576
5577	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
5578	TIFFVGetFieldDefaulted() function.
5579
55802003-05-05  Andrey Kiselev  <[email protected]>
5581
5582	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
5583	comments.
5584
5585	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
5586	was not copied from source image.
5587
5588	* libtiff/getimage.c: Workaround for some images without correct
5589	info about alpha channel as per bug
5590
5591	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
5592
55932003-04-29  Andrey Kiselev  <[email protected]>
5594
5595	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
5596	It basically allows one to use the /flateDecode filter for ZIP
5597	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
5598
5599	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
5600
5601	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
5602	as per bug
5603
5604	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
5605
56062003-04-17  Andrey Kiselev  <[email protected]>
5607
5608	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
5609	due to problems with multidirectory images. Quality of error messages
5610	improved.
5611
56122003-04-16  Andrey Kiselev  <[email protected]>
5613
5614	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
5615	encoded images. See bug entries
5616
5617	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
5618
5619	and
5620
5621	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5622
5623	* libtiff/tif_dirread.c: Additional check for StripByteCounts
5624	correctness. Fixes
5625
5626	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
5627
56282003-03-12  Andrey Kiselev  <[email protected]>
5629
5630	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
5631	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
5632	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
5633	tiffmedian.c}: Added library version reporting facility to all tools.
5634
56352003-03-06  Frank Warmerdam  <[email protected]>
5636
5637	* port/install.sh.in: Fixed problems with install producing paths
5638	like ///usr/local/lib on cygwin.
5639
56402003-02-27  Andrey Kiselev  <[email protected]>
5641
5642	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
5643	raw input page. Patch supplied by Julien Gaulmin. See
5644
5645	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
5646
5647	for details.
5648
56492003-02-26  Frank Warmerdam  <[email protected]>
5650
5651	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
5652	responsible for byte swapping complex image data.
5653
5654	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
5655	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
5656
56572003-02-07  Andrey Kiselev  <[email protected]>
5658
5659	* tools/ppm2tiff.c: Fixed problem with too many arguments.
5660
56612003-02-04  Andrey Kiselev  <[email protected]>
5662
5663	* tools/raw2tiff.c: Memory leak fixed.
5664
56652003-02-03  Andrey Kiselev  <[email protected]>
5666
5667	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
5668	(thanks, Julien!). More switches for fax2tiff tool for better control
5669	of input and output. Details at
5670
5671	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
5672
56732003-02-03  Frank Warmerdam  <[email protected]>
5674
5675	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
5676	library so that we can check if there is already any tile/strip data
5677	before deciding between creating a compressor or a decompressor.
5678
56792003-01-31  Frank Warmerdam  <[email protected]>
5680
5681	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
5682	a pre-existing compressed image.  That is, image writing to
5683	pre-existing compressed images is not allowed.
5684
5685	* libtiff/tif_open.c: Removed error if opening a compressed file
5686	in update mode.
5687
5688	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
5689
56902003-01-31  Andrey Kiselev  <[email protected]>
5691
5692	* config.guess, config.sub: Updated to recent upstream versions.
5693
56942003-01-15  Frank Warmerdam  <[email protected]>
5695
5696	* cut 3.6.0 Beta release.
5697
56982002-12-20  Andrey Kiselev  <[email protected]>
5699
5700	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
5701	in wrong way as per bug
5702
5703	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
5704
57052002-12-17  Frank Warmerdam  <[email protected]>
5706
5707	* libtiff/tif_dirread.c: Allow wrong sized arrays in
5708	TIFFFetchStripThing().
5709
5710	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
5711
57122002-12-02  Frank Warmerdam  <[email protected]>
5713
5714	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
5715	Was using realloc even first time.  Fix by Igor Venevtsev.
5716
57172002-11-30  Frank Warmerdam  <[email protected]>
5718
5719	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
5720	field value.
5721
5722	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
5723	tags in TIFFVGetField() ... added missing break.
5724
57252002-10-14  Frank Warmerdam  <[email protected]>
5726
5727	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
5728	the scanline buffer long enough when writing rgb triplets.
5729	The scanline needs to be 3 X the number of dots or else it will
5730	contain	an incomplete triplet and programs that try to separate
5731	the eps by redefining the colorimage operator will get messed up.
5732	Patch supplied by William Bader.
5733
5734	* Makefile.in: added tif_extension.c to file list as per
5735	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
5736
57372002-10-11  Andrey Kiselev  <[email protected]>
5738
5739	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
5740	large files (>2GiB) supporting. New option in the config.site:
5741	LARGEFILE="yes". Should be enough for I/O of the large files.
5742
57432002-10-10  Frank Warmerdam  <[email protected]>
5744
5745	* libtiff/html/v3.6.0.html: new release notes.
5746
5747	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
5748	link for Andrey.  Pointer to v3.6.0.html.
5749
5750	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
5751
57522002-10-07  Andrey Kiselev  <[email protected]>
5753	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
5754	(thanks, Sebastian!). New switches:
5755	-b # for a bottom margin of # inches
5756	-c   center image
5757	-l # for a left margin of # inches
5758	-r   rotate the image by 180 degrees
5759	New features merged with code for shrinking/overlapping.
5760	Previously added -c and -n switches (for overriding PS units) renamed
5761	in -x and -y respectively.
5762
5763	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
5764
5765	* html/man/*.html: Updated from actual manual pages.
5766
57672002-10-06  Frank Warmerdam  <[email protected]>
5768
5769	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
5770	size on windows.  Use #define boolean hack.
5771
5772	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
5773
5774	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
5775	USING_VISUALAGE is defined.
5776
5777	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5778
57792002-10-03  Frank Warmerdam  <[email protected]>
5780
5781	* libtiff/tiff.h: added COMPRESSION_JP2000.
5782
57832002-10-02  Andrey Kiselev  <[email protected]>
5784
5785	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
5786	by the TIFFFetchByteArray() function. Should finally resolve
5787
5788	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5789
5790	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
5791
5792	* html/Makefile.in: New targets added: html and groffhtml for
5793	producing HTML representations of the manual pages automatically.
5794	html target uses man2html tool, groffhtml uses groff tool.
5795
57962002-09-29  Frank Warmerdam  <[email protected]>
5797
5798	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
5799	from John H. DuBois III.
5800
58012002-09-15  Andrey Kiselev  <[email protected]>
5802
5803	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
5804	manual page for raw2tiff(1) tool.
5805
58062002-09-12  Andrey Kiselev  <[email protected]>
5807
5808	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
5809	the tiffio.h header file.
5810
5811	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
5812	manual page for TIFFDataWidth() function
5813
58142002-09-08  Frank Warmerdam  <[email protected]>
5815
5816	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
5817	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
5818
5819	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
5820	since we are unable to properly include the amount to skip.
5821
5822	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
5823
58242002-09-02  Andrey Kiselev  <[email protected]>
5825
5826	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5827	in TIFFFetchByteArray(). Problem described at
5828	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5829
58302002-08-22  Andrey Kiselev  <[email protected]>
5831
5832	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5833	in _TIFFSetupFieldInfo() function.
5834	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5835
5836	* /libtiff/tif_lzw.c: Additional consistency checking added in
5837	LZWDecode() and LZWDecodeCompat().
5838	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5839	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5840
5841	* /libtiff/tif_lzw.c:
5842	Added check for valid code lengths in LZWDecode() and
5843	LZWDecodeCompat(). Fixes
5844	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5845
58462002-08-16  Andrey Kiselev  <[email protected]>
5847
5848	* /libtiff/{Makefile.vc, libtiff.def}:
5849	Missed declarations added.
5850
58512002-08-15  Frank Warmerdam  <[email protected]>
5852
5853	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5854	return code from the underlying pick function.
5855
5856	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5857
5858	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5859	with FIELD_CUSTOM as mentioned in bug 169.
5860
5861	* tif_close.c: added logic to free dynamically created anonymous
5862	field definitions to correct a small memory leak.
5863
5864	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5865
58662002-08-10  Andrey Kiselev  <[email protected]>
5867
5868	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5869	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5870
58712002-07-31  Frank Warmerdam  <[email protected]>
5872
5873	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5874	JPEGDecode() as per bugzilla bug (issue 1):
5875
5876	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5877
5878	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5879	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5880	present in the tiff tags.
5881
5882	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5883
5884	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5885	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5886	fooled with the value.
5887
5888	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5889
58902002-06-22  Andrey Kiselev  <[email protected]>
5891
5892	* /tools/tiff2ps.c: Added workaround for some software that may crash
5893	when last strip of image contains fewer number of scanlines than
5894	specified by the `/Height' variable. See
5895	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5896	for explanation.
5897
58982002-06-21  Andrey Kiselev  <[email protected]>
5899
5900	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5901	splitting long images in several pages. See
5902	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5903	Patch granted by John Williams <[email protected]>.
5904
59052002-06-11  Frank Warmerdam  <[email protected]>
5906
5907	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5908	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5909	This one is described in:
5910
5911	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5912
5913	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5914
5915	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5916
59172002-05-10  Andrey Kiselev  <[email protected]>
5918
5919	* tools/tiff2ps: New commandline switches to override resolution
5920	units obtained from the input file. Closes
5921	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5922
59232002-04-26  Andrey Kiselev  <[email protected]>
5924
5925	* libtiff/libtiff.def: Added missed declaration.
5926
59272002-04-22  Andrey Kiselev  <[email protected]>
5928
5929	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5930	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5931
59322002-04-20  Andrey Kiselev  <[email protected]>
5933
5934	* libtiff/tif_open.c: Pointers to custom procedures
5935	in TIFFClientOpen() are checked to be not NULL-pointers.
5936
59372002-04-18  Andrey Kiselev  <[email protected]>
5938
5939	* libtiff/libtiff.def: Added missed declarations.
5940
5941	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5942
59432002-04-16  Andrey Kiselev  <[email protected]>
5944
5945	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5946	Should finally close
5947	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5948
59492002-04-10  Andrey Kiselev  <[email protected]>
5950
5951	* tools/tiff2ps: Division by zero fixed.
5952	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5953
59542002-04-09  Andrey Kiselev  <[email protected]>
5955
5956	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5957	TIFFCheckpointDirectory() routine added.
5958	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5959
5960	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5961	for the new function.
5962
59632002-04-08  Andrey Kiselev  <[email protected]>
5964
5965	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5966	additional members tif->tif_decodestatus and tif->tif_encodestatus
5967	for correct handling of unconfigured codecs (we should not try to read
5968	data or to define data size without correct codecs).
5969
5970	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5971	changed. Now it has used tif->tif_decodestatus and
5972	tif->tif_encodestatus.
5973	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5974	case of __cvs_8.tif test image).
5975
5976	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5977	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5978	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5979	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5980
59812002-04-04  Andrey Kiselev  <[email protected]>
5982
5983	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5984	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5985	files by skipping bad strips.
5986	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5987
59882002-04-03  Frank Warmerdam  <[email protected]>
5989
5990	* libtiff/tif_dirwrite.c: Removed some dead code.
5991
5992	* libtiff/*: Cleanup some warnings.
5993
5994	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5995	for variable length FIELD_CUSTOM values.  Was int * but should be
5996	u_short *.
5997
59982002-04-01  Andrey Kiselev  <[email protected]>
5999
6000	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
6001	utility (at cpStripToTile routine).
6002
60032002-03-27  Frank Warmerdam  <[email protected]>
6004
6005	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
6006
6007	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
6008
6009	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
6010	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
6011
6012	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
6013	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
6014
60152002-03-26  Dwight Kelly  <[email protected]>
6016
6017	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
6018	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
6019	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
6020	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
6021	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
6022	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
6023
60242002-03-26  Andrey Kiselev  <[email protected]>
6025
6026	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
6027	now also uses TIFFRGBAImageOK before reading. This is additional fix
6028	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
6029
60302002-03-25  Andrey Kiselev  <[email protected]>
6031
6032	* libtiff/: tif_getimage.c: Additional check for supported
6033	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
6034	TIFFRGBAImageOK before reading.
6035	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
6036
60372002-03-15  Andrey Kiselev  <[email protected]>
6038
6039	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
6040	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
6041	TIFFDataType sizes instead of working with tiffDataWidth array
6042	directly. Should prevent out-of-borders bugs in case of unknown or
6043	broken data types.  EstimateStripByteCounts routine modified, so it
6044	won't work when tags with uknown sizes founded.
6045	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
6046
60472002-03-13  Andrey Kiselev  <[email protected]>
6048
6049	* libtiff/tif_getimage.c: Added support for correct handling
6050	`Orientation' tag in gtTileContig. Should be added in other gt*
6051	functions as well, but I have not images for testing yet. Partially
6052	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
6053
60542002-03-10  Andrey Kiselev  <[email protected]>
6055
6056	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
6057	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
6058	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
6059	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
6060
60612002-03-08  Andrey Kiselev  <[email protected]>
6062
6063	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
6064	be stripped when installing, utility binaries will do.	Closes
6065	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
6066
60672002-02-28  Frank Warmerdam  <[email protected]>
6068
6069	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
6070
6071	* man/libtiff.3t: added copyright tag info.
6072
60732002-02-11  Frank Warmerdam  <[email protected]>
6074
6075	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
6076
6077	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
6078
6079	* man/Makefile.in: Patch DESTDIR handling
6080
6081	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
6082
6083	* configure: OpenBSD changes for Sparc64 and DSO version.
6084
6085	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
6086
60872002-02-05  Frank Warmerdam  <[email protected]>
6088
6089	* config.site/configure: added support for OJPEG=yes option to enable
6090	OJPEG support from config.site.
6091
60922002-01-27  Frank Warmerdam  <[email protected]>
6093
6094	* html/document.html: fixed links for TIFf 6 docs.
6095
60962002-01-18  Frank Warmerdam  <[email protected]>
6097
6098	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
6099
6100	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
6101	decodestrip function returns anything not greater than zero as per
6102	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
6103
6104	* configure: Modify CheckForBigEndian so it can work in a cross
6105	compiled situation.
6106
61072002-01-16  Frank Warmerdam  <[email protected]>
6108
6109	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
6110
6111	* tools/tiffset.c: fix bug in error reporting.
6112
6113	* tools/tiffcp.c: fix several warnings that show up with -Wall.
6114
61152002-01-04  Frank Warmerdam  <[email protected]>
6116
6117	* libtiff/tif_jpeg.c: fixed computation of segment_width for
6118	tiles files to avoid error about it not matching the
6119	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
6120	size.") for ITIFF files.  Apparently the problem was incorporated since
6121	3.5.5, presumably during the OJPEG/JPEG work recently.
6122
61232001-12-15  Frank Warmerdam  <[email protected]>
6124
6125	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
6126
6127	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
6128
6129	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
6130	(defined in tiffconf.h - 1 by default) then the RGBA interface
6131	will assume that a fourth extra sample is ASSOCALPHA if the
6132	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
6133	the library, but makes it work better with RGBA files produced by
6134	lots of applications that don't mark the alpha values properly.
6135
6136	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
6137	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
6138
61392001-12-12  Frank Warmerdam  <[email protected]>
6140
6141	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
6142	override those from tiff directory.  This makes this work with
6143	ImageGear generated files.
6144
61452001-12-07  Frank Warmerdam  <[email protected]>
6146
6147	* html/Makefile.in: added missing images per bug 92.
6148
6149	* port/Makefile.in: fixed clean target per bug 92.
6150
61512001-11-28  Frank Warmerdam  <[email protected]>
6152
6153	* Reissue 3.5.7 release.
6154
6155	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
6156	YYYYMMDD so that it is increasing over time.
6157
6158	* Makefile.in: Ensure that tiffvers.h is regenerated in the
6159	make release target.
6160
6161	* Makefile.in: added libtiff/tiffvers.h to the release file list.
6162
61632001-11-23  Frank Warmerdam  <[email protected]>
6164
6165	* added html/v3.5.7.html, updated html/index.html.
6166
6167	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
6168
61692001-11-15  Frank Warmerdam  <[email protected]>
6170
6171	* configure: fixed test for -lm.
6172
61732001-11-02  Frank Warmerdam  <[email protected]>
6174
6175	* Added PHOTOMETRIC_ITULAB as per bug 90.
6176
6177	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
6178
61792001-10-10  Frank Warmerdam  <[email protected]>
6180
6181	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
6182	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
6183	in keeping with TIFF 6.0 standard in tiff.h
6184
6185	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
6186
61872001-09-26  Frank Warmerdam  <[email protected]>
6188
6189	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
6190	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
6191
61922001-09-24  Frank Warmerdam  <[email protected]>
6193
6194	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
6195
6196	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
6197
6198	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
6199	error about LZW not being available.
6200
6201	* libtiff/tif_dir.c: propagate failure to initialize compression
6202	back from TIFFSetField() as an error status, so applications can
6203	detect failure.
6204
6205	* libtiff/tif_dir.c: removed the auto replacement of
6206	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
6207
6208	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
6209	from CVS as they are all supposed to be auto-generated by configure.
6210
62112001-09-22  Frank Warmerdam  <[email protected]>
6212
6213	* libtiff/tif_ojpeg.c: new update from Scott.
6214
62152001-09-09  Frank Warmerdam  <[email protected]>
6216
6217	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
6218	always use the "safe" version, even if there is a very slight
6219	cost in performance.
6220
6221	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
6222
6223	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
6224	in two places.
6225
6226	* libtiff/tif_getimage.c: Fixed problem with reading strips or
6227	tiles that don't start on a tile boundary.  Fix contributed by
6228	Josep Vallverdu (from HP), and further described in bug 47.
6229
6230	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
6231
6232	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
6233
6234	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
6235
62362001-09-06  Frank Warmerdam  <[email protected]>
6237
6238	* libtiff/tif_packbits.c: fixed memory overrun error.
6239
6240	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
6241
62422001-08-31  Frank Warmerdam  <[email protected]>
6243
6244	* libtiff/tif_getimage.c: relax handling of contig case where
6245	there are extra samples that are supposed to be ignored.  This
6246	should now work for 8bit greyscale or palletted images.
6247
6248	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
6249
62502001-08-28  Frank Warmerdam  <[email protected]>
6251
6252	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
6253	images with more than four samples per pixel.  See:
6254
6255	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
6256
62572001-08-10  Frank Warmerdam  <[email protected]>
6258
6259	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
6260	in TIFFReadRGBATile() to avoid issues in cases of overlapping
6261	buffers.  See Bug 69 in Bugzilla.
6262
6263	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
6264
6265	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
6266
62672001-08-09  Frank Warmerdam  <[email protected]>
6268
6269	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
6270	when checking for 64 bit architectures as per bugzilla bug 67.
6271
62722001-07-27  Frank Warmerdam  <[email protected]>
6273
6274	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
6275	bug 66.
6276
62772001-07-20  Frank Warmerdam  <[email protected]>
6278
6279	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
6280	has been included.
6281
62822001-07-19  Frank Warmerdam  <[email protected]>
6283
6284	* libtiff/tif_open.c: Seek back to zero after failed read,
6285	before writing header.
6286
62872001-07-18  Frank Warmerdam  <[email protected]>
6288
6289	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
6290	much better.  Now depends on having patched libjpeg as per
6291	patch in contrib/ojpeg/*.
6292
62932001-07-17  Frank Warmerdam  <[email protected]>
6294
6295	* */Makefile.in: added DESTDIR support.
6296
6297	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
6298
62992001-07-16  Frank Warmerdam  <[email protected]>
6300
6301	* configure, libtiff/Makefile.in: applied OpenBSD patches
6302	as per:
6303
6304	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
6305
63062001-06-28  Frank Warmerdam  <[email protected]>
6307
6308	* libtiff/tif_getimage.c: Fixed so that failure is properly
6309	reported by gtTileContig, gtStripContig, gtTileSeparate and
6310	gtStripSeparate.
6311
6312	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
6313
6314	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
6315	Updated bug section of tiffcmp.1 to note tiled file issues.
6316
6317	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
6318
63192001-06-22  Frank Warmerdam  <[email protected]>
6320
6321	* configure: Changes for DSO generation on AIX provided by
6322	John Marquart <[email protected]>.
6323
6324	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
6325	on Darwin thanks to Robert Krajewski ([email protected]) and
6326	Keisuke Fujii ([email protected]).
6327
63282001-06-13  Frank Warmerdam  <[email protected]>
6329
6330	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
6331
6332	* man/tiff2rgba.1: new
6333
63342001-05-22  Frank Warmerdam  <[email protected]>
6335
6336	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
6337
63382001-05-13  Frank Warmerdam  <[email protected]>
6339
6340	* libtiff/tools/thumbnail.c: changed default output compression
6341	to packbits from LZW since LZW isn't generally available.
6342
63432001-05-12  Frank Warmerdam  <[email protected]>
6344
6345	* libtiff/tif_ojpeg.c: New.
6346	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
6347	to OJPEG support.
6348
6349	Scott Marovich <[email protected]> supplied OJPEG support.
6350
63512001-05-11  Frank Warmerdam  <[email protected]>
6352
6353	* tiff.h: removed, it duplicates libtiff/tiff.h.
6354
63552001-05-08  Frank Warmerdam  <[email protected]>
6356
6357	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
6358	ensure everything is in order.
6359
6360	* libtiff/libtiff.def: added TIFFCreateDirectory and
6361	TIFFDefaultStripSize as per:
6362
6363	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
6364
63652001-05-02  Frank Warmerdam  <[email protected]>
6366
6367	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
6368	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
6369	force use of uint32 counts instead of short counts.
6370
6371	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
6372	case of writing TIFF_BYTE/TIFF_SBYTE fields.
6373
6374	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
6375
63762001-05-01  Frank Warmerdam  <[email protected]>
6377
6378	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
6379	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
6380
63812001-04-05  Frank Warmerdam  <[email protected]>
6382
6383	* tiffio.h: removed C++ style comment.
6384
6385	* configure: fixed up SCRIPT_SH/SHELL handling.
6386
6387	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
6388
6389	* config.guess: documented more variables as per bug 40.
6390
63912001-04-03  Frank Warmerdam  <[email protected]>
6392
6393	* configure, *Makefile.in: Various changes to improve configuration
6394	for HP/UX specifically, and also in general.  They include:
6395	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
6396	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
6397	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
6398	 - Use -${MAKEFLAGS} in sub makes from makefiles.
6399
6400	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
6401
64022001-04-02  Frank Warmerdam  <[email protected]>
6403
6404	* libtiff/tiff.h: Applied hac to try and resolve the problem
6405	with the inttypes.h include file on AIX.
6406
6407	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
6408
6409	* VERSION: update to 3.5.7 beta in preparation for release.
6410
6411	* configure/config.site: modified to check if -lm is needed for
6412	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
6413
6414	* config.guess: updated wholesale to an FSF version apparently
6415	from 1998 (as opposed to 1994).  This is mainly inspired by
6416	providing for MacOS X support.
6417
64182001-03-29  Frank Warmerdam  <[email protected]>
6419
6420	* configure, Makefile.in, etc: added support for OPTIMIZER being
6421	set from config.site.
6422
64232001-03-28  Frank Warmerdam  <[email protected]>
6424
6425	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
6426
6427	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
6428	sizes. It fixes two problems:
6429
6430	Without	scaling (-S) the fax is now centered on the page size specified
6431	with -H	and/or -W. Before, fax2ps was using an obscure and practially
6432	useless algorithm to allocate the image relative to Letter sized paper
6433	which sometime sled to useless whitespace on the paper, while at the
6434	same time cutting of the faxes printable area at the opposite border.
6435
6436	Second, scaling now preserves aspect ratio, which makes unusual faxes
6437	(in particular short ones) print properly.
6438
6439	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
6440
6441	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
6442	Bruce A. Mallett.  See check message for detailed information
6443	on all the changes, including a faster encoder, fixes for level
6444	2 PostScript, and support for the imagemask operator.
6445
64462001-03-27  Frank Warmerdam  <[email protected]>
6447
6448	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
6449	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
6450
6451	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
6452
64532001-03-16  Frank Warmerdam  <[email protected]>
6454
6455	* tif_dirinfo.c: moved definition of copyright tag in field list.
6456	Apparently they have to be in sorted order by tag id.
6457
64582001-03-13  Frank Warmerdam  <[email protected]>
6459
6460	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
6461	images in RGBA interface.
6462
64632001-03-02  Frank Warmerdam  <[email protected]>
6464
6465	* Added TIFFTAG_COPYRIGHT support.
6466
64672001-02-19  Frank Warmerdam  <[email protected]>
6468
6469	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
6470	with support for extracting subimages with the ,n syntax, and also
6471	adding the -b bias removal flag.
6472
64732001-02-16  Frank Warmerdam  <[email protected]>
6474
6475	* libtiff/libtiff.def: Brent Roman submitted new version adding
6476	serveral missing entry points.
6477
6478	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
6479	Some sort of weird VMS thing.
6480
6481	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
6482
6483	* tif_luv.c/tiff.h/tiffio.h:
6484	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
6485	([email protected]).  He writes:
6486
6487	1) I improved the gamut-mapping function in tif_luv.c for imaginary
6488	colors, because some images were being super-saturated on the input
6489	side and this resulted in some strange color shifts in the output.
6490
6491	2) I added a psuedotag in tiff.h to control random dithering during
6492	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
6493	on for 24-bit LogLuv output.  Dithering improves the average color
6494	accuracy over the image.
6495
6496	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
6497	tiffio.h, to expose internal routines for converting between LogLuv and
6498	XYZ coordinates.  This is helpful for writing more efficient,
6499	specialized conversion routines, especially for reading LogLuv files.
6500
6501	Changes applied with minor edits.
6502
65032001-01-23  Frank Warmerdam  <[email protected]>
6504
6505	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
6506	whether we are encoding or decoding.  This is to ensure graceful
6507	recovery if TIFFClientOpen() discovers an attempt to open a compressed
6508	file for "r+" access, and subsequently close it, as it resets the
6509	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
6510	compressor's concept of whether it is in encode or decode mode.
6511
65122001-01-08  Mike Welles <[email protected]>
6513
6514	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
6515
65162001-01-07  Frank Warmerdam  <[email protected]>
6517
6518	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
6519	as per bug report by Patrick Connor.
6520
65212000-12-28  Frank Warmerdam  <[email protected]>
6522
6523	* Added RELEASE-DATE file to release file list.
6524
6525	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
6526
65272000-12-22  Mike Welles <[email protected]>
6528        * added link to CVS mirror from index.html
6529
6530	* updated html/internals.html to note that LZW compression is
6531	  not supported by default.
6532
65332000-12-22  Frank Warmerdam  <[email protected]>
6534
6535	* updated html/libtiff.html to not point at Niles' old JPL web site
6536	for the man pages, point at www.libtiff.org.
6537
65382000-12-21  Frank Warmerdam  <[email protected]>
6539
6540	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
6541	Leonard Rosenthol <[email protected]>.  May interfere
6542	with correct building on older systems.  If so, please let me know.
6543
65442000-12-19 Mike Welles <[email protected]>
6545
6546	* Took out LZW Encoding from tif_lzw.c
6547
6548	* Created HOWTO-RELEASE
6549
6550	* Created html/v3.5.6.html
6551
6552	* updated index.html
6553
65542000-12-01  Frank Warmerdam  <[email protected]>
6555
6556	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
6557	Patches supplied by Frank Cringle <[email protected]>
6558	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
6559
65602000-11-24  Frank Warmerdam  <[email protected]>
6561
6562	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
6563	target so that the private headers required by libgeotiff can be
6564	installed with the others.  They are not installed by default.
6565
6566	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
6567	targets so libtiff.so will be built with an explicit dependency
6568	on libm.so.
6569
6570	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
6571	libtiff.so.3.5.5.
6572
6573	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
6574	file, or ALPHA version logic.  Added stuff about DIST_POINT in
6575	place of DIST_TYPE and the alpha release number stuff.
6576
65772000-11-22  Frank Warmerdam  <[email protected]>
6578
6579	* I have applied a patch from Steffen Moeller <[email protected]> to
6580	the configure script so that it now accepts the --prefix, and
6581	--exec-prefix directives.
6582
65832000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
6584
6585	* I have made a variety of modifications in an effort to ensure the
6586	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
6587	file which seems to be updated regularly.
6588
6589	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
6590	   version include file.
6591	 o renamed version.h to tiffvers.h because we now have to install it
6592	   with the public libtiff include files.
6593	 o include tiffvers.h in tiffio.h.
6594	 o updated tif_version.c to use tiffvers.h.
6595	 o Updated Makefile.in accordingly.
6596
6597	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
6598	I have updated the win32 detection rules in tiffcomp.h.
6599
66002000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
6601
6602	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
6603	the strip/tile width and height aren't multiples of the sampling size.
6604	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
6605	Some patches from Rick LaMont of Dot C Software.
6606
6607	* Modified tif_packbits.c encoder to avoid compressing more
6608	data than provided if rowsize doesn't factor into provided data
6609	(such as occurs for YCbCr).
6610
66112000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
6612
6613	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
6614	roundup if rows_per_strip not a multiple of vertical sample size.
6615
66162000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
6617
6618	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
6619	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6620	from [email protected].
6621
6622	* Modified tif_packbits.c decoding to avoid overrunning the
6623	output buffer, and to issue a warning if data needs to be
6624	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6625
66262000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
6627
6628	* Modified tiff2bw to ensure portions add to 100%, and that
6629	white is properly recovered.
6630
6631	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
6632	Patch c/o Stanislav Brabec <[email protected]>
6633
66342000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
6635
6636	* Modified TIFFClientOpen() to emit an error on an attempt to
6637	open a comperessed file for update (O_RDWR/r+) access.  This is
6638	because the compressor/decompressor code gets very confused when
6639	the mode is O_RDWR, assuming this means writing only.  See
6640	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
6641
66422000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
6643
6644	* Added GNULDdso target an`d switched linux and freebsd to use it.
6645
66462000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
6647
6648	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
6649	of EXPAND1D() as per bug 11 (from Roman).
6650
66512000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
6652	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
6653	cygwin compatibility.
6654
6655	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
6656	be a proper fix to the buffer sizing problem.  See
6657	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
6658
6659	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
6660	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
6661	Thanks to Nick Lamb <[email protected]> for reporting the
6662	bug and proving the patch.
6663
66642000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
6665
6666	* Fixed tif_jpeg.c so avoid destroying the decompressor before
6667	we are done access data thanks to bug report from:
6668	Michael Eckstein <[email protected]>.
6669
6670	* Reverted tif_flush change.
6671
66722000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
6673
6674	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
6675	error when TIFF_BEENWRITING is not set.  This ensures that the
6676	directory contents can still be flushed by TIFFFlush().
6677
66782000-08-14  Frank Warmerdam  <[email protected]>
6679
6680	* tif_open.c: Don't set MMAP for O_RDWR files.
6681
6682	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
6683	so that files opened for update can be strip chopped too.
6684
6685	* tif_read.c: fixed up bug with files missing rowsperstrip and
6686	the strips per separation fix done a few weeks ago.
6687
66882000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
6689
6690	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
6691	SAMPLEFORMAT_COMPLEXINT.
6692
66932000-07-13  Mike Welles <[email protected]>
6694
6695	* index.html, bugs.html: added bugzilla info.
6696
66972000-07-12  Frank Warmerdam  <[email protected]>
6698
6699	* tif_read.c: fix subtle bug with determining the number of
6700	rows for strips that are the last strip in a separation but
6701	not the last strip of all in TIFFReadEncodedStrip().
6702
6703	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
6704	Peter Skarpetis <[email protected]>
6705
67062000-06-15  Frank Warmerdam  <[email protected]>
6707
6708	* Modified tiffio.h logic with regard to including windows.h.  It
6709	won't include it when building with __CYGWIN__.
6710
67112000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
6712
6713	* README: update to mention www.libtiff.org, don't list Sam's old
6714	email address.
6715
6716	* configure: Fixed DSO test for Linux as per patch from
6717	  Jan Van Buggenhout <[email protected]>.
6718
67192000-04-21  Frank Warmerdam  <[email protected]>
6720
6721	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
6722	one tile/strip images with an offset, and byte count of zero. These
6723	could be "unpopulated" images.
6724
67252000-04-18  Frank Warmerdam  <[email protected]>
6726
6727	* contrib/addtiffo: Added "averaging" resampling option.
6728
6729	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
6730
6731Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
6732
6733	* tools/Makefile.in: Modified to install properly on SGI.
6734
67352000-04-12  Mike Welles	     <[email protected]>
6736	* configure:  Fixed stupid mistake in libc6 test on Linux
6737
67382000-04-04  Mike Welles	     <[email protected]>
6739	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
6740	  caught by BoundsChecker.  From Arvan Pritchard
6741	  <[email protected]>  (untested).
6742
6743	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
6744	  Arvan Pritchard <[email protected]>
6745
6746	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
6747	  Arvan Pritchard <[email protected]>
6748
67492000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
6750
6751	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
6752
67532000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
6754
6755	* fax2ps: Fixed mixup of width and height in bounding box statement
6756	as per submission by Nalin Dahyabhai <[email protected]>.
6757
67582000-03-27  Mike Welles	     <[email protected]>
6759
6760	* fax2ps:  Modified printruns to take uint32 instead of uint16.
6761	Patch courtesy of Bernt Herd <[email protected]>
6762
67632000-03-20  Mike Welles	     <[email protected]>
6764
6765	* configure: added test for libc6 for linux targets.  Bug reported by
6766        Stanislav Brabec <[email protected]>
6767
6768	* Added 3.5 docs to html/Makefile.in.
6769	Thanks to  Stanislav Brabec <[email protected]>
6770
6771	* configure: fixed bugs in sed scripts
6772	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
6773	fix submitted to Stanislav Brabec <[email protected]>
6774
6775	* tools/iptcutil was not in files list, and wasn't being
6776	added to tar archive.  Updated Makefile.in.
6777
67782000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
6779
6780	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
6781	conversion for the run arrays.
6782
67832000-03-03  Frank Warmerdam  <[email protected]>
6784
6785	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
6786	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
6787
67882000-03-02  Frank Warmerdam  <[email protected]>
6789
6790	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
6791
6792	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
6793	to avoid overruns encountered with frle_bug.tif.
6794
6795Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
6796
6797	* Fixed tools/tiffcmp so that stopondiff testing works.
6798	  Patch care of Joseph Orost <[email protected]>.
6799
68002000-01-28    <warmerda@CS46980-B>
6801
6802	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
6803	  set to 1, and added default (off) setting in tiffconf.h.  This
6804	  should eventually be set by the configure script somehow.
6805
6806	  The original work on all these 2-4GB changes was done by
6807	  Peter Smith ([email protected]).
6808
6809	* Modified tif_win32.c to support 2-4GB seeks.
6810
6811	* tentatively changed toff_t to be unsigned instead of signed to
6812	  facilitate support for 2-4GB files.
6813
6814	* Updated a variety of files to use toff_t.  Fixed some mixups
6815	  between toff_t and tsize_t.
6816
6817Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
6818
6819	* Largely reimplemented contrib/addtiffo to avoid temp files,
6820	updating the TIFF file in place.  Fixed a few other bugs to.
6821
6822	* Set tif_rawdatasize to zero when freeing raw data buffer in
6823	TIFFWriteDirectory().
6824
6825	* Enabled "REWRITE_HACK" in tif_write.c by default.
6826
6827	* Fix bug in tif_write.c when switching between reading one directory
6828	and writing to another.
6829
6830	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6831
6832Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6833
6834	* Added TIFFmemory(3t) functions to libtiff.def.
6835
6836Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6837
6838	* Added libtiff/libtiff.def to TIFFILES distribution list.
6839
6840Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6841
6842	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6843
6844	* Altered descriptions in tools to reflect "by default" lzw not supported
6845
6846	* Updated index.html to note lzw compression kit.
6847
6848Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6849
6850	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6851
6852Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6853
6854	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6855
6856	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6857	  when LZW compression invoked.
6858
6859	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6860	  in tools to reflect removal of LZW compression
6861
6862Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6863
6864        * Fixed bug that caused LZW (non) compression to segfault. Added
6865	  warning about LZW compression removed being removed, and why.
6866
6867	* Added nostrip to install in tools/Makefile.in so that debugging
6868	  symbols are kept.
6869
6870Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6871
6872	* Added patch from Ivo Penzar <[email protected]>,
6873	  supporting Adobe ZIP deflate.  Untested.
6874
6875Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6876
6877	* Made Packbits the default compression in tools/tiff2rgba.c instead
6878	of LZW.
6879
6880Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6881
6882	* Added tif_luv to contrib/djgpp/Makefile.lib.
6883
6884Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6885
6886        * Added zip creation to relase makefile target
6887
6888	* Added html for TIFFWriteTile.3t man page.
6889
6890Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6891
6892	* Added some changes to tif_write.c to support rewriting existing
6893	fixed sized tiles and strips.  Code mods disabled by default, only
6894	enabled if REWRITE_HACK is defined for now.
6895
6896Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6897
6898	* Added TIFFWriteTile.3t man page.
6899
6900Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6901
6902	* Added notes on use of makefile.vc in build.html, and fixed
6903	email subscription address.
6904
6905199-11-28  Mike Welles <[email protected]>
6906
6907	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6908
6909	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6910	   from Bruce Carmeron <[email protected]> -- modifications of
6911	   changes made by Frank (sun cc still complained on cast).
6912
6913	*  Added tiffconf.h to install target per request from Bill
6914	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6915 	   know features have been compiled into the TIFF library in order to
6916	   handle things properly".
6917
6918Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6919
6920	* fixed various VC++ warnings as suggested by Gilles Vollant
6921	<[email protected]>.
6922
6923Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6924
6925	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6926	not imply applications are responsible for image data swapping.
6927
69281999-11-22  Mike Welles <[email protected]>
6929	*  HTML-ized the man pages, added to html/man
6930
6931	*  Removed LZW Compression to comply with Unisys patent extortion.
6932
69331999-09-29  Mike Welles		<[email protected]>
6934	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6935	   From Ivo Penzar <[email protected].
6936
6937	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6938	   memory mapped files. <[email protected]>
6939
69401999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6941	* Corrected alpha versioning.
6942
6943	* Removed distinction between  alpha and release targets in Makefile.in.
6944
6945	* added release.stamp target, which tags cvs tree, and updates
6946	  "RELEASE-DATE"
6947
6948	* added releasediff target, which diffs tree with source as of
6949	  date in "RELEASE-DATE"
6950
6951	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6952	  away from alpha/non-alpha distinctions).
6953
6954	* updated html to reflect release
6955
69561999-09-23    <warmerda@CS46980-B>
6957
6958	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6959
6960	* Added CYGWIN case in configure.
6961
6962Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6963
6964	* Applied Francois Dagand's patch to handle fax decompression bug.
6965	  (sizes >= 65536 were failing)
6966
6967Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6968
6969	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6970	  by Christopher Lawton <[email protected]>
6971
6972Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6973
6974	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6975	  Albert Chin-A-Young <[email protected]>
6976
6977	* Added TIFFReassignTagToIgnore() API on behalf of
6978	  Bruce Cameron <[email protected]>.  Man page still pending.
6979
6980Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6981
6982	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6983	files to provide for a rudimentary testsuite.
6984
6985	* Added contrib/tags back from old distribution ... fixed up a bit.
6986
69871999-08-16    <warmerda@CS46980-B>
6988
6989	* Added simple makefile.vc makefiles for building with MS VC++
6990	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6991	better solutions for some users.
6992
6993Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6994
6995	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6996	put it in tools since part of it is in C++.
6997
69981999-08-16  Michael L. Welles  <[email protected]>
6999
7000	* Updated html/index.html with anon CVS instructions.
7001
7002Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
7003
7004	* pre-remove so link before softlink in LINUXdso action in
7005	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
7006	the first.
7007
7008	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
7009	colormaps owned by the TIFF handle itself when trying to fixup wrong
7010	(eight bit) colormaps.  Corrected by maintaining a private copy of
7011	the colormap.
7012
7013	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
7014	tif_getimage.c.
7015
7016	* CVS Repository placed at remotesensing.org.  ChangeLog added.
7017