xref: /libtiff-4.0.7/ChangeLog (revision 4fd5fe67)
12016-09-04 Even Rouault <even.rouault at spatialys.com>
2
3	* libtiff/*.c: fix warnings raised by clang 3.9 -Wcomma
4
52016-09-03 Even Rouault <even.rouault at spatialys.com>
6
7	* libtiff/tif_dirwrite.c, libtiff/tif_color.c: fix warnings raised
8	by GCC 5 / clang -Wfloat-conversion
9
102016-08-16 Even Rouault <even.rouault at spatialys.com>
11
12	* tools/tiffcrop.c: fix C99'ism.
13
142016-08-15 Even Rouault <even.rouault at spatialys.com>
15
16	* tools/tiff2bw.c: fix weight computation that could result of color
17	value overflow (no security implication). Fix bugzilla #2550.
18	Patch by Frank Freudenberg.
19
202016-08-15 Even Rouault <even.rouault at spatialys.com>
21
22	* tools/rgb2ycbcr.c: validate values of -v and -h parameters to
23	avoid potential divide by zero. Fixes CVE-2016-3623 (bugzilla #2569)
24
252016-08-15 Even Rouault <even.rouault at spatialys.com>
26
27	* tools/tiffcrop.c: Fix out-of-bounds write in loadImage().
28	From patch libtiff-CVE-2016-3991.patch from
29	libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro (bugzilla #2543)
30
312016-08-15 Even Rouault <even.rouault at spatialys.com>
32
33	* libtiff/tif_pixarlog.c: Fix write buffer overflow in PixarLogEncode
34	if more input samples are provided than expected by PixarLogSetupEncode.
35	Idea based on libtiff-CVE-2016-3990.patch from
36	libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, but with different and
37	simpler check. (bugzilla #2544)
38
392016-08-15 Even Rouault <even.rouault at spatialys.com>
40
41	* tools/tiff2rgba.c: Fix integer overflow in size of allocated
42	buffer, when -b mode is enabled, that could result in out-of-bounds
43	write. Based initially on patch tiff-CVE-2016-3945.patch from
44	libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, with correction for
45	invalid tests that rejected valid files. (bugzilla #2545)
46
472016-07-11 Even Rouault <even.rouault at spatialys.com>
48
49	* tools/tiffcrop.c: Avoid access outside of stack allocated array
50	on a tiled separate TIFF with more than 8 samples per pixel.
51	Reported by Kaixiang Zhang of the Cloud Security Team, Qihoo 360
52	(CVE-2016-5321 / CVE-2016-5323 , bugzilla #2558 / #2559)
53
542016-07-10 Even Rouault <even.rouault at spatialys.com>
55
56	* libtiff/tif_read.c: Fix out-of-bounds read on
57	memory-mapped files in TIFFReadRawStrip1() and TIFFReadRawTile1()
58	when stripoffset is beyond tmsize_t max value (reported by
59	Mathias Svensson)
60
612016-07-10 Even Rouault <even.rouault at spatialys.com>
62
63	* tools/tiffdump.c: fix a few misaligned 64-bit reads warned
64	by -fsanitize
65
662016-07-03 Even Rouault <even.rouault at spatialys.com>
67
68	* libtiff/tif_read.c: make TIFFReadEncodedStrip() and
69	TIFFReadEncodedTile() directly use user provided buffer when
70	no compression (and other conditions) to save a memcpy().
71
72	* libtiff/tif_write.c: make TIFFWriteEncodedStrip() and
73	TIFFWriteEncodedTile() directly use user provided buffer when
74	no compression to save a memcpy().
75
762016-07-01  Even Rouault <even.rouault at spatialys.com>
77
78	* libtiff/tif_luv.c: validate that for COMPRESSION_SGILOG and
79	PHOTOMETRIC_LOGL, there is only one sample per pixel. Avoid
80	potential invalid memory write on corrupted/unexpected images when
81	using the TIFFRGBAImageBegin() interface (reported by
82	Clay Wood)
83
842016-06-28  Even Rouault <even.rouault at spatialys.com>
85
86	* libtiff/tif_pixarlog.c: fix potential buffer write overrun in
87	PixarLogDecode() on corrupted/unexpected images (reported by Mathias Svensson)
88	(CVE-2016-5875)
89
902016-06-15  Bob Friesenhahn  <[email protected]>
91
92	* libtiff/libtiff.def: Added _TIFFMultiply32 and _TIFFMultiply64
93	to libtiff.def
94
952016-06-05  Bob Friesenhahn  <[email protected]>
96
97	* tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff,
98	ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from
99	the distribution.  The libtiff tools rgb2ycbcr and thumbnail are
100	only built in the build tree for testing.  Old files are put in
101	new 'archive' subdirectory of the source repository, but not in
102	distribution archives.  These changes are made in order to lessen
103	the maintenance burden.
104
1052016-05-10  Bob Friesenhahn  <[email protected]>
106
107	* libtiff/tif_config.vc.h (HAVE_SNPRINTF): Add a '1' to the
108	HAVE_SNPRINTF definition.'
109
1102016-05-09  Bob Friesenhahn  <[email protected]>
111
112	* libtiff/tif_config.vc.h (HAVE_SNPRINTF): Applied patch by Edward
113	Lam to define HAVE_SNPRINTF for Visual Studio 2015.
114
1152016-04-27  Even Rouault <even.rouault at spatialys.com>
116
117	* libtiff/tif_dirread.c: when compiled with DEFER_STRILE_LOAD,
118	fix regression, introduced on 2014-12-23, when reading a one-strip
119	file without a StripByteCounts tag. GDAL #6490
120
1212016-04-07  Bob Friesenhahn  <[email protected]>
122
123	* html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for
124	purposes of security issue reporting.
125
1262016-01-23  Even Rouault <even.rouault at spatialys.com>
127
128	* libtiff/*: upstream typo fixes (mostly contributed by Kurt Schwehr)
129	coming from GDAL internal libtiff
130
1312016-01-09  Even Rouault <even.rouault at spatialys.com>
132
133	* libtiff/tif_fax3.h: make Param member of TIFFFaxTabEnt structure
134	a uint16 to reduce size of the binary.
135
1362016-01-03  Even Rouault <even.rouault at spatialys.com>
137
138	* libtiff/tif_read.c, tif_dirread.c: fix indentation issues raised
139	by GCC 6 -Wmisleading-indentation
140
1412015-12-27  Even Rouault <even.rouault at spatialys.com>
142
143	* libtiff/tif_pixarlog.c: avoid zlib error messages to pass a NULL
144	string to %s formatter, which is undefined behaviour in sprintf().
145
1462015-12-27  Even Rouault <even.rouault at spatialys.com>
147
148	* libtiff/tif_next.c: fix potential out-of-bound write in NeXTDecode()
149	triggered by http://lcamtuf.coredump.cx/afl/vulns/libtiff5.tif
150	(bugzilla #2508)
151
1522015-12-27  Even Rouault <even.rouault at spatialys.com>
153
154	* libtiff/tif_luv.c: fix potential out-of-bound writes in decode
155	functions in non debug builds by replacing assert()s by regular if
156	checks (bugzilla #2522).
157	Fix potential out-of-bound reads in case of short input data.
158
1592015-12-26  Even Rouault <even.rouault at spatialys.com>
160
161	* libtiff/tif_getimage.c: fix out-of-bound reads in TIFFRGBAImage
162	interface in case of unsupported values of SamplesPerPixel/ExtraSamples
163	for LogLUV / CIELab. Add explicit call to TIFFRGBAImageOK() in
164	TIFFRGBAImageBegin(). Fix CVE-2015-8665 reported by limingxing and
165	CVE-2015-8683 reported by zzf of Alibaba.
166
1672015-12-21  Even Rouault <even.rouault at spatialys.com>
168
169	* libtiff/tif_dirread.c: workaround false positive warning of Clang Static
170	Analyzer about null pointer dereference in TIFFCheckDirOffset().
171
1722015-12-19  Even Rouault <even.rouault at spatialys.com>
173
174	* libtiff/tif_fax3.c: remove dead assignment in Fax3PutEOLgdal(). Found
175	by Clang Static Analyzer
176
1772015-12-18  Even Rouault <even.rouault at spatialys.com>
178
179	* libtiff/tif_dirwrite.c: fix truncation to 32 bit of file offsets in
180	TIFFLinkDirectory() and TIFFWriteDirectorySec() when aligning directory
181	offsets on a even offset (affects BigTIFF). This was a regression of the
182	changeset of 2015-10-19.
183
1842015-12-12  Even Rouault <even.rouault at spatialys.com>
185
186	* libtiff/tif_write.c: TIFFWriteEncodedStrip() and TIFFWriteEncodedTile()
187	should return -1 in case of failure of tif_encodestrip() as documented
188	* libtiff/tif_dumpmode.c: DumpModeEncode() should return 0 in case of
189	failure so that the above mentionned functions detect the error.
190
1912015-12-06  Even Rouault <even.rouault at spatialys.com>
192
193	* libtiff/uvcode.h: const'ify uv_code array
194
1952015-12-06  Even Rouault <even.rouault at spatialys.com>
196
197	* libtiff/tif_dirinfo.c: const'ify tiffFields, exifFields,
198	tiffFieldArray and exifFieldArray arrays
199
2002015-12-06  Even Rouault <even.rouault at spatialys.com>
201
202	* libtiff/tif_print.c: constify photoNames and orientNames arrays
203
2042015-12-06  Even Rouault <even.rouault at spatialys.com>
205
206	* libtiff/tif_close.c, libtiff/tif_extension.c : rename link
207	variable to avoid -Wshadow warnings
208
2092015-11-22  Even Rouault <even.rouault at spatialys.com>
210
211	* libtiff/*.c: fix typos in comments (patch by Kurt Schwehr)
212
2132015-11-22  Even Rouault <even.rouault at spatialys.com>
214
215	* libtiff/*.c: fix MSVC warnings related to cast shortening and
216	assignment within conditional expression
217
2182015-11-18  Even Rouault <even.rouault at spatialys.com>
219
220	* libtiff/*.c: fix clang -Wshorten-64-to-32 warnings
221
2222015-11-18  Even Rouault <even.rouault at spatialys.com>
223
224	* libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL
225	to please MSVC 2013
226
2272015-11-17  Even Rouault <even.rouault at spatialys.com>
228
229	* libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction
230	if BitsPerPixel > 24, so as to avoid huge memory allocation and file
231	read attempts
232
2332015-11-02  Even Rouault <even.rouault at spatialys.com>
234
235	* libtiff/tif_dirread.c: remove duplicated assignment (reported by
236	Clang static analyzer)
237
2382015-10-28  Even Rouault <even.rouault at spatialys.com>
239
240	* libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c,
241	libtiff/tif_jpeg_12.c: suppress warnings about 'no previous
242	declaration/prototype'
243
2442015-10-19  Even Rouault <even.rouault at spatialys.com>
245
246	* libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix
247	'warning: negative integer implicitly converted to unsigned type' warning
248	(part of -Wconversion)
249
2502015-10-17  Even Rouault <even.rouault at spatialys.com>
251
252	* libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c,
253	  libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/)
254
2552015-09-12  Bob Friesenhahn  <[email protected]>
256
257	* libtiff 4.0.6 released.
258
259	* html/v4.0.6.html: Added release notes for 4.0.6.
260
2612015-09-06  Bob Friesenhahn  <[email protected]>
262
263	* tools/tiffgt.c: Silence glut API deprecation warnings on MacOS
264	X.  Patch by Roger Leigh.
265
266	* Makefile.am: Added a 'coverity' rule to assist with Coverity
267	submissions.
268
269	* tools/tiff2pdf.c: Fix compiler warning about unused function
270	when JPEG is not available.
271
272	* tools/fax2ps.c (main): Detect failure to write to temporary
273	file.
274
2752015-09-05  Bob Friesenhahn  <[email protected]>
276
277	* libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8):
278	Change implementation so that it does not sometimes overflow the
279	range of a 32-bit int and to avoid a signed vs unsigned compare
280	compiler warning.
281	(TIFF_INT64_MAX): Avoid use of platform-specific large constants.
282	(TIFF_UINT32_MAX): Avoid use of platform-specific large constants.
283
2842015-09-01  Bob Friesenhahn  <[email protected]>
285
286	* Makefile.am (distcheck-hook), configure.ac: Applied patches by
287	Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue
288	with BSD make and to make use of cmake in 'distcheck' target
289	conditional on if cmake is available.
290
291	* CMakeLists.txt, Makefile.am, configure.ac: Applied patches by
292	Roger Leigh (via tiff mailing list on 2015-09-01).
293
294	CMake build is now included in 'distcheck' target.
295
296	Builds with CMake 2.8.9 and newer.
297
298	Tar is now resquested to use POSIX PAX format.
299
3002015-08-31  Bob Friesenhahn  <[email protected]>
301
302	* CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by
303	Roger Leigh (via tiff mailing list on 2015-08-31.
304
305	CMake reads all version information directly from configure.ac to
306	avoid duplication of values.  This basically greps over the file
307	for the LIBTIFF_* variables, then translates them to the form
308	needed for cmake. This includes the release version and libtool
309	shared library version information.
310
311	Make shared/static library building configurable.  Currently it
312	always builds shared libraries, with static libs having a _static
313	suffix (copying zlib, but it means it's got a non-standard name).
314	CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the
315	other, which is now used instead.  There's now a single "tiff"
316	target to build either shared or static as required, and all the
317	tests and tools are linked with this. Note: the Windows tests fail
318	when linked with a static libtiff (says: libtiff.dll not found).
319	Not really a regression since this was not tested up to this
320	point, and it's likely the unit tests haven't (ever?) been run on
321	Windows with a static libtiff, so there's some additional
322	portability issue here to address.  Works fine on UNIX systems,
323	and fine on Windows with the default to build a DLL.
324
325	Add a missing file which wasn't being distributed, causing unit
326	tests to fail.  Note that "find . -name '*.cmake'" lists all the
327	CMake files which need distributing in addition to all the
328	CMakeLists.txt files (which now are distributed).
329
3302015-08-31  Even Rouault <even.rouault at spatialys.com>
331
332	* libtiff/tif_predict.c: pedantic change to add explicit masking
333	with 0xff before casting to uchar in floating-point horizontal
334	differencing and accumulation routines.
335
3362015-08-31  Even Rouault <even.rouault at spatialys.com>
337
338	* libtiff/tif_predict.c: fix generation of output with 16 bit
339	or 32 bit integer, when byte swapping is needed, in
340	horizontal predictor (#2521). Also fixes decoding when there is
341	a single pixel to code (unlikely case...) and byte swapping is
342	involved.
343
3442015-08-30  Even Rouault <even.rouault at spatialys.com>
345
346	* libtiff/tif_lzw.c: make nextdata a unsigned type to avoid
347	undefined behaviour with shifts (gcc -fsanitize=shift)
348
3492015-08-30  Even Rouault <even.rouault at spatialys.com>
350
351	* libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c:
352	add explicit masking with 0xff before casting
353	to unsigned char (make icc -check=conversions happy)
354
355	* libtiff/tif_predict.c: operate on unsigned datatypes when
356	computing/applying differences to avoid undefined behaviour of
357	signed types (C standard compliance)
358
3592015-08-30  Bob Friesenhahn  <[email protected]>
360
361	* configure.ac: libtiff 4.0.5 released.
362
3632015-08-29  Bob Friesenhahn  <[email protected]>
364
365	* CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing
366	list on 2015-08-29) to add ld-version-script option to cmake build
367	to match autoconf.  Note: defaults to 'on' to be ABI-compatible by
368	default with common Linux distribution builds.  Note that the
369	autoconf configure script defaults to 'off'.
370
371	* html/build.html: Applied patch by Roger Leigh (via tiff mailing
372	list on 2015-08-29) to describe how to use CMake to build libtiff.
373
3742015-08-28  Bob Friesenhahn  <[email protected]>
375
376	* html/v4.0.5.html: Added HTML file describing the changes which
377	will appear in the 4.0.5 release.
378
3792015-08-23  Bob Friesenhahn  <[email protected]>
380
381	* libtiff/tiffiop.h: For MinGW comiles, make sure that build
382	supports necessary __MSVCRT_VERSION__ (at least at least 0x800).
383	Otherwise large files can not be supported for POSIX-style I/O.
384
385	* tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit
386	builds about cast to thandle_t.
387
388	* test/rewrite_tag.c (main): Does not require any arguments.
389
3902015-08-20  Bob Friesenhahn  <[email protected]>
391
392	* tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to
393	fix build issues when using Cmake due to Windows large file
394	changes.
395
3962015-08-18  Bob Friesenhahn  <[email protected]>
397
398	* libtiff/tiffiop.h: First cut at supporting large files under
399	Microsoft Windows using tif_unix.c and the libtiff tools.  This
400	only works if the Windows CDK is new enough to support the APIs
401	used (Visual C++ 2005 or later).  Support for large files is not
402	actually tested yet.
403
4042015-08-15  Bob Friesenhahn  <[email protected]>
405
406	* libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that
407	client_data is initialized to a known value, and to report an
408	error on two memory allocation failures.
409
4102015-08-13  Bob Friesenhahn  <[email protected]>
411
412	* CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx
413	symbol versioning.  Patch was mailed to libtiff list on Thu, 13
414	Aug 2015.
415
4162015-07-04  Bob Friesenhahn  <[email protected]>
417
418	* cmake: Add d suffix to debug libraries with MSVC.  Patch #3 of 3
419	by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20
420	+0100.
421
422	* cmake: Add extra warning flags.  Patch #2 of 3 by Roger Leigh
423	posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
424
425	* cmake: Correct snprintf fallback for VS2015.  Patch #1 of 3 by
426	Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
427
4282015-06-24  Bob Friesenhahn  <[email protected]>
429
430	* CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to
431	libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several
432	corrections to ensure that the autotools build still works were
433	added by me.  I have not yet tested the build using 'cmake' or
434	MSVC with 'nmake'.
435
4362015-06-21  Bob Friesenhahn  <[email protected]>
437
438	* test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG
439	library so only execute if JPEG is available.
440
441	* libtiff 4.0.4 released.
442
443	* configure.ac: Add a HAVE_FOO Automake conditional for each
444	add-on library.
445
446	* test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode
447	requires JPEG support to compile.  Use Automake conditional to
448	only include it when JPEG support is available.
449
450	* html/build.html: Try to improve the nmake-based VC++ build
451	description.
452
453	* libtiff/tiffconf.vc.h: Build fixes based on testing.
454
455	* libtiff/tif_config.vc.h: Build fixes based on testing.
456
457	* libtiff/libtiff.def: TIFFRasterScanline does not exist so remove
458	export for it.
459
4602015-06-20  Bob Friesenhahn  <[email protected]>
461
462	* libtiff/tif_config.vc.h: Make adjustments to match the new
463	definitions that configure produces, including for WIN64.  Still
464	needs to be tested.
465
466	* configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting
467	specifier.  64-bit MinGW supports 'long long' but support for
468	'lld' is not assured by the run-time DLLs and so GCC warns.
469	Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition
470	and printf format specifier to deal with printing values of
471	'size_t' type.  In particular, this was necessary for WIN64.
472	Added a configure test for if the system headers provide 'optarg'
473	(normal case) and block out the many explicit 'extern' statements
474	in the utilities.  This was found to be necessary under Windows
475	when getopt is in a DLL and the symbols are already imported with
476	dllimport via standard header files.
477
478	* test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32
479	and boolean in MinGW build due to including jpeglib.h.
480
481	* test/rewrite_tag.c (main): Fix problem with location of variable
482	declaration.
483
484	* libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs,
485	TIFFReadRGBAImageOriented, TIFFSetCompressionScheme,
486	TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc,
487	TIFFRasterScanline, TIFFSetErrorHandlerExt,
488	TIFFSetWarningHandlerExt, TIFFNumberOfDirectories,
489	TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory,
490	TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by
491	Roger Leigh and justified by use in libtiff tests, documentation,
492	and changelog notes.  Also sorted symbol list and removed
493	duplicate entries.
494
4952015-06-16  Bob Friesenhahn  <[email protected]>
496
497	* libtiff/tif_getimage.c: Fix four Coverity issues related to
498	unintended sign extension.
499
5002015-06-16  Even Rouault <even.rouault at spatialys.com>
501
502	* libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna)
503
5042015-06-14  Lee Howard  <[email protected]>
505
506	* libtiff/tif_unix.c: contribution from Vadim Zeitlin on
507	Bugzilla Bug #2510 fixes several harmless but still annoying
508	warnings
509
510	* configure: contribution from Ludolf Holzheid on Bugzilla
511	Bug #2498.  Adds an option to select the file I/O style on
512	Windows hosts.
513
514	* libtiff/tif_getimage.c: contribution from Gary Cramblitt
515	on Bugzilla Bug #2409.  Correct reading of certain tiled TIFFs.
516
517	* configure, configure.ac: contribution from Marcos H. Woehrmann
518	on Bugzilla Bug #2405.  Correct shell equality operator.
519
520	* tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt
521	on Bugzilla Bug #2401.  Appropriately call glFlush().
522
523	* tools/tiff2pdf.c: change ColorTransform from "0" to "1"
524	following Bugzilla Bug #2150.
525
5262015-06-13  Lee Howard  <[email protected]>
527
528	* libtiff/tif_lzw.c: contribution from Andy Cave - decode
529	files that contain consecutive CODE_CLEAR codes.
530
531	* tools/tiff2pdf.c: contribution from Antti S. Lankila on
532	Bugzilla Bug #2078. Suppress initial output of the header.
533
534	* tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy -
535	Take care in using the return value from snprintf().
536
537	* tools/tiffcrop.c: contribution from Eduardo Robles Elvira -
538	correctly copy the compression tag from the source TIFF.
539
540	* tools/tiff2ps.c: contribution from Eduardo Robles Elvira -
541	correct sizing and scaling problems with output document.
542
5432015-06-10  Bob Friesenhahn  <[email protected]>
544
545	* libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two
546	clean implementations in order to avoid pre-processor hell.  Only
547	one of the implementations is used in a given build.
548
5492015-06-08  Even Rouault <even.rouault at spatialys.com>
550
551	* libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12
552	case
553
5542015-06-07  Bob Friesenhahn  <[email protected]>
555
556	* libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975
557	"Division or modulo by zero".
558	(TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division
559	or modulo by zero".
560	(TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by
561	zero".
562	(TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by
563	zero".
564
565	* libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and
566	715974 "Division or modulo by zero".
567
5682015-05-31  Bob Friesenhahn  <[email protected]>
569
570	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity
571	1134470 "Logically dead code" by making the roll-over check
572	explicit.
573
574	* libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227
575	"Division or modulo by zero".
576	(LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by
577	zero".
578	(LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by
579	zero".
580	(LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by
581	zero".
582
583	* libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix
584	Coverity 298626 "Logically dead code".
585	(TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead
586	code".
587	(TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead
588	code".
589	(TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead
590	code"
591
592	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++
593	operator precedenc in evaluation.  Might quench Coverity 1134470
594	"Logically dead code".
595
596	* libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands
597	don't affect result".  This change uses ifdefs to include
598	applicable code based on properties of libjpeg.  Still needs to be
599	re-tested with 12-bit "6b" and "MK1".
600
6012015-05-30  Bob Friesenhahn  <[email protected]>
602
603	* libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310
604	"Resource leak".
605
606	* libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix
607	Coverity 601720 "Resource leak".
608
609	* libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624
610	"Dereference before null check".
611
612	* libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400
613	"Missing break in switch".
614
615	* contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer
616	size calculation for overflow.
617
618	* contrib/addtiffo/addtiffo.c (main): Possibly address Coverity
619	1024226 "Untrusted value as argument".
620
621	* tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted
622	value as argument".
623	(checksignature): Fix Coverity 1024894 "Ignoring number of bytes
624	read".
625	(readextension): Fix Coverity 1024893 "Ignoring number of bytes
626	read".
627	(readgifimage): Fix Coverity 1024890 "Ignoring number of bytes
628	read".
629	(readraster): Fix Coverity 1024891 "Ignoring number of bytes
630	read".
631	(readgifimage): Fix Coverity 1024892 "Ignoring number of bytes
632	read".
633
634	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181
635	"Structurally dead code".
636
637	* tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return
638	value from library".
639	(guessSize): Fix Coverity 1024888 "Unchecked return value from
640	library".
641	(guessSize): Fix Coverity 1214162 "Ignoring number of bytes read".
642	(guessSize): Fix Coverity 1024889 "Unchecked return value from
643	library".
644
645	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621
646	"Resource leak".
647	(t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead
648	code".
649	(t2p_write_pdf): Fix Coverity 1227690 "Unused value".
650
6512015-05-29  Bob Friesenhahn  <[email protected]>
652
653	* contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468
654	"Infinite loop".
655	(formatIPTC): Fix Coverity 1024727 "Truncated stdio return value".
656	(formatIPTC): Fix Coverity 1214240 "Untrusted loop bound".
657
6582015-05-28  Bob Friesenhahn  <[email protected]>
659
660	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
661	Coverity 298615 "Resource leak".
662	(TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign
663	extension".
664
665	* tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value
666	as argument".
667	(main): Fix Coverity 1024678 "Unchecked return value from
668	library".
669	(main): Fix Coverity 1024679 "Unchecked return value from
670	library".
671	(main): Fix Coverity 1214160 "Ignoring number of bytes read".
672
673	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
674	Coverity 298615 "Resource leak".
675
676	* tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309
677	"Resource leak".
678
679	* tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource
680	leak".
681	(cpStrips): Fix Coverity 1024305 "Resource leak".
682
6832015-05-27  Bob Friesenhahn  <[email protected]>
684
685	* tools/ras2tiff.c: Fix Sun Raster header definition to be safe
686	for 64-bit systems.  Add some header validations.  Should fix many
687	Coverity issues.
688	(main): Fix Coverity 1301206: "Integer handling issues  (BAD_SHIFT)".
689	(main): Quiet Coverity 1024223 "Untrusted value as argument".
690
691	* tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting
692	level does not match indentation".
693	(get_histogram): Quiet Coverity 1024386 "Out-of-bounds read".
694	This was a benign mis-diagnosis but added code to enforce against
695	buffer overflow.
696
697	* tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical
698	vs. bitwise operator".
699	(readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or
700	modulo by zero".
701	(readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead
702	code".
703	(writeSingleSection): Fix Coverity 1024796 "Nesting level does not
704	match indentation".
705	(writeCroppedImage): Fix Coverity 1024797 "Nesting level does not
706	match indentation".
707	(loadImage): Fix Coverity 1299741 "Dereference before null check".
708	(loadImage): Fix Coverity 1299740 "Out-of-bounds write".
709
7102015-03-02  Even Rouault  <[email protected]>
711
712	* tools/tiffdither.c: check memory allocations to avoid writing to
713	NULL pointer. Also check multiplication overflow. Fixes #2501,
714	CVE-2014-8128. Derived from patch by Petr Gajdos.
715
7162015-01-26  Even Rouault  <[email protected]>
717
718	* add html/v4.0.4beta.html under version control
719	* HOWTO-RELEASE: write that cvs add html/vX.X.html must be used
720
7212015-01-26  Even Rouault  <[email protected]>
722
723	* libtiff 4.0.4beta released
724
7252015-01-26  Even Rouault  <[email protected]>
726
727	* automake: updated to 1.15
728	* libtool: updated to 2.4.5
729
7302015-01-22  Even Rouault  <[email protected]>
731
732	* tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
733
7342015-01-05  Frank Warmerdam  <[email protected]>
735
736	* html/bugs.html: remove note about needing to email the tiff mailing
737	list administrator about being approved for membership, this appears
738	not to be true.
739
7402015-01-05  Olivier Paquet  <[email protected]>
741
742	* tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
743
7442015-01-03  Even Rouault  <[email protected]>
745
746	* libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
747	when reading more than 65535 directories, and effectively error out when
748	reaching that limit.
749
7502014-12-29  Even Rouault  <[email protected]>
751
752	* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
753	markers to avoid emitting a warning (even if, according to the TechNote,
754	there are admitedly unusual/not recommended or even forbidden variants, but
755	they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
756	SOF9 and SOF10).
757	Define in_color_space and input_components to the right values in
758	JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
759	libjpeg API documentation, so as to be compatible with mozjpeg library.
760	Note: the default settings of mozjpeg will produce progressive scans, which
761	is forbidden by the TechNote.
762
7632014-12-29  Even Rouault  <[email protected]>
764
765	* libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
766	to avoid buffer leak (fix previous fix, found by Coverity scan)
767
7682014-12-29  Even Rouault  <[email protected]>
769
770	* libtiff/tif_next.c: add new tests to check that we don't read outside of
771	the compressed input stream buffer.
772
773	* libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
774    in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
775    putcontig8bitYCbCr21tile cases.
776
7772014-12-27  Even Rouault  <[email protected]>
778
779	* libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
780	extented tags installed by user code through the extender mechaninm before
781	calling the extender callback (GDAL #5054)
782
7832014-12-26  Bob Friesenhahn  <[email protected]>
784
785	* tools/tiffcrop.c: Fix warnings about variables set but not used.
786
787	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
788	but not used.
789
790	* tools/tiffgt.c: Fix warnings about unused parameters.
791
792	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
793
7942014-12-25  Even Rouault  <[email protected]>
795
796	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
797	various typos found by Debian lintian tool (GDAL #5756)
798
7992014-12-24  Even Rouault  <[email protected]>
800
801	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
802	http://bugzilla.maptools.org/show_bug.cgi?id=2235
803
8042014-12-24  Even Rouault  <[email protected]>
805
806	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
807	http://bugzilla.maptools.org/show_bug.cgi?id=2445
808
8092014-12-24  Even Rouault  <[email protected]>
810
811	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
812	Derived from patch by Petr Gajdos,
813	http://bugzilla.maptools.org/show_bug.cgi?id=2443
814
8152014-12-23  Even Rouault  <[email protected]>
816
817	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
818	of _TIFFFillStriles(). This solves crashing bug on corrupted
819	images generated by afl.
820
8212014-12-23  Even Rouault  <[email protected]>
822
823	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
824	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
825	images generated by afl.
826
8272014-12-21  Bob Friesenhahn  <[email protected]>
828
829	* tools/tiffdump.c: Guard against arithmetic overflow when
830	calculating allocation buffer sizes.
831
8322014-12-21  Even Rouault  <[email protected]>
833
834	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
835	SamplesPerPixel = 3. Enforce that
836	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
837
8382014-12-21  Even Rouault  <[email protected]>
839
840	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
841	copying. The right fix would be to properly copy it, but not worth the burden
842	for those esoteric utilities.
843	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
844
8452014-12-21  Even Rouault  <[email protected]>
846
847	* tools/thumbnail.c: fix out-of-buffer write
848	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
849
8502014-12-21  Even Rouault  <[email protected]>
851
852	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
853	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
854	COMPRESSION_CCITTFAX4
855	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
856
8572014-12-21  Even Rouault  <[email protected]>
858
859	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
860	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
861
8622014-12-21  Even Rouault  <[email protected]>
863
864	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
865	TIFFTAG_SAMPLESPERPIXEL
866
8672014-12-21  Even Rouault  <[email protected]>
868
869	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
870	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
871	Description: fix for Debian bug #741451
872	tiffcp crashes when converting JPEG-encoded TIFF to a different
873	encoding (like none or lzw). For example this will probably fail:
874	tiffcp -c none jpeg_encoded_file.tif output.tif
875	The reason is that when the input file contains JPEG data,
876	the tiffcp code forces conversion to RGB space. However,
877	the output normally inherits YCbCr subsampling parameters
878	from the input, which leads to a smaller working buffer
879	than necessary. The buffer is subsequently overrun inside
880	cpStripToTile() (called from writeBufferToContigTiles).
881	Note that the resulting TIFF file would be scrambled even
882	if tiffcp wouldn't crash, since the output file would contain
883	RGB data intepreted as subsampled YCbCr values.
884	This patch fixes the problem by forcing RGB space on the output
885	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
886	Author: Tomasz Buchert <[email protected]>
887
8882014-12-21  Even Rouault  <[email protected]>
889
890	Fix various crasher bugs on fuzzed images.
891	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
892	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
893	the directory
894	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
895	TransferFunction if BitsPerSample has not yet been read, otherwise reading
896	it later will cause user code to crash if BitsPerSample > 1
897	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
898	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
899	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
900	instead of imagewidth to avoid crash
901	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
902	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
903	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
904	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
905	* tools/tiffdump.c: fix crash due to overflow of entry count.
906
9072014-12-15  Even Rouault  <[email protected]>
908
909	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
910	all tiles/strips to include quantization tables even when the jpegtablesmode
911	had the JPEGTABLESMODE_QUANT bit set.
912	Also add explicit removal of Huffman tables when jpegtablesmode has the
913	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
914	first tile/strip (only useful in update scenarios. create-only was
915	fine)
916
9172014-12-09  Bob Friesenhahn  <[email protected]>
918
919	* tools/tiff2pdf.c: Assure that memory size calculations for
920	_TIFFmalloc() do not overflow the range of tmsize_t.
921
9222014-12-07  Even Rouault  <[email protected]>
923
924	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
925	Valgrind and Address Sanitizer on test suite
926
9272014-12-07  Bob Friesenhahn  <[email protected]>
928
929	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
930	tag can return one channel, with the other two channels set to
931	NULL.  The tiff2pdf code was expecting that other two channels
932	were duplicate pointers in the case where there is only one
933	channel.  Detect this condition in order to avoid a crash, and
934	presumably perform correctly with just one channel.
935
9362014-12-06  Bob Friesenhahn  <[email protected]>
937
938	* tools/tiffdump.c: Fix double-free bug.
939
9402014-11-27  Even Rouault  <[email protected]>
941
942	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
943	Visual Studio 2015 aka VC 14 aka MSVC 1900
944
9452014-11-20  Even Rouault  <[email protected]>
946
947	* libtiff/tif_lzw.c: prevent potential null dereference of
948	sp->dec_codetab in LZWPreDecode (bug #2459)
949
950	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
951	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
952
953	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
954
955	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
956	Coverity happier (not a bug, #2459)
957
958	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
959	(not a bug, #2459)
960
961	* tools/tiff2pdf.c: close PDF file (bug #2479)
962
963	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
964
965	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
966	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
967
968	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
969	(bug #2459) and add missing va_end in dump_info (#2459)
970
971	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
972
9732014-11-20  Even Rouault  <[email protected]>
974	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
975	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
976
9772014-11-20  Even Rouault  <[email protected]>
978	* automake: updated to 1.14.1
979	* libtool: updated to 2.4.3
980	* HOWTO-RELEASE: small update about autotools building order
981
9822014-10-20  Olivier Paquet  <[email protected]>
983	* tools/tiff2pdf.c: Preserve input file directory order when pages
984	are tagged with the same page number.
985
9862014-08-31  Bob Friesenhahn  <[email protected]>
987
988	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
989	count for tag should be a warning rather than an error since
990	errors terminate processing.
991
9922014-06-07  Bob Friesenhahn  <[email protected]>
993
994	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
995	was wrongly described.  Fix suggested by Miguel Medalha.
996
9972014-05-06  Bob Friesenhahn  <[email protected]>
998
999	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
1000	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
1001	Reviewed and forwarded by Lee Howard.
1002
10032013-11-30  Frank Warmerdam  <[email protected]>
1004
1005	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
1006
10072013-10-21  Frank Warmerdam  <[email protected]>
1008
1009	* libtiff/tif_dir.c: generate error in case of directory count
1010	overflow.
1011
10122013-10-01  Frank Warmerdam  <[email protected]>
1013
1014	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
1015	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
1016
10172013-09-12  Bob Friesenhahn  <[email protected]>
1018
1019	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
1020	be defective, then set it to zero before returning error in order
1021	to terminate processing of truncated TIFF.  Issue found and fix
1022	suggested by Richard Nolde.
1023
10242013-08-14  Frank Warmerdam  <[email protected]>
1025
1026	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
1027
10282013-08-13  Frank Warmerdam  <[email protected]>
1029
1030	* tools/gif2tiff.c: Be more careful about corrupt or
1031	hostile input files (#2450, CVE-2013-4231)
1032
1033	* tools/tiff2pdf.c: terminate after failure of allocating
1034	ycbcr buffer (bug #2449, CVE-2013-4232)
1035
10362013-07-09  Frank Warmerdam  <[email protected]>
1037
1038	* tools/tiffinfo.c: Default various values fetched with
1039	TIFFGetField() to avoid being uninitialized.
1040
10412013-05-02  Tom Lane  <[email protected]>
1042
1043	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
1044	t2p_process_jpeg_strip to be at least marginally competent.  The
1045	approach is still fundamentally flawed, but at least now it won't
1046	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
1047
10482013-05-02  Tom Lane  <[email protected]>
1049
1050	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
1051 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
1052 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
1053 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
1054 	large enough, and eliminate substantially all uses of sprintf(buf,
1055 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
1056 	protect against overflow of fixed-size buffers.  This responds in
1057 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
1058 	t2p_write_pdf_page(), but in general it seems like a good idea to
1059 	deprecate use of sprintf().
1060
10612013-03-29  Bob Friesenhahn  <[email protected]>
1062
1063	* configure.ac: Applied patch by Brad Smith to improve pkg-config
1064	static linking by adding -lm to Libs.private when needed.
1065
10662013-03-05  Tom Lane  <[email protected]>
1067
1068	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
1069 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
1070 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
1071 	tools/tiffdither.c: Sync tool usage printouts and man pages with
1072 	reality (quite a few options had escaped being documented in one
1073 	or both places).  Per an old report from Miroslav Vadkerti.
1074
10752013-01-25  Bob Friesenhahn  <[email protected]>
1076
1077	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
1078	rotation angle was set by the auto rotate check, it was retained
1079	for all pages that followed instead ofa being retested for each
1080	page.  Patch by Richard Nolde.
1081
10822013-01-18  Frank Warmerdam  <[email protected]>
1083
1084	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
1085	64bit linux.
1086
1087	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
1088	http://bugzilla.maptools.org/show_bug.cgi?id=2427
1089
10902012-12-20  Tom Lane  <[email protected]>
1091
1092	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
1093	it will pass with more versions of libjpeg.  (There are at least
1094	three in active use now, and JPEG_LIB_VERSION doesn't tell us
1095	enough to uniquely identify expected results.)
1096
10972012-12-12  Tom Lane  <[email protected]>
1098
1099	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
1100	field_passcount fields: it had the TIFF_VARIABLE and
1101	TIFF_VARIABLE2 cases backwards.
1102
11032012-12-10  Tom Lane  <[email protected]>
1104
1105	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
1106 	check the linebytes calculation too, get the max() calculation
1107 	straight, avoid redundant error messages, check for malloc
1108 	failure.
1109
11102012-12-10  Tom Lane  <[email protected]>
1111
1112	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
1113 	(to enlarge tbuf for possible partial stride at end) so that
1114 	overflow in the integer addition is detected.  Per gripe from
1115 	Huzaifa Sidhpurwala.
1116
11172012-12-03  Bob Friesenhahn  <[email protected]>
1118
1119	* tools/tiffset.c: tiffset now supports a -u option to unset a
1120	tag.  Patch by Zach Baker. See
1121	http://bugzilla.maptools.org/show_bug.cgi?id=2419
1122
11232012-11-18  Bob Friesenhahn  <[email protected]>
1124
1125	* automake: Update Automake to 1.12.5 release.
1126
1127	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
1128	require malloc() to return NULL pointer if requested allocation
1129	size is zero.  Assure that _TIFFmalloc does.
1130
11312012-11-01  Frank Warmerdam  <[email protected]>
1132
1133	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
1134	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
1135	Red Hat Security Response team for the fix.
1136
11372012-10-18  Frank Warmerdam  <[email protected]>
1138
1139	* tif_zip.c: Avoid crash on NULL error messages.
1140
11412012-09-22  Bob Friesenhahn  <[email protected]>
1142
1143	* libtiff 4.0.3 released.
1144
11452012-09-20  Bob Friesenhahn  <[email protected]>
1146
1147	* Makefile.am: Update to Automake 1.12.4
1148
11492012-08-19  Bob Friesenhahn  <[email protected]>
1150
1151	* Makefile.in: Update to Automake 1.12.3
1152
1153	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
1154	some TIFF/FX support in libtiff.  Add the tag definitions to
1155	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
1156	and also fixes an error in a comment.  Adds the photometric values
1157	to tif_print.c, and fixes a bug.  These changes are by Steve
1158	Underwood.
1159
11602012-08-13  Frank Warmerdam  <[email protected]>
1161
1162	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
1163	compressed file: http://trac.osgeo.org/gdal/ticket/4771
1164
11652012-08-02  Frank Warmerdam  <[email protected]>
1166
1167	* libtiff/tif_dirread.c: report error in case of mismatch value
1168	counts for tags (ie. DotRange).
1169
11702012-07-26  Tom Lane  <[email protected]>
1171
1172	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
1173 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
1174	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
1175	as external accessors for the opaque type TIFFField.
1176
1177	* tools/tiffset.c: Make tiffset use the above functions instead of
1178	relying on library private headers.
1179
11802012-07-19  Tom Lane  <[email protected]>
1181
1182	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
1183	after a malloc failure.  No crash risk AFAICS, but the program
1184	might not report exit code 1 as desired.  h/t [email protected]
1185
11862012-07-18  Tom Lane  <[email protected]>
1187
1188	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
1189	prevents core dumps or perhaps even arbitrary code execution when
1190	processing a corrupt input file (CVE-2012-3401).
1191
11922012-07-06  Bob Friesenhahn  <[email protected]>
1193
1194	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
1195	IJG JPEG 7+ uses a different upsampling algorithm which produces
1196	different numeric results.
1197
1198	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
1199	work with IJG JPEG 7+.
1200
12012012-07-04  Bob Friesenhahn  <[email protected]>
1202
1203	* test/raw_decode.c: Add changes so that test can run with build
1204	directory outside of source directory.
1205
12062012-07-02  Frank Warmerdam  <[email protected]>
1207
1208	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
1209	imagery (http://trac.osgeo.org/gdal/ticket/4732)
1210
12112012-06-20  Frank Warmerdam  <[email protected]>
1212
1213	* libtiff/tif_fax3.c: fix memory initialization of runs, only
1214	partly done.
1215
1216	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
1217	full "stride" past the end.
1218
12192012-06-19  Frank Warmerdam  <[email protected]>
1220
1221	* libtiff/tif_packbits.c: fix read past end of data buffer.
1222
12232012-06-15  Frank Warmerdam  <[email protected]>
1224
1225	*  libtiff 4.0.2 released.
1226
1227	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
1228	warnings with clang.
1229
12302012-06-15  Tom Lane  <[email protected]>
1231
1232	* tools/tiff2pdf.c: Defend against integer overflows while
1233	calculating required buffer sizes (CVE-2012-2113).
1234
12352012-06-12  Frank Warmerdam  <[email protected]>
1236
1237	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
1238
1239	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
1240
12412012-06-07  Frank Warmerdam  <[email protected]>
1242
1243	* libtiff/tif_print.c: avoid pretty printing other fields when
1244	we don't have the proper amount and type of data or if the field
1245	is actually autodefined.
1246
12472012-06-05  Frank Warmerdam  <[email protected]>
1248
1249	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
1250	ycbcrsubsampling values result in a runtime error, not just an
1251	assertion.
1252
1253	* tests/custom_dir.c: Add testing of EXIF and custom directory
1254	reading and writing.
1255
1256	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
1257	and TIFFCreateEXIFDirectory() functions.
1258
1259	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
1260	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
1261	differently.  This is to avoid using special TIFFGetField/TIFFSetField
1262	rules for these fields in non-image directories (like EXIF).
1263
12642012-06-04  Frank Warmerdam  <[email protected]>
1265
1266	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
1267	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
1268	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
1269
12702012-06-01  Frank Warmerdam  <[email protected]>
1271
1272	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
1273
1274	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
1275	http://bugzilla.maptools.org/show_bug.cgi?id=2379
1276
1277	* libtiff/tif_unix.c: use strerror() to return a more specific error message
1278	on failed open.
1279	http://bugzilla.maptools.org/show_bug.cgi?id=2341
1280
1281	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
1282	http://bugzilla.maptools.org/show_bug.cgi?id=2386
1283
1284	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
1285	for testing jpeg in tiff image decoding including the "raw" decode interface.
1286
12872012-05-31  Frank Warmerdam  <[email protected]>
1288
1289	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
1290	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
1291	sampling values.
1292
1293	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
1294
1295	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
1296	http://bugzilla.maptools.org/show_bug.cgi?id=2398
1297
12982012-05-29  Frank Warmerdam  <[email protected]>
1299
1300	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
1301	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
1302	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
1303	to get/set functions for different tags!
1304
1305	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
1306	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
1307
13082012-05-24  Frank Warmerdam  <[email protected]>
1309
1310	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
1311	accumulate" and overwrite the end by one word in at least some cases.
1312
13132012-05-23  Frank Warmerdam  <[email protected]>
1314
1315	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
1316
1317	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
1318
1319	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
1320	the same image.
1321
1322	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
1323	stripbytecounts or stripoffsets or where loading these fails.
1324
1325	* libtiff/tif_print.c: be careful about whether min/max values are singular
1326	or one per sample.
1327
1328	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
1329	May affect things like ISOSpeedRatings.
1330
1331	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
1332	in some cases.
1333
13342012-05-19  Bob Friesenhahn  <[email protected]>
1335
1336	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
1337	example for how to retreive the value of unsupported tags.
1338
13392012-03-30  Frank Warmerdam  <[email protected]>
1340
1341	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
1342	care of Tom Lane @ Red Hat.
1343
13442012-02-18  Bob Friesenhahn  <[email protected]>
1345
1346	* libtiff 4.0.1 released.
1347
1348	* Update automake used to 1.11.3.
1349
1350	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
1351	attribute specification to lessen the risk of accidental macro
1352	substitution.  Patch from Vincent Torri.
1353
13542012-01-31  Frank Warmerdam  <[email protected]>
1355
1356	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
1357	assumption tag fetching is always successful.
1358
1359	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
1360
13612012-01-22  Bob Friesenhahn  <[email protected]>
1362
1363	* configure.ac: Add support for using library symbol versioning on
1364	ELF systems with the GNU linker.  Support is enabled via
1365	--enable-ld-version-script.  Disabled by default for now until
1366	there is a decision for how to deploy a libtiff with versioned
1367	symbols after libtiff 4.0.0 was already released.
1368
13692011-12-22  Bob Friesenhahn  <[email protected]>
1370
1371	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
1372
1373	tif_win32.c.  Patch by Edward Lam.
1374
1375	* configure.ac: Add libtiff private dependency on -llzma for
1376	pkg-config.  Patch by Mark Brand.
1377	Updated Automake to 1.11.2.
1378
13792011-12-21  Bob Friesenhahn  <[email protected]>
1380
1381	* libtiff 4.0.0 released.
1382
13832011-12-08  Frank Warmerdam  <[email protected]>
1384
1385	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
1386	of _TIFFFillStriles() results (#gdal 4372)
1387
13882011-12-07  Frank Warmerdam  <[email protected]>
1389
1390	* libtiff/tif_dirread.c: fixes to deal with invalid files where
1391	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
1392
1393	* libtiff/tif_dirread.c: fix error reporting when there is no
1394	tag information struct and name (gdal #4373)
1395
13962011-10-22  Bob Friesenhahn  <[email protected]>
1397
1398	* Update GNU libtool to 2.4.2.
1399
1400	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
1401	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
1402	Deroulers.
1403
14042011-06-21  Frank Warmerdam  <[email protected]>
1405
1406	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
1407
14082011-05-31  Jim Meyering  <[email protected]>
1409
1410	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
1411	upon failure to allocate "resizeddata".
1412	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
1413	allocation failure, not before.
1414	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
1415	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
1416	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
1417	NULL-deref and possible overflow
1418	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
1419	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
1420	and set of otherwise unused local, data_is_empty.
1421	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
1422	Diagnose out-of-memory failure and return 0 rather than
1423	dereferencing NULL.
1424
14252011-05-24  Frank Warmerdam  <[email protected]>
1426
1427	* libtiff/tif_dirread.c: produce special error message for zero tag
1428	directories instead of error out on the malloc(0) failure.
1429
14302011-05-16  Frank Warmerdam  <[email protected]>
1431
1432	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
1433	related declarations as they are in active use by libraries
1434	such as libgeotiff, and work just fine.  (#2315)
1435
14362011-04-20  Frank Warmerdam  <[email protected]>
1437
1438	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
1439	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
1440	http://bugzilla.maptools.org/show_bug.cgi?id=2315
1441
1442	* libtiff/libtiff.def: add some missing (64bit) APIs.
1443	http://bugzilla.maptools.org/show_bug.cgi?id=2316
1444
14452011-04-09  Bob Friesenhahn  <[email protected]>
1446
1447	* libtiff 4.0.0beta7 released.
1448
14492011-04-09  Bob Friesenhahn  <[email protected]>
1450
1451	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
1452	the run-time target whereas target is used to specify the final
1453	output target if the package is a build tool (like a compiler),
1454	which libtiff is not.  Resolves libtiff bug 2307 "Use
1455	AC_CANONICAL_HOST macro".
1456
14572011-04-02  Bob Friesenhahn  <[email protected]>
1458
1459	* configure.ac: Support configuring TIFF_INT64_FORMAT and
1460	TIFF_UINT64_FORMAT appropriately for MinGW32.
1461
1462	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
1463	printf conventions for 64-bit types because it uses the WIN32 CRT.
1464
1465	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
1466	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
1467	printf conventions for 64-bit types because it uses the WIN32 CRT.
1468
1469	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
1470	understood by WIN32 CRT.
1471
1472	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
1473
1474	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
1475	it is much more portable.  Tmpfile is included in ISO/IEC
1476	9899:1990 and the WIN32 CRT.
1477
14782011-03-26  Frank Warmerdam  <[email protected]>
1479
1480	* tools/tiffset.c: add -d and -sd switches to allow operation on
1481	a particular directory, not just the first (jef).
1482
14832011-03-21  Frank Warmerdam  <[email protected]>
1484
1485	* libtiff/tif_thunder.c: Correct potential buffer overflow with
1486	thunder encoded files with wrong bitspersample set.  The libtiff
1487	development team would like to thank Marin Barbella and TippingPoint's
1488	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
1489	CVE-2011-1167).
1490	http://bugzilla.maptools.org/show_bug.cgi?id=2300
1491
14922011-03-10  Frank Warmerdam  <[email protected]>
1493
1494	* libtiff/tif_fax3.h: Fix to last change allowing zero length
1495	runs at the start of a scanline - needed for legal cases.
1496
14972011-03-02  Frank Warmerdam  <[email protected]>
1498
1499	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
1500	a move left.  Without this, a malicious input file can generate an
1501	indefinitely large series of runs without a0 ever reaching the right
1502	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
1503	This is a modified version of a patch proposed by Drew Yao of Apple
1504	Product Security.  It adds an unexpected() report, and disallows the
1505	equality case, since emitting a run without increasing a0 still allows
1506	buffer overrun.
1507
15082011-02-23  Frank Warmerdam  <[email protected]>
1509
1510	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
1511
1512	* tools/tiff2rgba.c: close source file on error to make leak
1513	detection easier.
1514
1515	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
1516
1517	http://bugzilla.maptools.org/show_bug.cgi?id=2295
1518
15192011-02-22  Frank Warmerdam  <[email protected]>
1520
1521	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
1522	_SUPPORT)
1523
15242011-02-18  Frank Warmerdam  <[email protected]>
1525
1526	* configure.ac, configure: Added support for --enable-chunky-strip-read
1527	configure option to enable the experimental feature from a couple
1528	months ago for reading big strips in chunks.
1529
1530	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
1531	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
1532	Implement optional support for deferring the load of strip/tile
1533	offset and size tags for optimized scanning of directories.  Enabled
1534	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
1535	#define in tif_config.h).
1536
15372011-02-11  Frank Warmerdam  <[email protected]>
1538
1539	* libtiff/tif_print.c: remove unused variable.
1540
15412011-02-09  Frank Warmerdam  <[email protected]>
1542
1543	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
1544	with non-console (popup message) builds on win32.
1545
1546	http://bugzilla.maptools.org/show_bug.cgi?id=2293
1547
15482011-01-24  Olivier Paquet  <[email protected]>
1549
1550	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
1551	tif_print.c, tiff.h, tiffiop.h} : Added support for
1552	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
1553	values for each sample. Presents the min/max of all samples by default for
1554	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
1555	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
1556	http://www.asmail.be/msg0055458208.html
1557
15582011-01-06  Frank Warmerdam  <[email protected]>
1559
1560	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
1561	maintained.
1562
1563	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
1564	for CHUNKY_STRIP_READ_SUPPORT.
1565
1566	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
1567	during JPEGPreDecode and JPEGDecode calls.
1568	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
1569	as compression formats like JPEG keep 16 lines interleaved in a sense
1570	and might need to touch	quite a bit of data.
1571
1572	http://trac.osgeo.org/gdal/ticket/3894
1573
15742011-01-03  Lee Howard <[email protected]>
1575
1576	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
1577	caused by commit on 2010-12-14.  Submitted by e-mail from
1578	Even Rouault <[email protected]>
1579
15802010-12-31  Olivier Paquet  <[email protected]>
1581
1582	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
1583	http://bugzilla.maptools.org/show_bug.cgi?id=2266
1584
15852010-12-23  Andrey Kiselev  <[email protected]>
1586
1587	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
1588	compression level parameter (preset) for Deflate and LZMA encoders,
1589	e.g "-c lzma:p1" or "-c zip:p9".
1590
1591	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
1592	(preset) in LZMAVSetField().
1593
15942010-12-18  Bob Friesenhahn  <[email protected]>
1595
1596	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
1597	Makefile.
1598
15992010-12-14  Andrey Kiselev  <[email protected]>
1600
1601	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
1602	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
1603	TIFF compression scheme LZMA reserving a new value 34925 for
1604	Compression tag. As per
1605	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
1606
16072010-12-14  Lee Howard <[email protected]>
1608
1609	* libtiff/tif_dirread.c: tolerate some cases where
1610	FIELD_COLORMAP is missing
1611	http://bugzilla.maptools.org/show_bug.cgi?id=2189
1612
16132010-12-14  Lee Howard <[email protected]>
1614
1615	* libtiff/tif_read.c: change read_ahead to tmsize_t
1616	http://bugzilla.maptools.org/show_bug.cgi?id=2222
1617
16182010-12-14  Lee Howard <[email protected]>
1619
1620	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
1621	Windows except on Cygwin
1622	http://bugzilla.maptools.org/show_bug.cgi?id=2224
1623
16242010-12-14  Lee Howard <[email protected]>
1625
1626	* tools/gif2tiff.c: fix buffer overrun
1627	http://bugzilla.maptools.org/show_bug.cgi?id=2270
1628
16292010-12-14  Lee Howard <[email protected]>
1630
1631	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
1632	to improve compatibility with various viewers
1633	submitted by e-mail from Dwight Kelly <[email protected]>
1634
16352010-12-13  Lee Howard <[email protected]>
1636
1637	* tools/fax2ps.c: be consistent with page-numbering
1638	http://bugzilla.maptools.org/show_bug.cgi?id=2225
1639
16402010-12-13  Lee Howard <[email protected]>
1641
1642	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
1643	resolves CVE-2010-2595
1644	http://bugzilla.maptools.org/show_bug.cgi?id=2208
1645
16462010-12-13  Lee Howard <[email protected]>
1647
1648	* tools/tiffcrop.c: new release by Richard Nolde
1649	http://bugzilla.maptools.org/show_bug.cgi?id=2004
1650
16512010-12-12  Lee Howard <[email protected]>
1652
1653	* tools/tiff2pdf.c: fix colors for images with RGBA
1654	interleaved data
1655	http://bugzilla.maptools.org/show_bug.cgi?id=2250
1656
16572010-12-12  Lee Howard <[email protected]>
1658
1659	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
1660	http://bugzilla.maptools.org/show_bug.cgi?id=2164
1661
16622010-12-11  Lee Howard <[email protected]>
1663
1664	* tools/tiff2pdf.c: remove invalid duplication for Lab
1665	http://bugzilla.maptools.org/show_bug.cgi?id=2162
1666
16672010-12-11  Lee Howard <[email protected]>
1668
1669	* libtiff/tif_jpeg.c: fix use of clumplines calculation
1670	http://bugzilla.maptools.org/show_bug.cgi?id=2149
1671
16722010-12-11  Lee Howard <[email protected]>
1673
1674	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
1675	http://bugzilla.maptools.org/show_bug.cgi?id=2118
1676
16772010-12-11  Lee Howard <[email protected]>
1678
1679	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
1680	  libtiff/tif_zip.c: fix build errors for VC6
1681	http://bugzilla.maptools.org/show_bug.cgi?id=2105
1682
16832010-12-11  Lee Howard <[email protected]>
1684
1685	* libtiff/tif_stream.cxx: warnings cleanup
1686	http://bugzilla.maptools.org/show_bug.cgi?id=2091
1687	* libtiff/tif_dirread.c: warnings cleanup
1688	http://bugzilla.maptools.org/show_bug.cgi?id=2092
1689
16902010-12-11  Lee Howard <[email protected]>
1691
1692	* tools/tiff2pdf.c: add fill-page option
1693	http://bugzilla.maptools.org/show_bug.cgi?id=2051
1694
16952010-12-11  Lee Howard <[email protected]>
1696
1697	* libtiff/tif_dirread.c: modify warnings
1698	http://bugzilla.maptools.org/show_bug.cgi?id=2016
1699
17002010-12-11  Lee Howard <[email protected]>
1701
1702	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
1703        http://bugzilla.maptools.org/show_bug.cgi?id=1999
1704
17052010-12-11  Lee Howard <[email protected]>
1706
1707	* tools/tiffinfoce.c: strip byte counts are uint64* now
1708
17092010-12-11  Lee Howard <[email protected]>
1710
1711        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
1712        or missing byte-count tag
1713        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
1714        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
1715
17162010-12-08  Lee Howard <[email protected]>
1717
1718        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
1719        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
1720
17212010-12-06  Lee Howard <[email protected]>
1722
1723        * libtiff/tif_open.c: Fix mode check before opening a file.
1724        http://bugzilla.maptools.org/show_bug.cgi?id=1906
1725
17262010-11-27  Bob Friesenhahn  <[email protected]>
1727
1728	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
1729	Patch by Vincent Torri.
1730
17312010-10-21  Frank Warmerdam  <[email protected]>
1732
1733	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
1734
1735	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
1736
1737	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
1738
17392010-09-25  Lee Howard <[email protected]>
1740
1741	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
1742	with additional command line options for Document Title,
1743	Document Creator, and Page Orientation
1744
17452010-07-13  Bob Friesenhahn  <[email protected]>
1746
1747	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
1748	potentially unterminated buffer due to using an exceptionally long
1749	file name.
1750
17512010-07-08  Andrey Kiselev  <[email protected]>
1752
1753	* tools/tiff2pdf.c: Fixed ID buffer filling in
1754	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
1755
17562010-07-07  Andrey Kiselev  <[email protected]>
1757
1758	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
1759	to expected value as the warning message suggests. As per bug
1760	http://bugzilla.maptools.org/show_bug.cgi?id=1963
1761
17622010-07-06  Andrey Kiselev  <[email protected]>
1763
1764	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
1765	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
1766	which should be set by value.
1767
1768	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
1769	and _TIFFFieldWithName() if the tag is not found in the tag table.
1770	This should be normal situation and returned NULL value should be
1771	properly handled by the caller.
1772
17732010-07-02  Andrey Kiselev  <[email protected]>
1774
1775	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
1776	integer type conversions. As per bug
1777	http://bugzilla.maptools.org/show_bug.cgi?id=2207
1778
1779	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
1780	WhitePoint tag as per bug
1781	http://bugzilla.maptools.org/show_bug.cgi?id=2042
1782
1783	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1784	working with YCbCr image in PickContigCase(). As per bug
1785	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1786
1787	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1788	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1789	we don't need any post-processing. That helps to reset the hook if we
1790	previously set this field to some other value and the hook was
1791	initialized accordingly. As per bug
1792	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1793
17942010-07-01  Andrey Kiselev  <[email protected]>
1795
1796	* tools/tiffgt.c: Properly check the raster buffer allocations for
1797	integer overflows. As per bug
1798	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1799
1800	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1801	upstream.
1802
1803	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1804	multiply_32() and multiply_64() functions into tif_aux.c file and
1805	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1806
18072010-06-30  Andrey Kiselev  <[email protected]>
1808
1809	* tools/tiff2pdf.c: Better generation of ID field in
1810	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1811
1812	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1813	converting JPEG encoded tiles.
1814
1815	* tools/tiff2pdf.c: Better handling of string fields, use static
1816	string buffers instead of dynamically allocated, use strncpy() instead
1817	of strcpy(), control the string lengths.
1818
18192010-06-25  Andrey Kiselev  <[email protected]>
1820
1821	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1822	referencing to uninitialized memory in some cases (e.g. when tile size
1823	set bigger than the image size).
1824
18252010-06-15  Bob Friesenhahn  <[email protected]>
1826
1827	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1828	subsampled data since tiffcrop currently doesn't support it.  Fix
1829	JPEG support.
1830
18312010-06-13  Frank Warmerdam  <[email protected]>
1832
1833	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1834
1835	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1836	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1837	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1838	size is larger.  Also, there are a bunch of places that try to
1839	memset() a malloc'd buffer before checking for malloc failure, which
1840	would result in core dump if there actually were a failure. (#2211)
1841
18422010-06-11  Bob Friesenhahn  <[email protected]>
1843
1844	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1845	avoid compiler warnings if parameter types are not sign
1846	consistent.
1847
1848	* libtiff 4.0.0alpha6 released.
1849
1850	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1851	European page size dimensions.  Added an option to allow the user
1852	to specify a custom page size on the command line.  Fix the case
1853	where a page size specified with a fractional part was being
1854	coerced to an integer by retyping the variables that define the
1855	paper size.
1856
1857	* html/index.html: Update for the 3.9.3 release.
1858
1859	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1860	YCbCr subsampled data since tiffcp currently doesn't support it.
1861	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1862
1863	* Update libtool to version 2.2.10.
1864
18652010-06-10  Bob Friesenhahn  <[email protected]>
1866
1867	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1868	multiplier is zero.
1869
18702010-06-09  Bob Friesenhahn  <[email protected]>
1871
1872	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1873	CVE-2010-1411 was not complete.
1874
1875	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1876	multiply two integers.  Returns zero if there is an integer
1877	overflow.
1878
1879	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1880	is reported when reading the input file.
1881
18822010-06-08  Bob Friesenhahn  <[email protected]>
1883
1884	* Update libtool to version 2.2.8.
1885
1886	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1887	buffer due to integer overflow in TIFFroundup() and several other
1888	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1889	fixes CVE-2010-1411.
1890
1891	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1892	result in an integer overflow. This causes TIFFroundup() to also
1893	return zero if there would be an integer overflow.
1894
1895	* contrib: Add an emacs formatting mode footer to all source files
1896	so that emacs can be effectively used.
1897
18982010-06-03  Oliver Chen Feng <[email protected]>
1899
1900	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1901	file PAGENUMBER value in sequence for users who care the page
1902	sequence, this will also prevent tiff2pdf from creating pdf file from
1903	the merged tiff file with wrong page sequence.
1904
19052010-05-08  Olivier Paquet  <[email protected]>
1906
1907	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1908	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1909	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1910	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1911	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1912
19132010-05-07  Frank Warmerdam  <[email protected]>
1914
1915	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1916	JPEGPreEncode(), not just when we want to output local tables.
1917	Otherwise the quality used during compression may not be right and
1918	might not match the tables in the tables tag.   This bug only occurs
1919	when seeking between directories in the midst of writing blocks.
1920	http://trac.osgeo.org/gdal/ticket/3539
1921
19222010-05-06  Andrey Kiselev  <[email protected]>
1923
1924	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1925	Regenerated from the source.
1926
19272010-05-05  Olivier Paquet  <[email protected]>
1928
1929	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1930	had stopped working. Also made it always print 6 floats instead of
1931	2*SamplesPerPixel.
1932	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1933	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1934	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1935	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1936
19372010-05-05  Frank Warmerdam  <[email protected]>
1938
1939	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1940	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1941
19422010-04-21  Frank Warmerdam  <[email protected]>
1943
1944	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1945	JPEGSetupEncode() is called if the tables already seem to be
1946	established.  This prevents spurious updates and rewriting of
1947	directories with jpegtables when doing updates to existing images.
1948	http://trac.osgeo.org/gdal/ticket/3539
1949
19502010-04-20  Olivier Paquet  <[email protected]>
1951
1952	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1953	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1954	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1955	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1956	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1957
19582010-04-10  Bob Friesenhahn  <[email protected]>
1959
1960	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
1961	when the tag count value is zero.  Error handling is still a
1962	regression since in 3.9.2, empty tags are skipped (with a warning)
1963	rather than returning a hard error and refusing to read the file.
1964
1965	* tools/ppm2tiff.c (main): While case for parsing comment line
1966	requires extra parenthesis to work as expected.  Reported by
1967	Thomas Sinclair.
1968
19692010-04-02  Frank Warmerdam  <[email protected]>
1970
1971	* libtiff/tif_read.c (primarily): Add support for
1972	CHUNKY_STRIP_READ_SUPPORT where large strips are
1973	read in chunks for applications using TIFFReadScanline().
1974	This is intended to make it more practical work with very
1975	large compressed one-strip files.   Feature is off by default.
1976	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
1977	http://trac.osgeo.org/gdal/ticket/3514
1978
19792010-03-31  Frank Warmerdam  <[email protected]>
1980
1981	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
1982	directories so previously placed directories will be migrated to
1983	the end of file if needed.
1984
19852010-03-30  Frank Warmerdam  <[email protected]>
1986
1987	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
1988	to support operating on strips/tiles of more than 256MB.
1989	http://trac.osgeo.org/gdal/ticket/3512
1990
19912010-03-10  Bob Friesenhahn  <[email protected]>
1992
1993	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
1994	that it is clearly a memory allocation error message, and also
1995	includes the size of the allocation request.
1996
19972010-02-22  Lee Howard  <[email protected]>
1998
1999	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
2000	the JPEG TIFF as is is not required in order to prevent it from
2001	being unused and filled with invalid data.  (Leave it to be
2002	generated by later activity.)
2003	http://bugzilla.maptools.org/show_bug.cgi?id=2135
2004	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
2005	data rather than skipping them.  This fixes the ability to view in
2006	Acrobat Reader, Evince, and Ghostscript.
2007	http://bugzilla.maptools.org/show_bug.cgi?id=2135
2008	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
2009	strips.
2010	http://bugzilla.maptools.org/show_bug.cgi?id=2029
2011
20122009-12-03  Frank Warmerdam  <[email protected]>
2013
2014	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
2015	Made so that when working with downsampled images a stub function
2016	reporting an error is used for tif_decoderow.  We cannot meaningfully
2017	support reading scanlines in this situation.  (#1936)
2018
2019	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
2020	resetting of the upsampling values (gdal:#3259).
2021	http://bugzilla.maptools.org/show_bug.cgi?id=1936
2022
20232009-11-30  Frank Warmerdam  <[email protected]>
2024
2025	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
2026	tools/ras2tiff.c: Fix resource leaks on error.
2027	http://bugzilla.maptools.org/show_bug.cgi?id=2121
2028
2029	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
2030	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
2031	of as a custom(generic) field to avoid a potential reentrancy problem.
2032	http://bugzilla.maptools.org/show_bug.cgi?id=2125
2033
2034	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
2035	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
2036	const, and display_sRGB static and const.
2037	http://bugzilla.maptools.org/show_bug.cgi?id=2124
2038
20392009-11-04  Bob Friesenhahn  <[email protected]>
2040
2041	* libtiff 4.0.0alpha5 released.
2042
20432009-11-03  Bob Friesenhahn  <[email protected]>
2044
2045	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
2046	version has undergone substantial testing with arbitrary sample
2047	bit depths.  Also eliminates GCC compilation warnings.
2048
20492009-11-02  Bob Friesenhahn  <[email protected]>
2050
2051	* port/libport.h: Add extern declarations for getopt standard
2052	globals.
2053
20542009-10-31  Bob Friesenhahn  <[email protected]>
2055
2056	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
2057	noticed in 64-bit build of libtiff with Visual Studio 2005.
2058	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
2059	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
2060
2061	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
2062	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
2063	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
2064	http://bugzilla.maptools.org/show_bug.cgi?id=2068
2065
20662009-10-29  Bob Friesenhahn  <[email protected]>
2067
2068	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
2069	pointer" warnings.
2070
20712009-10-28  Bob Friesenhahn  <[email protected]>
2072
2073	* html/tools.html: Add manual page links, and a summary
2074	description of tiffcrop.
2075
20762009-10-07  Bob Friesenhahn  <[email protected]>
2077
2078	* configure.ac: x86_64 should use the same fill order as i386.
2079
20802009-09-24  Bob Friesenhahn  <[email protected]>
2081
2082	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
2083	Nolde.  Major updates to add significant functionality for reading
2084	and writing tile based images with bit depths not a multiple of 8
2085	which cannot be handled by tiffcp.
2086
20872009-09-03  Bob Friesenhahn  <[email protected]>
2088
2089	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
2090	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
2091	"Bug 2090 - OJPEG crash with libjpeg v7".
2092	http://bugzilla.maptools.org/show_bug.cgi?id=2090
2093
20942009-09-03  Frank Warmerdam  <[email protected]>
2095
2096	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
2097	interface when stoponerror is set.
2098	http://bugzilla.maptools.org/show_bug.cgi?id=2071
2099
21002009-08-30  Bob Friesenhahn  <[email protected]>
2101
2102	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
2103	fix build with gcc when using the "-Wformat
2104	-Werror=format-security" flags.
2105
21062009-08-29  Bob Friesenhahn  <[email protected]>
2107
2108	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
2109	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
2110	utilities tests.
2111
21122009-08-28  Bob Friesenhahn  <[email protected]>
2113
2114	* tools/tiffinfo.c: tiffinfo should return error status to the
2115	caller.  Register a private error callback to accomplish that.
2116
2117	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
2118	PNM formats so that we will be able to test more of the tools.
2119	While adding these test images I notice that bmp2tiff and gif2tiff
2120	only support ancient versions of their respective formats.
2121
21222009-08-27  Bob Friesenhahn  <[email protected]>
2123
2124	* libtiff 4.0.0alpha4 released.
2125
2126	* HOWTO-RELEASE: Improved release instructions.
2127
21282009-08-24  Bob Friesenhahn  <[email protected]>
2129
2130	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
2131	fixes for "Bug 2023 - nroff errors in manual pages".
2132	http://bugzilla.maptools.org/show_bug.cgi?id=2023
2133
2134	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
2135	CVE-2009-2347 libtiff: integer overflows in various inter-color
2136	space conversion tools".
2137	http://bugzilla.maptools.org/show_bug.cgi?id=2079
2138
2139	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
2140	Berkenbilt for "Bug 2024 - possible null pointer dereference with
2141	one-line fix".
2142	http://bugzilla.maptools.org/show_bug.cgi?id=2024
2143
2144	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
2145	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
2146	segfault after setting tdir_tag = IGNORE".
2147	http://bugzilla.maptools.org/show_bug.cgi?id=1895
2148
21492009-08-23  Bob Friesenhahn  <[email protected]>
2150
2151	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
2152	tiffcrop.sh into a collection of many specific tests.  Re-wrote
2153	all of the existing tests to be based on some simple shell
2154	functions.  Make distcheck works again.
2155
2156	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
2157	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
2158	tests under valgrind.
2159
21602009-08-21  Bob Friesenhahn  <[email protected]>
2161
2162	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
2163	build.
2164
2165	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
2166	actually activated since it needed to be enabled in this
2167	Makefile.am.  Also activated parallel-tests mode since it offers
2168	useful features such as per-test .log files and a summary test
2169	report .log file.
2170
21712009-08-20  Bob Friesenhahn  <[email protected]>
2172
2173	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
2174	libtool 2.2.6.  Enabled support for silent build rules
2175	(--enable-silent-rules or 'make V=0') and colorized tests.
2176
2177	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
2178
21792009-06-30  Frank Warmerdam  <[email protected]>
2180
2181	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
2182
2183	* tools/tiffcp.c: add -c sgilog support.
2184
2185	* libtiff/tif_luv.c: correct return codes from encoderow to be
2186	1 on success instead of zero.
2187	http://bugzilla.maptools.org/show_bug.cgi?id=2069
2188
2189	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
2190	#1085 for a better underflow fix that errors properly.
2191	http://bugzilla.maptools.org/show_bug.cgi?id=2065
2192	http://bugzilla.maptools.org/show_bug.cgi?id=1985
2193
21942009-06-26  Frank Warmerdam  <[email protected]>
2195
2196	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
2197	fails on oddly sized 12bit jpeg compressed ycbcr images.
2198
21992009-06-22  Frank Warmerdam  <[email protected]>
2200
2201	* libtiff/tif_lzw.c: Fix buffer underflow bug.
2202	http://bugzilla.maptools.org/show_bug.cgi?id=2065
2203
22042009-06-21  Frank Warmerdam  <[email protected]>
2205
2206	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
2207	for dual mode 8/12 bit jpeg support.
2208
22092009-06-03  Frank Warmerdam  <[email protected]>
2210
2211	* libtiff/tif_write.c: do not override the planar configuration to be
2212	contig for one sample files if planar configuration is already set.
2213	http://bugzilla.maptools.org/show_bug.cgi?id=2057
2214
22152009-06-02  Frank Warmerdam  <[email protected]>
2216
2217	* libtiff/libtiff.def: Add TIFFUnsetField.
2218
22192009-05-03  Frank Warmerdam  <[email protected]>
2220
2221	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
2222	error reports to use "%s" as format string.
2223	http://trac.osgeo.org/gdal/ticket/2976
2224
22252009-03-12  Frank Warmerdam  <[email protected]>
2226
2227	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
2228	for some codecs (#2020).
2229
22302009-02-12  Frank Warmerdam  <[email protected]>
2231
2232	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
2233	http://bugzilla.maptools.org/show_bug.cgi?id=2005
2234
22352009-02-09  Frank Warmerdam  <[email protected]>
2236
2237	* libtiff/tif_dirread.c: Improve allocation safety when allocated
2238	buffer for large tags.  (#1998)  Related to (#1993)
2239
22402009-02-06  Frank Warmerdam  <[email protected]>
2241
2242	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
2243	test suite should pass.
2244
22452009-02-05  Frank Warmerdam  <[email protected]>
2246
2247	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
2248	but at the 2GB boundary to avoid overflow on 32bit systems.
2249	http://bugzilla.maptools.org/show_bug.cgi?id=1993
2250
2251	* libtiff/tif_dirread.c: Remove some assertions that blow due to
2252	corrupt files rather than in response to library internal
2253	inconsistencies.
2254	http://bugzilla.maptools.org/show_bug.cgi?id=1995
2255	http://bugzilla.maptools.org/show_bug.cgi?id=1991
2256
2257	* libtiff/tif_dirread.c: Fixed testing for failed result from
2258	TIFFReadDirectoryFindFieldInfo().
2259	http://bugzilla.maptools.org/show_bug.cgi?id=1992
2260
22612009-01-23  Frank Warmerdam  <[email protected]>
2262
2263	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
2264	http://bugzilla.maptools.org/show_bug.cgi?id=1911
2265
2266	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
2267
2268	http://bugzilla.maptools.org/show_bug.cgi?id=1924
2269
2270	* tools/tiffcrop.c: initialize xres/yres values.
2271
2272	* test/*.sh - default ${srcdir} to local directory.
2273
2274	* test/common.sh - start verbose mode after common settings.
2275
2276	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
2277	avoid type mismatches on different platforms.
2278	http://bugzilla.maptools.org/show_bug.cgi?id=1889
2279
22802009-01-22  Frank Warmerdam  <[email protected]>
2281
2282	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
2283	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
2284
2285	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
2286	defined, primarily to reduce prototype warnings on windows.
2287
2288	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
2289	about unused parameters, and uninitialized variables.
2290
22912009-01-21  Bob Friesenhahn  <[email protected]>
2292
2293	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
2294	order to trace full execution detail while executing the test suite.
2295
22962009-01-20  Frank Warmerdam  <[email protected]>
2297
2298	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
2299
23002009-01-20  Bob Friesenhahn  <[email protected]>
2301
2302	* test/Makefile.am (CLEANFILES): Make sure that test output files
2303	are removed by 'make clean'
2304
2305	* Update autotools for 4.0.0 beta3
2306
2307	* 4.0.0 beta3 produced.
2308
23092009-01-12  Bob Friesenhahn  <[email protected]>
2310
2311	* test/tiffcrop.sh: New test script for tiffcrop from Richard
2312	Nolde.
2313
2314	* tools/tiff2ps.c: Remove spurious message to stderr.
2315
23162009-01-11  Bob Friesenhahn  <[email protected]>
2317
2318	* tools/tiff2ps.c: Incorporated significant functionality update
2319	from Richard Nolde.  In particular, support for rotating the image
2320	by 90, 180, 270, and 'auto' has been added.
2321
2322	* man/tiffcrop.1: Incorporated documentation updates from Richard
2323	Nolde.
2324
2325	* tools/tiffcrop.c: Incorporated significant functionality update
2326	from Richard Nolde.
2327
23282008-12-31  Bob Friesenhahn  <[email protected]>
2329
2330	* libtiff/tiffio.h: GCC will now validate format specifications
2331	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
2332	TIFFWarningExt() in order to reveal bugs.
2333
2334	* Many fixes throughout to work better as a 64-bit build.
2335
23362008-12-30  Bob Friesenhahn  <[email protected]>
2337
2338	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
2339	tags now require 64-bit parameter rather than 32-bit.
2340
2341	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
2342	64-bit values.
2343
2344	* tools/thumbnail.c: Eliminate crash noticed while running test
2345	suite.
2346
23472008-12-29  Bob Friesenhahn  <[email protected]>
2348
2349	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
2350	Initialize stack variables to avoid compiler warning.
2351
2352	* tools/tiffinfoce.c (main): Use toff_t for offset type when
2353	retrieving offset of EXIF IFD.
2354
2355	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
2356	TIFFClientOpen() callback and other external function definitions.
2357
2358	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
2359	type now.  Fixes crash when dumping files containing an EXIF IFD.
2360
2361	* m4/libtool.m4: Update to libtool 2.2.6.
2362
23632008-12-21  Frank Warmerdam  <[email protected]>
2364
2365	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
2366
2367	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
2368	strip for the last partial strip in a jpeg compressed file.
2369	http://bugzilla.maptools.org/show_bug.cgi?id=1981
2370
23712008-10-29  Frank Warmerdam  <[email protected]>
2372
2373	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
2374	we take the shortcut to only update the strip/tile offsets in place.
2375	http://trac.osgeo.org/gdal/ticket/2621
2376
23772008-10-21  Andrey Kiselev  <[email protected]>
2378
2379	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
2380	the older versions retained).
2381
23822008-10-09  Frank Warmerdam  <[email protected]>
2383
2384	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
2385	IPP enabled version of libjpeg from Intel.
2386	http://bugzilla.maptools.org/show_bug.cgi?id=1951
2387
23882008-09-05  Andrey Kiselev  <[email protected]>
2389
2390	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
2391	Required for libtiff 4.0.
2392
2393	* tools/tiffsplit.c: Use dynamically allocated array instead of static
2394	when constructing output file names.
2395
23962008-09-03  Andrey Kiselev  <[email protected]>
2397
2398	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
2399	doing the filename/path construction.
2400
2401	* tools/tiff2pdf.c: More appropriate format string in
2402	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
2403
2404	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
2405
2406	http://bugzilla.maptools.org/show_bug.cgi?id=1929
2407
2408	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
2409	CVE-2008-2327 security issue.
2410
24112008-09-01  Frank Warmerdam  <[email protected]>
2412
2413	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
2414
2415	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
2416	depending on whether the file is bigtiff or classic tiff.
2417	http://bugzilla.maptools.org/show_bug.cgi?id=1917
2418
24192008-08-12  Edward Lam  <[email protected]>
2420
2421	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
2422	consistent (__int64) casting when testing if _lseeki64 has
2423	successfully seeked as requested.  This is necessary for large
2424	file support to work since off_t is only 32-bit.
2425
24262008-07-29  Frank Warmerdam  <[email protected]>
2427
2428	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
2429	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
2430	with control logic to return runtime errors (c/o Even Rouault) (#1927).
2431
24322008-06-17  Frank Warmerdam  <[email protected]>
2433
2434	* tools/tiffcrop.c: Fix some portability problems.
2435
2436	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
2437	used in tif_jpeg.c.
2438
2439	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
2440	as TIFFOpen().
2441
24422008-06-01  Frank Warmerdam  <[email protected]>
2443
2444	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
2445	like Sparc/Solaris.
2446	http://bugzilla.maptools.org/show_bug.cgi?id=1892
2447
24482008-05-27  Frank Warmerdam  <[email protected]>
2449
2450	* libtiff.def: Add TIFFFindField
2451	http://bugzilla.maptools.org/show_bug.cgi?id=1891
2452
24532008-05-26  Frank Warmerdam  <[email protected]>
2454
2455	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
2456
2457	* li2008-04-15  Andrey Kiselev  <[email protected]>
2458
2459btiff/tif_win32.c: Replace custom Win32 memory api with generic
2460	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
2461	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
2462
2463	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
2464	in windows version (care of Edward Lam).
2465
24662008-05-24  Frank Warmerdam  <[email protected]>
2467
2468	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
2469	compression codec codes.
2470
2471	* tif_dirwrite.c: fix potential memory leak.
2472
2473	* tif_dirread.c: Fix unchecked malloc result.
2474
24752008-05-24  Bob Friesenhahn  <[email protected]>
2476
2477	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
2478	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
2479	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
2480	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
2481	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
2482	suggestions from Lee Howard posted to the tiff list on 13 Sep
2483	2007.
2484
24852008-05-23  Frank Warmerdam  <[email protected]>
2486
2487	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
2488	possible runtime problem reported by coverity.
2489
2490	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
2491
2492	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
2493	http://bugzilla.maptools.org/show_bug.cgi?id=1888
2494
2495	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
2496
2497	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
2498
2499	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
2500	Cleanup scanline allocation to avoid coverity warning.
2501
2502	* tools/thumbnail.c: Check for TIFFOpen() failure.
2503
25042008-05-18  Frank Warmerdam  <[email protected]>
2505
2506	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
2507	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
2508	why this is needed.
2509
25102008-05-09  Bob Friesenhahn  <[email protected]>
2511
2512	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
2513	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
2514
25152008-04-15  Andrey Kiselev  <[email protected]>
2516
2517	* test/: Test suite updated. Everything is passed now.
2518
2519	* libtiff/tif_dirinfo.c: Fixed description of the
2520	TIFFTAG_NUMBEROFINKS tag.
2521
25222008-04-14  Andrey Kiselev  <[email protected]>
2523
2524	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
2525	Get rid of some of "dereferencing type-punned" warnings by converting
2526	tdir_offset field of TIFFDirEntry structure into union.
2527
25282008-04-10  Andrey Kiselev  <[email protected]>
2529
2530	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
2531	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
2532	from the public interface. Type of its 'count' parameter changed
2533	from uint32 to tmsize_t.
2534
2535	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
2536	of the tiff structure have the size_t type instead of uint32.
2537
25382008-04-09  Andrey Kiselev  <[email protected]>
2539
2540	* tools/tiffdump.c: Added support for MSVS 6.0.
2541
2542	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
2543	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
2544	point values on MSVS 6.0 platform.
2545
25462008-03-14  Frank Warmerdam  <[email protected]>
2547
2548	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
2549	TIFFReadDirEntryArray() since they are interfering with seemingly
2550	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
2551
25522008-02-09  Joris Van Damme  <[email protected]>
2553
2554	* tif_dirread.c: Added handling for the case of number of values for
2555	PageNumber tag different from 2 (previously resulted in an assert
2556	indicating lack of handling and was forgotten about)
2557
25582008-02-01  Frank Warmerdam  <[email protected]>
2559
2560	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
2561	the actual jpeg data stream if the first strip/tile has zero size.
2562	This is the case when GDAL creates a new file with zero sizes, closes
2563	and reopens it.
2564
25652008-01-07  Frank Warmerdam  <[email protected]>
2566
2567	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
2568
25692008-01-01  Frank Warmerdam  <[email protected]>
2570
2571	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
2572
2573	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
2574	targets.
2575
2576	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
2577	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
2578	(x64).
2579
2580	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
2581	and TIFFFieldWithName() now return TIFFField pointers instead of
2582	TIFFFieldInfo pointers.
2583
2584	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
2585	exist. This makes it compile again on Windows
2586
2587	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
2588	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
2589
2590	* test/rewrite_tag.c: New test for TIFFRewriteField().
2591
25922007-12-31  Frank Warmerdam  <[email protected]>
2593
2594	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
2595	rewrites one field "on disk" updating an existing directory
2596	entry.  Lots of limitations still...
2597
2598	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
2599	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
2600	the strip offset/size values are dirty but nothing else about the
2601	directory is dirty.  In flush handle "just stripmaps dirty" as a
2602	special case that just rewrites these values without otherwise
2603	modifying the directory on disk using TIFFRewriteField().
2604
2605	We also modify logic so that in update mode the directory is not
2606	marked dirty on read, but only when something is changed.  This
2607	means we need to keep track of updates to the stripmap stuff in
2608	TIFFAppendToStrip().
2609
26102007-12-10  Frank Warmerdam  <[email protected]>
2611
2612	* tif_jpeg.c: Improve ability to switch between encoding and decoding
2613	in the jpeg code (gdal bug #2033).
2614
26152007-11-23  Frank Warmerdam  <[email protected]>
2616
2617	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
2618	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
2619	rawcp/rawcc buffer are for writing and thus may require flushing.
2620	Necessary to distinguish whether they need to be written to disk when
2621	in mixed read/write mode and doing a mixture of writing followed by
2622	reading.  http://trac.osgeo.org/gdal/ticket/1758
2623
26242007-11-23  Andrey Kiselev  <[email protected]>
2625
2626	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
2627	from Alexey Chupahin.
2628
26292007-11-02  Frank Warmerdam  <[email protected]>
2630
2631	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
2632	establishing if an existing tile can be rewritten to the same location
2633	by comparing the current size to all the other blocks in the same
2634	directory.  This is dangerous in many situations and can easily
2635	corrupt a file.  (observed in esoteric GDAL situation that's hard to
2636	document).  This change involves leaving the stripbytecount[] values
2637	unaltered till TIFFAppendToStrip().  Now we only write a block back
2638	to the same location it used to be at if the new data is the same
2639	size or smaller - otherwise we move it to the end of file.
2640
2641	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
2642	data when writing the directory just because we have BEENWRITING at
2643	some point in the past.  This was causing odd junk to be written out
2644	in a tile of data when a single tile had an interleaving of reading
2645	and writing with reading last.  (highlighted by gdal
2646	autotest/gcore/tif_write.py test 7.
2647
2648	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
2649	modifying callers buffer.
2650	http://trac.osgeo.org/gdal/ticket/1965
2651
2652	* tif_predict.c/h: more fixes related to last item, keeping a
2653	distinct pfunc for encode and decode cases as these were getting
2654	mixed up sometimes.
2655	http://trac.osgeo.org/gdal/ticket/1948
2656
26572007-11-01  Frank Warmerdam  <[email protected]>
2658
2659	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
2660	predictor based encoding and decoding works in read-write update
2661	mode properly.
2662	http://trac.osgeo.org/gdal/ticket/1948
2663
26642007-10-24  Joris Van Damme  <[email protected]>
2665
2666	* tif_dirread.c: Fixed problem with bogus file triggering
2667	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
2668	ChopUpSingleUncompressedStrip
2669
26702007-10-22  Joris Van Damme  <[email protected]>
2671
2672	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
2673	at best, access violation at worst, when subsampled JPEG compressed imagery
2674	is decoded without the JPEG_COLORMODE feature
2675
26762007-10-11  Frank Warmerdam  <[email protected]>
2677
2678	* html/index.html: Update "people responsible" section.
2679
26802007-10-05  Frank Warmerdam  <[email protected]>
2681
2682	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
2683	as reported on the mailing list.
2684
26852007-10-01  Joris Van Damme  <[email protected]>
2686
2687	* changed some more incorrect %lud printf flags to %lu
2688
26892007-09-29  Joris Van Damme  <[email protected]>
2690
2691	* tif_dirread.c: Strip chopping interfered badly with uncompressed
2692	subsampled images because it tried to divide subsampled rowblocks,
2693	leading to all sorts of errors throughout the library for these
2694	images. Fixed by making strip chopping divide in row counts that
2695	are a multiple of vertical subsampling value.
2696
26972007-09-28  Joris Van Damme  <[email protected]>
2698
2699	* tif_dirread.c: Logical cast working around compiler warning
2700
2701	* tif_read.c: Correction of some error flags and parameter lists
2702
27032007-09-27  Joris Van Damme  <[email protected]>
2704
2705	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
2706	when dealing with large bitspersample values, shutting up purification
2707	tools that warn about truncation, though it remains incorrect and
2708	indicates a conceptual problem there.
2709
2710	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
2711	of first IFD) to proper place because it badly interfered with memory
2712	mapping, resulting in mapping flag even with dummy mapping functions
2713	that returned 0 whilst at the same time the mapping tif_size wasn't
2714	set, thus resulting in continuous incorrect beyond-eof errors.
2715
27162007-09-24  Joris Van Damme  <[email protected]>
2717
2718	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
2719	inconsistent use of const in tiffFields and exifFields definition
2720
27212007-09-20  Frank Warmerdam  <[email protected]>
2722
2723	* tif_dirwrite.c: Always write tile/strip offsets and sizes
2724	using LONG8 type when output format is BigTIFF.  The
2725	TIFFWriteDirectoryTagLongLong8Array() function was restructured
2726	accordingly.
2727
2728	* tif_dirread.c: Improvements to error reporting text in
2729	TIFFFetchDirectory().
2730
27312007-09-19  Bob Friesenhahn  <[email protected]>
2732
2733	* test/images: Added a small collection of test images for use by
2734	test programs and scripts.
2735	* test/tiffinfo.sh: A trivial example test script.
2736	* test/common.sh: Added small script for setting the environment
2737	used by script-based tests.
2738
27392007-08-24  Frank Warmerdam  <[email protected]>
2740
2741	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
2742	zero when writing directory contents to preserve the ability to
2743	rewrite directories in place, even in the middle of a directory
2744	chain.
2745
2746	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
2747	definitions that are missing.  Existing definitions are silently
2748	ignored.
2749
2750	* tif_dirread.c: Add runtime error for fields for which no definition
2751	is found (in addition to an assert for developers) in
2752	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
2753	prudent.
2754
27552007-08-10  Joris Van Damme  <[email protected]>
2756
2757	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
2758	from _TIFFRGBAImage structure to revert unwanted ABI change.
2759
27602007-08-10  Joris Van Damme  <[email protected]>
2761
2762	* libtiff/tif_win32.c: use SetFilePointer instead of
2763	SetFilePointerEx, as per bug
2764
2765	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
2766
27672007-07-19  Andrey Kiselev  <[email protected]>
2768
2769	* libtiff/tif_stream.cxx: Put all callback functions declarations
2770	inside extern "C" block.
2771
2772	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
2773	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
2774	formatter instead of "%lld" with MSVC compiler.
2775
2776	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
2777	_TIFFUInt64ToDouble() functions.
2778
27792007-07-18  Andrey Kiselev  <[email protected]>
2780
2781	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
2782	integer constants.
2783
2784	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2785	remove tif_config.h/tiffconf.h during cleaning. As per bug
2786
2787	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2788
2789	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2790
2791	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2792
27932007-07-13  Andrey Kiselev  <[email protected]>
2794
2795	* libtiff 4.0.0alpha released.
2796
27972007-07-12  Andrey Kiselev  <[email protected]>
2798
2799	* tools/tiff2pdf.c: Added missed extern optind as per bug
2800
2801	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2802
2803	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2804	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2805	extending scheme completed.
2806
28072007-07-11  Bob Friesenhahn  <[email protected]>
2808
2809	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2810	use standard C++ library size types and attempt to detect overflow
2811	cases.
2812
28132007-07-08  Andrey Kiselev  <[email protected]>
2814
2815	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2816	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2817	tag extending scheme. Use the new scheme everywhere.
2818
2819	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2820	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2821	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2822	TIFFFIeldInfo structure replaced with TIFFField structure.
2823	TIFFFieldInfo retained for the backward compatibility.
2824
28252007-07-05  Bob Friesenhahn  <[email protected]>
2826
2827	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2828	defined.
2829
28302007-07-04  Andrey Kiselev  <[email protected]>
2831
2832	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2833	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2834	removed.
2835
2836	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2837	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2838	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2839	These tags are not codec-specific and relate to image content, so
2840	process them as other normal tags.
2841
2842	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2843	public tiffio.h to private tif_dir.h.
2844
2845	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2846	outdated.
2847
28482007-07-03  Andrey Kiselev  <[email protected]>
2849
2850	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2851	tif_win3.c}: Obsoleted portability stuff removed.
2852
2853	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2854
2855	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2856
2857	Patch from William Bader.
2858
2859	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2860	significant upgrade of the whole utility as per bug
2861
2862	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2863
2864	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2865	PDF file using TIFFClientOpen() machinery as it is implemented
2866	by Leon Bottou.
2867
28682007-06-26  Bob Friesenhahn  <[email protected]>
2869
2870	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2871	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2872	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2873	allow returning -1 for errors.
2874	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2875
28762007-06-25  Bob Friesenhahn  <[email protected]>
2877
2878	* port/strtoull.c: New porting function in case strtoull() is not
2879	available on the target system.
2880	* configure.ac: Add configure support for determining sized types
2881	in a portable way and performing necessary substitutions in
2882	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2883	definitions.
2884
28852007-04-27  Andrey Kiselev  <[email protected]>
2886
2887	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2888
2889	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2890
28912007-04-07  Andrey Kiselev  <[email protected]>
2892
2893	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2894	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2895	tif_predict.c, tif_zip.c}: Finally fix bug
2896
2897	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2898
2899	by introducing _TIFFMergeFieldInfo() returning integer error status
2900	instead of void in case of problems with field merging (e.g., if the
2901	field with such a tag already registered). TIFFMergeFieldInfo() in
2902	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2903	check returned value.
2904
29052007-04-07  Frank Warmerdam  <[email protected]>
2906
2907	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2908	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2909
29102007-04-06  Frank Warmerdam  <[email protected]>
2911
2912	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2913	will convert from decompressor to compressor or compress to decompress
2914	if required by the force arguments.  This works around a problem in
2915	where the JPEGFixupTestSubsampling() may cause a decompressor to
2916	be setup on a directory when later a compressor is required with the
2917	force flag set.  Occurs with the addtiffo program for instance.
2918
29192007-04-06  Andrey Kiselev  <[email protected]>
2920
2921	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2922	functionality from Richard Nolde. As per bug
2923
2924	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2925
29262007-03-28  Frank Warmerdam  <[email protected]>
2927
2928	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2929
29302007-03-17  Joris Van Damme  <[email protected]>
2931
2932	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2933
29342007-03-07  Joris Van Damme  <[email protected]>
2935
2936	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2937	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2938	factor. This bug is mentioned in:
2939	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2940	http://www.asmail.be/msg0054766825.html
2941
29422007-03-07  Joris Van Damme  <[email protected]>
2943
2944	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2945
2946	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2947	unused arguments by standard C indication for the same
2948
29492007-02-27  Andrey Kiselev  <[email protected]>
2950
2951	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2952	counters in TIFFFetchData(). Should finally fix the issue
2953
2954	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2955
29562007-02-24  Andrey Kiselev  <[email protected]>
2957
2958	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
2959	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2960
2961	* libtiff/tif_dirread.c: Added special function to handle
2962	SubjectDistance EXIF tag as per bug
2963
2964	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
2965
2966	* tools/tiff2pdf.c: Do not assume inches when the resolution units
2967	do not specified. As per bug
2968
2969	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2970
2971	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
2972	it was set as infinite. As per bug
2973
2974	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2975
2976	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
2977	by Richard Nolde. As per bug
2978
2979	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
2980
29812007-02-22  Andrey Kiselev  <[email protected]>
2982
2983	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
2984	ExtraSamples == 999 produced by Corel Draw. As per bug
2985
2986	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
2987
2988	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
2989	changed from tsize_t to uint32 to be able to work with data arrays
2990	larger than 2GB. Fixes bug
2991
2992	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2993
2994	Idea submitted by Matt Hancher.
2995
29962007-01-31  Andrey Kiselev  <[email protected]>
2997
2998	* tools/tif2rgba.c: This utility does not work properly on big-endian
2999	architectures. It was fixed including the bug
3000
3001	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
3002
30032007-01-15  Mateusz Loskot <[email protected]>
3004
3005	* Submitted libtiff port for Windows CE platform
3006	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
3007	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
3008	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
3009	functons from tif_win32.c.
3010	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
3011	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
3012	standard header files for Windows CE build.
3013	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
3014
30152006-11-19  Frank Warmerdam  <[email protected]>
3016
3017	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
3018	we move a strip.
3019	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
3020
30212006-10-13  Andrey Kiselev  <[email protected]>
3022
3023	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
3024	in Gentoo bug ():
3025
3026	http://bugs.gentoo.org/show_bug.cgi?id=142383
3027
3028	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
3029	Though it is still far from the state of being working and useful.
3030
30312006-10-12  Andrey Kiselev  <[email protected]>
3032
3033	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
3034	method.
3035
3036	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
3037	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
3038
3039	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
3040	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
3041
3042	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
3043	vulnerabilities, reported in Gentoo bug ():
3044
3045	http://bugs.gentoo.org/show_bug.cgi?id=142383
3046
30472006-09-28  Andrey Kiselev  <[email protected]>
3048
3049	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
3050	vulnerabilities, as per	Gentoo bug ():
3051
3052	http://bugs.gentoo.org/show_bug.cgi?id=142383
3053
30542006-09-27  Frank Warmerdam  <[email protected]>
3055
3056	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
3057	encoding and decoding on the same read-write TIFF handle.  The LZW
3058	code can now maintain encode and decode state at the same time. The
3059	ZIP code will switch back and forth as needed.
3060	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
3061
30622006-09-20  Frank Warmerdam  <[email protected]>
3063
3064	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
3065	tif_config.vc.h for easier identification by folks using an IDE.
3066
30672006-07-25  Frank Warmerdam  <[email protected]>
3068
3069	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
3070
30712006-07-19  Frank Warmerdam  <[email protected]>
3072
3073	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
3074	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
3075	to bug report by Peng Gao with black strip at bottom of images.
3076
30772006-07-12  Frank Warmerdam  <[email protected]>
3078
3079	* tif_dirwrite.c: make sure to use uint32 for wordcount in
3080	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
3081	It already seems to have been done for other field types.  Needed
3082	for "tiffset" on files with geotiff ascii text.
3083
30842006-07-04  Bob Friesenhahn  <[email protected]>
3085
3086	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
3087	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
3088	its use does not appear to be required, so use it only when it is
3089	available.
3090
30912006-06-24  Andrey Kiselev  <[email protected]>
3092
3093	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
3094
3095	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
3096	function TIFFFetchDirectory() avoiding code duplication in
3097	TIFFReadDirectory() and TIFFReadCustomDirectory().
3098
30992006-06-19  Frank Warmerdam  <[email protected]>
3100
3101	* tools/tiff2pdf.c: Fix handling of -q values.
3102	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
3103
31042006-06-17  Frank Warmerdam  <[email protected]>
3105
3106	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
3107	files.  Modified TIFFReadDirectory() to not invoke
3108	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
3109	but one of them is zero.
3110	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
3111
31122006-06-08  Andrey Kiselev  <[email protected]>
3113
3114	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
3115	checking code in the separate function TIFFCheckDirOffset().
3116
3117	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
3118
3119	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
3120
3121	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
3122
3123	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
3124
3125	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
3126
3127	* tools/tiff2pdf.c: Fixed buffer overflow condition in
3128	t2p_write_pdf_string() as per bug
3129
3130	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
3131
31322006-06-07  Andrey Kiselev  <[email protected]>
3133
3134	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
3135	support for JBIG compression scheme (34661 code) contributed by Lee
3136	Howard. As per bug
3137
3138	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
3139
3140	* configure, configure.ac: OJPEG support enabled by default.
3141
3142	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
3143
31442006-06-03  Bob Friesenhahn  <[email protected]>
3145
3146	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
3147	TIFFPrintDirectory().  Joris Van Damme authored the fix.
3148
31492006-04-21  Andrey Kiselev  <[email protected]>
3150
3151	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
3152	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
3153
3154	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
3155	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
3156	Added support for OpenVMS by Alexey Chupahin, [email protected].
3157
31582006-04-20  Andrey Kiselev  <[email protected]>
3159
3160	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
3161	Properly set the binary mode for stdin stream as per bug
3162	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
3163
3164	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
3165	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
3166	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
3167	tiffset.1}: Improvements in page formatting as per bug
3168	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
3169
3170	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
3171	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
3172
31732006-04-18  Frank Warmerdam  <[email protected]>
3174
3175	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
3176	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
3177
31782006-04-12  Joris Van Damme  <[email protected]>
3179
3180	* libtiff/tif_getimage.c: Added support for planarconfig separate
3181	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
3182
31832006-04-11  Joris Van Damme  <[email protected]>
3184
3185	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
3186	- Conversion of unassociated alpha to associated alpha now done with
3187	  more performant LUT, and calculation more correct
3188	- Conversion of 16bit data to 8bit data now done with
3189	  more performant LUT, and calculation more correct
3190	- Bugfix of handling of 16bit RGB with unassociated alpha
3191
31922006-04-11  Joris Van Damme  <[email protected]>
3193
3194	* libtiff/tif_getimage.c:
3195	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
3196	  buffer for alpha strile and filled it, only to never read it back.
3197	  Removed allocation and fill.
3198	- Minor rename of vars in gtTileSeparate and gtStripSeparate
3199	  anticipating planned functionality extension
3200
32012006-04-08  Joris Van Damme  <[email protected]>
3202
3203	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
3204	and pickTileSeparateCase to PickSeparateCase as both work on strips as
3205	well
3206
3207	* libtiff/tif_getimage.c: moved img->get selection from
3208	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
3209	logical hook for planned functionality extension
3210
32112006-04-08  Joris Van Damme  <[email protected]>
3212
3213	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
3214	of inappropriate use of jpeg_abort instead of jpeg_destroy
3215
32162006-04-07  Joris Van Damme  <[email protected]>
3217
3218	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
3219	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
3220	on subsampled images - this ought to get sorted when we feel brave
3221	enough to replace TIFFScanlineSize alltogether
3222
3223	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
3224
32252006-04-04  Joris Van Damme  <[email protected]>
3226
3227	* libtiff/tiffio.h: added new type tstrile_t
3228
3229	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
3230	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
3231	toff_t*
3232
3233	* libtiff/tif_ojpeg.c: totally new implementation
3234
3235	* libtiff/tif_dirread.c: added several hacks to suit new support of
3236	OJPEG
3237
3238	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
3239	of OJPEG images in favor of tif_getimage.c native handling of
3240	YCbCr and desubsampling
3241
32422006-03-29  Frank Warmerdam  <[email protected]>
3243
3244	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
3245	interpretation causes the "upsampled" flag to be recomputed.  Fixes
3246	peculiar bug where photometric flag had to be set before jpegcolormode
3247	flag.
3248
32492006-03-25  Joris Van Damme  <[email protected]>
3250
3251	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
3252
3253	* libtiff/tif_strip.c: temporarilly added two new versions of
3254	TIFFScanlineSize
3255	  - TIFFNewScanlineSize: proposed new version, after all related
3256	    issues and side-effects are sorted out
3257	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
3258	This needs further sorting out.
3259
32602006-03-25  Joris Van Damme  <[email protected]>
3261
3262	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
3263	of last truncated strip data to TIFFWriteEncodedStrip
3264
32652006-03-25  Joris Van Damme  <[email protected]>
3266
3267	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
3268
32692006-03-25  Joris Van Damme  <[email protected]>
3270
3271	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
3272
3273	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
3274
3275	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
3276	prepare	the path for new tif_ojpeg.c
3277
32782006-03-23  Andrey Kiselev  <[email protected]>
3279
3280	* libtiff 3.8.2 released.
3281
3282	* tools/Makefile.am: Use runtime paths linker flags when rpath
3283	option enabled.
3284
32852006-03-21  Andrey Kiselev  <[email protected]>
3286
3287	* libtiff/libtiff.def: Added missed exports as per bug
3288	http://bugzilla.remotesensing.org/attachment.cgi?id=337
3289
3290	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
3291	tools/Makefile.vc: Makefiles improvements as per bug
3292	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
3293
3294	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
3295	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
3296	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
3297
3298	* libtiff/tif_strip.c: Take subsampling in account when calculating
3299	TIFFScanlineSize().
3300
3301	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
3302
33032006-03-17  Andrey Kiselev  <[email protected]>
3304
3305	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
3306	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
3307
3308	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
3309	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
3310
33112006-03-16  Andrey Kiselev  <[email protected]>
3312
3313	* libtiff/tiffiop.h: Added decalration for
3314	_TIFFSetDefaultCompressionState().
3315
3316	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
3317	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
3318	codec cleanup methods. As per bug
3319
3320	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
3321
33222006-03-15  Andrey Kiselev  <[email protected]>
3323
3324	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
3325	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
3326
3327	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
3328	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
3329
3330	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
3331	removed; move here the STRIP_SIZE_DEFAULT macro definition.
3332
3333	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
3334	macro definition.
3335
3336	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
3337
33382006-03-14  Andrey Kiselev  <[email protected]>
3339
3340	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
3341	in TIFFReadDirectory, because it is always set at the start of
3342	function and we allow TIFFs without that tag set.
3343
33442005-03-13  Andrey Kiselev  <[email protected]>
3345
3346	* libtiff 3.8.1 released.
3347
33482006-03-07  Andrey Kiselev  <[email protected]>
3349
3350	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
3351	function as per bug
3352	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3353
3354	* libtiff/tif_dirread.c: More wise check for integer overflow
3355	condition as per bug
3356	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3357
3358	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
3359	Properly restore setfield/getfield methods in cleanup functions. As
3360	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3361
33622006-03-03  Andrey Kiselev  <[email protected]>
3363
3364	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
3365	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
3366
3367	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
3368	TIFFPredictorCleanup() in codec cleanup methods. As per bug
3369
3370	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3371
3372	* libtiff/tif_dirread.c: Fixed integer overflow condition in
3373	TIFFFetchData() function. As per bug
3374
3375	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3376
33772006-03-01  Andrey Kiselev  <[email protected]>
3378
3379	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
3380	TIFFSetField() method, not directly. As per bug
3381
3382	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
3383
3384	* tools/ppm2tiff.c: Added support for PBM files as per bug
3385	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
3386
33872006-02-27  Andrey Kiselev  <[email protected]>
3388
3389	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
3390	to avoid crash as per bug
3391
3392	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
3393
33942006-02-26  Andrey Kiselev  <[email protected]>
3395
3396	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
3397	t2p_sample_rgba_to_rgb() was used in place of each other, that was
3398	resulted in problems with RGBA images with associated alpha.
3399	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
3400
34012006-02-23  Andrey Kiselev  <[email protected]>
3402
3403	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
3404	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
3405
3406	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
3407	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
3408	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
3409
3410	* tools/tiff2ps.c: Properly scale all the pages when converting
3411	multipage TIFF with /width/height/center options set. As per bug
3412
3413	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
3414
34152006-02-15  Andrey Kiselev  <[email protected]>
3416
3417	* tools/tiff2pdf.c: Do not create output file until all option checks
3418	will be done. As per bug
3419
3420	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
3421
3422	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
3423	list of input files as per bug:
3424
3425	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
3426
34272006-02-09  Andrey Kiselev  <[email protected]>
3428
3429	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
3430	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
3431
3432	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
3433	TIFFRGBAImage interface.
3434
3435	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
3436	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
3437
34382006-02-07  Frank Warmerdam  <[email protected]>
3439
3440	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
3441	compressed TIFF files, per submission from Dan Cobra.
3442
34432006-02-07  Andrey Kiselev  <[email protected]>
3444
3445	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
3446	cast values to avoid warnings. As per bug
3447	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3448
3449	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
3450	appropriate. As per bug
3451	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3452
3453	* libtiff/tif_aux.c: Fixed type of temporary variable in
3454	_TIFFCheckMalloc() as per bug
3455	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3456
34572006-02-06  Andrey Kiselev  <[email protected]>
3458
3459	* libtiff/tif_aux.c: Return static array when fetching default
3460	YCbCrCoefficients (another problem, reported a the
3461	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
3462
34632006-02-03  Andrey Kiselev  <[email protected]>
3464
3465	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
3466	YCbCrSubsampling and DotRange tags as per bugs
3467
3468	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
3469	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
3470
3471	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
3472	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
3473
3474	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
3475
34762006-01-23  Andrey Kiselev  <[email protected]>
3477
3478	* libtool related stuff updated from the 2.1a branch.
3479
34802006-01-11  Frank Warmerdam  <[email protected]>
3481
3482	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
3483	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
3484	properly as per bug:
3485	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
3486
34872006-01-09  Bob Friesenhahn  <[email protected]>
3488
3489	* configure.ac: Fix with_default_strip_size comparison as reported
3490	by Norihiko Murase.
3491
34922006-01-08  Bob Friesenhahn  <[email protected]>
3493
3494	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
3495	incorrectly, tests were not actually testing the uninstalled
3496	libtiff.  Now they are.
3497
34982006-01-04  Andrey Kiselev  <[email protected]>
3499
3500	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
3501	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
3502	should be uint32 value.
3503
35042006-01-02  Bob Friesenhahn  <[email protected]>
3505
3506	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
3507	be used if build directory is not the same as source directory.
3508	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
3509	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
3510	and re-sorted tag names in alphabetical order.
3511
35122005-12-29  Andrey Kiselev  <[email protected]>
3513
3514	* libtiff 3.8.0 released.
3515
35162005-12-28  Bob Friesenhahn  <[email protected]>
3517
3518	* tools/bmp2tiff.c (main): Fixed warning regarding returning
3519	inconsistent types from a condition.
3520	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
3521	format.
3522	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
3523
35242005-12-28  Joris Van Damme  <[email protected]>
3525
3526	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
3527
35282005-12-27  Andrey Kiselev  <[email protected]>
3529
3530	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
3531	windows.h, to reduce the compile time.
3532
35332005-12-26  Bob Friesenhahn  <[email protected]>
3534
3535	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
3536
35372005-12-26  Andrey Kiselev  <[email protected]>
3538
3539	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
3540	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
3541	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
3542	private functions to retrieve FieldInfo arrays.
3543
35442005-12-24  Bob Friesenhahn  <[email protected]>
3545
3546	* html/build.html: Added some additional instructions for when
3547	building using MSVC under Windows.  Also fixed two HTML syntax
3548	errors and used HTML Tidy to tidy up the HTML syntax and
3549	formatting.
3550
35512005-12-24  Andrey Kiselev  <[email protected]>
3552
3553	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
3554	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
3555	StoNits tags custom.
3556
35572005-12-23  Andrey Kiselev  <[email protected]>
3558
3559	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
3560	WhitePoint tag custom.
3561
3562	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
3563
35642005-12-23  Joris Van Damme  <[email protected]>
3565
3566	* libtiff/tiffio.h: fixed typo that potentially resulted in
3567	redefininition of USE_WIN32_FILEIO
3568
3569	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
3570	calls in core LibTiff.
3571
35722005-12-21  Andrey Kiselev  <[email protected]>
3573
3574	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
3575	Photoshop and ICCProfile tags custom.
3576
35772005-12-21  Joris Van Damme  <[email protected]>
3578
3579	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
3580	newer code to get context indicator in error handler and still
3581	remain compatible with older code: Done TIFFError calls everywhere
3582	except in tools
3583
35842005-12-20  Andrey Kiselev  <[email protected]>
3585
3586	* tools/tiffcp.c: Added many error reporting messages; fixed integer
3587	overflow as per bug
3588
3589	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
3590
35912005-12-16  Frank Warmerdam  <[email protected]>
3592
3593	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
3594	YCbCr images in jpeg compressed TIFF files.
3595
35962005-12-14  Andrey Kiselev  <[email protected]>
3597
3598	* tools/tiffcp.c: Return non-zero status when reading fails (again).
3599
36002005-12-13  Andrey Kiselev  <[email protected]>
3601
3602	* tools/tiffcp.c: Return non-zero status when reading fails.
3603
36042005-12-12  Andrey Kiselev  <[email protected]>
3605
3606	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
3607
36082005-12-09  Andrey Kiselev  <[email protected]>
3609
3610	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
3611	custom.
3612
3613	* tools/tiffinfo.c: Print EXIF directory contents if exist.
3614
3615	* libtiff/tiff.h: Few EXIF tag numbers added.
3616
3617	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
3618	tiffio.h}: Preliminary support to read custom directories. New
3619	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
3620
36212005-12-07  Andrey Kiselev  <[email protected]>
3622
3623	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
3624	More work to implement custom directory read support.
3625
3626	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
3627	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
3628	tags custom.
3629
36302005-12-05  Andrey Kiselev  <[email protected]>
3631
3632	* libtiff/tif_dirread.c: One more workaround for broken
3633	StripByteCounts tag. Handle the case when StripByteCounts array filled
3634	with completely wrong values.
3635
36362005-11-30  Andrey Kiselev  <[email protected]>
3637
3638	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
3639	in the TIFFOpenW() function as per bug
3640
3641	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
3642
3643	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
3644	functions as per bug
3645
3646	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
3647
36482005-11-20  Frank Warmerdam  <[email protected]>
3649
3650	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
3651	for MS MDI format.
3652	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
3653
3654	* .cvsignore: many files added, and a few update according
3655	to suggestion of Brad HArds on tiff mailing list.
3656
36572005-11-03  Frank Warmerdam  <[email protected]>
3658
3659	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
3660	public.
3661
36622005-10-31  Andrey Kiselev  <[email protected]>
3663
3664	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
3665	as per bug
3666
3667	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
3668
3669	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
3670	as per bug
3671
3672	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
3673
3674	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
3675	problem as per bug
3676
3677	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
3678
3679	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
3680
3681	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
3682
3683	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
3684	ResolutionUnit tags modifiable during write process. As per bug
3685
3686	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
3687
3688	* tools/tiffsplit.c: Copy fax related fields over splitted parts
3689	as per bug
3690
3691	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
3692
36932005-10-21  Frank Warmerdam  <[email protected]>
3694
3695	* tif_dirread.c: Don't try and split single strips into "0" strips
3696	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
3697	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
3698
36992005-10-20  Joris Van Damme  <[email protected]>
3700
3701	* tif_fax3.c: changed 'at scanline ...' style warning/errors
3702	with incorrect use of tif_row, to 'at line ... of
3703	strip/tile ...' style
3704
37052005-10-15  Frank Warmerdam  <[email protected]>
3706
3707	* tif_write.c: fixed setting of planarconfig as per bug report
3708	on the mailing list from Joris.
3709
37102005-10-07  Andrey Kiselev  <[email protected]>
3711
3712	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
3713	tif_dirread.c}: Make the default strip size configurable via the
3714	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
3715
37162005-09-30  Bob Friesenhahn  <[email protected]>
3717
3718	* html/support.html: Fixed link to documentation on Greg Ward's
3719	LogLuv TIFF format.
3720
37212005-09-28  Andrey Kiselev  <[email protected]>
3722
3723	* tools/tiffdump.c: Fixed crash when reading malformed tags.
3724
37252005-09-20  Andrey Kiselev  <[email protected]>
3726
3727	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
3728	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
3729
37302005-09-12  Andrey Kiselev  <[email protected]>
3731
3732	* libtiff 3.7.4 released.
3733
3734	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
3735	from Patrick Welche (all scripts moved in the 'config' and 'm4'
3736	directories).
3737
37382005-09-12  Frank Warmerdam  <[email protected]>
3739
3740	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
3741
37422005-09-05  Frank Warmerdam  <[email protected]>
3743
3744	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
3745	also set it to NULL to avoid double free when re-setting custom
3746	string fields as per:
3747
3748	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
3749
37502005-08-12  Frank Warmerdam  <[email protected]>
3751
3752	* libtiff/tif_print.c: avoid signed/unsigned warning.
3753
3754	* libtiff/tif_dirread.c: removed unused variable.
3755
37562005-07-30  Frank Warmerdam  <[email protected]>
3757
3758	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
3759	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
3760	pass on bigendian (macosx) system.
3761
37622005-07-28  Andrey Kiselev  <[email protected]>
3763
3764	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
3765	CheckMalloc() function to _TIFFCheckMalloc() and make it available
3766	globally as an internal helper routine.
3767
37682005-07-27  Andrey Kiselev  <[email protected]>
3769
3770	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
3771	the custom tags handling code.
3772
37732005-07-26  Andrey Kiselev  <[email protected]>
3774
3775	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
3776	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
3777	function, use TIFFFetchNormalTag() instead as per bug
3778
3779	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3780
3781	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
3782	instead.
3783
3784	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3785
3786	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3787
37882005-07-25  Andrey Kiselev  <[email protected]>
3789
3790	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3791
3792	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3793
37942005-07-21  Andrey Kiselev  <[email protected]>
3795
3796	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3797	the TIFFWriteCheck() function in case of single band images (as per
3798	TIFF spec).
3799
38002005-07-12  Andrey Kiselev  <[email protected]>
3801
3802	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3803	support for SCons software building tool (http://www.scons.org/).
3804	This is experimental infrastructure and it will exist along with the
3805	autotools mechanics.
3806
38072005-07-07  Andrey Kiselev  <[email protected]>
3808
3809	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3810	the NetBSD source tree (the old	4-clause BSD license changed to
3811	the new 3-clause one).
3812
3813	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3814	replacement module.
3815
3816	* port/dummy.c: Make the dummy function static.
3817
38182005-07-06  Andrey Kiselev  <[email protected]>
3819
3820	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3821
3822	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3823	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3824	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3825
38262005-07-04  Andrey Kiselev  <[email protected]>
3827
3828	* libtiff 3.7.3 released.
3829
3830	* configure, configure.ac: Do not use empty -R option when linking
3831	with --enable-rpath.
3832
38332005-07-01  Andrey Kiselev  <[email protected]>
3834
3835	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3836	reading the first IFD when needed. As per bug
3837
3838	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3839
3840	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3841	effects.
3842
38432005-06-23  Andrey Kiselev  <[email protected]>
3844
3845	* tools/tiff2pdf.c: Print two characters per loop in the
3846	t2p_write_pdf_trailer(). As per bug
3847
3848	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3849
3850	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3851	per bug
3852
3853	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3854
3855	* acinclude.m4: Updated to latest OpenGL test macros versions.
3856
3857	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3858	platform. As per bug
3859
3860	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3861
38622005-06-14  Andrey Kiselev  <[email protected]>
3863
3864	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3865	and YClipPathUnits tags.
3866
38672005-06-07  Andrey Kiselev  <[email protected]>
3868
3869	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3870	use pixel sized shift in contigous case.
3871
38722005-06-06  Andrey Kiselev  <[email protected]>
3873
3874	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3875	Make overviews working for contiguos images.
3876
38772005-06-03  Andrey Kiselev  <[email protected]>
3878
3879	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3880	time one.
3881
3882	* libtiff/tif_predict.c: Floating point predictor now works on
3883	big-endian hosts.
3884
38852005-06-01  Andrey Kiselev  <[email protected]>
3886
3887	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3888	ASCII values.
3889
3890	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3891	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3892	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3893	TargetPrinter tags custom.
3894
3895	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3896	TIFF_CODERSETUP flag (to fix memry leaks).
3897
3898	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3899	allocating.
3900
39012005-05-26  Andrey Kiselev  <[email protected]>
3902
3903	* configure.ac, libtiff/Makefile.am: Added workaround for
3904	OpenBSD/MirOS soname problem as per bug
3905
3906	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3907
3908	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3909	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3910	per bug
3911
3912	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3913
39142005-05-25  Andrey Kiselev  <[email protected]>
3915
3916	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3917	the fscanf() function. As per bug
3918
3919	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3920
3921	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3922	uint16 array when fetching the BYTE and SBYTE filds, so we should
3923	consider result as pointer to uint16 array and not as array of chars.
3924	As per bug
3925
3926	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3927
3928	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3929
3930	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3931
3932	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3933	mode in CreateFile() call as per bug
3934
3935	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3936
3937	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3938	libtiffxx libraries as per bug
3939
3940	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3941
3942	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3943	GDAL.
3944
39452005-05-23  Frank Warmerdam  <[email protected]>
3946
3947	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3948	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3949	in directory.
3950
39512005-05-22  Frank Warmerdam  <[email protected]>
3952
3953	* libtiff/tif_dirread.c: Changed the code that computes
3954	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3955	zero. This is a common case with GDAL indicating a "null" tile/strip.
3956
39572005-05-17  Andrey Kiselev  <[email protected]>
3958
3959	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
3960
39612005-05-06  Frank Warmerdam  <[email protected]>
3962
3963	* libtiff/tif_dirread.c: Applied similar change to
3964	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
3965
3966	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3967
3968	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
3969
39702005-05-06  Andrey Kiselev  <[email protected]>
3971	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
3972	added new option '-b' to use interpolation in output PDF files (Bruno
3973	Ledoux).
3974
39752005-05-05  Frank Warmerdam  <[email protected]>
3976
3977	* libtiff/tif_dirread.c: Ensure that broken files with too many
3978	values in PerSampleShorts work ok instead of crashing.
3979
3980	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3981
39822005-04-27  Andrey Kiselev  <[email protected]>
3983
3984	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
3985	input file.
3986
39872005-04-15  Andrey Kiselev  <[email protected]>
3988
3989	* libtiff/tif_predict.c: Added ability to encode floating point
3990	predictor, as per TIFF Technical Note 3.
3991
39922005-04-14  Andrey Kiselev  <[email protected]>
3993
3994	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
3995	floating point predictor, as per TIFF Technical Note 3.
3996
39972005-04-13  Andrey Kiselev  <[email protected]>
3998
3999	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
4000	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
4001	swap 24-bit floating point values.
4002
4003	* libtiff/tiff.h: Added predictor constants.
4004
40052005-04-08  Andrey Kiselev  <[email protected]>
4006
4007	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
4008	values in _TIFFVSetField() function. Inspired by the bug
4009
4010	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
4011
4012	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
4013	as per bug
4014
4015	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
4016
40172005-03-30  Andrey Kiselev  <[email protected]>
4018
4019	* libtiff/tif_open.c: Do not read header in case the output file
4020	should be truncated (Ron).
4021
4022	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
4023	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
4024
4025	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
4026
40272005-03-22  Andrey Kiselev  <[email protected]>
4028
4029	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
4030	rpath option.
4031
40322005-03-21  Andrey Kiselev  <[email protected]>
4033
4034	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
4035	tags.
4036
40372005-03-18  Andrey Kiselev  <[email protected]>
4038
4039	* libtiff/dirinfo.c: Added DNG tags.
4040
4041	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
4042	handling code.
4043
4044	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
4045	added DNG 1.1.0.0 tags.
4046
4047	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
4048	bug
4049
4050	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
4051
4052	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
4053
40542005-03-17  Andrey Kiselev  <[email protected]>
4055
4056	* nmake.opt: Build with Win32 CRT library by default.
4057
4058	* tools/tiff2ps.c: Fixed typo in page size handling code.
4059
4060	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
4061	by value.
4062
4063	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
4064
40652005-03-15  Andrey Kiselev  <[email protected]>
4066
4067	* libtiff 3.7.2 released.
4068
40692005-03-09  Andrey Kiselev  <[email protected]>
4070
4071	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
4072	floating point data; complain on unsupported bit depths.
4073
40742005-03-05  Andrey Kiselev  <[email protected]>
4075
4076	* tif_stream.cxx: Use ios namespace instead of ios_base to support
4077	GCC 2.95.
4078
4079	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
4080	Lee Howard for HylaFax DCS tag
4081	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
4082
40832005-03-04  Andrey Kiselev  <[email protected]>
4084
4085	* configure, configure.ac: Use -rpath option instead of -R as per bug
4086
4087	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
4088
4089	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
4090	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
4091	software. As per bug
4092
4093	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
4094
4095	* nmake.opt, html/build.html: Add more comments, change the config
4096	file organization a bit as per bug
4097
4098	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
4099
4100	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
4101	as per bug
4102
4103	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
4104
41052005-03-03  Andrey Kiselev  <[email protected]>
4106
4107	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
4108	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
4109
4110	* tools/fax2ps.c: Replace insecure mktemp() function with the
4111	tmpfile() as per bug
4112
4113	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
4114
41152005-02-04  Andrey Kiselev  <[email protected]>
4116
4117	* libtiff/tiff.h: Changed the int8 definition to be always signed char
4118	as per bug
4119
4120	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
4121
4122	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
4123	block as per bug
4124
4125	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
4126
41272005-02-03  Bob Friesenhahn  <[email protected]>
4128
4129	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
4130	display more correctly.  Images display brighter than they should
4131	on a Sun workstation.
4132
41332005-02-03  Andrey Kiselev  <[email protected]>
4134
4135	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
4136	suspicious values in the tags. As per bugs
4137
4138	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
4139
4140	and
4141
4142	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
4143
4144	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
4145
4146	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
4147
41482005-01-31  Bob Friesenhahn  <[email protected]>
4149
4150	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
4151	(TIFFTAG_TILELENGTH): Corrected description.
4152
41532005-01-30  Andrey Kiselev  <[email protected]>
4154
4155	* configure.ac: Fixes for --with-docdir option as per bug
4156
4157	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
4158
4159	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
4160	bug
4161
4162	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
4163
4164	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
4165	Michael Rinne and Edward Lam.
4166
41672005-01-15  Andrey Kiselev  <[email protected]>
4168
4169	* configure.ac: Make the documentation directory location configurable
4170	via the --with-docdir option (as suggested by Jeremy C. Reed).
4171
4172	* libtiff/tif_color.c: Use double as the second argument of pow()
4173	function in TIFFCIELabToRGBInit(). As per bug
4174
4175	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
4176
4177	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
4178	integer as per bug
4179
4180	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
4181
4182	* libtiff/tif_getimage.c: Always fill the error message buffer in
4183	TIFFRGBAImageBegin() as per bug
4184
4185	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
4186
41872005-01-12  Andrey Kiselev  <[email protected]>
4188
4189	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
4190	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
4191	tags as per bug
4192
4193	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
4194
4195	* libtiff/tif_win32.c: Fixed message formatting in functions
4196	Win32WarningHandler() and Win32ErrorHandler() as per bug
4197
4198	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
4199
4200	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
4201	per bug
4202
4203	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
4204
42052005-01-11  Andrey Kiselev  <[email protected]>
4206
4207	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
4208	"C"' section as per bug
4209
4210	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
4211
4212	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
4213	compiler to avoid double definition of BSD types as per bug
4214
4215	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4216
4217	* libtiff/Makefile.am: Place the C++ stream API in the separate
4218	library called libtiffxx to avoid unneeded dependencies. Probably
4219	there will be more C++ API in the future. As per bugs
4220
4221	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
4222
4223	and
4224
4225	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
4226
42272005-01-05  Andrey Kiselev  <[email protected]>
4228
4229	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
4230	wrong tag counts (Dmitry V. Levin, Martin Pitt).
4231
4232	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
4233	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
4234
42352004-12-25  Andrey Kiselev  <[email protected]>
4236
4237	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
4238	RGB-images as per bug
4239
4240	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
4241
4242
4243	* tools/tiffset.c: Convert character option to integer value as per
4244	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
4245
42462004-12-20  Andrey Kiselev  <[email protected]>
4247
4248	* libtiff 3.7.1 released.
4249
4250	* html/tiffset.1.html: Add missed manual page as per bug
4251
4252	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
4253
4254	* libtiff/tiff.h: Revert back libtiff data type definitions as per
4255	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
4256
42572004-12-19  Andrey Kiselev  <[email protected]>
4258
4259	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
4260	checking for tag count in TIFFReadDirectory() function. As per bug
4261
4262	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
4263
4264	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
4265	CheckMallock() function.
4266
4267	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
4268	RGB-images as per bug
4269
4270	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
4271
42722004-12-15  Frank Warmerdam  <[email protected]>
4273
4274	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
4275	SunPro compiler.
4276
42772004-12-11  Bob Friesenhahn  <[email protected]>
4278
4279	* autogen.sh: aclocal and autoheader should be executed after
4280	libtoolize.  Also add '-I .' to aclocal invocation to check
4281	current directory for macros.
4282
42832004-12-10  Andrey Kiselev  <[email protected]>
4284
4285	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
4286	as per bugs
4287
4288	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
4289
4290	and
4291
4292	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
4293
42942004-12-04  Andrey Kiselev  <[email protected]>
4295
4296	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
4297
4298	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
4299
4300	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
4301	mode as per bug
4302
4303	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
4304
4305	* libtiff/tif_config.in.vc: Removed unneded definitions for
4306	read/open/close/lseek functions to fix the
4307
4308	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
4309
43102004-12-03  Andrey Kiselev  <[email protected]>
4311
4312	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
4313	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
4314	must be removed in the future, as it was never used properly. As per
4315	bug
4316
4317	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
4318
43192004-11-30  Bob Friesenhahn  <[email protected]>
4320
4321	* libtiff/tif_jpeg.c: Added a work-around in order to allow
4322	compilation with the heavily modified version of libjpeg delivered
4323	with Cygwin.
4324
43252004-11-29  Andrey Kiselev  <[email protected]>
4326
4327	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
4328	counts. As per bug
4329
4330	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
4331
4332	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
4333
4334	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
4335
43362004-11-28  Andrey Kiselev  <[email protected]>
4337
4338	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
4339	on Windows.
4340
4341	* nmake.opt: Add missed DLLNAME variable.
4342
43432004-11-26  Frank Warmerdam  <[email protected]>
4344
4345	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
4346
43472004-11-24  Andrey Kiselev  <[email protected]>
4348
4349	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
4350	per bug
4351
4352	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
4353
4354	* man/tiffset.1: Added manual page for tiffset tool written by Jay
4355	Berkenbilt. As per bug
4356
4357	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
4358
43592004-11-23  Frank Warmerdam  <[email protected]>
4360
4361	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
4362
43632004-11-21  Frank Warmerdam  <[email protected]>
4364
4365	* html/document.html: Updated Adobe web links as per email from Joris.
4366
43672004-11-21  Andrey Kiselev  <[email protected]>
4368
4369	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
4370	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
4371	use C++ streams should #include <tiffio.hxx>.
4372
43732004-11-13  Andrey Kiselev  <[email protected]>
4374
4375	* libtiff/tiff.h: Added Adobe DNG tags.
4376
4377	* libtiff/tif_win32.c: Typo fixed.
4378
4379	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
4380	be compliant with the latest standard. Appropriate additions in
4381	makefiles now completed.
4382
43832004-11-11  Andrey Kiselev  <[email protected]>
4384
4385	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
4386	different tag types. As per bug
4387
4388	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
4389
43902004-11-10  Andrey Kiselev  <[email protected]>
4391
4392	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
4393	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
4394
43952004-11-09  Andrey Kiselev  <[email protected]>
4396
4397	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
4398
43992004-11-07  Andrey Kiselev  <[email protected]>
4400
4401	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
4402	contributed by Edward Lam (see
4403	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
4404	Though no changes in any makefiles yet.
4405
44062004-11-05  Frank Warmerdam  <[email protected]>
4407
4408	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
4409	is bad. This is the callers responsibility.
4410	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
4411
44122004-11-05  Andrey Kiselev  <[email protected]>
4413
4414	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
4415	function to work with the double byte strings (used to represent
4416	filenames in some locales). As per bug
4417
4418	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
4419
4420	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
4421	Compression tags of type LONG from broken TIFFS as per bug
4422
4423	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
4424
4425	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
4426	the writecount should have uint32 type. As per bug
4427
4428	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
4429
4430	* libtiff/tif_write.c: Fixed wrong if() statement in
4431	TIFFAppendToStrip() function as per bug
4432
4433	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
4434
44352004-11-04  Andrey Kiselev  <[email protected]>
4436
4437	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
4438	field. The caller should supply a count when setting this field. As
4439	per bug
4440
4441	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
4442
4443	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
4444	uint32 count. Use this type everywhere.
4445
44462004-11-03  Frank Warmerdam  <[email protected]>
4447
4448	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
4449
44502004-11-02  Frank Warmerdam  <[email protected]>
4451
4452	* tools/tiff2rgba.c: removed extra newlines in usage message.
4453
44542004-10-30  Andrey Kiselev  <[email protected]>
4455
4456	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
4457
4458	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
4459	tags (Tristan Hill).
4460
44612004-10-30  Frank Warmerdam  <[email protected]>
4462
4463	* libtiff/tiffiop.h: added fallback definition of assert() if we
4464	don't have assert.h.
4465
44662004-10-29  Andrey Kiselev  <[email protected]>
4467
4468	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
4469	choosing when the incorrect Group4Options tag set. As per bug
4470
4471	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
4472
4473	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
4474	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
4475	TIFFWriteNormalTag().
4476
44772004-10-28  Andrey Kiselev  <[email protected]>
4478
4479	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
4480	tags (Peter Fales).
4481
4482	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
4483
44842004-10-28  Frank Warmerdam  <[email protected]>
4485
4486	* tools/tiff2pdf.c: added casts to avoid warnings.
4487
4488	* libtiff/libtiff.def: Added several more entry points required
4489	to link fax2tiff.c against the DLL on windows.
4490
44912004-10-27  Andrey Kiselev  <[email protected]>
4492
4493	* configure, configure.ac: Added --enable-rpath option to embed linker
4494	paths into library binary.
4495
44962004-10-26  Andrey Kiselev  <[email protected]>
4497
4498	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
4499
4500	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
4501	(Vladimir Nadvornik, Dmitry V. Levin).
4502
45032004-10-16  Andrey Kiselev  <[email protected]>
4504
4505	* libtiff 3.7.0 released.
4506
45072004-10-15  Bob Friesenhahn  <[email protected]>
4508
4509	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
4510	in this file so its inclusion is removed.  Including stdio.h
4511	sometimes incurs an INT32 typedef conflict between MinGW's
4512	basetsd.h and libjpeg's jmorecfg.h.
4513
45142004-10-15  Andrey Kiselev  <[email protected]>
4515
4516	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
4517
45182004-10-13  Bob Friesenhahn  <[email protected]>
4519
4520	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
4521	conflict noticed under MinGW.
4522	* ltmain.sh: Fix for MinGW compilation.
4523
45242004-10-13  Frank Warmerdam  <[email protected]>
4525
4526	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
4527	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
4528
45292004-10-12  Andrey Kiselev  <[email protected]>
4530
4531	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
4532	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
4533	properly (Dmitry V. Levin, Marcus Meissner).
4534
45352004-10-11  Andrey Kiselev  <[email protected]>
4536
4537	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
4538	to TIFF_IFD.
4539
45402004-10-10  Andrey Kiselev  <[email protected]>
4541
4542	* tools/bmp2tif.c: Check the space allocation results.
4543
45442004-10-09  Andrey Kiselev  <[email protected]>
4545
4546	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
4547	of the TIFFDirectory structure with the 0 instead of -1 to avoid
4548	confusing integer overflows in TIFFTileRowSize() for striped images.
4549
4550	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
4551	by Ross A. Finlayson.
4552
4553	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
4554
4555	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
4556
45572004-10-08  Frank Warmerdam  <[email protected]>
4558
4559	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
4560	of tif_fieldinfo.
4561
4562	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
4563
45642004-10-04  Bob Friesenhahn  <[email protected]>
4565
4566	* contrib/iptcutil/README: Added the missing README which goes
4567	along with iptcutil.
4568
45692004-10-03  Andrey Kiselev  <[email protected]>
4570
4571	* libtiff/tif_compress.c: Improved error reporting in
4572	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
4573
45742004-10-02  Andrey Kiselev  <[email protected]>
4575
4576	* libtiff 3.7.0beta2 released.
4577
4578	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
4579	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
4580	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
4581	allocations and	integer overflows (Dmitry V. Levin).
4582
4583	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
4584
45852004-10-01  Frank Warmerdam  <[email protected]>
4586
4587	* libtiff/tif_open.c: added a more informative message if a BigTIFF
4588	file is opened.
4589
45902004-09-30  Frank Warmerdam  <[email protected]>
4591
4592	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
4593	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
4594	in the Adobe XMP Specification.
4595
45962004-09-29  Andrey Kiselev  <[email protected]>
4597
4598	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
4599	memset().
4600
4601	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
4602	from Dmitry V. Levin to fix possible integer overflow problems.
4603
46042004-09-28  Andrey Kiselev  <[email protected]>
4605
4606	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
4607	(Dmitry V. Levin).
4608
46092004-09-26  Andrey Kiselev  <[email protected]>
4610
4611	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
4612	Optimize checking for the strip bounds.
4613
4614	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
4615	TIFFRasterScanlineSize() functions report zero in the case of integer
4616	overflow now. Properly handle this case in TIFFReadDirectory()
4617	(patches from Dmitry V. Levin).
4618
46192004-09-25  Andrey Kiselev  <[email protected]>
4620
4621	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
4622	macro where appropriate.
4623
4624	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
4625	noted by Gennady Khokhorin.
4626
4627	* libtiff/tif_dirread.c: Always check the return values, returned
4628	by the _TIFFmalloc() (Dmitry V. Levin).
4629
4630	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
4631	functions (Dmitry V. Levin).
4632
4633	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
4634	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
4635	TIFFGrowStrips() (found by Dmitry V. Levin).
4636
46372004-09-24  Andrey Kiselev  <[email protected]>
4638
4639	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
4640	to get the list of configured codecs.
4641
4642	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
4643	Dmitry V. Levin.
4644
46452004-09-23  Andrey Kiselev  <[email protected]>
4646
4647	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
4648	possible integer overflow in CheckMalloc() function.
4649
46502004-09-22  Andrey Kiselev  <[email protected]>
4651
4652	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
4653	of plain TIFFhowmany() where appropriate.
4654
46552004-09-21  Andrey Kiselev  <[email protected]>
4656
4657	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
4658
46592004-09-19  Andrey Kiselev  <[email protected]>
4660
4661	* libtiff 3.7.0beta released.
4662
4663	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
4664	overruns fixed, as noted by Chris Evans.
4665
46662004-09-14  Bob Friesenhahn  <[email protected]>
4667
4668	* commit: Added a script to make it more convenient to commit
4669	updates.  The CVS commit message is extracted from this ChangeLog
4670	file.
4671
46722004-09-14  Andrey Kiselev  <[email protected]>
4673
4674	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
4675	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
4676	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
4677	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
4678	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
4679	tif_config.h.in, tiffiop.h}:
4680	Get rid of BSD data types (u_char, u_short, u_int, u_long).
4681
46822004-09-13  Bob Friesenhahn  <[email protected]>
4683
4684	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
4685	specification. Reference libtiff bug tracking system to submit
4686	private tag additions.
4687
46882004-09-12  Bob Friesenhahn  <[email protected]>
4689
4690	* tools/tiffgt.c: Include "tif_config.h".
4691
4692	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
4693	tiffgt.  This results in the 'compile' script being added to the
4694	project.
4695
4696	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
4697	required to find OpenGL headers necessary to build tiffgt.  Also
4698	ensure that the libtiff that we built is used rather than some other
4699	libtiff installed on the system.
4700
47012004-09-12  Andrey Kiselev  <[email protected]>
4702
4703	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
4704	libraries.
4705
47062004-09-11  Bob Friesenhahn  <[email protected]>
4707
4708	* configure.ac: Pass library configuration defines via
4709	tif_config.h rather than extending CPPFLAGS. Configure a
4710	libtiff/tiffconf.h in order to satisfy application requirements
4711	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
4712	this causes failure to build on systems which properly respect
4713	this request.
4714
4715	* libtiff/tiffconf.h.in: New file to act as the template for the
4716	configured tiffconf.h
4717
4718	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
4719
47202004-09-10  Frank Warmerdam  <[email protected]>
4721
4722	* html/internals.html: Split off a discussion of adding new tags
4723	into addingtags.html.
4724
47252004-09-10  Andrey Kiselev  <[email protected]>
4726
4727	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
4728
4729	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
4730
4731	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4732
4733	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
4734
4735	* libtiff/tif_dirread.c: Don't reject to read tags of the
4736	SamplesPerPixel size when the tag count is greater than number of
4737	samples as per bug
4738
4739	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
4740
4741	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
4742	defining int8/uint8/... etc. types. As per bug
4743
4744	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
4745
47462004-09-09  Frank Warmerdam  <[email protected]>
4747
4748	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
4749	to avoid compile warnings about getopt() and a few other things.
4750
47512004-09-02  Andrey Kiselev  <[email protected]>
4752
4753	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
4754	assigning magic in TIFFFetchFloat().
4755
47562004-09-01  Andrey Kiselev  <[email protected]>
4757
4758	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
4759	to avoid requirement for tiffiop.h inclusion in some applications. See
4760	here
4761
4762	http://www.asmail.be/msg0054799560.html
4763
4764	for details.
4765
4766	* tools/fax2tiff.c: Use the new functions in the code.
4767
47682004-08-25  Andrey Kiselev  <[email protected]>
4769
4770	* tools/tiff2pdf.c: Initialize arrays properly.
4771
4772	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
4773	properly initialize array in PSDataBW().
4774
47752004-08-24  Andrey Kiselev  <[email protected]>
4776
4777	* tools/tiff2pdf.c: More fixes for bug
4778
4779	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4780
4781	from Ross Finlayson.
4782
47832004-08-23  Andrey Kiselev  <[email protected]>
4784
4785	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4786
4787	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4788	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4789
4790	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4791
4792	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4793
47942004-08-20  Andrey Kiselev  <[email protected]>
4795
4796	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4797	that the input file has compression, photometric interpretation,
4798	etcetra, tags or if not than a more descriptive error is returned.
4799
4800	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4801	code, responsible for tag data type checking.
4802
48032004-08-19  Andrey Kiselev  <[email protected]>
4804
4805	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4806	variable as per bug
4807
4808	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4809
48102004-08-16  Andrey Kiselev  <[email protected]>
4811
4812	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4813	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4814
48152004-08-01  Andrey Kiselev  <[email protected]>
4816
4817	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4818	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4819
48202004-07-24  Andrey Kiselev  <[email protected]>
4821
4822	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4823	separate package. All libtiff tools are updated to not advertise an
4824	abcence of LZW support.
4825
48262004-07-12  Andrey Kiselev  <[email protected]>
4827
4828	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4829
48302004-07-11  Andrey Kiselev  <[email protected]>
4831
4832	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4833	messages, as suggested by Bernd Herd.
4834
48352004-07-03  Andrey Kiselev  <[email protected]>
4836
4837	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4838	when setting custom tags by value. Reported by Eric Fieleke.
4839
48402004-06-14  Andrey Kiselev  <[email protected]>
4841
4842	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4843
48442004-06-08  Andrey Kiselev  <[email protected]>
4845
4846	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4847	into TIFFs.
4848
48492004-06-07  Andrey Kiselev  <[email protected]>
4850
4851	* libtiff 3.7.0alpha released.
4852
48532004-06-06  Andrey Kiselev  <[email protected]>
4854
4855	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4856	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4857	ones :-).
4858
4859	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4860	problems in 64-bit environment).
4861
48622004-06-05  Andrey Kiselev  <[email protected]>
4863
4864	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4865	Tags can be supplied by the mnemonic name or number.
4866
4867	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4868	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4869
48702004-05-27  Andrey Kiselev  <[email protected]>
4871
4872	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4873	markers as per bug
4874
4875	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4876
48772004-05-24  Andrey Kiselev  <[email protected]>
4878
4879	* tools/tiffsplit.c: Don't forget to copy Photometric
4880	Interpretation tag.
4881
48822004-05-20  Andrey Kiselev  <[email protected]>
4883
4884	* libtiff/{tif_open.c, tiffio.h}: New function added:
4885	TIFFIsBigEndian(). Function returns nonzero if given was file written
4886	in big-endian order.
4887
4888	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4889	files. Now output files will be written using the same byte order
4890	flag as	in the input image. See
4891
4892	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4893
4894	for details.
4895
48962004-05-19  Frank Warmerdam  <[email protected]>
4897
4898	* libtiff/tif_print.c: added (untested) support for printing
4899	SSHORT, SLONG and SRATIONAL fields.
4900
4901	* tools/tiffcp.c: close output file on normal exit.
4902
49032004-05-17  Andrey Kiselev  <[email protected]>
4904
4905	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4906	if compression type mismatches. See
4907
4908	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4909
49102004-04-30  Andrey Kiselev  <[email protected]>
4911
4912	* libtiff/tif_strip.c: Never return 0 from the
4913	TIFFNumberOfStrips().
4914
49152004-04-29  Andrey Kiselev  <[email protected]>
4916
4917	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4918	store single SampleFormat value for multisampled images. See
4919
4920	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4921
49222004-04-25  Andrey Kiselev  <[email protected]>
4923
4924	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4925	int16 and int32 types to avoid complains on some compilers. Details at
4926
4927	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4928
49292004-04-20  Andrey Kiselev  <[email protected]>
4930
4931	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4932
4933	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4934
49352004-04-14  Andrey Kiselev  <[email protected]>
4936
4937	* libtiff/tif_write.c: Allow in-place updating of the compressed
4938	images (don't work properly with all codecs). For details see GDAL bug
4939
4940	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4941
49422004-04-06  Andrey Kiselev  <[email protected]>
4943
4944	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4945	in the Intergarph JPEG compressed TIFF images as per bug:
4946
4947	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4948
49492004-04-04  Frank Warmerdam  <[email protected]>
4950
4951	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4952	via bad2.
4953
49542004-03-26  Andrey Kiselev  <[email protected]>
4955
4956	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4957	JPEG compression of grayscale images.
4958
4959	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
4960	present in the input image.
4961
49622004-03-19  Andrey Kiselev  <[email protected]>
4963
4964	* {many}: The first attempt to switch to autotools.
4965
49662004-03-03  Andrey Kiselev  <[email protected]>
4967
4968	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
4969	TIFFClientOpen() when the appropriate client functions was not
4970	supplied by user.
4971
49722004-03-02  Frank Warmerdam  <[email protected]>
4973
4974	* tools/ycbcr.c: fixed main() declaration as per:
4975	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
4976
49772004-02-26  Andrey Kiselev  <[email protected]>
4978
4979	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
4980	images. Reported by Artem Mirolubov.
4981
4982	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
4983	tag type in TIFFFetchNormalTag() as per bug
4984
4985	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
4986
49872004-02-17  Frank Warmerdam  <[email protected]>
4988
4989	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
4990	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
4991
49922004-02-05  Andrey Kiselev  <[email protected]>
4993
4994	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
4995	bug
4996
4997	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
4998
4999	But we need more work on fax codec to support update mode.
5000
50012004-01-30  Frank Warmerdam  <[email protected]>
5002
5003	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
5004	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
5005	Scott Reynolds.
5006
50072004-01-29  Andrey Kiselev  <[email protected]>
5008
5009	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
5010	and TIFFTAG_INDEXED as per bug
5011
5012	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
5013
5014	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
5015	NULL before proceeding further as per bug
5016
5017	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
5018
5019	Check results, returned by the TIFFFdOpen() before returning and close
5020	file if TIFFFdOpen() failed as per bug
5021
5022	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
5023
5024	* libtiff/tif_open.c: More fixes for
5025
5026	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
5027
50282004-01-28  Andrey Kiselev  <[email protected]>
5029
5030	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
5031	TIFFCleanup() from the TIFFClose() in order to fix the bug
5032
5033	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
5034
5035	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
5036	InkNames tag as per bug
5037
5038	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
5039
5040	Memory leak fixed.
5041
50422004-01-21  Frank Warmerdam  <[email protected]>
5043
5044	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
5045	are field_passcount=TRUE properly.  Arguably anonymous custom tags
5046	should be declared as passcount=FALSE, but I don't want to change
5047	that without a careful review.
5048
50492004-01-20  Andrey Kiselev  <[email protected]>
5050
5051	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
5052	stripped image in TIFFWriteBufferSetup(). As per bug
5053
5054	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
5055
50562004-01-11  Andrey Kiselev  <[email protected]>
5057
5058	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
5059	patch from Gerben Koopmans.
5060
5061	* libtiff/tif_dirread.c: Check field_passcount value before setting
5062	the value of undefined type, patch from Gerben Koopmans.
5063
50642004-01-02  Andrey Kiselev  <[email protected]>
5065
5066	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
5067	non-RGB images.
5068
50692003-12-31  Andrey Kiselev  <[email protected]>
5070
5071	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
5072	pointer passed. Patch supplied by Larry Grill.
5073
5074	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
5075	suggested by Jeremy C. Reed.
5076
50772003-12-26  Andrey Kiselev  <[email protected]>
5078
5079	* libtiff 3.6.1 released.
5080
50812003-12-24  Andrey Kiselev  <[email protected]>
5082
5083	* config.guess, config.sub: Updated from the recent upstream.
5084
50852003-12-22  Andrey Kiselev  <[email protected]>
5086
5087	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
5088	More cleanups in color conversion interface, added appropriate manual
5089	page.
5090
50912003-12-19  Andrey Kiselev  <[email protected]>
5092
5093	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
5094	per bug
5095
5096	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
5097
5098	* tools/tiff2ps.c: Added support for alpha channel. Fixes
5099
5100	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
5101
5102	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
5103	Interface for Lab->RGB color conversion is finally cleaned up.
5104	Added support for ReferenceBlackWhite tag handling when converted from
5105	YCbCr color space. The latter closes
5106
5107	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
5108
51092003-12-07  Andrey Kiselev  <[email protected]>
5110
5111	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
5112
5113	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
5114	library.
5115
51162003-12-06  Andrey Kiselev  <[email protected]>
5117
5118	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
5119	file and properly use it for CIE Lab->RGB transform.
5120
51212003-12-04  Andrey Kiselev  <[email protected]>
5122
5123	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
5124	conversion routines now in the tif_color.c module. New function
5125	TIFFYCbCrtoRGB() available in TIFF API.
5126
5127	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
5128
51292003-12-03  Andrey Kiselev  <[email protected]>
5130
5131	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
5132	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
5133	module.
5134
5135	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
5136	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
5137	Finally resolved problems with orientation handling. TIFFRGBAImage
5138	interface now properly supports all possible orientations, i.e. images
5139	will be flipped both in horizontal and vertical directions if
5140	required. 'Known bugs' section now removed from the appropriate manual
5141	pages. Closed bug entry:
5142
5143	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
5144
51452003-12-02  Andrey Kiselev  <[email protected]>
5146
5147	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
5148	function calls as per bug
5149
5150	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
5151
51522003-11-28 Ross Finlayson  <[email protected]>
5153
5154	* tools/tiff2pdf.c:  Some bugs fixed.
5155
51562003-11-27  Andrey Kiselev  <[email protected]>
5157
5158	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
5159	reported by Antonio Scuri.
5160
5161	* man/tiff2pdf.1: Few improvements in page layout.
5162
5163	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
5164	 Added support fpr tiff2pdf manual page.
5165
51662003-11-26 Ross Finlayson  <[email protected]>
5167
5168	* /man/tiff2pdf.1:  File added to repository.
5169
51702003-11-26  Andrey Kiselev  <[email protected]>
5171
5172	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
5173	 Added support fpr tiff2pdf utility.
5174
51752003-11-25  Ross Finlayson  <[email protected]>
5176
5177	* /tools/tiff2pdf.c:  File added to repository.
5178
51792003-11-22  Andrey Kiselev  <[email protected]>
5180
5181	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
5182
51832003-11-21  Andrey Kiselev  <[email protected]>
5184
5185	* /tools/raw2tiff.c: #include <getopt.h> removed.
5186
5187	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
5188	sgigt utility removed and replaced with the completely rewritten
5189	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
5190	there is a lot of things to improve.
5191
5192	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
5193	extract the fields from the OJPEG files. Patch supplied by Ross
5194	Finlayson.
5195
5196	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
5197	Added new function TIFFIsCODECConfigured(), suggested by Ross
5198	Finlayson.
5199
52002003-11-18  Andrey Kiselev  <[email protected]>
5201
5202	* libtiff/tif_dirinfo.c: Implemented binary search in
5203	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
5204
5205	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
5206	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
5207
52082003-11-17  Frank Warmerdam  <[email protected]>
5209
5210	* tif_dirread.c: do not mark all anonymously defined tags to be
5211	IGNOREd.
5212
52132003-11-17  Andrey Kiselev  <[email protected]>
5214
5215	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
5216	TIFFDataWidth() function insted of tiffDataWidth array.
5217
52182003-11-16  Andrey Kiselev  <[email protected]>
5219
5220	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
5221	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
5222
52232003-11-15  Frank Warmerdam  <[email protected]>
5224
5225	* Makefile.in: fixed missing backslash for tif_color.c in list.
5226
52272003-11-13  Andrey Kiselev  <[email protected]>
5228
5229	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
5230	New color space conversion code: CIE L*a*b* 1976 images now supported
5231	by the TIFFRGBAImage interface. All introduced routines go to new
5232	module tif_color.c. Eventually all color conversion functions should
5233	be moved there.
5234
52352003-11-12  Andrey Kiselev  <[email protected]>
5236
5237	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
5238	with the reverse byte order (it is reported by the magic header
5239	field). Problem reported by Andreas Wiesmann.
5240
5241	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
5242	calculation function. Guessing mechanics now documented in manual page.
5243
52442003-11-11  Andrey Kiselev  <[email protected]>
5245
5246	* tools/raw2tiff.c: Implemented image size guessing using
5247	correlation coefficient calculation between two neighbour lines.
5248
52492003-11-09  Frank Warmerdam  <[email protected]>
5250
5251	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
5252	planarconfig_contig case in TIFFComputeTile().
5253
5254	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
5255
52562003-11-09  Andrey Kiselev  <[email protected]>
5257
5258	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
5259
52602003-11-07  Andrey Kiselev  <[email protected]>
5261
5262	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
5263	Added TIFFRawStripSize() function as suggested by Chris Hanson.
5264
52652003-11-03  Andrey Kiselev  <[email protected]>
5266
5267	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
5268	per bug
5269
5270	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
5271
52722003-10-29  Andrey Kiselev  <[email protected]>
5273
5274	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
5275
5276	* html/build.html: Added note about GNU make requirement.
5277
52782003-10-25  Andrey Kiselev  <[email protected]>
5279
5280	* Makefile.in: Fixes in using MAKEFLAGS as per bug
5281
5282	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
5283
5284	* port/install.sh.in: Option -p added to the mkdir command to create
5285	all directory tree structure before installing.
5286
52872003-10-18  Andrey Kiselev  <[email protected]>
5288
5289	* /tools/tiff2ps.c: #include <strings.h> replaced with the
5290	#include <string.h>.
5291
52922003-10-16  Andrey Kiselev  <[email protected]>
5293
5294	* Makefile.in: Add an absolute path to the test_pics.sh call.
5295
52962003-10-12  Andrey Kiselev  <[email protected]>
5297
5298	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
5299	typedefs.
5300
53012003-10-09  Andrey Kiselev  <[email protected]>
5302
5303	* configure, libtiff/{Makefile.in, mkversion.c}:
5304	Relative buildings fixed.
5305
5306	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
5307	rule.
5308
53092003-10-07  Andrey Kiselev  <[email protected]>
5310
5311	* Makefile.in: Added missed v3.6.0.html.
5312
5313	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
5314	ORIENTATION_BOTLEFT.
5315
53162003-10-04  Andrey Kiselev  <[email protected]>
5317
5318	* 3.6.0 final release.
5319
53202003-10-03  Andrey Kiselev  <[email protected]>
5321
5322	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
5323	function TIFFReadRGBAImageOriented() implemented to retrieve raster
5324	array with user-specified origin position as suggested by Jason Frank.
5325	See
5326
5327	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
5328
5329	for details.
5330
5331	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
5332	instead of TIFFReadRGBAImage().
5333
5334	* tools/tiff2ps.c: Fixed possible endless loop as per bug
5335
5336	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
5337
53382003-09-30  Andrey Kiselev  <[email protected]>
5339
5340	* libtiff/tif_dirread.c: Check field counter against number of fields
5341	in order to fix
5342
5343	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
5344
5345	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
5346
5347	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
5348
53492003-09-25  Andrey Kiselev  <[email protected]>
5350
5351	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
5352	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
5353
5354	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
5355
53562003-09-23  Andrey Kiselev  <[email protected]>
5357
5358	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
5359
5360	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
5361
53622003-08-21  Andrey Kiselev  <[email protected]>
5363
5364	* tools/tiffmedian.c: int declaration replaced with the uint32 to
5365	support large images as per bug
5366
5367	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
5368
53692003-08-12  Andrey Kiselev  <[email protected]>
5370
5371 	* libtiff/Makefile.in: Fixed problem with building in different
5372	directory.
5373
5374	* tools/tiff2ps.c: Added missing #include <strings.h>.
5375
5376	* libtiff/tif_dirwrite.c: More fixes for custom tags code
5377	from Ashley Dreier.
5378
53792003-08-07  Andrey Kiselev  <[email protected]>
5380
5381	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
5382	Patch submitted by Balatoni Denes (with corrections from Tom
5383	Kacvinsky).
5384
5385	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
5386	being used. Reported by Tom Kacvinsky.
5387
5388	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
5389	reported by Ashley Dreier.
5390
5391	* libtiff/tif_print.c: Fixed problem with float tags reading, support
5392	for printing RATIONAL and BYTE tags added.
5393
53942003-08-05  Andrey Kiselev  <[email protected]>
5395
5396	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
5397	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
5398	problems with predictor initialization. Remove O_RDONLY check during
5399	state block allocation to be able open LZW compressed files in update
5400	mode.
5401
5402	Problem exist for libtiff version of the tif_lzw.c module. One from
5403	lzw-compression-kit hasn't such troubles.
5404
54052003-08-04  Frank Warmerdam  <[email protected]>
5406
5407	* libtiff/tif_write.c: modified tif_write.c so that the various
5408	encoded write functions use tif_postdecode() to apply byte order
5409	swapping (swab) to the application passed data buffer if the same
5410	would be done when reading.  This allows us to write pixel data with
5411	more than 8 bits per sample to existing files of a non-native byte
5412	order.  One side effect of this change is the applications buffer
5413	itself is altered in this case by the act of writing.
5414
5415	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
5416
54172003-07-25  Frank Warmerdam  <[email protected]>
5418
5419	* libtiff/tif_open.c: avoid signed/unsigned casting warning
5420	initializing typemask as per patch from J.A. Strother.
5421
5422	* tools/tiffcp.c: fixed signed/unsigned casting warning.
5423
5424	* libtiff/tif_print.c: dos2unix conversion.
5425
5426	* tools/tiffsplit.c: increased the maximum number of pages that
5427	can be split.  Patch provided by Andrew J. Montalenti.
5428
54292003-07-11  Andrey Kiselev  <[email protected]>
5430
5431	* tools/raw2tiff.c: Added option `-p' to explicitly select color
5432	space of input image data. Closes
5433
5434	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
5435
54362003-07-08  Frank Warmerdam  <[email protected]>
5437
5438	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
5439	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
5440	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
5441	avoid casting warning at /W4.
5442
54432003-07-03  Andrey Kiselev  <[email protected]>
5444
5445	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
5446
54472003-06-30  Andrey Kiselev  <[email protected]>
5448
5449	* libtiff/tif_pixarlog.c: Unused variables removed.
5450
5451	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
5452	EstimateStripByteCounts() as per bug
5453
5454	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
5455
5456	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
5457	64-bit architectures as per bug
5458
5459	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
5460
5461	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
5462	unknown data type.
5463
54642003-06-19  Frank Warmerdam  <[email protected]>
5465
5466	* libtiff/tif_print.c: fixed some serious bugs when printing
5467	custom tags ... almost certain to crash.
5468
5469	* libtiff/tif_dirread.c: Don't ignore custom fields that are
5470	autodefined.  Not sure how this got to be like this.
5471
54722003-06-18  Andrey Kiselev  <[email protected]>
5473
5474	* 3.6.0 Beta2 released.
5475
5476	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
5477	comparing as per bug
5478
5479	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
5480
5481	`-z' option now can be used to set the number of reported different
5482	bytes.
5483
54842003-06-09  Andrey Kiselev  <[email protected]>
5485
5486	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
5487	to -r option to get the entire image as one strip. See
5488
5489	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5490
5491	for details.
5492
54932003-06-04  Andrey Kiselev  <[email protected]>
5494
5495	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
5496	values as per bug
5497
5498	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5499
55002003-05-27  Frank Warmerdam  <[email protected]>
5501
5502	* libtiff/tif_jpeg.c: modified segment_height calculation to always
5503	be a full height tile for tiled images.  Also changed error to just
5504	be a warning.
5505
55062003-05-25  Andrey Kiselev  <[email protected]>
5507
5508	* tools/fax2tiff.c: Page numbering fixed, as per bug
5509
5510	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
5511
55122003-05-20  Andrey Kiselev  <[email protected]>
5513
5514	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5515	configure, Makefile.in:	Switched back to the old behaviour. Likely
5516	better solution should be found for OJPEG support.
5517
55182003-05-11  Andrey Kiselev  <[email protected]>
5519
5520	* libtiff/mkversion.c: Fixed problem with wrong string size when
5521	reading RELEASE-DATE file.
5522
55232003-05-07  Andrey Kiselev  <[email protected]>
5524
5525	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
5526	index was out of range.
5527
55282003-05-06  Andrey Kiselev  <[email protected]>
5529
5530	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5531	configure, Makefile.in:	Improved libtiff compilation with OJPEG
5532	support. Now no need for patching IJG JPEG library, hack requred by
5533	libtiff will be compiled and used in-place. Implemented with
5534	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
5535
5536	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
5537	TIFFVGetFieldDefaulted() function.
5538
55392003-05-05  Andrey Kiselev  <[email protected]>
5540
5541	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
5542	comments.
5543
5544	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
5545	was not copied from source image.
5546
5547	* libtiff/getimage.c: Workaround for some images without correct
5548	info about alpha channel as per bug
5549
5550	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
5551
55522003-04-29  Andrey Kiselev  <[email protected]>
5553
5554	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
5555	It basically allows one to use the /flateDecode filter for ZIP
5556	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
5557
5558	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
5559
5560	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
5561	as per bug
5562
5563	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
5564
55652003-04-17  Andrey Kiselev  <[email protected]>
5566
5567	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
5568	due to problems with multidirectory images. Quality of error messages
5569	improved.
5570
55712003-04-16  Andrey Kiselev  <[email protected]>
5572
5573	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
5574	encoded images. See bug entries
5575
5576	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
5577
5578	and
5579
5580	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5581
5582	* libtiff/tif_dirread.c: Additional check for StripByteCounts
5583	correctness. Fixes
5584
5585	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
5586
55872003-03-12  Andrey Kiselev  <[email protected]>
5588
5589	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
5590	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
5591	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
5592	tiffmedian.c}: Added library version reporting facility to all tools.
5593
55942003-03-06  Frank Warmerdam  <[email protected]>
5595
5596	* port/install.sh.in: Fixed problems with install producing paths
5597	like ///usr/local/lib on cygwin.
5598
55992003-02-27  Andrey Kiselev  <[email protected]>
5600
5601	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
5602	raw input page. Patch supplied by Julien Gaulmin. See
5603
5604	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
5605
5606	for details.
5607
56082003-02-26  Frank Warmerdam  <[email protected]>
5609
5610	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
5611	responsible for byte swapping complex image data.
5612
5613	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
5614	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
5615
56162003-02-07  Andrey Kiselev  <[email protected]>
5617
5618	* tools/ppm2tiff.c: Fixed problem with too many arguments.
5619
56202003-02-04  Andrey Kiselev  <[email protected]>
5621
5622	* tools/raw2tiff.c: Memory leak fixed.
5623
56242003-02-03  Andrey Kiselev  <[email protected]>
5625
5626	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
5627	(thanks, Julien!). More switches for fax2tiff tool for better control
5628	of input and output. Details at
5629
5630	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
5631
56322003-02-03  Frank Warmerdam  <[email protected]>
5633
5634	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
5635	library so that we can check if there is already any tile/strip data
5636	before deciding between creating a compressor or a decompressor.
5637
56382003-01-31  Frank Warmerdam  <[email protected]>
5639
5640	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
5641	a pre-existing compressed image.  That is, image writing to
5642	pre-existing compressed images is not allowed.
5643
5644	* libtiff/tif_open.c: Removed error if opening a compressed file
5645	in update mode.
5646
5647	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
5648
56492003-01-31  Andrey Kiselev  <[email protected]>
5650
5651	* config.guess, config.sub: Updated to recent upstream versions.
5652
56532003-01-15  Frank Warmerdam  <[email protected]>
5654
5655	* cut 3.6.0 Beta release.
5656
56572002-12-20  Andrey Kiselev  <[email protected]>
5658
5659	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
5660	in wrong way as per bug
5661
5662	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
5663
56642002-12-17  Frank Warmerdam  <[email protected]>
5665
5666	* libtiff/tif_dirread.c: Allow wrong sized arrays in
5667	TIFFFetchStripThing().
5668
5669	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
5670
56712002-12-02  Frank Warmerdam  <[email protected]>
5672
5673	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
5674	Was using realloc even first time.  Fix by Igor Venevtsev.
5675
56762002-11-30  Frank Warmerdam  <[email protected]>
5677
5678	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
5679	field value.
5680
5681	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
5682	tags in TIFFVGetField() ... added missing break.
5683
56842002-10-14  Frank Warmerdam  <[email protected]>
5685
5686	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
5687	the scanline buffer long enough when writing rgb triplets.
5688	The scanline needs to be 3 X the number of dots or else it will
5689	contain	an incomplete triplet and programs that try to separate
5690	the eps by redefining the colorimage operator will get messed up.
5691	Patch supplied by William Bader.
5692
5693	* Makefile.in: added tif_extension.c to file list as per
5694	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
5695
56962002-10-11  Andrey Kiselev  <[email protected]>
5697
5698	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
5699	large files (>2GiB) supporting. New option in the config.site:
5700	LARGEFILE="yes". Should be enough for I/O of the large files.
5701
57022002-10-10  Frank Warmerdam  <[email protected]>
5703
5704	* libtiff/html/v3.6.0.html: new release notes.
5705
5706	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
5707	link for Andrey.  Pointer to v3.6.0.html.
5708
5709	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
5710
57112002-10-07  Andrey Kiselev  <[email protected]>
5712	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
5713	(thanks, Sebastian!). New switches:
5714	-b # for a bottom margin of # inches
5715	-c   center image
5716	-l # for a left margin of # inches
5717	-r   rotate the image by 180 degrees
5718	New features merged with code for shrinking/overlapping.
5719	Previously added -c and -n switches (for overriding PS units) renamed
5720	in -x and -y respectively.
5721
5722	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
5723
5724	* html/man/*.html: Updated from actual manual pages.
5725
57262002-10-06  Frank Warmerdam  <[email protected]>
5727
5728	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
5729	size on windows.  Use #define boolean hack.
5730
5731	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
5732
5733	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
5734	USING_VISUALAGE is defined.
5735
5736	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5737
57382002-10-03  Frank Warmerdam  <[email protected]>
5739
5740	* libtiff/tiff.h: added COMPRESSION_JP2000.
5741
57422002-10-02  Andrey Kiselev  <[email protected]>
5743
5744	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
5745	by the TIFFFetchByteArray() function. Should finally resolve
5746
5747	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5748
5749	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
5750
5751	* html/Makefile.in: New targets added: html and groffhtml for
5752	producing HTML representations of the manual pages automatically.
5753	html target uses man2html tool, groffhtml uses groff tool.
5754
57552002-09-29  Frank Warmerdam  <[email protected]>
5756
5757	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
5758	from John H. DuBois III.
5759
57602002-09-15  Andrey Kiselev  <[email protected]>
5761
5762	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
5763	manual page for raw2tiff(1) tool.
5764
57652002-09-12  Andrey Kiselev  <[email protected]>
5766
5767	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
5768	the tiffio.h header file.
5769
5770	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
5771	manual page for TIFFDataWidth() function
5772
57732002-09-08  Frank Warmerdam  <[email protected]>
5774
5775	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
5776	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
5777
5778	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
5779	since we are unable to properly include the amount to skip.
5780
5781	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
5782
57832002-09-02  Andrey Kiselev  <[email protected]>
5784
5785	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5786	in TIFFFetchByteArray(). Problem described at
5787	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5788
57892002-08-22  Andrey Kiselev  <[email protected]>
5790
5791	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5792	in _TIFFSetupFieldInfo() function.
5793	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5794
5795	* /libtiff/tif_lzw.c: Additional consistency checking added in
5796	LZWDecode() and LZWDecodeCompat().
5797	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5798	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5799
5800	* /libtiff/tif_lzw.c:
5801	Added check for valid code lengths in LZWDecode() and
5802	LZWDecodeCompat(). Fixes
5803	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5804
58052002-08-16  Andrey Kiselev  <[email protected]>
5806
5807	* /libtiff/{Makefile.vc, libtiff.def}:
5808	Missed declarations added.
5809
58102002-08-15  Frank Warmerdam  <[email protected]>
5811
5812	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5813	return code from the underlying pick function.
5814
5815	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5816
5817	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5818	with FIELD_CUSTOM as mentioned in bug 169.
5819
5820	* tif_close.c: added logic to free dynamically created anonymous
5821	field definitions to correct a small memory leak.
5822
5823	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5824
58252002-08-10  Andrey Kiselev  <[email protected]>
5826
5827	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5828	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5829
58302002-07-31  Frank Warmerdam  <[email protected]>
5831
5832	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5833	JPEGDecode() as per bugzilla bug (issue 1):
5834
5835	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5836
5837	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5838	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5839	present in the tiff tags.
5840
5841	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5842
5843	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5844	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5845	fooled with the value.
5846
5847	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5848
58492002-06-22  Andrey Kiselev  <[email protected]>
5850
5851	* /tools/tiff2ps.c: Added workaround for some software that may crash
5852	when last strip of image contains fewer number of scanlines than
5853	specified by the `/Height' variable. See
5854	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5855	for explanation.
5856
58572002-06-21  Andrey Kiselev  <[email protected]>
5858
5859	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5860	splitting long images in several pages. See
5861	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5862	Patch granted by John Williams <[email protected]>.
5863
58642002-06-11  Frank Warmerdam  <[email protected]>
5865
5866	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5867	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5868	This one is described in:
5869
5870	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5871
5872	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5873
5874	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5875
58762002-05-10  Andrey Kiselev  <[email protected]>
5877
5878	* tools/tiff2ps: New commandline switches to override resolution
5879	units obtained from the input file. Closes
5880	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5881
58822002-04-26  Andrey Kiselev  <[email protected]>
5883
5884	* libtiff/libtiff.def: Added missed declaration.
5885
58862002-04-22  Andrey Kiselev  <[email protected]>
5887
5888	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5889	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5890
58912002-04-20  Andrey Kiselev  <[email protected]>
5892
5893	* libtiff/tif_open.c: Pointers to custom procedures
5894	in TIFFClientOpen() are checked to be not NULL-pointers.
5895
58962002-04-18  Andrey Kiselev  <[email protected]>
5897
5898	* libtiff/libtiff.def: Added missed declarations.
5899
5900	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5901
59022002-04-16  Andrey Kiselev  <[email protected]>
5903
5904	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5905	Should finally close
5906	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5907
59082002-04-10  Andrey Kiselev  <[email protected]>
5909
5910	* tools/tiff2ps: Division by zero fixed.
5911	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5912
59132002-04-09  Andrey Kiselev  <[email protected]>
5914
5915	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5916	TIFFCheckpointDirectory() routine added.
5917	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5918
5919	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5920	for the new function.
5921
59222002-04-08  Andrey Kiselev  <[email protected]>
5923
5924	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5925	additional members tif->tif_decodestatus and tif->tif_encodestatus
5926	for correct handling of unconfigured codecs (we should not try to read
5927	data or to define data size without correct codecs).
5928
5929	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5930	changed. Now it has used tif->tif_decodestatus and
5931	tif->tif_encodestatus.
5932	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5933	case of __cvs_8.tif test image).
5934
5935	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5936	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5937	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5938	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5939
59402002-04-04  Andrey Kiselev  <[email protected]>
5941
5942	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5943	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5944	files by skipping bad strips.
5945	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5946
59472002-04-03  Frank Warmerdam  <[email protected]>
5948
5949	* libtiff/tif_dirwrite.c: Removed some dead code.
5950
5951	* libtiff/*: Cleanup some warnings.
5952
5953	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5954	for variable length FIELD_CUSTOM values.  Was int * but should be
5955	u_short *.
5956
59572002-04-01  Andrey Kiselev  <[email protected]>
5958
5959	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
5960	utility (at cpStripToTile routine).
5961
59622002-03-27  Frank Warmerdam  <[email protected]>
5963
5964	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
5965
5966	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
5967
5968	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
5969	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
5970
5971	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
5972	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
5973
59742002-03-26  Dwight Kelly  <[email protected]>
5975
5976	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5977	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
5978	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
5979	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
5980	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
5981	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
5982
59832002-03-26  Andrey Kiselev  <[email protected]>
5984
5985	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
5986	now also uses TIFFRGBAImageOK before reading. This is additional fix
5987	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5988
59892002-03-25  Andrey Kiselev  <[email protected]>
5990
5991	* libtiff/: tif_getimage.c: Additional check for supported
5992	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
5993	TIFFRGBAImageOK before reading.
5994	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5995
59962002-03-15  Andrey Kiselev  <[email protected]>
5997
5998	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5999	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
6000	TIFFDataType sizes instead of working with tiffDataWidth array
6001	directly. Should prevent out-of-borders bugs in case of unknown or
6002	broken data types.  EstimateStripByteCounts routine modified, so it
6003	won't work when tags with uknown sizes founded.
6004	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
6005
60062002-03-13  Andrey Kiselev  <[email protected]>
6007
6008	* libtiff/tif_getimage.c: Added support for correct handling
6009	`Orientation' tag in gtTileContig. Should be added in other gt*
6010	functions as well, but I have not images for testing yet. Partially
6011	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
6012
60132002-03-10  Andrey Kiselev  <[email protected]>
6014
6015	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
6016	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
6017	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
6018	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
6019
60202002-03-08  Andrey Kiselev  <[email protected]>
6021
6022	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
6023	be stripped when installing, utility binaries will do.	Closes
6024	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
6025
60262002-02-28  Frank Warmerdam  <[email protected]>
6027
6028	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
6029
6030	* man/libtiff.3t: added copyright tag info.
6031
60322002-02-11  Frank Warmerdam  <[email protected]>
6033
6034	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
6035
6036	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
6037
6038	* man/Makefile.in: Patch DESTDIR handling
6039
6040	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
6041
6042	* configure: OpenBSD changes for Sparc64 and DSO version.
6043
6044	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
6045
60462002-02-05  Frank Warmerdam  <[email protected]>
6047
6048	* config.site/configure: added support for OJPEG=yes option to enable
6049	OJPEG support from config.site.
6050
60512002-01-27  Frank Warmerdam  <[email protected]>
6052
6053	* html/document.html: fixed links for TIFf 6 docs.
6054
60552002-01-18  Frank Warmerdam  <[email protected]>
6056
6057	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
6058
6059	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
6060	decodestrip function returns anything not greater than zero as per
6061	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
6062
6063	* configure: Modify CheckForBigEndian so it can work in a cross
6064	compiled situation.
6065
60662002-01-16  Frank Warmerdam  <[email protected]>
6067
6068	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
6069
6070	* tools/tiffset.c: fix bug in error reporting.
6071
6072	* tools/tiffcp.c: fix several warnings that show up with -Wall.
6073
60742002-01-04  Frank Warmerdam  <[email protected]>
6075
6076	* libtiff/tif_jpeg.c: fixed computation of segment_width for
6077	tiles files to avoid error about it not matching the
6078	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
6079	size.") for ITIFF files.  Apparently the problem was incorporated since
6080	3.5.5, presumably during the OJPEG/JPEG work recently.
6081
60822001-12-15  Frank Warmerdam  <[email protected]>
6083
6084	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
6085
6086	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
6087
6088	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
6089	(defined in tiffconf.h - 1 by default) then the RGBA interface
6090	will assume that a fourth extra sample is ASSOCALPHA if the
6091	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
6092	the library, but makes it work better with RGBA files produced by
6093	lots of applications that don't mark the alpha values properly.
6094
6095	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
6096	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
6097
60982001-12-12  Frank Warmerdam  <[email protected]>
6099
6100	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
6101	override those from tiff directory.  This makes this work with
6102	ImageGear generated files.
6103
61042001-12-07  Frank Warmerdam  <[email protected]>
6105
6106	* html/Makefile.in: added missing images per bug 92.
6107
6108	* port/Makefile.in: fixed clean target per bug 92.
6109
61102001-11-28  Frank Warmerdam  <[email protected]>
6111
6112	* Reissue 3.5.7 release.
6113
6114	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
6115	YYYYMMDD so that it is increasing over time.
6116
6117	* Makefile.in: Ensure that tiffvers.h is regenerated in the
6118	make release target.
6119
6120	* Makefile.in: added libtiff/tiffvers.h to the release file list.
6121
61222001-11-23  Frank Warmerdam  <[email protected]>
6123
6124	* added html/v3.5.7.html, updated html/index.html.
6125
6126	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
6127
61282001-11-15  Frank Warmerdam  <[email protected]>
6129
6130	* configure: fixed test for -lm.
6131
61322001-11-02  Frank Warmerdam  <[email protected]>
6133
6134	* Added PHOTOMETRIC_ITULAB as per bug 90.
6135
6136	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
6137
61382001-10-10  Frank Warmerdam  <[email protected]>
6139
6140	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
6141	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
6142	in keeping with TIFF 6.0 standard in tiff.h
6143
6144	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
6145
61462001-09-26  Frank Warmerdam  <[email protected]>
6147
6148	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
6149	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
6150
61512001-09-24  Frank Warmerdam  <[email protected]>
6152
6153	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
6154
6155	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
6156
6157	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
6158	error about LZW not being available.
6159
6160	* libtiff/tif_dir.c: propagate failure to initialize compression
6161	back from TIFFSetField() as an error status, so applications can
6162	detect failure.
6163
6164	* libtiff/tif_dir.c: removed the auto replacement of
6165	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
6166
6167	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
6168	from CVS as they are all supposed to be auto-generated by configure.
6169
61702001-09-22  Frank Warmerdam  <[email protected]>
6171
6172	* libtiff/tif_ojpeg.c: new update from Scott.
6173
61742001-09-09  Frank Warmerdam  <[email protected]>
6175
6176	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
6177	always use the "safe" version, even if there is a very slight
6178	cost in performance.
6179
6180	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
6181
6182	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
6183	in two places.
6184
6185	* libtiff/tif_getimage.c: Fixed problem with reading strips or
6186	tiles that don't start on a tile boundary.  Fix contributed by
6187	Josep Vallverdu (from HP), and further described in bug 47.
6188
6189	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
6190
6191	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
6192
6193	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
6194
61952001-09-06  Frank Warmerdam  <[email protected]>
6196
6197	* libtiff/tif_packbits.c: fixed memory overrun error.
6198
6199	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
6200
62012001-08-31  Frank Warmerdam  <[email protected]>
6202
6203	* libtiff/tif_getimage.c: relax handling of contig case where
6204	there are extra samples that are supposed to be ignored.  This
6205	should now work for 8bit greyscale or palletted images.
6206
6207	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
6208
62092001-08-28  Frank Warmerdam  <[email protected]>
6210
6211	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
6212	images with more than four samples per pixel.  See:
6213
6214	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
6215
62162001-08-10  Frank Warmerdam  <[email protected]>
6217
6218	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
6219	in TIFFReadRGBATile() to avoid issues in cases of overlapping
6220	buffers.  See Bug 69 in Bugzilla.
6221
6222	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
6223
6224	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
6225
62262001-08-09  Frank Warmerdam  <[email protected]>
6227
6228	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
6229	when checking for 64 bit architectures as per bugzilla bug 67.
6230
62312001-07-27  Frank Warmerdam  <[email protected]>
6232
6233	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
6234	bug 66.
6235
62362001-07-20  Frank Warmerdam  <[email protected]>
6237
6238	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
6239	has been included.
6240
62412001-07-19  Frank Warmerdam  <[email protected]>
6242
6243	* libtiff/tif_open.c: Seek back to zero after failed read,
6244	before writing header.
6245
62462001-07-18  Frank Warmerdam  <[email protected]>
6247
6248	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
6249	much better.  Now depends on having patched libjpeg as per
6250	patch in contrib/ojpeg/*.
6251
62522001-07-17  Frank Warmerdam  <[email protected]>
6253
6254	* */Makefile.in: added DESTDIR support.
6255
6256	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
6257
62582001-07-16  Frank Warmerdam  <[email protected]>
6259
6260	* configure, libtiff/Makefile.in: applied OpenBSD patches
6261	as per:
6262
6263	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
6264
62652001-06-28  Frank Warmerdam  <[email protected]>
6266
6267	* libtiff/tif_getimage.c: Fixed so that failure is properly
6268	reported by gtTileContig, gtStripContig, gtTileSeparate and
6269	gtStripSeparate.
6270
6271	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
6272
6273	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
6274	Updated bug section of tiffcmp.1 to note tiled file issues.
6275
6276	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
6277
62782001-06-22  Frank Warmerdam  <[email protected]>
6279
6280	* configure: Changes for DSO generation on AIX provided by
6281	John Marquart <[email protected]>.
6282
6283	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
6284	on Darwin thanks to Robert Krajewski ([email protected]) and
6285	Keisuke Fujii ([email protected]).
6286
62872001-06-13  Frank Warmerdam  <[email protected]>
6288
6289	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
6290
6291	* man/tiff2rgba.1: new
6292
62932001-05-22  Frank Warmerdam  <[email protected]>
6294
6295	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
6296
62972001-05-13  Frank Warmerdam  <[email protected]>
6298
6299	* libtiff/tools/thumbnail.c: changed default output compression
6300	to packbits from LZW since LZW isn't generally available.
6301
63022001-05-12  Frank Warmerdam  <[email protected]>
6303
6304	* libtiff/tif_ojpeg.c: New.
6305	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
6306	to OJPEG support.
6307
6308	Scott Marovich <[email protected]> supplied OJPEG support.
6309
63102001-05-11  Frank Warmerdam  <[email protected]>
6311
6312	* tiff.h: removed, it duplicates libtiff/tiff.h.
6313
63142001-05-08  Frank Warmerdam  <[email protected]>
6315
6316	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
6317	ensure everything is in order.
6318
6319	* libtiff/libtiff.def: added TIFFCreateDirectory and
6320	TIFFDefaultStripSize as per:
6321
6322	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
6323
63242001-05-02  Frank Warmerdam  <[email protected]>
6325
6326	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
6327	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
6328	force use of uint32 counts instead of short counts.
6329
6330	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
6331	case of writing TIFF_BYTE/TIFF_SBYTE fields.
6332
6333	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
6334
63352001-05-01  Frank Warmerdam  <[email protected]>
6336
6337	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
6338	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
6339
63402001-04-05  Frank Warmerdam  <[email protected]>
6341
6342	* tiffio.h: removed C++ style comment.
6343
6344	* configure: fixed up SCRIPT_SH/SHELL handling.
6345
6346	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
6347
6348	* config.guess: documented more variables as per bug 40.
6349
63502001-04-03  Frank Warmerdam  <[email protected]>
6351
6352	* configure, *Makefile.in: Various changes to improve configuration
6353	for HP/UX specifically, and also in general.  They include:
6354	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
6355	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
6356	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
6357	 - Use -${MAKEFLAGS} in sub makes from makefiles.
6358
6359	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
6360
63612001-04-02  Frank Warmerdam  <[email protected]>
6362
6363	* libtiff/tiff.h: Applied hac to try and resolve the problem
6364	with the inttypes.h include file on AIX.
6365
6366	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
6367
6368	* VERSION: update to 3.5.7 beta in preparation for release.
6369
6370	* configure/config.site: modified to check if -lm is needed for
6371	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
6372
6373	* config.guess: updated wholesale to an FSF version apparently
6374	from 1998 (as opposed to 1994).  This is mainly inspired by
6375	providing for MacOS X support.
6376
63772001-03-29  Frank Warmerdam  <[email protected]>
6378
6379	* configure, Makefile.in, etc: added support for OPTIMIZER being
6380	set from config.site.
6381
63822001-03-28  Frank Warmerdam  <[email protected]>
6383
6384	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
6385
6386	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
6387	sizes. It fixes two problems:
6388
6389	Without	scaling (-S) the fax is now centered on the page size specified
6390	with -H	and/or -W. Before, fax2ps was using an obscure and practially
6391	useless algorithm to allocate the image relative to Letter sized paper
6392	which sometime sled to useless whitespace on the paper, while at the
6393	same time cutting of the faxes printable area at the opposite border.
6394
6395	Second, scaling now preserves aspect ratio, which makes unusual faxes
6396	(in particular short ones) print properly.
6397
6398	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
6399
6400	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
6401	Bruce A. Mallett.  See check message for detailed information
6402	on all the changes, including a faster encoder, fixes for level
6403	2 PostScript, and support for the imagemask operator.
6404
64052001-03-27  Frank Warmerdam  <[email protected]>
6406
6407	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
6408	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
6409
6410	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
6411
64122001-03-16  Frank Warmerdam  <[email protected]>
6413
6414	* tif_dirinfo.c: moved definition of copyright tag in field list.
6415	Apparently they have to be in sorted order by tag id.
6416
64172001-03-13  Frank Warmerdam  <[email protected]>
6418
6419	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
6420	images in RGBA interface.
6421
64222001-03-02  Frank Warmerdam  <[email protected]>
6423
6424	* Added TIFFTAG_COPYRIGHT support.
6425
64262001-02-19  Frank Warmerdam  <[email protected]>
6427
6428	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
6429	with support for extracting subimages with the ,n syntax, and also
6430	adding the -b bias removal flag.
6431
64322001-02-16  Frank Warmerdam  <[email protected]>
6433
6434	* libtiff/libtiff.def: Brent Roman submitted new version adding
6435	serveral missing entry points.
6436
6437	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
6438	Some sort of weird VMS thing.
6439
6440	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
6441
6442	* tif_luv.c/tiff.h/tiffio.h:
6443	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
6444	([email protected]).  He writes:
6445
6446	1) I improved the gamut-mapping function in tif_luv.c for imaginary
6447	colors, because some images were being super-saturated on the input
6448	side and this resulted in some strange color shifts in the output.
6449
6450	2) I added a psuedotag in tiff.h to control random dithering during
6451	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
6452	on for 24-bit LogLuv output.  Dithering improves the average color
6453	accuracy over the image.
6454
6455	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
6456	tiffio.h, to expose internal routines for converting between LogLuv and
6457	XYZ coordinates.  This is helpful for writing more efficient,
6458	specialized conversion routines, especially for reading LogLuv files.
6459
6460	Changes applied with minor edits.
6461
64622001-01-23  Frank Warmerdam  <[email protected]>
6463
6464	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
6465	whether we are encoding or decoding.  This is to ensure graceful
6466	recovery if TIFFClientOpen() discovers an attempt to open a compressed
6467	file for "r+" access, and subsequently close it, as it resets the
6468	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
6469	compressor's concept of whether it is in encode or decode mode.
6470
64712001-01-08  Mike Welles <[email protected]>
6472
6473	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
6474
64752001-01-07  Frank Warmerdam  <[email protected]>
6476
6477	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
6478	as per bug report by Patrick Connor.
6479
64802000-12-28  Frank Warmerdam  <[email protected]>
6481
6482	* Added RELEASE-DATE file to release file list.
6483
6484	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
6485
64862000-12-22  Mike Welles <[email protected]>
6487        * added link to CVS mirror from index.html
6488
6489	* updated html/internals.html to note that LZW compression is
6490	  not supported by default.
6491
64922000-12-22  Frank Warmerdam  <[email protected]>
6493
6494	* updated html/libtiff.html to not point at Niles' old JPL web site
6495	for the man pages, point at www.libtiff.org.
6496
64972000-12-21  Frank Warmerdam  <[email protected]>
6498
6499	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
6500	Leonard Rosenthol <[email protected]>.  May interfere
6501	with correct building on older systems.  If so, please let me know.
6502
65032000-12-19 Mike Welles <[email protected]>
6504
6505	* Took out LZW Encoding from tif_lzw.c
6506
6507	* Created HOWTO-RELEASE
6508
6509	* Created html/v3.5.6.html
6510
6511	* updated index.html
6512
65132000-12-01  Frank Warmerdam  <[email protected]>
6514
6515	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
6516	Patches supplied by Frank Cringle <[email protected]>
6517	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
6518
65192000-11-24  Frank Warmerdam  <[email protected]>
6520
6521	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
6522	target so that the private headers required by libgeotiff can be
6523	installed with the others.  They are not installed by default.
6524
6525	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
6526	targets so libtiff.so will be built with an explicit dependency
6527	on libm.so.
6528
6529	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
6530	libtiff.so.3.5.5.
6531
6532	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
6533	file, or ALPHA version logic.  Added stuff about DIST_POINT in
6534	place of DIST_TYPE and the alpha release number stuff.
6535
65362000-11-22  Frank Warmerdam  <[email protected]>
6537
6538	* I have applied a patch from Steffen Moeller <[email protected]> to
6539	the configure script so that it now accepts the --prefix, and
6540	--exec-prefix directives.
6541
65422000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
6543
6544	* I have made a variety of modifications in an effort to ensure the
6545	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
6546	file which seems to be updated regularly.
6547
6548	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
6549	   version include file.
6550	 o renamed version.h to tiffvers.h because we now have to install it
6551	   with the public libtiff include files.
6552	 o include tiffvers.h in tiffio.h.
6553	 o updated tif_version.c to use tiffvers.h.
6554	 o Updated Makefile.in accordingly.
6555
6556	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
6557	I have updated the win32 detection rules in tiffcomp.h.
6558
65592000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
6560
6561	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
6562	the strip/tile width and height aren't multiples of the sampling size.
6563	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
6564	Some patches from Rick LaMont of Dot C Software.
6565
6566	* Modified tif_packbits.c encoder to avoid compressing more
6567	data than provided if rowsize doesn't factor into provided data
6568	(such as occurs for YCbCr).
6569
65702000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
6571
6572	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
6573	roundup if rows_per_strip not a multiple of vertical sample size.
6574
65752000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
6576
6577	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
6578	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6579	from [email protected].
6580
6581	* Modified tif_packbits.c decoding to avoid overrunning the
6582	output buffer, and to issue a warning if data needs to be
6583	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6584
65852000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
6586
6587	* Modified tiff2bw to ensure portions add to 100%, and that
6588	white is properly recovered.
6589
6590	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
6591	Patch c/o Stanislav Brabec <[email protected]>
6592
65932000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
6594
6595	* Modified TIFFClientOpen() to emit an error on an attempt to
6596	open a comperessed file for update (O_RDWR/r+) access.  This is
6597	because the compressor/decompressor code gets very confused when
6598	the mode is O_RDWR, assuming this means writing only.  See
6599	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
6600
66012000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
6602
6603	* Added GNULDdso target an`d switched linux and freebsd to use it.
6604
66052000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
6606
6607	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
6608	of EXPAND1D() as per bug 11 (from Roman).
6609
66102000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
6611	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
6612	cygwin compatibility.
6613
6614	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
6615	be a proper fix to the buffer sizing problem.  See
6616	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
6617
6618	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
6619	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
6620	Thanks to Nick Lamb <[email protected]> for reporting the
6621	bug and proving the patch.
6622
66232000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
6624
6625	* Fixed tif_jpeg.c so avoid destroying the decompressor before
6626	we are done access data thanks to bug report from:
6627	Michael Eckstein <[email protected]>.
6628
6629	* Reverted tif_flush change.
6630
66312000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
6632
6633	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
6634	error when TIFF_BEENWRITING is not set.  This ensures that the
6635	directory contents can still be flushed by TIFFFlush().
6636
66372000-08-14  Frank Warmerdam  <[email protected]>
6638
6639	* tif_open.c: Don't set MMAP for O_RDWR files.
6640
6641	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
6642	so that files opened for update can be strip chopped too.
6643
6644	* tif_read.c: fixed up bug with files missing rowsperstrip and
6645	the strips per separation fix done a few weeks ago.
6646
66472000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
6648
6649	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
6650	SAMPLEFORMAT_COMPLEXINT.
6651
66522000-07-13  Mike Welles <[email protected]>
6653
6654	* index.html, bugs.html: added bugzilla info.
6655
66562000-07-12  Frank Warmerdam  <[email protected]>
6657
6658	* tif_read.c: fix subtle bug with determining the number of
6659	rows for strips that are the last strip in a separation but
6660	not the last strip of all in TIFFReadEncodedStrip().
6661
6662	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
6663	Peter Skarpetis <[email protected]>
6664
66652000-06-15  Frank Warmerdam  <[email protected]>
6666
6667	* Modified tiffio.h logic with regard to including windows.h.  It
6668	won't include it when building with __CYGWIN__.
6669
66702000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
6671
6672	* README: update to mention www.libtiff.org, don't list Sam's old
6673	email address.
6674
6675	* configure: Fixed DSO test for Linux as per patch from
6676	  Jan Van Buggenhout <[email protected]>.
6677
66782000-04-21  Frank Warmerdam  <[email protected]>
6679
6680	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
6681	one tile/strip images with an offset, and byte count of zero. These
6682	could be "unpopulated" images.
6683
66842000-04-18  Frank Warmerdam  <[email protected]>
6685
6686	* contrib/addtiffo: Added "averaging" resampling option.
6687
6688	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
6689
6690Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
6691
6692	* tools/Makefile.in: Modified to install properly on SGI.
6693
66942000-04-12  Mike Welles	     <[email protected]>
6695	* configure:  Fixed stupid mistake in libc6 test on Linux
6696
66972000-04-04  Mike Welles	     <[email protected]>
6698	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
6699	  caught by BoundsChecker.  From Arvan Pritchard
6700	  <[email protected]>  (untested).
6701
6702	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
6703	  Arvan Pritchard <[email protected]>
6704
6705	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
6706	  Arvan Pritchard <[email protected]>
6707
67082000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
6709
6710	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
6711
67122000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
6713
6714	* fax2ps: Fixed mixup of width and height in bounding box statement
6715	as per submission by Nalin Dahyabhai <[email protected]>.
6716
67172000-03-27  Mike Welles	     <[email protected]>
6718
6719	* fax2ps:  Modified printruns to take uint32 instead of uint16.
6720	Patch courtesy of Bernt Herd <[email protected]>
6721
67222000-03-20  Mike Welles	     <[email protected]>
6723
6724	* configure: added test for libc6 for linux targets.  Bug reported by
6725        Stanislav Brabec <[email protected]>
6726
6727	* Added 3.5 docs to html/Makefile.in.
6728	Thanks to  Stanislav Brabec <[email protected]>
6729
6730	* configure: fixed bugs in sed scripts
6731	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
6732	fix submitted to Stanislav Brabec <[email protected]>
6733
6734	* tools/iptcutil was not in files list, and wasn't being
6735	added to tar archive.  Updated Makefile.in.
6736
67372000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
6738
6739	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
6740	conversion for the run arrays.
6741
67422000-03-03  Frank Warmerdam  <[email protected]>
6743
6744	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
6745	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
6746
67472000-03-02  Frank Warmerdam  <[email protected]>
6748
6749	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
6750
6751	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
6752	to avoid overruns encountered with frle_bug.tif.
6753
6754Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
6755
6756	* Fixed tools/tiffcmp so that stopondiff testing works.
6757	  Patch care of Joseph Orost <[email protected]>.
6758
67592000-01-28    <warmerda@CS46980-B>
6760
6761	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
6762	  set to 1, and added default (off) setting in tiffconf.h.  This
6763	  should eventually be set by the configure script somehow.
6764
6765	  The original work on all these 2-4GB changes was done by
6766	  Peter Smith ([email protected]).
6767
6768	* Modified tif_win32.c to support 2-4GB seeks.
6769
6770	* tentatively changed toff_t to be unsigned instead of signed to
6771	  facilitate support for 2-4GB files.
6772
6773	* Updated a variety of files to use toff_t.  Fixed some mixups
6774	  between toff_t and tsize_t.
6775
6776Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
6777
6778	* Largely reimplemented contrib/addtiffo to avoid temp files,
6779	updating the TIFF file in place.  Fixed a few other bugs to.
6780
6781	* Set tif_rawdatasize to zero when freeing raw data buffer in
6782	TIFFWriteDirectory().
6783
6784	* Enabled "REWRITE_HACK" in tif_write.c by default.
6785
6786	* Fix bug in tif_write.c when switching between reading one directory
6787	and writing to another.
6788
6789	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6790
6791Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6792
6793	* Added TIFFmemory(3t) functions to libtiff.def.
6794
6795Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6796
6797	* Added libtiff/libtiff.def to TIFFILES distribution list.
6798
6799Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6800
6801	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6802
6803	* Altered descriptions in tools to reflect "by default" lzw not supported
6804
6805	* Updated index.html to note lzw compression kit.
6806
6807Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6808
6809	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6810
6811Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6812
6813	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6814
6815	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6816	  when LZW compression invoked.
6817
6818	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6819	  in tools to reflect removal of LZW compression
6820
6821Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6822
6823        * Fixed bug that caused LZW (non) compression to segfault. Added
6824	  warning about LZW compression removed being removed, and why.
6825
6826	* Added nostrip to install in tools/Makefile.in so that debugging
6827	  symbols are kept.
6828
6829Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6830
6831	* Added patch from Ivo Penzar <[email protected]>,
6832	  supporting Adobe ZIP deflate.  Untested.
6833
6834Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6835
6836	* Made Packbits the default compression in tools/tiff2rgba.c instead
6837	of LZW.
6838
6839Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6840
6841	* Added tif_luv to contrib/djgpp/Makefile.lib.
6842
6843Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6844
6845        * Added zip creation to relase makefile target
6846
6847	* Added html for TIFFWriteTile.3t man page.
6848
6849Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6850
6851	* Added some changes to tif_write.c to support rewriting existing
6852	fixed sized tiles and strips.  Code mods disabled by default, only
6853	enabled if REWRITE_HACK is defined for now.
6854
6855Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6856
6857	* Added TIFFWriteTile.3t man page.
6858
6859Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6860
6861	* Added notes on use of makefile.vc in build.html, and fixed
6862	email subscription address.
6863
6864199-11-28  Mike Welles <[email protected]>
6865
6866	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6867
6868	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6869	   from Bruce Carmeron <[email protected]> -- modifications of
6870	   changes made by Frank (sun cc still complained on cast).
6871
6872	*  Added tiffconf.h to install target per request from Bill
6873	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6874 	   know features have been compiled into the TIFF library in order to
6875	   handle things properly".
6876
6877Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6878
6879	* fixed various VC++ warnings as suggested by Gilles Vollant
6880	<[email protected]>.
6881
6882Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6883
6884	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6885	not imply applications are responsible for image data swapping.
6886
68871999-11-22  Mike Welles <[email protected]>
6888	*  HTML-ized the man pages, added to html/man
6889
6890	*  Removed LZW Compression to comply with Unisys patent extortion.
6891
68921999-09-29  Mike Welles		<[email protected]>
6893	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6894	   From Ivo Penzar <[email protected].
6895
6896	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6897	   memory mapped files. <[email protected]>
6898
68991999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6900	* Corrected alpha versioning.
6901
6902	* Removed distinction between  alpha and release targets in Makefile.in.
6903
6904	* added release.stamp target, which tags cvs tree, and updates
6905	  "RELEASE-DATE"
6906
6907	* added releasediff target, which diffs tree with source as of
6908	  date in "RELEASE-DATE"
6909
6910	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6911	  away from alpha/non-alpha distinctions).
6912
6913	* updated html to reflect release
6914
69151999-09-23    <warmerda@CS46980-B>
6916
6917	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6918
6919	* Added CYGWIN case in configure.
6920
6921Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6922
6923	* Applied Francois Dagand's patch to handle fax decompression bug.
6924	  (sizes >= 65536 were failing)
6925
6926Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6927
6928	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6929	  by Christopher Lawton <[email protected]>
6930
6931Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6932
6933	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6934	  Albert Chin-A-Young <[email protected]>
6935
6936	* Added TIFFReassignTagToIgnore() API on behalf of
6937	  Bruce Cameron <[email protected]>.  Man page still pending.
6938
6939Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6940
6941	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6942	files to provide for a rudimentary testsuite.
6943
6944	* Added contrib/tags back from old distribution ... fixed up a bit.
6945
69461999-08-16    <warmerda@CS46980-B>
6947
6948	* Added simple makefile.vc makefiles for building with MS VC++
6949	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6950	better solutions for some users.
6951
6952Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6953
6954	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6955	put it in tools since part of it is in C++.
6956
69571999-08-16  Michael L. Welles  <[email protected]>
6958
6959	* Updated html/index.html with anon CVS instructions.
6960
6961Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
6962
6963	* pre-remove so link before softlink in LINUXdso action in
6964	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
6965	the first.
6966
6967	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
6968	colormaps owned by the TIFF handle itself when trying to fixup wrong
6969	(eight bit) colormaps.  Corrected by maintaining a private copy of
6970	the colormap.
6971
6972	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
6973	tif_getimage.c.
6974
6975	* CVS Repository placed at remotesensing.org.  ChangeLog added.
6976