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