xref: /libtiff-4.0.7/ChangeLog (revision a71b62bc)
12016-08-15 Even Rouault <even.rouault at spatialys.com>
2
3	* libtiff/tif_pixarlog.c: Fix write buffer overflow in PixarLogEncode
4	if more input samples are provided than expected by PixarLogSetupEncode.
5	Idea based on libtiff-CVE-2016-3990.patch from
6	libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, but with different and
7	simpler check. (bugzilla #2544)
8
92016-08-15 Even Rouault <even.rouault at spatialys.com>
10
11	* tools/tiff2rgba.c: Fix integer overflow in size of allocated
12	buffer, when -b mode is enabled, that could result in out-of-bounds
13	write. Based initially on patch tiff-CVE-2016-3945.patch from
14	libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, with correction for
15	invalid tests that rejected valid files. (bugzilla #2545)
16
172016-07-11 Even Rouault <even.rouault at spatialys.com>
18
19	* tools/tiffcrop.c: Avoid access outside of stack allocated array
20	on a tiled separate TIFF with more than 8 samples per pixel.
21	Reported by Kaixiang Zhang of the Cloud Security Team, Qihoo 360
22	(CVE-2016-5321 / CVE-2016-5323 , bugzilla #2558 / #2559)
23
242016-07-10 Even Rouault <even.rouault at spatialys.com>
25
26	* libtiff/tif_read.c: Fix out-of-bounds read on
27	memory-mapped files in TIFFReadRawStrip1() and TIFFReadRawTile1()
28	when stripoffset is beyond tmsize_t max value (reported by
29	Mathias Svensson)
30
312016-07-10 Even Rouault <even.rouault at spatialys.com>
32
33	* tools/tiffdump.c: fix a few misaligned 64-bit reads warned
34	by -fsanitize
35
362016-07-03 Even Rouault <even.rouault at spatialys.com>
37
38	* libtiff/tif_read.c: make TIFFReadEncodedStrip() and
39	TIFFReadEncodedTile() directly use user provided buffer when
40	no compression (and other conditions) to save a memcpy().
41
42	* libtiff/tif_write.c: make TIFFWriteEncodedStrip() and
43	TIFFWriteEncodedTile() directly use user provided buffer when
44	no compression to save a memcpy().
45
462016-07-01  Even Rouault <even.rouault at spatialys.com>
47
48	* libtiff/tif_luv.c: validate that for COMPRESSION_SGILOG and
49	PHOTOMETRIC_LOGL, there is only one sample per pixel. Avoid
50	potential invalid memory write on corrupted/unexpected images when
51	using the TIFFRGBAImageBegin() interface (reported by
52	Clay Wood)
53
542016-06-28  Even Rouault <even.rouault at spatialys.com>
55
56	* libtiff/tif_pixarlog.c: fix potential buffer write overrun in
57	PixarLogDecode() on corrupted/unexpected images (reported by Mathias Svensson)
58	(CVE-2016-5875)
59
602016-06-15  Bob Friesenhahn  <[email protected]>
61
62	* libtiff/libtiff.def: Added _TIFFMultiply32 and _TIFFMultiply64
63	to libtiff.def
64
652016-06-05  Bob Friesenhahn  <[email protected]>
66
67	* tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff,
68	ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from
69	the distribution.  The libtiff tools rgb2ycbcr and thumbnail are
70	only built in the build tree for testing.  Old files are put in
71	new 'archive' subdirectory of the source repository, but not in
72	distribution archives.  These changes are made in order to lessen
73	the maintenance burden.
74
752016-05-10  Bob Friesenhahn  <[email protected]>
76
77	* libtiff/tif_config.vc.h (HAVE_SNPRINTF): Add a '1' to the
78	HAVE_SNPRINTF definition.'
79
802016-05-09  Bob Friesenhahn  <[email protected]>
81
82	* libtiff/tif_config.vc.h (HAVE_SNPRINTF): Applied patch by Edward
83	Lam to define HAVE_SNPRINTF for Visual Studio 2015.
84
852016-04-27  Even Rouault <even.rouault at spatialys.com>
86
87	* libtiff/tif_dirread.c: when compiled with DEFER_STRILE_LOAD,
88	fix regression, introduced on 2014-12-23, when reading a one-strip
89	file without a StripByteCounts tag. GDAL #6490
90
912016-04-07  Bob Friesenhahn  <[email protected]>
92
93	* html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for
94	purposes of security issue reporting.
95
962016-01-23  Even Rouault <even.rouault at spatialys.com>
97
98	* libtiff/*: upstream typo fixes (mostly contributed by Kurt Schwehr)
99	coming from GDAL internal libtiff
100
1012016-01-09  Even Rouault <even.rouault at spatialys.com>
102
103	* libtiff/tif_fax3.h: make Param member of TIFFFaxTabEnt structure
104	a uint16 to reduce size of the binary.
105
1062016-01-03  Even Rouault <even.rouault at spatialys.com>
107
108	* libtiff/tif_read.c, tif_dirread.c: fix indentation issues raised
109	by GCC 6 -Wmisleading-indentation
110
1112015-12-27  Even Rouault <even.rouault at spatialys.com>
112
113	* libtiff/tif_pixarlog.c: avoid zlib error messages to pass a NULL
114	string to %s formatter, which is undefined behaviour in sprintf().
115
1162015-12-27  Even Rouault <even.rouault at spatialys.com>
117
118	* libtiff/tif_next.c: fix potential out-of-bound write in NeXTDecode()
119	triggered by http://lcamtuf.coredump.cx/afl/vulns/libtiff5.tif
120	(bugzilla #2508)
121
1222015-12-27  Even Rouault <even.rouault at spatialys.com>
123
124	* libtiff/tif_luv.c: fix potential out-of-bound writes in decode
125	functions in non debug builds by replacing assert()s by regular if
126	checks (bugzilla #2522).
127	Fix potential out-of-bound reads in case of short input data.
128
1292015-12-26  Even Rouault <even.rouault at spatialys.com>
130
131	* libtiff/tif_getimage.c: fix out-of-bound reads in TIFFRGBAImage
132	interface in case of unsupported values of SamplesPerPixel/ExtraSamples
133	for LogLUV / CIELab. Add explicit call to TIFFRGBAImageOK() in
134	TIFFRGBAImageBegin(). Fix CVE-2015-8665 reported by limingxing and
135	CVE-2015-8683 reported by zzf of Alibaba.
136
1372015-12-21  Even Rouault <even.rouault at spatialys.com>
138
139	* libtiff/tif_dirread.c: workaround false positive warning of Clang Static
140	Analyzer about null pointer dereference in TIFFCheckDirOffset().
141
1422015-12-19  Even Rouault <even.rouault at spatialys.com>
143
144	* libtiff/tif_fax3.c: remove dead assignment in Fax3PutEOLgdal(). Found
145	by Clang Static Analyzer
146
1472015-12-18  Even Rouault <even.rouault at spatialys.com>
148
149	* libtiff/tif_dirwrite.c: fix truncation to 32 bit of file offsets in
150	TIFFLinkDirectory() and TIFFWriteDirectorySec() when aligning directory
151	offsets on a even offset (affects BigTIFF). This was a regression of the
152	changeset of 2015-10-19.
153
1542015-12-12  Even Rouault <even.rouault at spatialys.com>
155
156	* libtiff/tif_write.c: TIFFWriteEncodedStrip() and TIFFWriteEncodedTile()
157	should return -1 in case of failure of tif_encodestrip() as documented
158	* libtiff/tif_dumpmode.c: DumpModeEncode() should return 0 in case of
159	failure so that the above mentionned functions detect the error.
160
1612015-12-06  Even Rouault <even.rouault at spatialys.com>
162
163	* libtiff/uvcode.h: const'ify uv_code array
164
1652015-12-06  Even Rouault <even.rouault at spatialys.com>
166
167	* libtiff/tif_dirinfo.c: const'ify tiffFields, exifFields,
168	tiffFieldArray and exifFieldArray arrays
169
1702015-12-06  Even Rouault <even.rouault at spatialys.com>
171
172	* libtiff/tif_print.c: constify photoNames and orientNames arrays
173
1742015-12-06  Even Rouault <even.rouault at spatialys.com>
175
176	* libtiff/tif_close.c, libtiff/tif_extension.c : rename link
177	variable to avoid -Wshadow warnings
178
1792015-11-22  Even Rouault <even.rouault at spatialys.com>
180
181	* libtiff/*.c: fix typos in comments (patch by Kurt Schwehr)
182
1832015-11-22  Even Rouault <even.rouault at spatialys.com>
184
185	* libtiff/*.c: fix MSVC warnings related to cast shortening and
186	assignment within conditional expression
187
1882015-11-18  Even Rouault <even.rouault at spatialys.com>
189
190	* libtiff/*.c: fix clang -Wshorten-64-to-32 warnings
191
1922015-11-18  Even Rouault <even.rouault at spatialys.com>
193
194	* libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL
195	to please MSVC 2013
196
1972015-11-17  Even Rouault <even.rouault at spatialys.com>
198
199	* libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction
200	if BitsPerPixel > 24, so as to avoid huge memory allocation and file
201	read attempts
202
2032015-11-02  Even Rouault <even.rouault at spatialys.com>
204
205	* libtiff/tif_dirread.c: remove duplicated assignment (reported by
206	Clang static analyzer)
207
2082015-10-28  Even Rouault <even.rouault at spatialys.com>
209
210	* libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c,
211	libtiff/tif_jpeg_12.c: suppress warnings about 'no previous
212	declaration/prototype'
213
2142015-10-19  Even Rouault <even.rouault at spatialys.com>
215
216	* libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix
217	'warning: negative integer implicitly converted to unsigned type' warning
218	(part of -Wconversion)
219
2202015-10-17  Even Rouault <even.rouault at spatialys.com>
221
222	* libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c,
223	  libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/)
224
2252015-09-12  Bob Friesenhahn  <[email protected]>
226
227	* libtiff 4.0.6 released.
228
229	* html/v4.0.6.html: Added release notes for 4.0.6.
230
2312015-09-06  Bob Friesenhahn  <[email protected]>
232
233	* tools/tiffgt.c: Silence glut API deprecation warnings on MacOS
234	X.  Patch by Roger Leigh.
235
236	* Makefile.am: Added a 'coverity' rule to assist with Coverity
237	submissions.
238
239	* tools/tiff2pdf.c: Fix compiler warning about unused function
240	when JPEG is not available.
241
242	* tools/fax2ps.c (main): Detect failure to write to temporary
243	file.
244
2452015-09-05  Bob Friesenhahn  <[email protected]>
246
247	* libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8):
248	Change implementation so that it does not sometimes overflow the
249	range of a 32-bit int and to avoid a signed vs unsigned compare
250	compiler warning.
251	(TIFF_INT64_MAX): Avoid use of platform-specific large constants.
252	(TIFF_UINT32_MAX): Avoid use of platform-specific large constants.
253
2542015-09-01  Bob Friesenhahn  <[email protected]>
255
256	* Makefile.am (distcheck-hook), configure.ac: Applied patches by
257	Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue
258	with BSD make and to make use of cmake in 'distcheck' target
259	conditional on if cmake is available.
260
261	* CMakeLists.txt, Makefile.am, configure.ac: Applied patches by
262	Roger Leigh (via tiff mailing list on 2015-09-01).
263
264	CMake build is now included in 'distcheck' target.
265
266	Builds with CMake 2.8.9 and newer.
267
268	Tar is now resquested to use POSIX PAX format.
269
2702015-08-31  Bob Friesenhahn  <[email protected]>
271
272	* CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by
273	Roger Leigh (via tiff mailing list on 2015-08-31.
274
275	CMake reads all version information directly from configure.ac to
276	avoid duplication of values.  This basically greps over the file
277	for the LIBTIFF_* variables, then translates them to the form
278	needed for cmake. This includes the release version and libtool
279	shared library version information.
280
281	Make shared/static library building configurable.  Currently it
282	always builds shared libraries, with static libs having a _static
283	suffix (copying zlib, but it means it's got a non-standard name).
284	CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the
285	other, which is now used instead.  There's now a single "tiff"
286	target to build either shared or static as required, and all the
287	tests and tools are linked with this. Note: the Windows tests fail
288	when linked with a static libtiff (says: libtiff.dll not found).
289	Not really a regression since this was not tested up to this
290	point, and it's likely the unit tests haven't (ever?) been run on
291	Windows with a static libtiff, so there's some additional
292	portability issue here to address.  Works fine on UNIX systems,
293	and fine on Windows with the default to build a DLL.
294
295	Add a missing file which wasn't being distributed, causing unit
296	tests to fail.  Note that "find . -name '*.cmake'" lists all the
297	CMake files which need distributing in addition to all the
298	CMakeLists.txt files (which now are distributed).
299
3002015-08-31  Even Rouault <even.rouault at spatialys.com>
301
302	* libtiff/tif_predict.c: pedantic change to add explicit masking
303	with 0xff before casting to uchar in floating-point horizontal
304	differencing and accumulation routines.
305
3062015-08-31  Even Rouault <even.rouault at spatialys.com>
307
308	* libtiff/tif_predict.c: fix generation of output with 16 bit
309	or 32 bit integer, when byte swapping is needed, in
310	horizontal predictor (#2521). Also fixes decoding when there is
311	a single pixel to code (unlikely case...) and byte swapping is
312	involved.
313
3142015-08-30  Even Rouault <even.rouault at spatialys.com>
315
316	* libtiff/tif_lzw.c: make nextdata a unsigned type to avoid
317	undefined behaviour with shifts (gcc -fsanitize=shift)
318
3192015-08-30  Even Rouault <even.rouault at spatialys.com>
320
321	* libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c:
322	add explicit masking with 0xff before casting
323	to unsigned char (make icc -check=conversions happy)
324
325	* libtiff/tif_predict.c: operate on unsigned datatypes when
326	computing/applying differences to avoid undefined behaviour of
327	signed types (C standard compliance)
328
3292015-08-30  Bob Friesenhahn  <[email protected]>
330
331	* configure.ac: libtiff 4.0.5 released.
332
3332015-08-29  Bob Friesenhahn  <[email protected]>
334
335	* CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing
336	list on 2015-08-29) to add ld-version-script option to cmake build
337	to match autoconf.  Note: defaults to 'on' to be ABI-compatible by
338	default with common Linux distribution builds.  Note that the
339	autoconf configure script defaults to 'off'.
340
341	* html/build.html: Applied patch by Roger Leigh (via tiff mailing
342	list on 2015-08-29) to describe how to use CMake to build libtiff.
343
3442015-08-28  Bob Friesenhahn  <[email protected]>
345
346	* html/v4.0.5.html: Added HTML file describing the changes which
347	will appear in the 4.0.5 release.
348
3492015-08-23  Bob Friesenhahn  <[email protected]>
350
351	* libtiff/tiffiop.h: For MinGW comiles, make sure that build
352	supports necessary __MSVCRT_VERSION__ (at least at least 0x800).
353	Otherwise large files can not be supported for POSIX-style I/O.
354
355	* tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit
356	builds about cast to thandle_t.
357
358	* test/rewrite_tag.c (main): Does not require any arguments.
359
3602015-08-20  Bob Friesenhahn  <[email protected]>
361
362	* tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to
363	fix build issues when using Cmake due to Windows large file
364	changes.
365
3662015-08-18  Bob Friesenhahn  <[email protected]>
367
368	* libtiff/tiffiop.h: First cut at supporting large files under
369	Microsoft Windows using tif_unix.c and the libtiff tools.  This
370	only works if the Windows CDK is new enough to support the APIs
371	used (Visual C++ 2005 or later).  Support for large files is not
372	actually tested yet.
373
3742015-08-15  Bob Friesenhahn  <[email protected]>
375
376	* libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that
377	client_data is initialized to a known value, and to report an
378	error on two memory allocation failures.
379
3802015-08-13  Bob Friesenhahn  <[email protected]>
381
382	* CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx
383	symbol versioning.  Patch was mailed to libtiff list on Thu, 13
384	Aug 2015.
385
3862015-07-04  Bob Friesenhahn  <[email protected]>
387
388	* cmake: Add d suffix to debug libraries with MSVC.  Patch #3 of 3
389	by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20
390	+0100.
391
392	* cmake: Add extra warning flags.  Patch #2 of 3 by Roger Leigh
393	posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
394
395	* cmake: Correct snprintf fallback for VS2015.  Patch #1 of 3 by
396	Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
397
3982015-06-24  Bob Friesenhahn  <[email protected]>
399
400	* CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to
401	libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several
402	corrections to ensure that the autotools build still works were
403	added by me.  I have not yet tested the build using 'cmake' or
404	MSVC with 'nmake'.
405
4062015-06-21  Bob Friesenhahn  <[email protected]>
407
408	* test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG
409	library so only execute if JPEG is available.
410
411	* libtiff 4.0.4 released.
412
413	* configure.ac: Add a HAVE_FOO Automake conditional for each
414	add-on library.
415
416	* test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode
417	requires JPEG support to compile.  Use Automake conditional to
418	only include it when JPEG support is available.
419
420	* html/build.html: Try to improve the nmake-based VC++ build
421	description.
422
423	* libtiff/tiffconf.vc.h: Build fixes based on testing.
424
425	* libtiff/tif_config.vc.h: Build fixes based on testing.
426
427	* libtiff/libtiff.def: TIFFRasterScanline does not exist so remove
428	export for it.
429
4302015-06-20  Bob Friesenhahn  <[email protected]>
431
432	* libtiff/tif_config.vc.h: Make adjustments to match the new
433	definitions that configure produces, including for WIN64.  Still
434	needs to be tested.
435
436	* configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting
437	specifier.  64-bit MinGW supports 'long long' but support for
438	'lld' is not assured by the run-time DLLs and so GCC warns.
439	Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition
440	and printf format specifier to deal with printing values of
441	'size_t' type.  In particular, this was necessary for WIN64.
442	Added a configure test for if the system headers provide 'optarg'
443	(normal case) and block out the many explicit 'extern' statements
444	in the utilities.  This was found to be necessary under Windows
445	when getopt is in a DLL and the symbols are already imported with
446	dllimport via standard header files.
447
448	* test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32
449	and boolean in MinGW build due to including jpeglib.h.
450
451	* test/rewrite_tag.c (main): Fix problem with location of variable
452	declaration.
453
454	* libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs,
455	TIFFReadRGBAImageOriented, TIFFSetCompressionScheme,
456	TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc,
457	TIFFRasterScanline, TIFFSetErrorHandlerExt,
458	TIFFSetWarningHandlerExt, TIFFNumberOfDirectories,
459	TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory,
460	TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by
461	Roger Leigh and justified by use in libtiff tests, documentation,
462	and changelog notes.  Also sorted symbol list and removed
463	duplicate entries.
464
4652015-06-16  Bob Friesenhahn  <[email protected]>
466
467	* libtiff/tif_getimage.c: Fix four Coverity issues related to
468	unintended sign extension.
469
4702015-06-16  Even Rouault <even.rouault at spatialys.com>
471
472	* libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna)
473
4742015-06-14  Lee Howard  <[email protected]>
475
476	* libtiff/tif_unix.c: contribution from Vadim Zeitlin on
477	Bugzilla Bug #2510 fixes several harmless but still annoying
478	warnings
479
480	* configure: contribution from Ludolf Holzheid on Bugzilla
481	Bug #2498.  Adds an option to select the file I/O style on
482	Windows hosts.
483
484	* libtiff/tif_getimage.c: contribution from Gary Cramblitt
485	on Bugzilla Bug #2409.  Correct reading of certain tiled TIFFs.
486
487	* configure, configure.ac: contribution from Marcos H. Woehrmann
488	on Bugzilla Bug #2405.  Correct shell equality operator.
489
490	* tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt
491	on Bugzilla Bug #2401.  Appropriately call glFlush().
492
493	* tools/tiff2pdf.c: change ColorTransform from "0" to "1"
494	following Bugzilla Bug #2150.
495
4962015-06-13  Lee Howard  <[email protected]>
497
498	* libtiff/tif_lzw.c: contribution from Andy Cave - decode
499	files that contain consecutive CODE_CLEAR codes.
500
501	* tools/tiff2pdf.c: contribution from Antti S. Lankila on
502	Bugzilla Bug #2078. Suppress initial output of the header.
503
504	* tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy -
505	Take care in using the return value from snprintf().
506
507	* tools/tiffcrop.c: contribution from Eduardo Robles Elvira -
508	correctly copy the compression tag from the source TIFF.
509
510	* tools/tiff2ps.c: contribution from Eduardo Robles Elvira -
511	correct sizing and scaling problems with output document.
512
5132015-06-10  Bob Friesenhahn  <[email protected]>
514
515	* libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two
516	clean implementations in order to avoid pre-processor hell.  Only
517	one of the implementations is used in a given build.
518
5192015-06-08  Even Rouault <even.rouault at spatialys.com>
520
521	* libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12
522	case
523
5242015-06-07  Bob Friesenhahn  <[email protected]>
525
526	* libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975
527	"Division or modulo by zero".
528	(TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division
529	or modulo by zero".
530	(TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by
531	zero".
532	(TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by
533	zero".
534
535	* libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and
536	715974 "Division or modulo by zero".
537
5382015-05-31  Bob Friesenhahn  <[email protected]>
539
540	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity
541	1134470 "Logically dead code" by making the roll-over check
542	explicit.
543
544	* libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227
545	"Division or modulo by zero".
546	(LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by
547	zero".
548	(LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by
549	zero".
550	(LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by
551	zero".
552
553	* libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix
554	Coverity 298626 "Logically dead code".
555	(TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead
556	code".
557	(TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead
558	code".
559	(TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead
560	code"
561
562	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++
563	operator precedenc in evaluation.  Might quench Coverity 1134470
564	"Logically dead code".
565
566	* libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands
567	don't affect result".  This change uses ifdefs to include
568	applicable code based on properties of libjpeg.  Still needs to be
569	re-tested with 12-bit "6b" and "MK1".
570
5712015-05-30  Bob Friesenhahn  <[email protected]>
572
573	* libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310
574	"Resource leak".
575
576	* libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix
577	Coverity 601720 "Resource leak".
578
579	* libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624
580	"Dereference before null check".
581
582	* libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400
583	"Missing break in switch".
584
585	* contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer
586	size calculation for overflow.
587
588	* contrib/addtiffo/addtiffo.c (main): Possibly address Coverity
589	1024226 "Untrusted value as argument".
590
591	* tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted
592	value as argument".
593	(checksignature): Fix Coverity 1024894 "Ignoring number of bytes
594	read".
595	(readextension): Fix Coverity 1024893 "Ignoring number of bytes
596	read".
597	(readgifimage): Fix Coverity 1024890 "Ignoring number of bytes
598	read".
599	(readraster): Fix Coverity 1024891 "Ignoring number of bytes
600	read".
601	(readgifimage): Fix Coverity 1024892 "Ignoring number of bytes
602	read".
603
604	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181
605	"Structurally dead code".
606
607	* tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return
608	value from library".
609	(guessSize): Fix Coverity 1024888 "Unchecked return value from
610	library".
611	(guessSize): Fix Coverity 1214162 "Ignoring number of bytes read".
612	(guessSize): Fix Coverity 1024889 "Unchecked return value from
613	library".
614
615	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621
616	"Resource leak".
617	(t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead
618	code".
619	(t2p_write_pdf): Fix Coverity 1227690 "Unused value".
620
6212015-05-29  Bob Friesenhahn  <[email protected]>
622
623	* contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468
624	"Infinite loop".
625	(formatIPTC): Fix Coverity 1024727 "Truncated stdio return value".
626	(formatIPTC): Fix Coverity 1214240 "Untrusted loop bound".
627
6282015-05-28  Bob Friesenhahn  <[email protected]>
629
630	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
631	Coverity 298615 "Resource leak".
632	(TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign
633	extension".
634
635	* tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value
636	as argument".
637	(main): Fix Coverity 1024678 "Unchecked return value from
638	library".
639	(main): Fix Coverity 1024679 "Unchecked return value from
640	library".
641	(main): Fix Coverity 1214160 "Ignoring number of bytes read".
642
643	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
644	Coverity 298615 "Resource leak".
645
646	* tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309
647	"Resource leak".
648
649	* tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource
650	leak".
651	(cpStrips): Fix Coverity 1024305 "Resource leak".
652
6532015-05-27  Bob Friesenhahn  <[email protected]>
654
655	* tools/ras2tiff.c: Fix Sun Raster header definition to be safe
656	for 64-bit systems.  Add some header validations.  Should fix many
657	Coverity issues.
658	(main): Fix Coverity 1301206: "Integer handling issues  (BAD_SHIFT)".
659	(main): Quiet Coverity 1024223 "Untrusted value as argument".
660
661	* tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting
662	level does not match indentation".
663	(get_histogram): Quiet Coverity 1024386 "Out-of-bounds read".
664	This was a benign mis-diagnosis but added code to enforce against
665	buffer overflow.
666
667	* tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical
668	vs. bitwise operator".
669	(readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or
670	modulo by zero".
671	(readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead
672	code".
673	(writeSingleSection): Fix Coverity 1024796 "Nesting level does not
674	match indentation".
675	(writeCroppedImage): Fix Coverity 1024797 "Nesting level does not
676	match indentation".
677	(loadImage): Fix Coverity 1299741 "Dereference before null check".
678	(loadImage): Fix Coverity 1299740 "Out-of-bounds write".
679
6802015-03-02  Even Rouault  <[email protected]>
681
682	* tools/tiffdither.c: check memory allocations to avoid writing to
683	NULL pointer. Also check multiplication overflow. Fixes #2501,
684	CVE-2014-8128. Derived from patch by Petr Gajdos.
685
6862015-01-26  Even Rouault  <[email protected]>
687
688	* add html/v4.0.4beta.html under version control
689	* HOWTO-RELEASE: write that cvs add html/vX.X.html must be used
690
6912015-01-26  Even Rouault  <[email protected]>
692
693	* libtiff 4.0.4beta released
694
6952015-01-26  Even Rouault  <[email protected]>
696
697	* automake: updated to 1.15
698	* libtool: updated to 2.4.5
699
7002015-01-22  Even Rouault  <[email protected]>
701
702	* tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
703
7042015-01-05  Frank Warmerdam  <[email protected]>
705
706	* html/bugs.html: remove note about needing to email the tiff mailing
707	list administrator about being approved for membership, this appears
708	not to be true.
709
7102015-01-05  Olivier Paquet  <[email protected]>
711
712	* tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
713
7142015-01-03  Even Rouault  <[email protected]>
715
716	* libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
717	when reading more than 65535 directories, and effectively error out when
718	reaching that limit.
719
7202014-12-29  Even Rouault  <[email protected]>
721
722	* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
723	markers to avoid emitting a warning (even if, according to the TechNote,
724	there are admitedly unusual/not recommended or even forbidden variants, but
725	they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
726	SOF9 and SOF10).
727	Define in_color_space and input_components to the right values in
728	JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
729	libjpeg API documentation, so as to be compatible with mozjpeg library.
730	Note: the default settings of mozjpeg will produce progressive scans, which
731	is forbidden by the TechNote.
732
7332014-12-29  Even Rouault  <[email protected]>
734
735	* libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
736	to avoid buffer leak (fix previous fix, found by Coverity scan)
737
7382014-12-29  Even Rouault  <[email protected]>
739
740	* libtiff/tif_next.c: add new tests to check that we don't read outside of
741	the compressed input stream buffer.
742
743	* libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
744    in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
745    putcontig8bitYCbCr21tile cases.
746
7472014-12-27  Even Rouault  <[email protected]>
748
749	* libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
750	extented tags installed by user code through the extender mechaninm before
751	calling the extender callback (GDAL #5054)
752
7532014-12-26  Bob Friesenhahn  <[email protected]>
754
755	* tools/tiffcrop.c: Fix warnings about variables set but not used.
756
757	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
758	but not used.
759
760	* tools/tiffgt.c: Fix warnings about unused parameters.
761
762	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
763
7642014-12-25  Even Rouault  <[email protected]>
765
766	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
767	various typos found by Debian lintian tool (GDAL #5756)
768
7692014-12-24  Even Rouault  <[email protected]>
770
771	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
772	http://bugzilla.maptools.org/show_bug.cgi?id=2235
773
7742014-12-24  Even Rouault  <[email protected]>
775
776	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
777	http://bugzilla.maptools.org/show_bug.cgi?id=2445
778
7792014-12-24  Even Rouault  <[email protected]>
780
781	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
782	Derived from patch by Petr Gajdos,
783	http://bugzilla.maptools.org/show_bug.cgi?id=2443
784
7852014-12-23  Even Rouault  <[email protected]>
786
787	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
788	of _TIFFFillStriles(). This solves crashing bug on corrupted
789	images generated by afl.
790
7912014-12-23  Even Rouault  <[email protected]>
792
793	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
794	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
795	images generated by afl.
796
7972014-12-21  Bob Friesenhahn  <[email protected]>
798
799	* tools/tiffdump.c: Guard against arithmetic overflow when
800	calculating allocation buffer sizes.
801
8022014-12-21  Even Rouault  <[email protected]>
803
804	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
805	SamplesPerPixel = 3. Enforce that
806	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
807
8082014-12-21  Even Rouault  <[email protected]>
809
810	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
811	copying. The right fix would be to properly copy it, but not worth the burden
812	for those esoteric utilities.
813	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
814
8152014-12-21  Even Rouault  <[email protected]>
816
817	* tools/thumbnail.c: fix out-of-buffer write
818	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
819
8202014-12-21  Even Rouault  <[email protected]>
821
822	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
823	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
824	COMPRESSION_CCITTFAX4
825	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
826
8272014-12-21  Even Rouault  <[email protected]>
828
829	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
830	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
831
8322014-12-21  Even Rouault  <[email protected]>
833
834	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
835	TIFFTAG_SAMPLESPERPIXEL
836
8372014-12-21  Even Rouault  <[email protected]>
838
839	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
840	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
841	Description: fix for Debian bug #741451
842	tiffcp crashes when converting JPEG-encoded TIFF to a different
843	encoding (like none or lzw). For example this will probably fail:
844	tiffcp -c none jpeg_encoded_file.tif output.tif
845	The reason is that when the input file contains JPEG data,
846	the tiffcp code forces conversion to RGB space. However,
847	the output normally inherits YCbCr subsampling parameters
848	from the input, which leads to a smaller working buffer
849	than necessary. The buffer is subsequently overrun inside
850	cpStripToTile() (called from writeBufferToContigTiles).
851	Note that the resulting TIFF file would be scrambled even
852	if tiffcp wouldn't crash, since the output file would contain
853	RGB data intepreted as subsampled YCbCr values.
854	This patch fixes the problem by forcing RGB space on the output
855	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
856	Author: Tomasz Buchert <[email protected]>
857
8582014-12-21  Even Rouault  <[email protected]>
859
860	Fix various crasher bugs on fuzzed images.
861	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
862	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
863	the directory
864	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
865	TransferFunction if BitsPerSample has not yet been read, otherwise reading
866	it later will cause user code to crash if BitsPerSample > 1
867	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
868	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
869	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
870	instead of imagewidth to avoid crash
871	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
872	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
873	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
874	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
875	* tools/tiffdump.c: fix crash due to overflow of entry count.
876
8772014-12-15  Even Rouault  <[email protected]>
878
879	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
880	all tiles/strips to include quantization tables even when the jpegtablesmode
881	had the JPEGTABLESMODE_QUANT bit set.
882	Also add explicit removal of Huffman tables when jpegtablesmode has the
883	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
884	first tile/strip (only useful in update scenarios. create-only was
885	fine)
886
8872014-12-09  Bob Friesenhahn  <[email protected]>
888
889	* tools/tiff2pdf.c: Assure that memory size calculations for
890	_TIFFmalloc() do not overflow the range of tmsize_t.
891
8922014-12-07  Even Rouault  <[email protected]>
893
894	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
895	Valgrind and Address Sanitizer on test suite
896
8972014-12-07  Bob Friesenhahn  <[email protected]>
898
899	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
900	tag can return one channel, with the other two channels set to
901	NULL.  The tiff2pdf code was expecting that other two channels
902	were duplicate pointers in the case where there is only one
903	channel.  Detect this condition in order to avoid a crash, and
904	presumably perform correctly with just one channel.
905
9062014-12-06  Bob Friesenhahn  <[email protected]>
907
908	* tools/tiffdump.c: Fix double-free bug.
909
9102014-11-27  Even Rouault  <[email protected]>
911
912	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
913	Visual Studio 2015 aka VC 14 aka MSVC 1900
914
9152014-11-20  Even Rouault  <[email protected]>
916
917	* libtiff/tif_lzw.c: prevent potential null dereference of
918	sp->dec_codetab in LZWPreDecode (bug #2459)
919
920	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
921	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
922
923	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
924
925	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
926	Coverity happier (not a bug, #2459)
927
928	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
929	(not a bug, #2459)
930
931	* tools/tiff2pdf.c: close PDF file (bug #2479)
932
933	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
934
935	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
936	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
937
938	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
939	(bug #2459) and add missing va_end in dump_info (#2459)
940
941	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
942
9432014-11-20  Even Rouault  <[email protected]>
944	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
945	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
946
9472014-11-20  Even Rouault  <[email protected]>
948	* automake: updated to 1.14.1
949	* libtool: updated to 2.4.3
950	* HOWTO-RELEASE: small update about autotools building order
951
9522014-10-20  Olivier Paquet  <[email protected]>
953	* tools/tiff2pdf.c: Preserve input file directory order when pages
954	are tagged with the same page number.
955
9562014-08-31  Bob Friesenhahn  <[email protected]>
957
958	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
959	count for tag should be a warning rather than an error since
960	errors terminate processing.
961
9622014-06-07  Bob Friesenhahn  <[email protected]>
963
964	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
965	was wrongly described.  Fix suggested by Miguel Medalha.
966
9672014-05-06  Bob Friesenhahn  <[email protected]>
968
969	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
970	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
971	Reviewed and forwarded by Lee Howard.
972
9732013-11-30  Frank Warmerdam  <[email protected]>
974
975	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
976
9772013-10-21  Frank Warmerdam  <[email protected]>
978
979	* libtiff/tif_dir.c: generate error in case of directory count
980	overflow.
981
9822013-10-01  Frank Warmerdam  <[email protected]>
983
984	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
985	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
986
9872013-09-12  Bob Friesenhahn  <[email protected]>
988
989	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
990	be defective, then set it to zero before returning error in order
991	to terminate processing of truncated TIFF.  Issue found and fix
992	suggested by Richard Nolde.
993
9942013-08-14  Frank Warmerdam  <[email protected]>
995
996	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
997
9982013-08-13  Frank Warmerdam  <[email protected]>
999
1000	* tools/gif2tiff.c: Be more careful about corrupt or
1001	hostile input files (#2450, CVE-2013-4231)
1002
1003	* tools/tiff2pdf.c: terminate after failure of allocating
1004	ycbcr buffer (bug #2449, CVE-2013-4232)
1005
10062013-07-09  Frank Warmerdam  <[email protected]>
1007
1008	* tools/tiffinfo.c: Default various values fetched with
1009	TIFFGetField() to avoid being uninitialized.
1010
10112013-05-02  Tom Lane  <[email protected]>
1012
1013	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
1014	t2p_process_jpeg_strip to be at least marginally competent.  The
1015	approach is still fundamentally flawed, but at least now it won't
1016	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
1017
10182013-05-02  Tom Lane  <[email protected]>
1019
1020	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
1021 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
1022 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
1023 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
1024 	large enough, and eliminate substantially all uses of sprintf(buf,
1025 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
1026 	protect against overflow of fixed-size buffers.  This responds in
1027 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
1028 	t2p_write_pdf_page(), but in general it seems like a good idea to
1029 	deprecate use of sprintf().
1030
10312013-03-29  Bob Friesenhahn  <[email protected]>
1032
1033	* configure.ac: Applied patch by Brad Smith to improve pkg-config
1034	static linking by adding -lm to Libs.private when needed.
1035
10362013-03-05  Tom Lane  <[email protected]>
1037
1038	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
1039 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
1040 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
1041 	tools/tiffdither.c: Sync tool usage printouts and man pages with
1042 	reality (quite a few options had escaped being documented in one
1043 	or both places).  Per an old report from Miroslav Vadkerti.
1044
10452013-01-25  Bob Friesenhahn  <[email protected]>
1046
1047	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
1048	rotation angle was set by the auto rotate check, it was retained
1049	for all pages that followed instead ofa being retested for each
1050	page.  Patch by Richard Nolde.
1051
10522013-01-18  Frank Warmerdam  <[email protected]>
1053
1054	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
1055	64bit linux.
1056
1057	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
1058	http://bugzilla.maptools.org/show_bug.cgi?id=2427
1059
10602012-12-20  Tom Lane  <[email protected]>
1061
1062	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
1063	it will pass with more versions of libjpeg.  (There are at least
1064	three in active use now, and JPEG_LIB_VERSION doesn't tell us
1065	enough to uniquely identify expected results.)
1066
10672012-12-12  Tom Lane  <[email protected]>
1068
1069	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
1070	field_passcount fields: it had the TIFF_VARIABLE and
1071	TIFF_VARIABLE2 cases backwards.
1072
10732012-12-10  Tom Lane  <[email protected]>
1074
1075	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
1076 	check the linebytes calculation too, get the max() calculation
1077 	straight, avoid redundant error messages, check for malloc
1078 	failure.
1079
10802012-12-10  Tom Lane  <[email protected]>
1081
1082	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
1083 	(to enlarge tbuf for possible partial stride at end) so that
1084 	overflow in the integer addition is detected.  Per gripe from
1085 	Huzaifa Sidhpurwala.
1086
10872012-12-03  Bob Friesenhahn  <[email protected]>
1088
1089	* tools/tiffset.c: tiffset now supports a -u option to unset a
1090	tag.  Patch by Zach Baker. See
1091	http://bugzilla.maptools.org/show_bug.cgi?id=2419
1092
10932012-11-18  Bob Friesenhahn  <[email protected]>
1094
1095	* automake: Update Automake to 1.12.5 release.
1096
1097	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
1098	require malloc() to return NULL pointer if requested allocation
1099	size is zero.  Assure that _TIFFmalloc does.
1100
11012012-11-01  Frank Warmerdam  <[email protected]>
1102
1103	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
1104	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
1105	Red Hat Security Response team for the fix.
1106
11072012-10-18  Frank Warmerdam  <[email protected]>
1108
1109	* tif_zip.c: Avoid crash on NULL error messages.
1110
11112012-09-22  Bob Friesenhahn  <[email protected]>
1112
1113	* libtiff 4.0.3 released.
1114
11152012-09-20  Bob Friesenhahn  <[email protected]>
1116
1117	* Makefile.am: Update to Automake 1.12.4
1118
11192012-08-19  Bob Friesenhahn  <[email protected]>
1120
1121	* Makefile.in: Update to Automake 1.12.3
1122
1123	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
1124	some TIFF/FX support in libtiff.  Add the tag definitions to
1125	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
1126	and also fixes an error in a comment.  Adds the photometric values
1127	to tif_print.c, and fixes a bug.  These changes are by Steve
1128	Underwood.
1129
11302012-08-13  Frank Warmerdam  <[email protected]>
1131
1132	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
1133	compressed file: http://trac.osgeo.org/gdal/ticket/4771
1134
11352012-08-02  Frank Warmerdam  <[email protected]>
1136
1137	* libtiff/tif_dirread.c: report error in case of mismatch value
1138	counts for tags (ie. DotRange).
1139
11402012-07-26  Tom Lane  <[email protected]>
1141
1142	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
1143 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
1144	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
1145	as external accessors for the opaque type TIFFField.
1146
1147	* tools/tiffset.c: Make tiffset use the above functions instead of
1148	relying on library private headers.
1149
11502012-07-19  Tom Lane  <[email protected]>
1151
1152	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
1153	after a malloc failure.  No crash risk AFAICS, but the program
1154	might not report exit code 1 as desired.  h/t [email protected]
1155
11562012-07-18  Tom Lane  <[email protected]>
1157
1158	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
1159	prevents core dumps or perhaps even arbitrary code execution when
1160	processing a corrupt input file (CVE-2012-3401).
1161
11622012-07-06  Bob Friesenhahn  <[email protected]>
1163
1164	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
1165	IJG JPEG 7+ uses a different upsampling algorithm which produces
1166	different numeric results.
1167
1168	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
1169	work with IJG JPEG 7+.
1170
11712012-07-04  Bob Friesenhahn  <[email protected]>
1172
1173	* test/raw_decode.c: Add changes so that test can run with build
1174	directory outside of source directory.
1175
11762012-07-02  Frank Warmerdam  <[email protected]>
1177
1178	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
1179	imagery (http://trac.osgeo.org/gdal/ticket/4732)
1180
11812012-06-20  Frank Warmerdam  <[email protected]>
1182
1183	* libtiff/tif_fax3.c: fix memory initialization of runs, only
1184	partly done.
1185
1186	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
1187	full "stride" past the end.
1188
11892012-06-19  Frank Warmerdam  <[email protected]>
1190
1191	* libtiff/tif_packbits.c: fix read past end of data buffer.
1192
11932012-06-15  Frank Warmerdam  <[email protected]>
1194
1195	*  libtiff 4.0.2 released.
1196
1197	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
1198	warnings with clang.
1199
12002012-06-15  Tom Lane  <[email protected]>
1201
1202	* tools/tiff2pdf.c: Defend against integer overflows while
1203	calculating required buffer sizes (CVE-2012-2113).
1204
12052012-06-12  Frank Warmerdam  <[email protected]>
1206
1207	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
1208
1209	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
1210
12112012-06-07  Frank Warmerdam  <[email protected]>
1212
1213	* libtiff/tif_print.c: avoid pretty printing other fields when
1214	we don't have the proper amount and type of data or if the field
1215	is actually autodefined.
1216
12172012-06-05  Frank Warmerdam  <[email protected]>
1218
1219	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
1220	ycbcrsubsampling values result in a runtime error, not just an
1221	assertion.
1222
1223	* tests/custom_dir.c: Add testing of EXIF and custom directory
1224	reading and writing.
1225
1226	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
1227	and TIFFCreateEXIFDirectory() functions.
1228
1229	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
1230	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
1231	differently.  This is to avoid using special TIFFGetField/TIFFSetField
1232	rules for these fields in non-image directories (like EXIF).
1233
12342012-06-04  Frank Warmerdam  <[email protected]>
1235
1236	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
1237	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
1238	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
1239
12402012-06-01  Frank Warmerdam  <[email protected]>
1241
1242	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
1243
1244	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
1245	http://bugzilla.maptools.org/show_bug.cgi?id=2379
1246
1247	* libtiff/tif_unix.c: use strerror() to return a more specific error message
1248	on failed open.
1249	http://bugzilla.maptools.org/show_bug.cgi?id=2341
1250
1251	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
1252	http://bugzilla.maptools.org/show_bug.cgi?id=2386
1253
1254	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
1255	for testing jpeg in tiff image decoding including the "raw" decode interface.
1256
12572012-05-31  Frank Warmerdam  <[email protected]>
1258
1259	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
1260	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
1261	sampling values.
1262
1263	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
1264
1265	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
1266	http://bugzilla.maptools.org/show_bug.cgi?id=2398
1267
12682012-05-29  Frank Warmerdam  <[email protected]>
1269
1270	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
1271	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
1272	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
1273	to get/set functions for different tags!
1274
1275	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
1276	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
1277
12782012-05-24  Frank Warmerdam  <[email protected]>
1279
1280	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
1281	accumulate" and overwrite the end by one word in at least some cases.
1282
12832012-05-23  Frank Warmerdam  <[email protected]>
1284
1285	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
1286
1287	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
1288
1289	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
1290	the same image.
1291
1292	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
1293	stripbytecounts or stripoffsets or where loading these fails.
1294
1295	* libtiff/tif_print.c: be careful about whether min/max values are singular
1296	or one per sample.
1297
1298	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
1299	May affect things like ISOSpeedRatings.
1300
1301	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
1302	in some cases.
1303
13042012-05-19  Bob Friesenhahn  <[email protected]>
1305
1306	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
1307	example for how to retreive the value of unsupported tags.
1308
13092012-03-30  Frank Warmerdam  <[email protected]>
1310
1311	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
1312	care of Tom Lane @ Red Hat.
1313
13142012-02-18  Bob Friesenhahn  <[email protected]>
1315
1316	* libtiff 4.0.1 released.
1317
1318	* Update automake used to 1.11.3.
1319
1320	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
1321	attribute specification to lessen the risk of accidental macro
1322	substitution.  Patch from Vincent Torri.
1323
13242012-01-31  Frank Warmerdam  <[email protected]>
1325
1326	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
1327	assumption tag fetching is always successful.
1328
1329	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
1330
13312012-01-22  Bob Friesenhahn  <[email protected]>
1332
1333	* configure.ac: Add support for using library symbol versioning on
1334	ELF systems with the GNU linker.  Support is enabled via
1335	--enable-ld-version-script.  Disabled by default for now until
1336	there is a decision for how to deploy a libtiff with versioned
1337	symbols after libtiff 4.0.0 was already released.
1338
13392011-12-22  Bob Friesenhahn  <[email protected]>
1340
1341	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
1342
1343	tif_win32.c.  Patch by Edward Lam.
1344
1345	* configure.ac: Add libtiff private dependency on -llzma for
1346	pkg-config.  Patch by Mark Brand.
1347	Updated Automake to 1.11.2.
1348
13492011-12-21  Bob Friesenhahn  <[email protected]>
1350
1351	* libtiff 4.0.0 released.
1352
13532011-12-08  Frank Warmerdam  <[email protected]>
1354
1355	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
1356	of _TIFFFillStriles() results (#gdal 4372)
1357
13582011-12-07  Frank Warmerdam  <[email protected]>
1359
1360	* libtiff/tif_dirread.c: fixes to deal with invalid files where
1361	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
1362
1363	* libtiff/tif_dirread.c: fix error reporting when there is no
1364	tag information struct and name (gdal #4373)
1365
13662011-10-22  Bob Friesenhahn  <[email protected]>
1367
1368	* Update GNU libtool to 2.4.2.
1369
1370	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
1371	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
1372	Deroulers.
1373
13742011-06-21  Frank Warmerdam  <[email protected]>
1375
1376	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
1377
13782011-05-31  Jim Meyering  <[email protected]>
1379
1380	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
1381	upon failure to allocate "resizeddata".
1382	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
1383	allocation failure, not before.
1384	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
1385	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
1386	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
1387	NULL-deref and possible overflow
1388	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
1389	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
1390	and set of otherwise unused local, data_is_empty.
1391	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
1392	Diagnose out-of-memory failure and return 0 rather than
1393	dereferencing NULL.
1394
13952011-05-24  Frank Warmerdam  <[email protected]>
1396
1397	* libtiff/tif_dirread.c: produce special error message for zero tag
1398	directories instead of error out on the malloc(0) failure.
1399
14002011-05-16  Frank Warmerdam  <[email protected]>
1401
1402	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
1403	related declarations as they are in active use by libraries
1404	such as libgeotiff, and work just fine.  (#2315)
1405
14062011-04-20  Frank Warmerdam  <[email protected]>
1407
1408	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
1409	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
1410	http://bugzilla.maptools.org/show_bug.cgi?id=2315
1411
1412	* libtiff/libtiff.def: add some missing (64bit) APIs.
1413	http://bugzilla.maptools.org/show_bug.cgi?id=2316
1414
14152011-04-09  Bob Friesenhahn  <[email protected]>
1416
1417	* libtiff 4.0.0beta7 released.
1418
14192011-04-09  Bob Friesenhahn  <[email protected]>
1420
1421	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
1422	the run-time target whereas target is used to specify the final
1423	output target if the package is a build tool (like a compiler),
1424	which libtiff is not.  Resolves libtiff bug 2307 "Use
1425	AC_CANONICAL_HOST macro".
1426
14272011-04-02  Bob Friesenhahn  <[email protected]>
1428
1429	* configure.ac: Support configuring TIFF_INT64_FORMAT and
1430	TIFF_UINT64_FORMAT appropriately for MinGW32.
1431
1432	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
1433	printf conventions for 64-bit types because it uses the WIN32 CRT.
1434
1435	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
1436	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
1437	printf conventions for 64-bit types because it uses the WIN32 CRT.
1438
1439	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
1440	understood by WIN32 CRT.
1441
1442	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
1443
1444	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
1445	it is much more portable.  Tmpfile is included in ISO/IEC
1446	9899:1990 and the WIN32 CRT.
1447
14482011-03-26  Frank Warmerdam  <[email protected]>
1449
1450	* tools/tiffset.c: add -d and -sd switches to allow operation on
1451	a particular directory, not just the first (jef).
1452
14532011-03-21  Frank Warmerdam  <[email protected]>
1454
1455	* libtiff/tif_thunder.c: Correct potential buffer overflow with
1456	thunder encoded files with wrong bitspersample set.  The libtiff
1457	development team would like to thank Marin Barbella and TippingPoint's
1458	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
1459	CVE-2011-1167).
1460	http://bugzilla.maptools.org/show_bug.cgi?id=2300
1461
14622011-03-10  Frank Warmerdam  <[email protected]>
1463
1464	* libtiff/tif_fax3.h: Fix to last change allowing zero length
1465	runs at the start of a scanline - needed for legal cases.
1466
14672011-03-02  Frank Warmerdam  <[email protected]>
1468
1469	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
1470	a move left.  Without this, a malicious input file can generate an
1471	indefinitely large series of runs without a0 ever reaching the right
1472	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
1473	This is a modified version of a patch proposed by Drew Yao of Apple
1474	Product Security.  It adds an unexpected() report, and disallows the
1475	equality case, since emitting a run without increasing a0 still allows
1476	buffer overrun.
1477
14782011-02-23  Frank Warmerdam  <[email protected]>
1479
1480	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
1481
1482	* tools/tiff2rgba.c: close source file on error to make leak
1483	detection easier.
1484
1485	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
1486
1487	http://bugzilla.maptools.org/show_bug.cgi?id=2295
1488
14892011-02-22  Frank Warmerdam  <[email protected]>
1490
1491	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
1492	_SUPPORT)
1493
14942011-02-18  Frank Warmerdam  <[email protected]>
1495
1496	* configure.ac, configure: Added support for --enable-chunky-strip-read
1497	configure option to enable the experimental feature from a couple
1498	months ago for reading big strips in chunks.
1499
1500	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
1501	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
1502	Implement optional support for deferring the load of strip/tile
1503	offset and size tags for optimized scanning of directories.  Enabled
1504	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
1505	#define in tif_config.h).
1506
15072011-02-11  Frank Warmerdam  <[email protected]>
1508
1509	* libtiff/tif_print.c: remove unused variable.
1510
15112011-02-09  Frank Warmerdam  <[email protected]>
1512
1513	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
1514	with non-console (popup message) builds on win32.
1515
1516	http://bugzilla.maptools.org/show_bug.cgi?id=2293
1517
15182011-01-24  Olivier Paquet  <[email protected]>
1519
1520	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
1521	tif_print.c, tiff.h, tiffiop.h} : Added support for
1522	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
1523	values for each sample. Presents the min/max of all samples by default for
1524	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
1525	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
1526	http://www.asmail.be/msg0055458208.html
1527
15282011-01-06  Frank Warmerdam  <[email protected]>
1529
1530	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
1531	maintained.
1532
1533	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
1534	for CHUNKY_STRIP_READ_SUPPORT.
1535
1536	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
1537	during JPEGPreDecode and JPEGDecode calls.
1538	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
1539	as compression formats like JPEG keep 16 lines interleaved in a sense
1540	and might need to touch	quite a bit of data.
1541
1542	http://trac.osgeo.org/gdal/ticket/3894
1543
15442011-01-03  Lee Howard <[email protected]>
1545
1546	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
1547	caused by commit on 2010-12-14.  Submitted by e-mail from
1548	Even Rouault <[email protected]>
1549
15502010-12-31  Olivier Paquet  <[email protected]>
1551
1552	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
1553	http://bugzilla.maptools.org/show_bug.cgi?id=2266
1554
15552010-12-23  Andrey Kiselev  <[email protected]>
1556
1557	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
1558	compression level parameter (preset) for Deflate and LZMA encoders,
1559	e.g "-c lzma:p1" or "-c zip:p9".
1560
1561	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
1562	(preset) in LZMAVSetField().
1563
15642010-12-18  Bob Friesenhahn  <[email protected]>
1565
1566	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
1567	Makefile.
1568
15692010-12-14  Andrey Kiselev  <[email protected]>
1570
1571	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
1572	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
1573	TIFF compression scheme LZMA reserving a new value 34925 for
1574	Compression tag. As per
1575	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
1576
15772010-12-14  Lee Howard <[email protected]>
1578
1579	* libtiff/tif_dirread.c: tolerate some cases where
1580	FIELD_COLORMAP is missing
1581	http://bugzilla.maptools.org/show_bug.cgi?id=2189
1582
15832010-12-14  Lee Howard <[email protected]>
1584
1585	* libtiff/tif_read.c: change read_ahead to tmsize_t
1586	http://bugzilla.maptools.org/show_bug.cgi?id=2222
1587
15882010-12-14  Lee Howard <[email protected]>
1589
1590	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
1591	Windows except on Cygwin
1592	http://bugzilla.maptools.org/show_bug.cgi?id=2224
1593
15942010-12-14  Lee Howard <[email protected]>
1595
1596	* tools/gif2tiff.c: fix buffer overrun
1597	http://bugzilla.maptools.org/show_bug.cgi?id=2270
1598
15992010-12-14  Lee Howard <[email protected]>
1600
1601	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
1602	to improve compatibility with various viewers
1603	submitted by e-mail from Dwight Kelly <[email protected]>
1604
16052010-12-13  Lee Howard <[email protected]>
1606
1607	* tools/fax2ps.c: be consistent with page-numbering
1608	http://bugzilla.maptools.org/show_bug.cgi?id=2225
1609
16102010-12-13  Lee Howard <[email protected]>
1611
1612	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
1613	resolves CVE-2010-2595
1614	http://bugzilla.maptools.org/show_bug.cgi?id=2208
1615
16162010-12-13  Lee Howard <[email protected]>
1617
1618	* tools/tiffcrop.c: new release by Richard Nolde
1619	http://bugzilla.maptools.org/show_bug.cgi?id=2004
1620
16212010-12-12  Lee Howard <[email protected]>
1622
1623	* tools/tiff2pdf.c: fix colors for images with RGBA
1624	interleaved data
1625	http://bugzilla.maptools.org/show_bug.cgi?id=2250
1626
16272010-12-12  Lee Howard <[email protected]>
1628
1629	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
1630	http://bugzilla.maptools.org/show_bug.cgi?id=2164
1631
16322010-12-11  Lee Howard <[email protected]>
1633
1634	* tools/tiff2pdf.c: remove invalid duplication for Lab
1635	http://bugzilla.maptools.org/show_bug.cgi?id=2162
1636
16372010-12-11  Lee Howard <[email protected]>
1638
1639	* libtiff/tif_jpeg.c: fix use of clumplines calculation
1640	http://bugzilla.maptools.org/show_bug.cgi?id=2149
1641
16422010-12-11  Lee Howard <[email protected]>
1643
1644	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
1645	http://bugzilla.maptools.org/show_bug.cgi?id=2118
1646
16472010-12-11  Lee Howard <[email protected]>
1648
1649	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
1650	  libtiff/tif_zip.c: fix build errors for VC6
1651	http://bugzilla.maptools.org/show_bug.cgi?id=2105
1652
16532010-12-11  Lee Howard <[email protected]>
1654
1655	* libtiff/tif_stream.cxx: warnings cleanup
1656	http://bugzilla.maptools.org/show_bug.cgi?id=2091
1657	* libtiff/tif_dirread.c: warnings cleanup
1658	http://bugzilla.maptools.org/show_bug.cgi?id=2092
1659
16602010-12-11  Lee Howard <[email protected]>
1661
1662	* tools/tiff2pdf.c: add fill-page option
1663	http://bugzilla.maptools.org/show_bug.cgi?id=2051
1664
16652010-12-11  Lee Howard <[email protected]>
1666
1667	* libtiff/tif_dirread.c: modify warnings
1668	http://bugzilla.maptools.org/show_bug.cgi?id=2016
1669
16702010-12-11  Lee Howard <[email protected]>
1671
1672	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
1673        http://bugzilla.maptools.org/show_bug.cgi?id=1999
1674
16752010-12-11  Lee Howard <[email protected]>
1676
1677	* tools/tiffinfoce.c: strip byte counts are uint64* now
1678
16792010-12-11  Lee Howard <[email protected]>
1680
1681        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
1682        or missing byte-count tag
1683        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
1684        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
1685
16862010-12-08  Lee Howard <[email protected]>
1687
1688        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
1689        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
1690
16912010-12-06  Lee Howard <[email protected]>
1692
1693        * libtiff/tif_open.c: Fix mode check before opening a file.
1694        http://bugzilla.maptools.org/show_bug.cgi?id=1906
1695
16962010-11-27  Bob Friesenhahn  <[email protected]>
1697
1698	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
1699	Patch by Vincent Torri.
1700
17012010-10-21  Frank Warmerdam  <[email protected]>
1702
1703	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
1704
1705	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
1706
1707	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
1708
17092010-09-25  Lee Howard <[email protected]>
1710
1711	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
1712	with additional command line options for Document Title,
1713	Document Creator, and Page Orientation
1714
17152010-07-13  Bob Friesenhahn  <[email protected]>
1716
1717	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
1718	potentially unterminated buffer due to using an exceptionally long
1719	file name.
1720
17212010-07-08  Andrey Kiselev  <[email protected]>
1722
1723	* tools/tiff2pdf.c: Fixed ID buffer filling in
1724	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
1725
17262010-07-07  Andrey Kiselev  <[email protected]>
1727
1728	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
1729	to expected value as the warning message suggests. As per bug
1730	http://bugzilla.maptools.org/show_bug.cgi?id=1963
1731
17322010-07-06  Andrey Kiselev  <[email protected]>
1733
1734	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
1735	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
1736	which should be set by value.
1737
1738	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
1739	and _TIFFFieldWithName() if the tag is not found in the tag table.
1740	This should be normal situation and returned NULL value should be
1741	properly handled by the caller.
1742
17432010-07-02  Andrey Kiselev  <[email protected]>
1744
1745	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
1746	integer type conversions. As per bug
1747	http://bugzilla.maptools.org/show_bug.cgi?id=2207
1748
1749	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
1750	WhitePoint tag as per bug
1751	http://bugzilla.maptools.org/show_bug.cgi?id=2042
1752
1753	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1754	working with YCbCr image in PickContigCase(). As per bug
1755	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1756
1757	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1758	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1759	we don't need any post-processing. That helps to reset the hook if we
1760	previously set this field to some other value and the hook was
1761	initialized accordingly. As per bug
1762	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1763
17642010-07-01  Andrey Kiselev  <[email protected]>
1765
1766	* tools/tiffgt.c: Properly check the raster buffer allocations for
1767	integer overflows. As per bug
1768	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1769
1770	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1771	upstream.
1772
1773	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1774	multiply_32() and multiply_64() functions into tif_aux.c file and
1775	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1776
17772010-06-30  Andrey Kiselev  <[email protected]>
1778
1779	* tools/tiff2pdf.c: Better generation of ID field in
1780	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1781
1782	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1783	converting JPEG encoded tiles.
1784
1785	* tools/tiff2pdf.c: Better handling of string fields, use static
1786	string buffers instead of dynamically allocated, use strncpy() instead
1787	of strcpy(), control the string lengths.
1788
17892010-06-25  Andrey Kiselev  <[email protected]>
1790
1791	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1792	referencing to uninitialized memory in some cases (e.g. when tile size
1793	set bigger than the image size).
1794
17952010-06-15  Bob Friesenhahn  <[email protected]>
1796
1797	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1798	subsampled data since tiffcrop currently doesn't support it.  Fix
1799	JPEG support.
1800
18012010-06-13  Frank Warmerdam  <[email protected]>
1802
1803	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1804
1805	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1806	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1807	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1808	size is larger.  Also, there are a bunch of places that try to
1809	memset() a malloc'd buffer before checking for malloc failure, which
1810	would result in core dump if there actually were a failure. (#2211)
1811
18122010-06-11  Bob Friesenhahn  <[email protected]>
1813
1814	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1815	avoid compiler warnings if parameter types are not sign
1816	consistent.
1817
1818	* libtiff 4.0.0alpha6 released.
1819
1820	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1821	European page size dimensions.  Added an option to allow the user
1822	to specify a custom page size on the command line.  Fix the case
1823	where a page size specified with a fractional part was being
1824	coerced to an integer by retyping the variables that define the
1825	paper size.
1826
1827	* html/index.html: Update for the 3.9.3 release.
1828
1829	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1830	YCbCr subsampled data since tiffcp currently doesn't support it.
1831	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1832
1833	* Update libtool to version 2.2.10.
1834
18352010-06-10  Bob Friesenhahn  <[email protected]>
1836
1837	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1838	multiplier is zero.
1839
18402010-06-09  Bob Friesenhahn  <[email protected]>
1841
1842	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1843	CVE-2010-1411 was not complete.
1844
1845	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1846	multiply two integers.  Returns zero if there is an integer
1847	overflow.
1848
1849	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1850	is reported when reading the input file.
1851
18522010-06-08  Bob Friesenhahn  <[email protected]>
1853
1854	* Update libtool to version 2.2.8.
1855
1856	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1857	buffer due to integer overflow in TIFFroundup() and several other
1858	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1859	fixes CVE-2010-1411.
1860
1861	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1862	result in an integer overflow. This causes TIFFroundup() to also
1863	return zero if there would be an integer overflow.
1864
1865	* contrib: Add an emacs formatting mode footer to all source files
1866	so that emacs can be effectively used.
1867
18682010-06-03  Oliver Chen Feng <[email protected]>
1869
1870	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1871	file PAGENUMBER value in sequence for users who care the page
1872	sequence, this will also prevent tiff2pdf from creating pdf file from
1873	the merged tiff file with wrong page sequence.
1874
18752010-05-08  Olivier Paquet  <[email protected]>
1876
1877	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1878	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1879	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1880	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1881	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1882
18832010-05-07  Frank Warmerdam  <[email protected]>
1884
1885	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1886	JPEGPreEncode(), not just when we want to output local tables.
1887	Otherwise the quality used during compression may not be right and
1888	might not match the tables in the tables tag.   This bug only occurs
1889	when seeking between directories in the midst of writing blocks.
1890	http://trac.osgeo.org/gdal/ticket/3539
1891
18922010-05-06  Andrey Kiselev  <[email protected]>
1893
1894	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1895	Regenerated from the source.
1896
18972010-05-05  Olivier Paquet  <[email protected]>
1898
1899	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1900	had stopped working. Also made it always print 6 floats instead of
1901	2*SamplesPerPixel.
1902	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1903	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1904	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1905	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1906
19072010-05-05  Frank Warmerdam  <[email protected]>
1908
1909	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1910	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1911
19122010-04-21  Frank Warmerdam  <[email protected]>
1913
1914	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1915	JPEGSetupEncode() is called if the tables already seem to be
1916	established.  This prevents spurious updates and rewriting of
1917	directories with jpegtables when doing updates to existing images.
1918	http://trac.osgeo.org/gdal/ticket/3539
1919
19202010-04-20  Olivier Paquet  <[email protected]>
1921
1922	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1923	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1924	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1925	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1926	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1927
19282010-04-10  Bob Friesenhahn  <[email protected]>
1929
1930	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
1931	when the tag count value is zero.  Error handling is still a
1932	regression since in 3.9.2, empty tags are skipped (with a warning)
1933	rather than returning a hard error and refusing to read the file.
1934
1935	* tools/ppm2tiff.c (main): While case for parsing comment line
1936	requires extra parenthesis to work as expected.  Reported by
1937	Thomas Sinclair.
1938
19392010-04-02  Frank Warmerdam  <[email protected]>
1940
1941	* libtiff/tif_read.c (primarily): Add support for
1942	CHUNKY_STRIP_READ_SUPPORT where large strips are
1943	read in chunks for applications using TIFFReadScanline().
1944	This is intended to make it more practical work with very
1945	large compressed one-strip files.   Feature is off by default.
1946	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
1947	http://trac.osgeo.org/gdal/ticket/3514
1948
19492010-03-31  Frank Warmerdam  <[email protected]>
1950
1951	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
1952	directories so previously placed directories will be migrated to
1953	the end of file if needed.
1954
19552010-03-30  Frank Warmerdam  <[email protected]>
1956
1957	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
1958	to support operating on strips/tiles of more than 256MB.
1959	http://trac.osgeo.org/gdal/ticket/3512
1960
19612010-03-10  Bob Friesenhahn  <[email protected]>
1962
1963	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
1964	that it is clearly a memory allocation error message, and also
1965	includes the size of the allocation request.
1966
19672010-02-22  Lee Howard  <[email protected]>
1968
1969	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
1970	the JPEG TIFF as is is not required in order to prevent it from
1971	being unused and filled with invalid data.  (Leave it to be
1972	generated by later activity.)
1973	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1974	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
1975	data rather than skipping them.  This fixes the ability to view in
1976	Acrobat Reader, Evince, and Ghostscript.
1977	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1978	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
1979	strips.
1980	http://bugzilla.maptools.org/show_bug.cgi?id=2029
1981
19822009-12-03  Frank Warmerdam  <[email protected]>
1983
1984	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
1985	Made so that when working with downsampled images a stub function
1986	reporting an error is used for tif_decoderow.  We cannot meaningfully
1987	support reading scanlines in this situation.  (#1936)
1988
1989	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
1990	resetting of the upsampling values (gdal:#3259).
1991	http://bugzilla.maptools.org/show_bug.cgi?id=1936
1992
19932009-11-30  Frank Warmerdam  <[email protected]>
1994
1995	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
1996	tools/ras2tiff.c: Fix resource leaks on error.
1997	http://bugzilla.maptools.org/show_bug.cgi?id=2121
1998
1999	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
2000	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
2001	of as a custom(generic) field to avoid a potential reentrancy problem.
2002	http://bugzilla.maptools.org/show_bug.cgi?id=2125
2003
2004	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
2005	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
2006	const, and display_sRGB static and const.
2007	http://bugzilla.maptools.org/show_bug.cgi?id=2124
2008
20092009-11-04  Bob Friesenhahn  <[email protected]>
2010
2011	* libtiff 4.0.0alpha5 released.
2012
20132009-11-03  Bob Friesenhahn  <[email protected]>
2014
2015	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
2016	version has undergone substantial testing with arbitrary sample
2017	bit depths.  Also eliminates GCC compilation warnings.
2018
20192009-11-02  Bob Friesenhahn  <[email protected]>
2020
2021	* port/libport.h: Add extern declarations for getopt standard
2022	globals.
2023
20242009-10-31  Bob Friesenhahn  <[email protected]>
2025
2026	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
2027	noticed in 64-bit build of libtiff with Visual Studio 2005.
2028	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
2029	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
2030
2031	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
2032	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
2033	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
2034	http://bugzilla.maptools.org/show_bug.cgi?id=2068
2035
20362009-10-29  Bob Friesenhahn  <[email protected]>
2037
2038	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
2039	pointer" warnings.
2040
20412009-10-28  Bob Friesenhahn  <[email protected]>
2042
2043	* html/tools.html: Add manual page links, and a summary
2044	description of tiffcrop.
2045
20462009-10-07  Bob Friesenhahn  <[email protected]>
2047
2048	* configure.ac: x86_64 should use the same fill order as i386.
2049
20502009-09-24  Bob Friesenhahn  <[email protected]>
2051
2052	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
2053	Nolde.  Major updates to add significant functionality for reading
2054	and writing tile based images with bit depths not a multiple of 8
2055	which cannot be handled by tiffcp.
2056
20572009-09-03  Bob Friesenhahn  <[email protected]>
2058
2059	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
2060	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
2061	"Bug 2090 - OJPEG crash with libjpeg v7".
2062	http://bugzilla.maptools.org/show_bug.cgi?id=2090
2063
20642009-09-03  Frank Warmerdam  <[email protected]>
2065
2066	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
2067	interface when stoponerror is set.
2068	http://bugzilla.maptools.org/show_bug.cgi?id=2071
2069
20702009-08-30  Bob Friesenhahn  <[email protected]>
2071
2072	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
2073	fix build with gcc when using the "-Wformat
2074	-Werror=format-security" flags.
2075
20762009-08-29  Bob Friesenhahn  <[email protected]>
2077
2078	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
2079	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
2080	utilities tests.
2081
20822009-08-28  Bob Friesenhahn  <[email protected]>
2083
2084	* tools/tiffinfo.c: tiffinfo should return error status to the
2085	caller.  Register a private error callback to accomplish that.
2086
2087	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
2088	PNM formats so that we will be able to test more of the tools.
2089	While adding these test images I notice that bmp2tiff and gif2tiff
2090	only support ancient versions of their respective formats.
2091
20922009-08-27  Bob Friesenhahn  <[email protected]>
2093
2094	* libtiff 4.0.0alpha4 released.
2095
2096	* HOWTO-RELEASE: Improved release instructions.
2097
20982009-08-24  Bob Friesenhahn  <[email protected]>
2099
2100	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
2101	fixes for "Bug 2023 - nroff errors in manual pages".
2102	http://bugzilla.maptools.org/show_bug.cgi?id=2023
2103
2104	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
2105	CVE-2009-2347 libtiff: integer overflows in various inter-color
2106	space conversion tools".
2107	http://bugzilla.maptools.org/show_bug.cgi?id=2079
2108
2109	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
2110	Berkenbilt for "Bug 2024 - possible null pointer dereference with
2111	one-line fix".
2112	http://bugzilla.maptools.org/show_bug.cgi?id=2024
2113
2114	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
2115	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
2116	segfault after setting tdir_tag = IGNORE".
2117	http://bugzilla.maptools.org/show_bug.cgi?id=1895
2118
21192009-08-23  Bob Friesenhahn  <[email protected]>
2120
2121	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
2122	tiffcrop.sh into a collection of many specific tests.  Re-wrote
2123	all of the existing tests to be based on some simple shell
2124	functions.  Make distcheck works again.
2125
2126	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
2127	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
2128	tests under valgrind.
2129
21302009-08-21  Bob Friesenhahn  <[email protected]>
2131
2132	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
2133	build.
2134
2135	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
2136	actually activated since it needed to be enabled in this
2137	Makefile.am.  Also activated parallel-tests mode since it offers
2138	useful features such as per-test .log files and a summary test
2139	report .log file.
2140
21412009-08-20  Bob Friesenhahn  <[email protected]>
2142
2143	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
2144	libtool 2.2.6.  Enabled support for silent build rules
2145	(--enable-silent-rules or 'make V=0') and colorized tests.
2146
2147	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
2148
21492009-06-30  Frank Warmerdam  <[email protected]>
2150
2151	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
2152
2153	* tools/tiffcp.c: add -c sgilog support.
2154
2155	* libtiff/tif_luv.c: correct return codes from encoderow to be
2156	1 on success instead of zero.
2157	http://bugzilla.maptools.org/show_bug.cgi?id=2069
2158
2159	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
2160	#1085 for a better underflow fix that errors properly.
2161	http://bugzilla.maptools.org/show_bug.cgi?id=2065
2162	http://bugzilla.maptools.org/show_bug.cgi?id=1985
2163
21642009-06-26  Frank Warmerdam  <[email protected]>
2165
2166	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
2167	fails on oddly sized 12bit jpeg compressed ycbcr images.
2168
21692009-06-22  Frank Warmerdam  <[email protected]>
2170
2171	* libtiff/tif_lzw.c: Fix buffer underflow bug.
2172	http://bugzilla.maptools.org/show_bug.cgi?id=2065
2173
21742009-06-21  Frank Warmerdam  <[email protected]>
2175
2176	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
2177	for dual mode 8/12 bit jpeg support.
2178
21792009-06-03  Frank Warmerdam  <[email protected]>
2180
2181	* libtiff/tif_write.c: do not override the planar configuration to be
2182	contig for one sample files if planar configuration is already set.
2183	http://bugzilla.maptools.org/show_bug.cgi?id=2057
2184
21852009-06-02  Frank Warmerdam  <[email protected]>
2186
2187	* libtiff/libtiff.def: Add TIFFUnsetField.
2188
21892009-05-03  Frank Warmerdam  <[email protected]>
2190
2191	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
2192	error reports to use "%s" as format string.
2193	http://trac.osgeo.org/gdal/ticket/2976
2194
21952009-03-12  Frank Warmerdam  <[email protected]>
2196
2197	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
2198	for some codecs (#2020).
2199
22002009-02-12  Frank Warmerdam  <[email protected]>
2201
2202	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
2203	http://bugzilla.maptools.org/show_bug.cgi?id=2005
2204
22052009-02-09  Frank Warmerdam  <[email protected]>
2206
2207	* libtiff/tif_dirread.c: Improve allocation safety when allocated
2208	buffer for large tags.  (#1998)  Related to (#1993)
2209
22102009-02-06  Frank Warmerdam  <[email protected]>
2211
2212	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
2213	test suite should pass.
2214
22152009-02-05  Frank Warmerdam  <[email protected]>
2216
2217	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
2218	but at the 2GB boundary to avoid overflow on 32bit systems.
2219	http://bugzilla.maptools.org/show_bug.cgi?id=1993
2220
2221	* libtiff/tif_dirread.c: Remove some assertions that blow due to
2222	corrupt files rather than in response to library internal
2223	inconsistencies.
2224	http://bugzilla.maptools.org/show_bug.cgi?id=1995
2225	http://bugzilla.maptools.org/show_bug.cgi?id=1991
2226
2227	* libtiff/tif_dirread.c: Fixed testing for failed result from
2228	TIFFReadDirectoryFindFieldInfo().
2229	http://bugzilla.maptools.org/show_bug.cgi?id=1992
2230
22312009-01-23  Frank Warmerdam  <[email protected]>
2232
2233	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
2234	http://bugzilla.maptools.org/show_bug.cgi?id=1911
2235
2236	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
2237
2238	http://bugzilla.maptools.org/show_bug.cgi?id=1924
2239
2240	* tools/tiffcrop.c: initialize xres/yres values.
2241
2242	* test/*.sh - default ${srcdir} to local directory.
2243
2244	* test/common.sh - start verbose mode after common settings.
2245
2246	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
2247	avoid type mismatches on different platforms.
2248	http://bugzilla.maptools.org/show_bug.cgi?id=1889
2249
22502009-01-22  Frank Warmerdam  <[email protected]>
2251
2252	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
2253	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
2254
2255	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
2256	defined, primarily to reduce prototype warnings on windows.
2257
2258	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
2259	about unused parameters, and uninitialized variables.
2260
22612009-01-21  Bob Friesenhahn  <[email protected]>
2262
2263	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
2264	order to trace full execution detail while executing the test suite.
2265
22662009-01-20  Frank Warmerdam  <[email protected]>
2267
2268	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
2269
22702009-01-20  Bob Friesenhahn  <[email protected]>
2271
2272	* test/Makefile.am (CLEANFILES): Make sure that test output files
2273	are removed by 'make clean'
2274
2275	* Update autotools for 4.0.0 beta3
2276
2277	* 4.0.0 beta3 produced.
2278
22792009-01-12  Bob Friesenhahn  <[email protected]>
2280
2281	* test/tiffcrop.sh: New test script for tiffcrop from Richard
2282	Nolde.
2283
2284	* tools/tiff2ps.c: Remove spurious message to stderr.
2285
22862009-01-11  Bob Friesenhahn  <[email protected]>
2287
2288	* tools/tiff2ps.c: Incorporated significant functionality update
2289	from Richard Nolde.  In particular, support for rotating the image
2290	by 90, 180, 270, and 'auto' has been added.
2291
2292	* man/tiffcrop.1: Incorporated documentation updates from Richard
2293	Nolde.
2294
2295	* tools/tiffcrop.c: Incorporated significant functionality update
2296	from Richard Nolde.
2297
22982008-12-31  Bob Friesenhahn  <[email protected]>
2299
2300	* libtiff/tiffio.h: GCC will now validate format specifications
2301	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
2302	TIFFWarningExt() in order to reveal bugs.
2303
2304	* Many fixes throughout to work better as a 64-bit build.
2305
23062008-12-30  Bob Friesenhahn  <[email protected]>
2307
2308	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
2309	tags now require 64-bit parameter rather than 32-bit.
2310
2311	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
2312	64-bit values.
2313
2314	* tools/thumbnail.c: Eliminate crash noticed while running test
2315	suite.
2316
23172008-12-29  Bob Friesenhahn  <[email protected]>
2318
2319	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
2320	Initialize stack variables to avoid compiler warning.
2321
2322	* tools/tiffinfoce.c (main): Use toff_t for offset type when
2323	retrieving offset of EXIF IFD.
2324
2325	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
2326	TIFFClientOpen() callback and other external function definitions.
2327
2328	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
2329	type now.  Fixes crash when dumping files containing an EXIF IFD.
2330
2331	* m4/libtool.m4: Update to libtool 2.2.6.
2332
23332008-12-21  Frank Warmerdam  <[email protected]>
2334
2335	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
2336
2337	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
2338	strip for the last partial strip in a jpeg compressed file.
2339	http://bugzilla.maptools.org/show_bug.cgi?id=1981
2340
23412008-10-29  Frank Warmerdam  <[email protected]>
2342
2343	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
2344	we take the shortcut to only update the strip/tile offsets in place.
2345	http://trac.osgeo.org/gdal/ticket/2621
2346
23472008-10-21  Andrey Kiselev  <[email protected]>
2348
2349	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
2350	the older versions retained).
2351
23522008-10-09  Frank Warmerdam  <[email protected]>
2353
2354	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
2355	IPP enabled version of libjpeg from Intel.
2356	http://bugzilla.maptools.org/show_bug.cgi?id=1951
2357
23582008-09-05  Andrey Kiselev  <[email protected]>
2359
2360	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
2361	Required for libtiff 4.0.
2362
2363	* tools/tiffsplit.c: Use dynamically allocated array instead of static
2364	when constructing output file names.
2365
23662008-09-03  Andrey Kiselev  <[email protected]>
2367
2368	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
2369	doing the filename/path construction.
2370
2371	* tools/tiff2pdf.c: More appropriate format string in
2372	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
2373
2374	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
2375
2376	http://bugzilla.maptools.org/show_bug.cgi?id=1929
2377
2378	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
2379	CVE-2008-2327 security issue.
2380
23812008-09-01  Frank Warmerdam  <[email protected]>
2382
2383	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
2384
2385	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
2386	depending on whether the file is bigtiff or classic tiff.
2387	http://bugzilla.maptools.org/show_bug.cgi?id=1917
2388
23892008-08-12  Edward Lam  <[email protected]>
2390
2391	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
2392	consistent (__int64) casting when testing if _lseeki64 has
2393	successfully seeked as requested.  This is necessary for large
2394	file support to work since off_t is only 32-bit.
2395
23962008-07-29  Frank Warmerdam  <[email protected]>
2397
2398	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
2399	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
2400	with control logic to return runtime errors (c/o Even Rouault) (#1927).
2401
24022008-06-17  Frank Warmerdam  <[email protected]>
2403
2404	* tools/tiffcrop.c: Fix some portability problems.
2405
2406	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
2407	used in tif_jpeg.c.
2408
2409	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
2410	as TIFFOpen().
2411
24122008-06-01  Frank Warmerdam  <[email protected]>
2413
2414	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
2415	like Sparc/Solaris.
2416	http://bugzilla.maptools.org/show_bug.cgi?id=1892
2417
24182008-05-27  Frank Warmerdam  <[email protected]>
2419
2420	* libtiff.def: Add TIFFFindField
2421	http://bugzilla.maptools.org/show_bug.cgi?id=1891
2422
24232008-05-26  Frank Warmerdam  <[email protected]>
2424
2425	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
2426
2427	* li2008-04-15  Andrey Kiselev  <[email protected]>
2428
2429btiff/tif_win32.c: Replace custom Win32 memory api with generic
2430	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
2431	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
2432
2433	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
2434	in windows version (care of Edward Lam).
2435
24362008-05-24  Frank Warmerdam  <[email protected]>
2437
2438	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
2439	compression codec codes.
2440
2441	* tif_dirwrite.c: fix potential memory leak.
2442
2443	* tif_dirread.c: Fix unchecked malloc result.
2444
24452008-05-24  Bob Friesenhahn  <[email protected]>
2446
2447	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
2448	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
2449	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
2450	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
2451	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
2452	suggestions from Lee Howard posted to the tiff list on 13 Sep
2453	2007.
2454
24552008-05-23  Frank Warmerdam  <[email protected]>
2456
2457	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
2458	possible runtime problem reported by coverity.
2459
2460	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
2461
2462	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
2463	http://bugzilla.maptools.org/show_bug.cgi?id=1888
2464
2465	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
2466
2467	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
2468
2469	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
2470	Cleanup scanline allocation to avoid coverity warning.
2471
2472	* tools/thumbnail.c: Check for TIFFOpen() failure.
2473
24742008-05-18  Frank Warmerdam  <[email protected]>
2475
2476	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
2477	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
2478	why this is needed.
2479
24802008-05-09  Bob Friesenhahn  <[email protected]>
2481
2482	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
2483	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
2484
24852008-04-15  Andrey Kiselev  <[email protected]>
2486
2487	* test/: Test suite updated. Everything is passed now.
2488
2489	* libtiff/tif_dirinfo.c: Fixed description of the
2490	TIFFTAG_NUMBEROFINKS tag.
2491
24922008-04-14  Andrey Kiselev  <[email protected]>
2493
2494	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
2495	Get rid of some of "dereferencing type-punned" warnings by converting
2496	tdir_offset field of TIFFDirEntry structure into union.
2497
24982008-04-10  Andrey Kiselev  <[email protected]>
2499
2500	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
2501	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
2502	from the public interface. Type of its 'count' parameter changed
2503	from uint32 to tmsize_t.
2504
2505	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
2506	of the tiff structure have the size_t type instead of uint32.
2507
25082008-04-09  Andrey Kiselev  <[email protected]>
2509
2510	* tools/tiffdump.c: Added support for MSVS 6.0.
2511
2512	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
2513	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
2514	point values on MSVS 6.0 platform.
2515
25162008-03-14  Frank Warmerdam  <[email protected]>
2517
2518	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
2519	TIFFReadDirEntryArray() since they are interfering with seemingly
2520	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
2521
25222008-02-09  Joris Van Damme  <[email protected]>
2523
2524	* tif_dirread.c: Added handling for the case of number of values for
2525	PageNumber tag different from 2 (previously resulted in an assert
2526	indicating lack of handling and was forgotten about)
2527
25282008-02-01  Frank Warmerdam  <[email protected]>
2529
2530	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
2531	the actual jpeg data stream if the first strip/tile has zero size.
2532	This is the case when GDAL creates a new file with zero sizes, closes
2533	and reopens it.
2534
25352008-01-07  Frank Warmerdam  <[email protected]>
2536
2537	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
2538
25392008-01-01  Frank Warmerdam  <[email protected]>
2540
2541	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
2542
2543	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
2544	targets.
2545
2546	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
2547	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
2548	(x64).
2549
2550	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
2551	and TIFFFieldWithName() now return TIFFField pointers instead of
2552	TIFFFieldInfo pointers.
2553
2554	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
2555	exist. This makes it compile again on Windows
2556
2557	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
2558	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
2559
2560	* test/rewrite_tag.c: New test for TIFFRewriteField().
2561
25622007-12-31  Frank Warmerdam  <[email protected]>
2563
2564	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
2565	rewrites one field "on disk" updating an existing directory
2566	entry.  Lots of limitations still...
2567
2568	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
2569	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
2570	the strip offset/size values are dirty but nothing else about the
2571	directory is dirty.  In flush handle "just stripmaps dirty" as a
2572	special case that just rewrites these values without otherwise
2573	modifying the directory on disk using TIFFRewriteField().
2574
2575	We also modify logic so that in update mode the directory is not
2576	marked dirty on read, but only when something is changed.  This
2577	means we need to keep track of updates to the stripmap stuff in
2578	TIFFAppendToStrip().
2579
25802007-12-10  Frank Warmerdam  <[email protected]>
2581
2582	* tif_jpeg.c: Improve ability to switch between encoding and decoding
2583	in the jpeg code (gdal bug #2033).
2584
25852007-11-23  Frank Warmerdam  <[email protected]>
2586
2587	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
2588	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
2589	rawcp/rawcc buffer are for writing and thus may require flushing.
2590	Necessary to distinguish whether they need to be written to disk when
2591	in mixed read/write mode and doing a mixture of writing followed by
2592	reading.  http://trac.osgeo.org/gdal/ticket/1758
2593
25942007-11-23  Andrey Kiselev  <[email protected]>
2595
2596	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
2597	from Alexey Chupahin.
2598
25992007-11-02  Frank Warmerdam  <[email protected]>
2600
2601	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
2602	establishing if an existing tile can be rewritten to the same location
2603	by comparing the current size to all the other blocks in the same
2604	directory.  This is dangerous in many situations and can easily
2605	corrupt a file.  (observed in esoteric GDAL situation that's hard to
2606	document).  This change involves leaving the stripbytecount[] values
2607	unaltered till TIFFAppendToStrip().  Now we only write a block back
2608	to the same location it used to be at if the new data is the same
2609	size or smaller - otherwise we move it to the end of file.
2610
2611	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
2612	data when writing the directory just because we have BEENWRITING at
2613	some point in the past.  This was causing odd junk to be written out
2614	in a tile of data when a single tile had an interleaving of reading
2615	and writing with reading last.  (highlighted by gdal
2616	autotest/gcore/tif_write.py test 7.
2617
2618	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
2619	modifying callers buffer.
2620	http://trac.osgeo.org/gdal/ticket/1965
2621
2622	* tif_predict.c/h: more fixes related to last item, keeping a
2623	distinct pfunc for encode and decode cases as these were getting
2624	mixed up sometimes.
2625	http://trac.osgeo.org/gdal/ticket/1948
2626
26272007-11-01  Frank Warmerdam  <[email protected]>
2628
2629	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
2630	predictor based encoding and decoding works in read-write update
2631	mode properly.
2632	http://trac.osgeo.org/gdal/ticket/1948
2633
26342007-10-24  Joris Van Damme  <[email protected]>
2635
2636	* tif_dirread.c: Fixed problem with bogus file triggering
2637	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
2638	ChopUpSingleUncompressedStrip
2639
26402007-10-22  Joris Van Damme  <[email protected]>
2641
2642	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
2643	at best, access violation at worst, when subsampled JPEG compressed imagery
2644	is decoded without the JPEG_COLORMODE feature
2645
26462007-10-11  Frank Warmerdam  <[email protected]>
2647
2648	* html/index.html: Update "people responsible" section.
2649
26502007-10-05  Frank Warmerdam  <[email protected]>
2651
2652	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
2653	as reported on the mailing list.
2654
26552007-10-01  Joris Van Damme  <[email protected]>
2656
2657	* changed some more incorrect %lud printf flags to %lu
2658
26592007-09-29  Joris Van Damme  <[email protected]>
2660
2661	* tif_dirread.c: Strip chopping interfered badly with uncompressed
2662	subsampled images because it tried to divide subsampled rowblocks,
2663	leading to all sorts of errors throughout the library for these
2664	images. Fixed by making strip chopping divide in row counts that
2665	are a multiple of vertical subsampling value.
2666
26672007-09-28  Joris Van Damme  <[email protected]>
2668
2669	* tif_dirread.c: Logical cast working around compiler warning
2670
2671	* tif_read.c: Correction of some error flags and parameter lists
2672
26732007-09-27  Joris Van Damme  <[email protected]>
2674
2675	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
2676	when dealing with large bitspersample values, shutting up purification
2677	tools that warn about truncation, though it remains incorrect and
2678	indicates a conceptual problem there.
2679
2680	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
2681	of first IFD) to proper place because it badly interfered with memory
2682	mapping, resulting in mapping flag even with dummy mapping functions
2683	that returned 0 whilst at the same time the mapping tif_size wasn't
2684	set, thus resulting in continuous incorrect beyond-eof errors.
2685
26862007-09-24  Joris Van Damme  <[email protected]>
2687
2688	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
2689	inconsistent use of const in tiffFields and exifFields definition
2690
26912007-09-20  Frank Warmerdam  <[email protected]>
2692
2693	* tif_dirwrite.c: Always write tile/strip offsets and sizes
2694	using LONG8 type when output format is BigTIFF.  The
2695	TIFFWriteDirectoryTagLongLong8Array() function was restructured
2696	accordingly.
2697
2698	* tif_dirread.c: Improvements to error reporting text in
2699	TIFFFetchDirectory().
2700
27012007-09-19  Bob Friesenhahn  <[email protected]>
2702
2703	* test/images: Added a small collection of test images for use by
2704	test programs and scripts.
2705	* test/tiffinfo.sh: A trivial example test script.
2706	* test/common.sh: Added small script for setting the environment
2707	used by script-based tests.
2708
27092007-08-24  Frank Warmerdam  <[email protected]>
2710
2711	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
2712	zero when writing directory contents to preserve the ability to
2713	rewrite directories in place, even in the middle of a directory
2714	chain.
2715
2716	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
2717	definitions that are missing.  Existing definitions are silently
2718	ignored.
2719
2720	* tif_dirread.c: Add runtime error for fields for which no definition
2721	is found (in addition to an assert for developers) in
2722	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
2723	prudent.
2724
27252007-08-10  Joris Van Damme  <[email protected]>
2726
2727	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
2728	from _TIFFRGBAImage structure to revert unwanted ABI change.
2729
27302007-08-10  Joris Van Damme  <[email protected]>
2731
2732	* libtiff/tif_win32.c: use SetFilePointer instead of
2733	SetFilePointerEx, as per bug
2734
2735	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
2736
27372007-07-19  Andrey Kiselev  <[email protected]>
2738
2739	* libtiff/tif_stream.cxx: Put all callback functions declarations
2740	inside extern "C" block.
2741
2742	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
2743	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
2744	formatter instead of "%lld" with MSVC compiler.
2745
2746	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
2747	_TIFFUInt64ToDouble() functions.
2748
27492007-07-18  Andrey Kiselev  <[email protected]>
2750
2751	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
2752	integer constants.
2753
2754	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2755	remove tif_config.h/tiffconf.h during cleaning. As per bug
2756
2757	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2758
2759	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2760
2761	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2762
27632007-07-13  Andrey Kiselev  <[email protected]>
2764
2765	* libtiff 4.0.0alpha released.
2766
27672007-07-12  Andrey Kiselev  <[email protected]>
2768
2769	* tools/tiff2pdf.c: Added missed extern optind as per bug
2770
2771	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2772
2773	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2774	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2775	extending scheme completed.
2776
27772007-07-11  Bob Friesenhahn  <[email protected]>
2778
2779	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2780	use standard C++ library size types and attempt to detect overflow
2781	cases.
2782
27832007-07-08  Andrey Kiselev  <[email protected]>
2784
2785	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2786	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2787	tag extending scheme. Use the new scheme everywhere.
2788
2789	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2790	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2791	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2792	TIFFFIeldInfo structure replaced with TIFFField structure.
2793	TIFFFieldInfo retained for the backward compatibility.
2794
27952007-07-05  Bob Friesenhahn  <[email protected]>
2796
2797	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2798	defined.
2799
28002007-07-04  Andrey Kiselev  <[email protected]>
2801
2802	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2803	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2804	removed.
2805
2806	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2807	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2808	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2809	These tags are not codec-specific and relate to image content, so
2810	process them as other normal tags.
2811
2812	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2813	public tiffio.h to private tif_dir.h.
2814
2815	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2816	outdated.
2817
28182007-07-03  Andrey Kiselev  <[email protected]>
2819
2820	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2821	tif_win3.c}: Obsoleted portability stuff removed.
2822
2823	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2824
2825	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2826
2827	Patch from William Bader.
2828
2829	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2830	significant upgrade of the whole utility as per bug
2831
2832	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2833
2834	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2835	PDF file using TIFFClientOpen() machinery as it is implemented
2836	by Leon Bottou.
2837
28382007-06-26  Bob Friesenhahn  <[email protected]>
2839
2840	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2841	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2842	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2843	allow returning -1 for errors.
2844	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2845
28462007-06-25  Bob Friesenhahn  <[email protected]>
2847
2848	* port/strtoull.c: New porting function in case strtoull() is not
2849	available on the target system.
2850	* configure.ac: Add configure support for determining sized types
2851	in a portable way and performing necessary substitutions in
2852	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2853	definitions.
2854
28552007-04-27  Andrey Kiselev  <[email protected]>
2856
2857	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2858
2859	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2860
28612007-04-07  Andrey Kiselev  <[email protected]>
2862
2863	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2864	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2865	tif_predict.c, tif_zip.c}: Finally fix bug
2866
2867	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2868
2869	by introducing _TIFFMergeFieldInfo() returning integer error status
2870	instead of void in case of problems with field merging (e.g., if the
2871	field with such a tag already registered). TIFFMergeFieldInfo() in
2872	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2873	check returned value.
2874
28752007-04-07  Frank Warmerdam  <[email protected]>
2876
2877	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2878	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2879
28802007-04-06  Frank Warmerdam  <[email protected]>
2881
2882	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2883	will convert from decompressor to compressor or compress to decompress
2884	if required by the force arguments.  This works around a problem in
2885	where the JPEGFixupTestSubsampling() may cause a decompressor to
2886	be setup on a directory when later a compressor is required with the
2887	force flag set.  Occurs with the addtiffo program for instance.
2888
28892007-04-06  Andrey Kiselev  <[email protected]>
2890
2891	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2892	functionality from Richard Nolde. As per bug
2893
2894	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2895
28962007-03-28  Frank Warmerdam  <[email protected]>
2897
2898	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2899
29002007-03-17  Joris Van Damme  <[email protected]>
2901
2902	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2903
29042007-03-07  Joris Van Damme  <[email protected]>
2905
2906	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2907	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2908	factor. This bug is mentioned in:
2909	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2910	http://www.asmail.be/msg0054766825.html
2911
29122007-03-07  Joris Van Damme  <[email protected]>
2913
2914	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2915
2916	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2917	unused arguments by standard C indication for the same
2918
29192007-02-27  Andrey Kiselev  <[email protected]>
2920
2921	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2922	counters in TIFFFetchData(). Should finally fix the issue
2923
2924	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2925
29262007-02-24  Andrey Kiselev  <[email protected]>
2927
2928	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
2929	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2930
2931	* libtiff/tif_dirread.c: Added special function to handle
2932	SubjectDistance EXIF tag as per bug
2933
2934	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
2935
2936	* tools/tiff2pdf.c: Do not assume inches when the resolution units
2937	do not specified. As per bug
2938
2939	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2940
2941	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
2942	it was set as infinite. As per bug
2943
2944	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2945
2946	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
2947	by Richard Nolde. As per bug
2948
2949	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
2950
29512007-02-22  Andrey Kiselev  <[email protected]>
2952
2953	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
2954	ExtraSamples == 999 produced by Corel Draw. As per bug
2955
2956	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
2957
2958	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
2959	changed from tsize_t to uint32 to be able to work with data arrays
2960	larger than 2GB. Fixes bug
2961
2962	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2963
2964	Idea submitted by Matt Hancher.
2965
29662007-01-31  Andrey Kiselev  <[email protected]>
2967
2968	* tools/tif2rgba.c: This utility does not work properly on big-endian
2969	architectures. It was fixed including the bug
2970
2971	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
2972
29732007-01-15  Mateusz Loskot <[email protected]>
2974
2975	* Submitted libtiff port for Windows CE platform
2976	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
2977	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
2978	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
2979	functons from tif_win32.c.
2980	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
2981	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
2982	standard header files for Windows CE build.
2983	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
2984
29852006-11-19  Frank Warmerdam  <[email protected]>
2986
2987	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
2988	we move a strip.
2989	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
2990
29912006-10-13  Andrey Kiselev  <[email protected]>
2992
2993	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
2994	in Gentoo bug ():
2995
2996	http://bugs.gentoo.org/show_bug.cgi?id=142383
2997
2998	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
2999	Though it is still far from the state of being working and useful.
3000
30012006-10-12  Andrey Kiselev  <[email protected]>
3002
3003	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
3004	method.
3005
3006	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
3007	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
3008
3009	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
3010	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
3011
3012	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
3013	vulnerabilities, reported in Gentoo bug ():
3014
3015	http://bugs.gentoo.org/show_bug.cgi?id=142383
3016
30172006-09-28  Andrey Kiselev  <[email protected]>
3018
3019	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
3020	vulnerabilities, as per	Gentoo bug ():
3021
3022	http://bugs.gentoo.org/show_bug.cgi?id=142383
3023
30242006-09-27  Frank Warmerdam  <[email protected]>
3025
3026	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
3027	encoding and decoding on the same read-write TIFF handle.  The LZW
3028	code can now maintain encode and decode state at the same time. The
3029	ZIP code will switch back and forth as needed.
3030	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
3031
30322006-09-20  Frank Warmerdam  <[email protected]>
3033
3034	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
3035	tif_config.vc.h for easier identification by folks using an IDE.
3036
30372006-07-25  Frank Warmerdam  <[email protected]>
3038
3039	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
3040
30412006-07-19  Frank Warmerdam  <[email protected]>
3042
3043	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
3044	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
3045	to bug report by Peng Gao with black strip at bottom of images.
3046
30472006-07-12  Frank Warmerdam  <[email protected]>
3048
3049	* tif_dirwrite.c: make sure to use uint32 for wordcount in
3050	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
3051	It already seems to have been done for other field types.  Needed
3052	for "tiffset" on files with geotiff ascii text.
3053
30542006-07-04  Bob Friesenhahn  <[email protected]>
3055
3056	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
3057	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
3058	its use does not appear to be required, so use it only when it is
3059	available.
3060
30612006-06-24  Andrey Kiselev  <[email protected]>
3062
3063	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
3064
3065	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
3066	function TIFFFetchDirectory() avoiding code duplication in
3067	TIFFReadDirectory() and TIFFReadCustomDirectory().
3068
30692006-06-19  Frank Warmerdam  <[email protected]>
3070
3071	* tools/tiff2pdf.c: Fix handling of -q values.
3072	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
3073
30742006-06-17  Frank Warmerdam  <[email protected]>
3075
3076	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
3077	files.  Modified TIFFReadDirectory() to not invoke
3078	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
3079	but one of them is zero.
3080	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
3081
30822006-06-08  Andrey Kiselev  <[email protected]>
3083
3084	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
3085	checking code in the separate function TIFFCheckDirOffset().
3086
3087	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
3088
3089	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
3090
3091	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
3092
3093	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
3094
3095	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
3096
3097	* tools/tiff2pdf.c: Fixed buffer overflow condition in
3098	t2p_write_pdf_string() as per bug
3099
3100	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
3101
31022006-06-07  Andrey Kiselev  <[email protected]>
3103
3104	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
3105	support for JBIG compression scheme (34661 code) contributed by Lee
3106	Howard. As per bug
3107
3108	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
3109
3110	* configure, configure.ac: OJPEG support enabled by default.
3111
3112	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
3113
31142006-06-03  Bob Friesenhahn  <[email protected]>
3115
3116	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
3117	TIFFPrintDirectory().  Joris Van Damme authored the fix.
3118
31192006-04-21  Andrey Kiselev  <[email protected]>
3120
3121	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
3122	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
3123
3124	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
3125	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
3126	Added support for OpenVMS by Alexey Chupahin, [email protected].
3127
31282006-04-20  Andrey Kiselev  <[email protected]>
3129
3130	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
3131	Properly set the binary mode for stdin stream as per bug
3132	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
3133
3134	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
3135	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
3136	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
3137	tiffset.1}: Improvements in page formatting as per bug
3138	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
3139
3140	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
3141	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
3142
31432006-04-18  Frank Warmerdam  <[email protected]>
3144
3145	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
3146	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
3147
31482006-04-12  Joris Van Damme  <[email protected]>
3149
3150	* libtiff/tif_getimage.c: Added support for planarconfig separate
3151	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
3152
31532006-04-11  Joris Van Damme  <[email protected]>
3154
3155	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
3156	- Conversion of unassociated alpha to associated alpha now done with
3157	  more performant LUT, and calculation more correct
3158	- Conversion of 16bit data to 8bit data now done with
3159	  more performant LUT, and calculation more correct
3160	- Bugfix of handling of 16bit RGB with unassociated alpha
3161
31622006-04-11  Joris Van Damme  <[email protected]>
3163
3164	* libtiff/tif_getimage.c:
3165	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
3166	  buffer for alpha strile and filled it, only to never read it back.
3167	  Removed allocation and fill.
3168	- Minor rename of vars in gtTileSeparate and gtStripSeparate
3169	  anticipating planned functionality extension
3170
31712006-04-08  Joris Van Damme  <[email protected]>
3172
3173	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
3174	and pickTileSeparateCase to PickSeparateCase as both work on strips as
3175	well
3176
3177	* libtiff/tif_getimage.c: moved img->get selection from
3178	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
3179	logical hook for planned functionality extension
3180
31812006-04-08  Joris Van Damme  <[email protected]>
3182
3183	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
3184	of inappropriate use of jpeg_abort instead of jpeg_destroy
3185
31862006-04-07  Joris Van Damme  <[email protected]>
3187
3188	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
3189	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
3190	on subsampled images - this ought to get sorted when we feel brave
3191	enough to replace TIFFScanlineSize alltogether
3192
3193	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
3194
31952006-04-04  Joris Van Damme  <[email protected]>
3196
3197	* libtiff/tiffio.h: added new type tstrile_t
3198
3199	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
3200	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
3201	toff_t*
3202
3203	* libtiff/tif_ojpeg.c: totally new implementation
3204
3205	* libtiff/tif_dirread.c: added several hacks to suit new support of
3206	OJPEG
3207
3208	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
3209	of OJPEG images in favor of tif_getimage.c native handling of
3210	YCbCr and desubsampling
3211
32122006-03-29  Frank Warmerdam  <[email protected]>
3213
3214	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
3215	interpretation causes the "upsampled" flag to be recomputed.  Fixes
3216	peculiar bug where photometric flag had to be set before jpegcolormode
3217	flag.
3218
32192006-03-25  Joris Van Damme  <[email protected]>
3220
3221	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
3222
3223	* libtiff/tif_strip.c: temporarilly added two new versions of
3224	TIFFScanlineSize
3225	  - TIFFNewScanlineSize: proposed new version, after all related
3226	    issues and side-effects are sorted out
3227	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
3228	This needs further sorting out.
3229
32302006-03-25  Joris Van Damme  <[email protected]>
3231
3232	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
3233	of last truncated strip data to TIFFWriteEncodedStrip
3234
32352006-03-25  Joris Van Damme  <[email protected]>
3236
3237	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
3238
32392006-03-25  Joris Van Damme  <[email protected]>
3240
3241	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
3242
3243	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
3244
3245	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
3246	prepare	the path for new tif_ojpeg.c
3247
32482006-03-23  Andrey Kiselev  <[email protected]>
3249
3250	* libtiff 3.8.2 released.
3251
3252	* tools/Makefile.am: Use runtime paths linker flags when rpath
3253	option enabled.
3254
32552006-03-21  Andrey Kiselev  <[email protected]>
3256
3257	* libtiff/libtiff.def: Added missed exports as per bug
3258	http://bugzilla.remotesensing.org/attachment.cgi?id=337
3259
3260	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
3261	tools/Makefile.vc: Makefiles improvements as per bug
3262	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
3263
3264	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
3265	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
3266	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
3267
3268	* libtiff/tif_strip.c: Take subsampling in account when calculating
3269	TIFFScanlineSize().
3270
3271	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
3272
32732006-03-17  Andrey Kiselev  <[email protected]>
3274
3275	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
3276	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
3277
3278	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
3279	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
3280
32812006-03-16  Andrey Kiselev  <[email protected]>
3282
3283	* libtiff/tiffiop.h: Added decalration for
3284	_TIFFSetDefaultCompressionState().
3285
3286	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
3287	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
3288	codec cleanup methods. As per bug
3289
3290	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
3291
32922006-03-15  Andrey Kiselev  <[email protected]>
3293
3294	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
3295	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
3296
3297	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
3298	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
3299
3300	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
3301	removed; move here the STRIP_SIZE_DEFAULT macro definition.
3302
3303	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
3304	macro definition.
3305
3306	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
3307
33082006-03-14  Andrey Kiselev  <[email protected]>
3309
3310	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
3311	in TIFFReadDirectory, because it is always set at the start of
3312	function and we allow TIFFs without that tag set.
3313
33142005-03-13  Andrey Kiselev  <[email protected]>
3315
3316	* libtiff 3.8.1 released.
3317
33182006-03-07  Andrey Kiselev  <[email protected]>
3319
3320	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
3321	function as per bug
3322	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3323
3324	* libtiff/tif_dirread.c: More wise check for integer overflow
3325	condition as per bug
3326	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3327
3328	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
3329	Properly restore setfield/getfield methods in cleanup functions. As
3330	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3331
33322006-03-03  Andrey Kiselev  <[email protected]>
3333
3334	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
3335	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
3336
3337	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
3338	TIFFPredictorCleanup() in codec cleanup methods. As per bug
3339
3340	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3341
3342	* libtiff/tif_dirread.c: Fixed integer overflow condition in
3343	TIFFFetchData() function. As per bug
3344
3345	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3346
33472006-03-01  Andrey Kiselev  <[email protected]>
3348
3349	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
3350	TIFFSetField() method, not directly. As per bug
3351
3352	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
3353
3354	* tools/ppm2tiff.c: Added support for PBM files as per bug
3355	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
3356
33572006-02-27  Andrey Kiselev  <[email protected]>
3358
3359	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
3360	to avoid crash as per bug
3361
3362	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
3363
33642006-02-26  Andrey Kiselev  <[email protected]>
3365
3366	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
3367	t2p_sample_rgba_to_rgb() was used in place of each other, that was
3368	resulted in problems with RGBA images with associated alpha.
3369	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
3370
33712006-02-23  Andrey Kiselev  <[email protected]>
3372
3373	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
3374	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
3375
3376	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
3377	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
3378	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
3379
3380	* tools/tiff2ps.c: Properly scale all the pages when converting
3381	multipage TIFF with /width/height/center options set. As per bug
3382
3383	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
3384
33852006-02-15  Andrey Kiselev  <[email protected]>
3386
3387	* tools/tiff2pdf.c: Do not create output file until all option checks
3388	will be done. As per bug
3389
3390	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
3391
3392	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
3393	list of input files as per bug:
3394
3395	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
3396
33972006-02-09  Andrey Kiselev  <[email protected]>
3398
3399	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
3400	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
3401
3402	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
3403	TIFFRGBAImage interface.
3404
3405	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
3406	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
3407
34082006-02-07  Frank Warmerdam  <[email protected]>
3409
3410	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
3411	compressed TIFF files, per submission from Dan Cobra.
3412
34132006-02-07  Andrey Kiselev  <[email protected]>
3414
3415	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
3416	cast values to avoid warnings. As per bug
3417	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3418
3419	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
3420	appropriate. As per bug
3421	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3422
3423	* libtiff/tif_aux.c: Fixed type of temporary variable in
3424	_TIFFCheckMalloc() as per bug
3425	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3426
34272006-02-06  Andrey Kiselev  <[email protected]>
3428
3429	* libtiff/tif_aux.c: Return static array when fetching default
3430	YCbCrCoefficients (another problem, reported a the
3431	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
3432
34332006-02-03  Andrey Kiselev  <[email protected]>
3434
3435	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
3436	YCbCrSubsampling and DotRange tags as per bugs
3437
3438	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
3439	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
3440
3441	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
3442	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
3443
3444	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
3445
34462006-01-23  Andrey Kiselev  <[email protected]>
3447
3448	* libtool related stuff updated from the 2.1a branch.
3449
34502006-01-11  Frank Warmerdam  <[email protected]>
3451
3452	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
3453	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
3454	properly as per bug:
3455	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
3456
34572006-01-09  Bob Friesenhahn  <[email protected]>
3458
3459	* configure.ac: Fix with_default_strip_size comparison as reported
3460	by Norihiko Murase.
3461
34622006-01-08  Bob Friesenhahn  <[email protected]>
3463
3464	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
3465	incorrectly, tests were not actually testing the uninstalled
3466	libtiff.  Now they are.
3467
34682006-01-04  Andrey Kiselev  <[email protected]>
3469
3470	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
3471	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
3472	should be uint32 value.
3473
34742006-01-02  Bob Friesenhahn  <[email protected]>
3475
3476	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
3477	be used if build directory is not the same as source directory.
3478	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
3479	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
3480	and re-sorted tag names in alphabetical order.
3481
34822005-12-29  Andrey Kiselev  <[email protected]>
3483
3484	* libtiff 3.8.0 released.
3485
34862005-12-28  Bob Friesenhahn  <[email protected]>
3487
3488	* tools/bmp2tiff.c (main): Fixed warning regarding returning
3489	inconsistent types from a condition.
3490	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
3491	format.
3492	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
3493
34942005-12-28  Joris Van Damme  <[email protected]>
3495
3496	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
3497
34982005-12-27  Andrey Kiselev  <[email protected]>
3499
3500	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
3501	windows.h, to reduce the compile time.
3502
35032005-12-26  Bob Friesenhahn  <[email protected]>
3504
3505	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
3506
35072005-12-26  Andrey Kiselev  <[email protected]>
3508
3509	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
3510	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
3511	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
3512	private functions to retrieve FieldInfo arrays.
3513
35142005-12-24  Bob Friesenhahn  <[email protected]>
3515
3516	* html/build.html: Added some additional instructions for when
3517	building using MSVC under Windows.  Also fixed two HTML syntax
3518	errors and used HTML Tidy to tidy up the HTML syntax and
3519	formatting.
3520
35212005-12-24  Andrey Kiselev  <[email protected]>
3522
3523	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
3524	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
3525	StoNits tags custom.
3526
35272005-12-23  Andrey Kiselev  <[email protected]>
3528
3529	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
3530	WhitePoint tag custom.
3531
3532	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
3533
35342005-12-23  Joris Van Damme  <[email protected]>
3535
3536	* libtiff/tiffio.h: fixed typo that potentially resulted in
3537	redefininition of USE_WIN32_FILEIO
3538
3539	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
3540	calls in core LibTiff.
3541
35422005-12-21  Andrey Kiselev  <[email protected]>
3543
3544	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
3545	Photoshop and ICCProfile tags custom.
3546
35472005-12-21  Joris Van Damme  <[email protected]>
3548
3549	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
3550	newer code to get context indicator in error handler and still
3551	remain compatible with older code: Done TIFFError calls everywhere
3552	except in tools
3553
35542005-12-20  Andrey Kiselev  <[email protected]>
3555
3556	* tools/tiffcp.c: Added many error reporting messages; fixed integer
3557	overflow as per bug
3558
3559	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
3560
35612005-12-16  Frank Warmerdam  <[email protected]>
3562
3563	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
3564	YCbCr images in jpeg compressed TIFF files.
3565
35662005-12-14  Andrey Kiselev  <[email protected]>
3567
3568	* tools/tiffcp.c: Return non-zero status when reading fails (again).
3569
35702005-12-13  Andrey Kiselev  <[email protected]>
3571
3572	* tools/tiffcp.c: Return non-zero status when reading fails.
3573
35742005-12-12  Andrey Kiselev  <[email protected]>
3575
3576	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
3577
35782005-12-09  Andrey Kiselev  <[email protected]>
3579
3580	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
3581	custom.
3582
3583	* tools/tiffinfo.c: Print EXIF directory contents if exist.
3584
3585	* libtiff/tiff.h: Few EXIF tag numbers added.
3586
3587	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
3588	tiffio.h}: Preliminary support to read custom directories. New
3589	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
3590
35912005-12-07  Andrey Kiselev  <[email protected]>
3592
3593	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
3594	More work to implement custom directory read support.
3595
3596	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
3597	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
3598	tags custom.
3599
36002005-12-05  Andrey Kiselev  <[email protected]>
3601
3602	* libtiff/tif_dirread.c: One more workaround for broken
3603	StripByteCounts tag. Handle the case when StripByteCounts array filled
3604	with completely wrong values.
3605
36062005-11-30  Andrey Kiselev  <[email protected]>
3607
3608	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
3609	in the TIFFOpenW() function as per bug
3610
3611	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
3612
3613	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
3614	functions as per bug
3615
3616	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
3617
36182005-11-20  Frank Warmerdam  <[email protected]>
3619
3620	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
3621	for MS MDI format.
3622	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
3623
3624	* .cvsignore: many files added, and a few update according
3625	to suggestion of Brad HArds on tiff mailing list.
3626
36272005-11-03  Frank Warmerdam  <[email protected]>
3628
3629	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
3630	public.
3631
36322005-10-31  Andrey Kiselev  <[email protected]>
3633
3634	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
3635	as per bug
3636
3637	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
3638
3639	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
3640	as per bug
3641
3642	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
3643
3644	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
3645	problem as per bug
3646
3647	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
3648
3649	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
3650
3651	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
3652
3653	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
3654	ResolutionUnit tags modifiable during write process. As per bug
3655
3656	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
3657
3658	* tools/tiffsplit.c: Copy fax related fields over splitted parts
3659	as per bug
3660
3661	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
3662
36632005-10-21  Frank Warmerdam  <[email protected]>
3664
3665	* tif_dirread.c: Don't try and split single strips into "0" strips
3666	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
3667	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
3668
36692005-10-20  Joris Van Damme  <[email protected]>
3670
3671	* tif_fax3.c: changed 'at scanline ...' style warning/errors
3672	with incorrect use of tif_row, to 'at line ... of
3673	strip/tile ...' style
3674
36752005-10-15  Frank Warmerdam  <[email protected]>
3676
3677	* tif_write.c: fixed setting of planarconfig as per bug report
3678	on the mailing list from Joris.
3679
36802005-10-07  Andrey Kiselev  <[email protected]>
3681
3682	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
3683	tif_dirread.c}: Make the default strip size configurable via the
3684	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
3685
36862005-09-30  Bob Friesenhahn  <[email protected]>
3687
3688	* html/support.html: Fixed link to documentation on Greg Ward's
3689	LogLuv TIFF format.
3690
36912005-09-28  Andrey Kiselev  <[email protected]>
3692
3693	* tools/tiffdump.c: Fixed crash when reading malformed tags.
3694
36952005-09-20  Andrey Kiselev  <[email protected]>
3696
3697	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
3698	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
3699
37002005-09-12  Andrey Kiselev  <[email protected]>
3701
3702	* libtiff 3.7.4 released.
3703
3704	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
3705	from Patrick Welche (all scripts moved in the 'config' and 'm4'
3706	directories).
3707
37082005-09-12  Frank Warmerdam  <[email protected]>
3709
3710	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
3711
37122005-09-05  Frank Warmerdam  <[email protected]>
3713
3714	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
3715	also set it to NULL to avoid double free when re-setting custom
3716	string fields as per:
3717
3718	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
3719
37202005-08-12  Frank Warmerdam  <[email protected]>
3721
3722	* libtiff/tif_print.c: avoid signed/unsigned warning.
3723
3724	* libtiff/tif_dirread.c: removed unused variable.
3725
37262005-07-30  Frank Warmerdam  <[email protected]>
3727
3728	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
3729	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
3730	pass on bigendian (macosx) system.
3731
37322005-07-28  Andrey Kiselev  <[email protected]>
3733
3734	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
3735	CheckMalloc() function to _TIFFCheckMalloc() and make it available
3736	globally as an internal helper routine.
3737
37382005-07-27  Andrey Kiselev  <[email protected]>
3739
3740	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
3741	the custom tags handling code.
3742
37432005-07-26  Andrey Kiselev  <[email protected]>
3744
3745	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
3746	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
3747	function, use TIFFFetchNormalTag() instead as per bug
3748
3749	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3750
3751	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
3752	instead.
3753
3754	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3755
3756	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3757
37582005-07-25  Andrey Kiselev  <[email protected]>
3759
3760	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3761
3762	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3763
37642005-07-21  Andrey Kiselev  <[email protected]>
3765
3766	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3767	the TIFFWriteCheck() function in case of single band images (as per
3768	TIFF spec).
3769
37702005-07-12  Andrey Kiselev  <[email protected]>
3771
3772	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3773	support for SCons software building tool (http://www.scons.org/).
3774	This is experimental infrastructure and it will exist along with the
3775	autotools mechanics.
3776
37772005-07-07  Andrey Kiselev  <[email protected]>
3778
3779	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3780	the NetBSD source tree (the old	4-clause BSD license changed to
3781	the new 3-clause one).
3782
3783	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3784	replacement module.
3785
3786	* port/dummy.c: Make the dummy function static.
3787
37882005-07-06  Andrey Kiselev  <[email protected]>
3789
3790	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3791
3792	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3793	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3794	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3795
37962005-07-04  Andrey Kiselev  <[email protected]>
3797
3798	* libtiff 3.7.3 released.
3799
3800	* configure, configure.ac: Do not use empty -R option when linking
3801	with --enable-rpath.
3802
38032005-07-01  Andrey Kiselev  <[email protected]>
3804
3805	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3806	reading the first IFD when needed. As per bug
3807
3808	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3809
3810	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3811	effects.
3812
38132005-06-23  Andrey Kiselev  <[email protected]>
3814
3815	* tools/tiff2pdf.c: Print two characters per loop in the
3816	t2p_write_pdf_trailer(). As per bug
3817
3818	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3819
3820	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3821	per bug
3822
3823	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3824
3825	* acinclude.m4: Updated to latest OpenGL test macros versions.
3826
3827	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3828	platform. As per bug
3829
3830	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3831
38322005-06-14  Andrey Kiselev  <[email protected]>
3833
3834	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3835	and YClipPathUnits tags.
3836
38372005-06-07  Andrey Kiselev  <[email protected]>
3838
3839	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3840	use pixel sized shift in contigous case.
3841
38422005-06-06  Andrey Kiselev  <[email protected]>
3843
3844	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3845	Make overviews working for contiguos images.
3846
38472005-06-03  Andrey Kiselev  <[email protected]>
3848
3849	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3850	time one.
3851
3852	* libtiff/tif_predict.c: Floating point predictor now works on
3853	big-endian hosts.
3854
38552005-06-01  Andrey Kiselev  <[email protected]>
3856
3857	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3858	ASCII values.
3859
3860	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3861	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3862	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3863	TargetPrinter tags custom.
3864
3865	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3866	TIFF_CODERSETUP flag (to fix memry leaks).
3867
3868	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3869	allocating.
3870
38712005-05-26  Andrey Kiselev  <[email protected]>
3872
3873	* configure.ac, libtiff/Makefile.am: Added workaround for
3874	OpenBSD/MirOS soname problem as per bug
3875
3876	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3877
3878	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3879	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3880	per bug
3881
3882	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3883
38842005-05-25  Andrey Kiselev  <[email protected]>
3885
3886	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3887	the fscanf() function. As per bug
3888
3889	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3890
3891	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3892	uint16 array when fetching the BYTE and SBYTE filds, so we should
3893	consider result as pointer to uint16 array and not as array of chars.
3894	As per bug
3895
3896	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3897
3898	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3899
3900	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3901
3902	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3903	mode in CreateFile() call as per bug
3904
3905	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3906
3907	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3908	libtiffxx libraries as per bug
3909
3910	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3911
3912	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3913	GDAL.
3914
39152005-05-23  Frank Warmerdam  <[email protected]>
3916
3917	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3918	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3919	in directory.
3920
39212005-05-22  Frank Warmerdam  <[email protected]>
3922
3923	* libtiff/tif_dirread.c: Changed the code that computes
3924	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3925	zero. This is a common case with GDAL indicating a "null" tile/strip.
3926
39272005-05-17  Andrey Kiselev  <[email protected]>
3928
3929	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
3930
39312005-05-06  Frank Warmerdam  <[email protected]>
3932
3933	* libtiff/tif_dirread.c: Applied similar change to
3934	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
3935
3936	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3937
3938	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
3939
39402005-05-06  Andrey Kiselev  <[email protected]>
3941	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
3942	added new option '-b' to use interpolation in output PDF files (Bruno
3943	Ledoux).
3944
39452005-05-05  Frank Warmerdam  <[email protected]>
3946
3947	* libtiff/tif_dirread.c: Ensure that broken files with too many
3948	values in PerSampleShorts work ok instead of crashing.
3949
3950	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3951
39522005-04-27  Andrey Kiselev  <[email protected]>
3953
3954	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
3955	input file.
3956
39572005-04-15  Andrey Kiselev  <[email protected]>
3958
3959	* libtiff/tif_predict.c: Added ability to encode floating point
3960	predictor, as per TIFF Technical Note 3.
3961
39622005-04-14  Andrey Kiselev  <[email protected]>
3963
3964	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
3965	floating point predictor, as per TIFF Technical Note 3.
3966
39672005-04-13  Andrey Kiselev  <[email protected]>
3968
3969	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
3970	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
3971	swap 24-bit floating point values.
3972
3973	* libtiff/tiff.h: Added predictor constants.
3974
39752005-04-08  Andrey Kiselev  <[email protected]>
3976
3977	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
3978	values in _TIFFVSetField() function. Inspired by the bug
3979
3980	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3981
3982	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
3983	as per bug
3984
3985	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3986
39872005-03-30  Andrey Kiselev  <[email protected]>
3988
3989	* libtiff/tif_open.c: Do not read header in case the output file
3990	should be truncated (Ron).
3991
3992	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
3993	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
3994
3995	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
3996
39972005-03-22  Andrey Kiselev  <[email protected]>
3998
3999	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
4000	rpath option.
4001
40022005-03-21  Andrey Kiselev  <[email protected]>
4003
4004	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
4005	tags.
4006
40072005-03-18  Andrey Kiselev  <[email protected]>
4008
4009	* libtiff/dirinfo.c: Added DNG tags.
4010
4011	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
4012	handling code.
4013
4014	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
4015	added DNG 1.1.0.0 tags.
4016
4017	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
4018	bug
4019
4020	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
4021
4022	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
4023
40242005-03-17  Andrey Kiselev  <[email protected]>
4025
4026	* nmake.opt: Build with Win32 CRT library by default.
4027
4028	* tools/tiff2ps.c: Fixed typo in page size handling code.
4029
4030	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
4031	by value.
4032
4033	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
4034
40352005-03-15  Andrey Kiselev  <[email protected]>
4036
4037	* libtiff 3.7.2 released.
4038
40392005-03-09  Andrey Kiselev  <[email protected]>
4040
4041	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
4042	floating point data; complain on unsupported bit depths.
4043
40442005-03-05  Andrey Kiselev  <[email protected]>
4045
4046	* tif_stream.cxx: Use ios namespace instead of ios_base to support
4047	GCC 2.95.
4048
4049	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
4050	Lee Howard for HylaFax DCS tag
4051	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
4052
40532005-03-04  Andrey Kiselev  <[email protected]>
4054
4055	* configure, configure.ac: Use -rpath option instead of -R as per bug
4056
4057	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
4058
4059	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
4060	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
4061	software. As per bug
4062
4063	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
4064
4065	* nmake.opt, html/build.html: Add more comments, change the config
4066	file organization a bit as per bug
4067
4068	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
4069
4070	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
4071	as per bug
4072
4073	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
4074
40752005-03-03  Andrey Kiselev  <[email protected]>
4076
4077	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
4078	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
4079
4080	* tools/fax2ps.c: Replace insecure mktemp() function with the
4081	tmpfile() as per bug
4082
4083	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
4084
40852005-02-04  Andrey Kiselev  <[email protected]>
4086
4087	* libtiff/tiff.h: Changed the int8 definition to be always signed char
4088	as per bug
4089
4090	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
4091
4092	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
4093	block as per bug
4094
4095	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
4096
40972005-02-03  Bob Friesenhahn  <[email protected]>
4098
4099	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
4100	display more correctly.  Images display brighter than they should
4101	on a Sun workstation.
4102
41032005-02-03  Andrey Kiselev  <[email protected]>
4104
4105	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
4106	suspicious values in the tags. As per bugs
4107
4108	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
4109
4110	and
4111
4112	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
4113
4114	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
4115
4116	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
4117
41182005-01-31  Bob Friesenhahn  <[email protected]>
4119
4120	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
4121	(TIFFTAG_TILELENGTH): Corrected description.
4122
41232005-01-30  Andrey Kiselev  <[email protected]>
4124
4125	* configure.ac: Fixes for --with-docdir option as per bug
4126
4127	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
4128
4129	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
4130	bug
4131
4132	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
4133
4134	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
4135	Michael Rinne and Edward Lam.
4136
41372005-01-15  Andrey Kiselev  <[email protected]>
4138
4139	* configure.ac: Make the documentation directory location configurable
4140	via the --with-docdir option (as suggested by Jeremy C. Reed).
4141
4142	* libtiff/tif_color.c: Use double as the second argument of pow()
4143	function in TIFFCIELabToRGBInit(). As per bug
4144
4145	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
4146
4147	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
4148	integer as per bug
4149
4150	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
4151
4152	* libtiff/tif_getimage.c: Always fill the error message buffer in
4153	TIFFRGBAImageBegin() as per bug
4154
4155	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
4156
41572005-01-12  Andrey Kiselev  <[email protected]>
4158
4159	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
4160	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
4161	tags as per bug
4162
4163	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
4164
4165	* libtiff/tif_win32.c: Fixed message formatting in functions
4166	Win32WarningHandler() and Win32ErrorHandler() as per bug
4167
4168	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
4169
4170	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
4171	per bug
4172
4173	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
4174
41752005-01-11  Andrey Kiselev  <[email protected]>
4176
4177	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
4178	"C"' section as per bug
4179
4180	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
4181
4182	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
4183	compiler to avoid double definition of BSD types as per bug
4184
4185	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4186
4187	* libtiff/Makefile.am: Place the C++ stream API in the separate
4188	library called libtiffxx to avoid unneeded dependencies. Probably
4189	there will be more C++ API in the future. As per bugs
4190
4191	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
4192
4193	and
4194
4195	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
4196
41972005-01-05  Andrey Kiselev  <[email protected]>
4198
4199	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
4200	wrong tag counts (Dmitry V. Levin, Martin Pitt).
4201
4202	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
4203	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
4204
42052004-12-25  Andrey Kiselev  <[email protected]>
4206
4207	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
4208	RGB-images as per bug
4209
4210	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
4211
4212
4213	* tools/tiffset.c: Convert character option to integer value as per
4214	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
4215
42162004-12-20  Andrey Kiselev  <[email protected]>
4217
4218	* libtiff 3.7.1 released.
4219
4220	* html/tiffset.1.html: Add missed manual page as per bug
4221
4222	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
4223
4224	* libtiff/tiff.h: Revert back libtiff data type definitions as per
4225	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
4226
42272004-12-19  Andrey Kiselev  <[email protected]>
4228
4229	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
4230	checking for tag count in TIFFReadDirectory() function. As per bug
4231
4232	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
4233
4234	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
4235	CheckMallock() function.
4236
4237	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
4238	RGB-images as per bug
4239
4240	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
4241
42422004-12-15  Frank Warmerdam  <[email protected]>
4243
4244	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
4245	SunPro compiler.
4246
42472004-12-11  Bob Friesenhahn  <[email protected]>
4248
4249	* autogen.sh: aclocal and autoheader should be executed after
4250	libtoolize.  Also add '-I .' to aclocal invocation to check
4251	current directory for macros.
4252
42532004-12-10  Andrey Kiselev  <[email protected]>
4254
4255	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
4256	as per bugs
4257
4258	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
4259
4260	and
4261
4262	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
4263
42642004-12-04  Andrey Kiselev  <[email protected]>
4265
4266	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
4267
4268	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
4269
4270	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
4271	mode as per bug
4272
4273	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
4274
4275	* libtiff/tif_config.in.vc: Removed unneded definitions for
4276	read/open/close/lseek functions to fix the
4277
4278	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
4279
42802004-12-03  Andrey Kiselev  <[email protected]>
4281
4282	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
4283	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
4284	must be removed in the future, as it was never used properly. As per
4285	bug
4286
4287	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
4288
42892004-11-30  Bob Friesenhahn  <[email protected]>
4290
4291	* libtiff/tif_jpeg.c: Added a work-around in order to allow
4292	compilation with the heavily modified version of libjpeg delivered
4293	with Cygwin.
4294
42952004-11-29  Andrey Kiselev  <[email protected]>
4296
4297	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
4298	counts. As per bug
4299
4300	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
4301
4302	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
4303
4304	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
4305
43062004-11-28  Andrey Kiselev  <[email protected]>
4307
4308	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
4309	on Windows.
4310
4311	* nmake.opt: Add missed DLLNAME variable.
4312
43132004-11-26  Frank Warmerdam  <[email protected]>
4314
4315	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
4316
43172004-11-24  Andrey Kiselev  <[email protected]>
4318
4319	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
4320	per bug
4321
4322	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
4323
4324	* man/tiffset.1: Added manual page for tiffset tool written by Jay
4325	Berkenbilt. As per bug
4326
4327	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
4328
43292004-11-23  Frank Warmerdam  <[email protected]>
4330
4331	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
4332
43332004-11-21  Frank Warmerdam  <[email protected]>
4334
4335	* html/document.html: Updated Adobe web links as per email from Joris.
4336
43372004-11-21  Andrey Kiselev  <[email protected]>
4338
4339	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
4340	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
4341	use C++ streams should #include <tiffio.hxx>.
4342
43432004-11-13  Andrey Kiselev  <[email protected]>
4344
4345	* libtiff/tiff.h: Added Adobe DNG tags.
4346
4347	* libtiff/tif_win32.c: Typo fixed.
4348
4349	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
4350	be compliant with the latest standard. Appropriate additions in
4351	makefiles now completed.
4352
43532004-11-11  Andrey Kiselev  <[email protected]>
4354
4355	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
4356	different tag types. As per bug
4357
4358	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
4359
43602004-11-10  Andrey Kiselev  <[email protected]>
4361
4362	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
4363	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
4364
43652004-11-09  Andrey Kiselev  <[email protected]>
4366
4367	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
4368
43692004-11-07  Andrey Kiselev  <[email protected]>
4370
4371	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
4372	contributed by Edward Lam (see
4373	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
4374	Though no changes in any makefiles yet.
4375
43762004-11-05  Frank Warmerdam  <[email protected]>
4377
4378	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
4379	is bad. This is the callers responsibility.
4380	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
4381
43822004-11-05  Andrey Kiselev  <[email protected]>
4383
4384	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
4385	function to work with the double byte strings (used to represent
4386	filenames in some locales). As per bug
4387
4388	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
4389
4390	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
4391	Compression tags of type LONG from broken TIFFS as per bug
4392
4393	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
4394
4395	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
4396	the writecount should have uint32 type. As per bug
4397
4398	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
4399
4400	* libtiff/tif_write.c: Fixed wrong if() statement in
4401	TIFFAppendToStrip() function as per bug
4402
4403	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
4404
44052004-11-04  Andrey Kiselev  <[email protected]>
4406
4407	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
4408	field. The caller should supply a count when setting this field. As
4409	per bug
4410
4411	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
4412
4413	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
4414	uint32 count. Use this type everywhere.
4415
44162004-11-03  Frank Warmerdam  <[email protected]>
4417
4418	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
4419
44202004-11-02  Frank Warmerdam  <[email protected]>
4421
4422	* tools/tiff2rgba.c: removed extra newlines in usage message.
4423
44242004-10-30  Andrey Kiselev  <[email protected]>
4425
4426	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
4427
4428	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
4429	tags (Tristan Hill).
4430
44312004-10-30  Frank Warmerdam  <[email protected]>
4432
4433	* libtiff/tiffiop.h: added fallback definition of assert() if we
4434	don't have assert.h.
4435
44362004-10-29  Andrey Kiselev  <[email protected]>
4437
4438	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
4439	choosing when the incorrect Group4Options tag set. As per bug
4440
4441	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
4442
4443	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
4444	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
4445	TIFFWriteNormalTag().
4446
44472004-10-28  Andrey Kiselev  <[email protected]>
4448
4449	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
4450	tags (Peter Fales).
4451
4452	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
4453
44542004-10-28  Frank Warmerdam  <[email protected]>
4455
4456	* tools/tiff2pdf.c: added casts to avoid warnings.
4457
4458	* libtiff/libtiff.def: Added several more entry points required
4459	to link fax2tiff.c against the DLL on windows.
4460
44612004-10-27  Andrey Kiselev  <[email protected]>
4462
4463	* configure, configure.ac: Added --enable-rpath option to embed linker
4464	paths into library binary.
4465
44662004-10-26  Andrey Kiselev  <[email protected]>
4467
4468	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
4469
4470	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
4471	(Vladimir Nadvornik, Dmitry V. Levin).
4472
44732004-10-16  Andrey Kiselev  <[email protected]>
4474
4475	* libtiff 3.7.0 released.
4476
44772004-10-15  Bob Friesenhahn  <[email protected]>
4478
4479	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
4480	in this file so its inclusion is removed.  Including stdio.h
4481	sometimes incurs an INT32 typedef conflict between MinGW's
4482	basetsd.h and libjpeg's jmorecfg.h.
4483
44842004-10-15  Andrey Kiselev  <[email protected]>
4485
4486	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
4487
44882004-10-13  Bob Friesenhahn  <[email protected]>
4489
4490	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
4491	conflict noticed under MinGW.
4492	* ltmain.sh: Fix for MinGW compilation.
4493
44942004-10-13  Frank Warmerdam  <[email protected]>
4495
4496	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
4497	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
4498
44992004-10-12  Andrey Kiselev  <[email protected]>
4500
4501	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
4502	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
4503	properly (Dmitry V. Levin, Marcus Meissner).
4504
45052004-10-11  Andrey Kiselev  <[email protected]>
4506
4507	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
4508	to TIFF_IFD.
4509
45102004-10-10  Andrey Kiselev  <[email protected]>
4511
4512	* tools/bmp2tif.c: Check the space allocation results.
4513
45142004-10-09  Andrey Kiselev  <[email protected]>
4515
4516	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
4517	of the TIFFDirectory structure with the 0 instead of -1 to avoid
4518	confusing integer overflows in TIFFTileRowSize() for striped images.
4519
4520	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
4521	by Ross A. Finlayson.
4522
4523	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
4524
4525	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
4526
45272004-10-08  Frank Warmerdam  <[email protected]>
4528
4529	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
4530	of tif_fieldinfo.
4531
4532	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
4533
45342004-10-04  Bob Friesenhahn  <[email protected]>
4535
4536	* contrib/iptcutil/README: Added the missing README which goes
4537	along with iptcutil.
4538
45392004-10-03  Andrey Kiselev  <[email protected]>
4540
4541	* libtiff/tif_compress.c: Improved error reporting in
4542	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
4543
45442004-10-02  Andrey Kiselev  <[email protected]>
4545
4546	* libtiff 3.7.0beta2 released.
4547
4548	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
4549	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
4550	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
4551	allocations and	integer overflows (Dmitry V. Levin).
4552
4553	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
4554
45552004-10-01  Frank Warmerdam  <[email protected]>
4556
4557	* libtiff/tif_open.c: added a more informative message if a BigTIFF
4558	file is opened.
4559
45602004-09-30  Frank Warmerdam  <[email protected]>
4561
4562	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
4563	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
4564	in the Adobe XMP Specification.
4565
45662004-09-29  Andrey Kiselev  <[email protected]>
4567
4568	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
4569	memset().
4570
4571	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
4572	from Dmitry V. Levin to fix possible integer overflow problems.
4573
45742004-09-28  Andrey Kiselev  <[email protected]>
4575
4576	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
4577	(Dmitry V. Levin).
4578
45792004-09-26  Andrey Kiselev  <[email protected]>
4580
4581	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
4582	Optimize checking for the strip bounds.
4583
4584	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
4585	TIFFRasterScanlineSize() functions report zero in the case of integer
4586	overflow now. Properly handle this case in TIFFReadDirectory()
4587	(patches from Dmitry V. Levin).
4588
45892004-09-25  Andrey Kiselev  <[email protected]>
4590
4591	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
4592	macro where appropriate.
4593
4594	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
4595	noted by Gennady Khokhorin.
4596
4597	* libtiff/tif_dirread.c: Always check the return values, returned
4598	by the _TIFFmalloc() (Dmitry V. Levin).
4599
4600	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
4601	functions (Dmitry V. Levin).
4602
4603	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
4604	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
4605	TIFFGrowStrips() (found by Dmitry V. Levin).
4606
46072004-09-24  Andrey Kiselev  <[email protected]>
4608
4609	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
4610	to get the list of configured codecs.
4611
4612	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
4613	Dmitry V. Levin.
4614
46152004-09-23  Andrey Kiselev  <[email protected]>
4616
4617	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
4618	possible integer overflow in CheckMalloc() function.
4619
46202004-09-22  Andrey Kiselev  <[email protected]>
4621
4622	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
4623	of plain TIFFhowmany() where appropriate.
4624
46252004-09-21  Andrey Kiselev  <[email protected]>
4626
4627	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
4628
46292004-09-19  Andrey Kiselev  <[email protected]>
4630
4631	* libtiff 3.7.0beta released.
4632
4633	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
4634	overruns fixed, as noted by Chris Evans.
4635
46362004-09-14  Bob Friesenhahn  <[email protected]>
4637
4638	* commit: Added a script to make it more convenient to commit
4639	updates.  The CVS commit message is extracted from this ChangeLog
4640	file.
4641
46422004-09-14  Andrey Kiselev  <[email protected]>
4643
4644	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
4645	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
4646	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
4647	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
4648	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
4649	tif_config.h.in, tiffiop.h}:
4650	Get rid of BSD data types (u_char, u_short, u_int, u_long).
4651
46522004-09-13  Bob Friesenhahn  <[email protected]>
4653
4654	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
4655	specification. Reference libtiff bug tracking system to submit
4656	private tag additions.
4657
46582004-09-12  Bob Friesenhahn  <[email protected]>
4659
4660	* tools/tiffgt.c: Include "tif_config.h".
4661
4662	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
4663	tiffgt.  This results in the 'compile' script being added to the
4664	project.
4665
4666	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
4667	required to find OpenGL headers necessary to build tiffgt.  Also
4668	ensure that the libtiff that we built is used rather than some other
4669	libtiff installed on the system.
4670
46712004-09-12  Andrey Kiselev  <[email protected]>
4672
4673	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
4674	libraries.
4675
46762004-09-11  Bob Friesenhahn  <[email protected]>
4677
4678	* configure.ac: Pass library configuration defines via
4679	tif_config.h rather than extending CPPFLAGS. Configure a
4680	libtiff/tiffconf.h in order to satisfy application requirements
4681	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
4682	this causes failure to build on systems which properly respect
4683	this request.
4684
4685	* libtiff/tiffconf.h.in: New file to act as the template for the
4686	configured tiffconf.h
4687
4688	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
4689
46902004-09-10  Frank Warmerdam  <[email protected]>
4691
4692	* html/internals.html: Split off a discussion of adding new tags
4693	into addingtags.html.
4694
46952004-09-10  Andrey Kiselev  <[email protected]>
4696
4697	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
4698
4699	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
4700
4701	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4702
4703	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
4704
4705	* libtiff/tif_dirread.c: Don't reject to read tags of the
4706	SamplesPerPixel size when the tag count is greater than number of
4707	samples as per bug
4708
4709	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
4710
4711	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
4712	defining int8/uint8/... etc. types. As per bug
4713
4714	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
4715
47162004-09-09  Frank Warmerdam  <[email protected]>
4717
4718	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
4719	to avoid compile warnings about getopt() and a few other things.
4720
47212004-09-02  Andrey Kiselev  <[email protected]>
4722
4723	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
4724	assigning magic in TIFFFetchFloat().
4725
47262004-09-01  Andrey Kiselev  <[email protected]>
4727
4728	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
4729	to avoid requirement for tiffiop.h inclusion in some applications. See
4730	here
4731
4732	http://www.asmail.be/msg0054799560.html
4733
4734	for details.
4735
4736	* tools/fax2tiff.c: Use the new functions in the code.
4737
47382004-08-25  Andrey Kiselev  <[email protected]>
4739
4740	* tools/tiff2pdf.c: Initialize arrays properly.
4741
4742	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
4743	properly initialize array in PSDataBW().
4744
47452004-08-24  Andrey Kiselev  <[email protected]>
4746
4747	* tools/tiff2pdf.c: More fixes for bug
4748
4749	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4750
4751	from Ross Finlayson.
4752
47532004-08-23  Andrey Kiselev  <[email protected]>
4754
4755	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4756
4757	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4758	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4759
4760	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4761
4762	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4763
47642004-08-20  Andrey Kiselev  <[email protected]>
4765
4766	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4767	that the input file has compression, photometric interpretation,
4768	etcetra, tags or if not than a more descriptive error is returned.
4769
4770	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4771	code, responsible for tag data type checking.
4772
47732004-08-19  Andrey Kiselev  <[email protected]>
4774
4775	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4776	variable as per bug
4777
4778	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4779
47802004-08-16  Andrey Kiselev  <[email protected]>
4781
4782	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4783	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4784
47852004-08-01  Andrey Kiselev  <[email protected]>
4786
4787	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4788	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4789
47902004-07-24  Andrey Kiselev  <[email protected]>
4791
4792	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4793	separate package. All libtiff tools are updated to not advertise an
4794	abcence of LZW support.
4795
47962004-07-12  Andrey Kiselev  <[email protected]>
4797
4798	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4799
48002004-07-11  Andrey Kiselev  <[email protected]>
4801
4802	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4803	messages, as suggested by Bernd Herd.
4804
48052004-07-03  Andrey Kiselev  <[email protected]>
4806
4807	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4808	when setting custom tags by value. Reported by Eric Fieleke.
4809
48102004-06-14  Andrey Kiselev  <[email protected]>
4811
4812	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4813
48142004-06-08  Andrey Kiselev  <[email protected]>
4815
4816	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4817	into TIFFs.
4818
48192004-06-07  Andrey Kiselev  <[email protected]>
4820
4821	* libtiff 3.7.0alpha released.
4822
48232004-06-06  Andrey Kiselev  <[email protected]>
4824
4825	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4826	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4827	ones :-).
4828
4829	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4830	problems in 64-bit environment).
4831
48322004-06-05  Andrey Kiselev  <[email protected]>
4833
4834	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4835	Tags can be supplied by the mnemonic name or number.
4836
4837	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4838	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4839
48402004-05-27  Andrey Kiselev  <[email protected]>
4841
4842	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4843	markers as per bug
4844
4845	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4846
48472004-05-24  Andrey Kiselev  <[email protected]>
4848
4849	* tools/tiffsplit.c: Don't forget to copy Photometric
4850	Interpretation tag.
4851
48522004-05-20  Andrey Kiselev  <[email protected]>
4853
4854	* libtiff/{tif_open.c, tiffio.h}: New function added:
4855	TIFFIsBigEndian(). Function returns nonzero if given was file written
4856	in big-endian order.
4857
4858	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4859	files. Now output files will be written using the same byte order
4860	flag as	in the input image. See
4861
4862	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4863
4864	for details.
4865
48662004-05-19  Frank Warmerdam  <[email protected]>
4867
4868	* libtiff/tif_print.c: added (untested) support for printing
4869	SSHORT, SLONG and SRATIONAL fields.
4870
4871	* tools/tiffcp.c: close output file on normal exit.
4872
48732004-05-17  Andrey Kiselev  <[email protected]>
4874
4875	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4876	if compression type mismatches. See
4877
4878	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4879
48802004-04-30  Andrey Kiselev  <[email protected]>
4881
4882	* libtiff/tif_strip.c: Never return 0 from the
4883	TIFFNumberOfStrips().
4884
48852004-04-29  Andrey Kiselev  <[email protected]>
4886
4887	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4888	store single SampleFormat value for multisampled images. See
4889
4890	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4891
48922004-04-25  Andrey Kiselev  <[email protected]>
4893
4894	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4895	int16 and int32 types to avoid complains on some compilers. Details at
4896
4897	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4898
48992004-04-20  Andrey Kiselev  <[email protected]>
4900
4901	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4902
4903	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4904
49052004-04-14  Andrey Kiselev  <[email protected]>
4906
4907	* libtiff/tif_write.c: Allow in-place updating of the compressed
4908	images (don't work properly with all codecs). For details see GDAL bug
4909
4910	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4911
49122004-04-06  Andrey Kiselev  <[email protected]>
4913
4914	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4915	in the Intergarph JPEG compressed TIFF images as per bug:
4916
4917	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4918
49192004-04-04  Frank Warmerdam  <[email protected]>
4920
4921	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4922	via bad2.
4923
49242004-03-26  Andrey Kiselev  <[email protected]>
4925
4926	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4927	JPEG compression of grayscale images.
4928
4929	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
4930	present in the input image.
4931
49322004-03-19  Andrey Kiselev  <[email protected]>
4933
4934	* {many}: The first attempt to switch to autotools.
4935
49362004-03-03  Andrey Kiselev  <[email protected]>
4937
4938	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
4939	TIFFClientOpen() when the appropriate client functions was not
4940	supplied by user.
4941
49422004-03-02  Frank Warmerdam  <[email protected]>
4943
4944	* tools/ycbcr.c: fixed main() declaration as per:
4945	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
4946
49472004-02-26  Andrey Kiselev  <[email protected]>
4948
4949	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
4950	images. Reported by Artem Mirolubov.
4951
4952	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
4953	tag type in TIFFFetchNormalTag() as per bug
4954
4955	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
4956
49572004-02-17  Frank Warmerdam  <[email protected]>
4958
4959	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
4960	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
4961
49622004-02-05  Andrey Kiselev  <[email protected]>
4963
4964	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
4965	bug
4966
4967	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
4968
4969	But we need more work on fax codec to support update mode.
4970
49712004-01-30  Frank Warmerdam  <[email protected]>
4972
4973	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
4974	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
4975	Scott Reynolds.
4976
49772004-01-29  Andrey Kiselev  <[email protected]>
4978
4979	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
4980	and TIFFTAG_INDEXED as per bug
4981
4982	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
4983
4984	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
4985	NULL before proceeding further as per bug
4986
4987	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
4988
4989	Check results, returned by the TIFFFdOpen() before returning and close
4990	file if TIFFFdOpen() failed as per bug
4991
4992	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4993
4994	* libtiff/tif_open.c: More fixes for
4995
4996	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4997
49982004-01-28  Andrey Kiselev  <[email protected]>
4999
5000	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
5001	TIFFCleanup() from the TIFFClose() in order to fix the bug
5002
5003	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
5004
5005	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
5006	InkNames tag as per bug
5007
5008	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
5009
5010	Memory leak fixed.
5011
50122004-01-21  Frank Warmerdam  <[email protected]>
5013
5014	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
5015	are field_passcount=TRUE properly.  Arguably anonymous custom tags
5016	should be declared as passcount=FALSE, but I don't want to change
5017	that without a careful review.
5018
50192004-01-20  Andrey Kiselev  <[email protected]>
5020
5021	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
5022	stripped image in TIFFWriteBufferSetup(). As per bug
5023
5024	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
5025
50262004-01-11  Andrey Kiselev  <[email protected]>
5027
5028	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
5029	patch from Gerben Koopmans.
5030
5031	* libtiff/tif_dirread.c: Check field_passcount value before setting
5032	the value of undefined type, patch from Gerben Koopmans.
5033
50342004-01-02  Andrey Kiselev  <[email protected]>
5035
5036	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
5037	non-RGB images.
5038
50392003-12-31  Andrey Kiselev  <[email protected]>
5040
5041	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
5042	pointer passed. Patch supplied by Larry Grill.
5043
5044	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
5045	suggested by Jeremy C. Reed.
5046
50472003-12-26  Andrey Kiselev  <[email protected]>
5048
5049	* libtiff 3.6.1 released.
5050
50512003-12-24  Andrey Kiselev  <[email protected]>
5052
5053	* config.guess, config.sub: Updated from the recent upstream.
5054
50552003-12-22  Andrey Kiselev  <[email protected]>
5056
5057	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
5058	More cleanups in color conversion interface, added appropriate manual
5059	page.
5060
50612003-12-19  Andrey Kiselev  <[email protected]>
5062
5063	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
5064	per bug
5065
5066	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
5067
5068	* tools/tiff2ps.c: Added support for alpha channel. Fixes
5069
5070	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
5071
5072	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
5073	Interface for Lab->RGB color conversion is finally cleaned up.
5074	Added support for ReferenceBlackWhite tag handling when converted from
5075	YCbCr color space. The latter closes
5076
5077	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
5078
50792003-12-07  Andrey Kiselev  <[email protected]>
5080
5081	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
5082
5083	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
5084	library.
5085
50862003-12-06  Andrey Kiselev  <[email protected]>
5087
5088	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
5089	file and properly use it for CIE Lab->RGB transform.
5090
50912003-12-04  Andrey Kiselev  <[email protected]>
5092
5093	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
5094	conversion routines now in the tif_color.c module. New function
5095	TIFFYCbCrtoRGB() available in TIFF API.
5096
5097	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
5098
50992003-12-03  Andrey Kiselev  <[email protected]>
5100
5101	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
5102	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
5103	module.
5104
5105	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
5106	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
5107	Finally resolved problems with orientation handling. TIFFRGBAImage
5108	interface now properly supports all possible orientations, i.e. images
5109	will be flipped both in horizontal and vertical directions if
5110	required. 'Known bugs' section now removed from the appropriate manual
5111	pages. Closed bug entry:
5112
5113	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
5114
51152003-12-02  Andrey Kiselev  <[email protected]>
5116
5117	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
5118	function calls as per bug
5119
5120	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
5121
51222003-11-28 Ross Finlayson  <[email protected]>
5123
5124	* tools/tiff2pdf.c:  Some bugs fixed.
5125
51262003-11-27  Andrey Kiselev  <[email protected]>
5127
5128	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
5129	reported by Antonio Scuri.
5130
5131	* man/tiff2pdf.1: Few improvements in page layout.
5132
5133	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
5134	 Added support fpr tiff2pdf manual page.
5135
51362003-11-26 Ross Finlayson  <[email protected]>
5137
5138	* /man/tiff2pdf.1:  File added to repository.
5139
51402003-11-26  Andrey Kiselev  <[email protected]>
5141
5142	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
5143	 Added support fpr tiff2pdf utility.
5144
51452003-11-25  Ross Finlayson  <[email protected]>
5146
5147	* /tools/tiff2pdf.c:  File added to repository.
5148
51492003-11-22  Andrey Kiselev  <[email protected]>
5150
5151	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
5152
51532003-11-21  Andrey Kiselev  <[email protected]>
5154
5155	* /tools/raw2tiff.c: #include <getopt.h> removed.
5156
5157	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
5158	sgigt utility removed and replaced with the completely rewritten
5159	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
5160	there is a lot of things to improve.
5161
5162	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
5163	extract the fields from the OJPEG files. Patch supplied by Ross
5164	Finlayson.
5165
5166	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
5167	Added new function TIFFIsCODECConfigured(), suggested by Ross
5168	Finlayson.
5169
51702003-11-18  Andrey Kiselev  <[email protected]>
5171
5172	* libtiff/tif_dirinfo.c: Implemented binary search in
5173	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
5174
5175	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
5176	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
5177
51782003-11-17  Frank Warmerdam  <[email protected]>
5179
5180	* tif_dirread.c: do not mark all anonymously defined tags to be
5181	IGNOREd.
5182
51832003-11-17  Andrey Kiselev  <[email protected]>
5184
5185	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
5186	TIFFDataWidth() function insted of tiffDataWidth array.
5187
51882003-11-16  Andrey Kiselev  <[email protected]>
5189
5190	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
5191	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
5192
51932003-11-15  Frank Warmerdam  <[email protected]>
5194
5195	* Makefile.in: fixed missing backslash for tif_color.c in list.
5196
51972003-11-13  Andrey Kiselev  <[email protected]>
5198
5199	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
5200	New color space conversion code: CIE L*a*b* 1976 images now supported
5201	by the TIFFRGBAImage interface. All introduced routines go to new
5202	module tif_color.c. Eventually all color conversion functions should
5203	be moved there.
5204
52052003-11-12  Andrey Kiselev  <[email protected]>
5206
5207	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
5208	with the reverse byte order (it is reported by the magic header
5209	field). Problem reported by Andreas Wiesmann.
5210
5211	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
5212	calculation function. Guessing mechanics now documented in manual page.
5213
52142003-11-11  Andrey Kiselev  <[email protected]>
5215
5216	* tools/raw2tiff.c: Implemented image size guessing using
5217	correlation coefficient calculation between two neighbour lines.
5218
52192003-11-09  Frank Warmerdam  <[email protected]>
5220
5221	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
5222	planarconfig_contig case in TIFFComputeTile().
5223
5224	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
5225
52262003-11-09  Andrey Kiselev  <[email protected]>
5227
5228	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
5229
52302003-11-07  Andrey Kiselev  <[email protected]>
5231
5232	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
5233	Added TIFFRawStripSize() function as suggested by Chris Hanson.
5234
52352003-11-03  Andrey Kiselev  <[email protected]>
5236
5237	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
5238	per bug
5239
5240	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
5241
52422003-10-29  Andrey Kiselev  <[email protected]>
5243
5244	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
5245
5246	* html/build.html: Added note about GNU make requirement.
5247
52482003-10-25  Andrey Kiselev  <[email protected]>
5249
5250	* Makefile.in: Fixes in using MAKEFLAGS as per bug
5251
5252	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
5253
5254	* port/install.sh.in: Option -p added to the mkdir command to create
5255	all directory tree structure before installing.
5256
52572003-10-18  Andrey Kiselev  <[email protected]>
5258
5259	* /tools/tiff2ps.c: #include <strings.h> replaced with the
5260	#include <string.h>.
5261
52622003-10-16  Andrey Kiselev  <[email protected]>
5263
5264	* Makefile.in: Add an absolute path to the test_pics.sh call.
5265
52662003-10-12  Andrey Kiselev  <[email protected]>
5267
5268	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
5269	typedefs.
5270
52712003-10-09  Andrey Kiselev  <[email protected]>
5272
5273	* configure, libtiff/{Makefile.in, mkversion.c}:
5274	Relative buildings fixed.
5275
5276	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
5277	rule.
5278
52792003-10-07  Andrey Kiselev  <[email protected]>
5280
5281	* Makefile.in: Added missed v3.6.0.html.
5282
5283	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
5284	ORIENTATION_BOTLEFT.
5285
52862003-10-04  Andrey Kiselev  <[email protected]>
5287
5288	* 3.6.0 final release.
5289
52902003-10-03  Andrey Kiselev  <[email protected]>
5291
5292	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
5293	function TIFFReadRGBAImageOriented() implemented to retrieve raster
5294	array with user-specified origin position as suggested by Jason Frank.
5295	See
5296
5297	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
5298
5299	for details.
5300
5301	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
5302	instead of TIFFReadRGBAImage().
5303
5304	* tools/tiff2ps.c: Fixed possible endless loop as per bug
5305
5306	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
5307
53082003-09-30  Andrey Kiselev  <[email protected]>
5309
5310	* libtiff/tif_dirread.c: Check field counter against number of fields
5311	in order to fix
5312
5313	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
5314
5315	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
5316
5317	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
5318
53192003-09-25  Andrey Kiselev  <[email protected]>
5320
5321	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
5322	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
5323
5324	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
5325
53262003-09-23  Andrey Kiselev  <[email protected]>
5327
5328	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
5329
5330	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
5331
53322003-08-21  Andrey Kiselev  <[email protected]>
5333
5334	* tools/tiffmedian.c: int declaration replaced with the uint32 to
5335	support large images as per bug
5336
5337	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
5338
53392003-08-12  Andrey Kiselev  <[email protected]>
5340
5341 	* libtiff/Makefile.in: Fixed problem with building in different
5342	directory.
5343
5344	* tools/tiff2ps.c: Added missing #include <strings.h>.
5345
5346	* libtiff/tif_dirwrite.c: More fixes for custom tags code
5347	from Ashley Dreier.
5348
53492003-08-07  Andrey Kiselev  <[email protected]>
5350
5351	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
5352	Patch submitted by Balatoni Denes (with corrections from Tom
5353	Kacvinsky).
5354
5355	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
5356	being used. Reported by Tom Kacvinsky.
5357
5358	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
5359	reported by Ashley Dreier.
5360
5361	* libtiff/tif_print.c: Fixed problem with float tags reading, support
5362	for printing RATIONAL and BYTE tags added.
5363
53642003-08-05  Andrey Kiselev  <[email protected]>
5365
5366	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
5367	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
5368	problems with predictor initialization. Remove O_RDONLY check during
5369	state block allocation to be able open LZW compressed files in update
5370	mode.
5371
5372	Problem exist for libtiff version of the tif_lzw.c module. One from
5373	lzw-compression-kit hasn't such troubles.
5374
53752003-08-04  Frank Warmerdam  <[email protected]>
5376
5377	* libtiff/tif_write.c: modified tif_write.c so that the various
5378	encoded write functions use tif_postdecode() to apply byte order
5379	swapping (swab) to the application passed data buffer if the same
5380	would be done when reading.  This allows us to write pixel data with
5381	more than 8 bits per sample to existing files of a non-native byte
5382	order.  One side effect of this change is the applications buffer
5383	itself is altered in this case by the act of writing.
5384
5385	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
5386
53872003-07-25  Frank Warmerdam  <[email protected]>
5388
5389	* libtiff/tif_open.c: avoid signed/unsigned casting warning
5390	initializing typemask as per patch from J.A. Strother.
5391
5392	* tools/tiffcp.c: fixed signed/unsigned casting warning.
5393
5394	* libtiff/tif_print.c: dos2unix conversion.
5395
5396	* tools/tiffsplit.c: increased the maximum number of pages that
5397	can be split.  Patch provided by Andrew J. Montalenti.
5398
53992003-07-11  Andrey Kiselev  <[email protected]>
5400
5401	* tools/raw2tiff.c: Added option `-p' to explicitly select color
5402	space of input image data. Closes
5403
5404	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
5405
54062003-07-08  Frank Warmerdam  <[email protected]>
5407
5408	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
5409	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
5410	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
5411	avoid casting warning at /W4.
5412
54132003-07-03  Andrey Kiselev  <[email protected]>
5414
5415	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
5416
54172003-06-30  Andrey Kiselev  <[email protected]>
5418
5419	* libtiff/tif_pixarlog.c: Unused variables removed.
5420
5421	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
5422	EstimateStripByteCounts() as per bug
5423
5424	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
5425
5426	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
5427	64-bit architectures as per bug
5428
5429	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
5430
5431	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
5432	unknown data type.
5433
54342003-06-19  Frank Warmerdam  <[email protected]>
5435
5436	* libtiff/tif_print.c: fixed some serious bugs when printing
5437	custom tags ... almost certain to crash.
5438
5439	* libtiff/tif_dirread.c: Don't ignore custom fields that are
5440	autodefined.  Not sure how this got to be like this.
5441
54422003-06-18  Andrey Kiselev  <[email protected]>
5443
5444	* 3.6.0 Beta2 released.
5445
5446	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
5447	comparing as per bug
5448
5449	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
5450
5451	`-z' option now can be used to set the number of reported different
5452	bytes.
5453
54542003-06-09  Andrey Kiselev  <[email protected]>
5455
5456	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
5457	to -r option to get the entire image as one strip. See
5458
5459	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5460
5461	for details.
5462
54632003-06-04  Andrey Kiselev  <[email protected]>
5464
5465	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
5466	values as per bug
5467
5468	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5469
54702003-05-27  Frank Warmerdam  <[email protected]>
5471
5472	* libtiff/tif_jpeg.c: modified segment_height calculation to always
5473	be a full height tile for tiled images.  Also changed error to just
5474	be a warning.
5475
54762003-05-25  Andrey Kiselev  <[email protected]>
5477
5478	* tools/fax2tiff.c: Page numbering fixed, as per bug
5479
5480	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
5481
54822003-05-20  Andrey Kiselev  <[email protected]>
5483
5484	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5485	configure, Makefile.in:	Switched back to the old behaviour. Likely
5486	better solution should be found for OJPEG support.
5487
54882003-05-11  Andrey Kiselev  <[email protected]>
5489
5490	* libtiff/mkversion.c: Fixed problem with wrong string size when
5491	reading RELEASE-DATE file.
5492
54932003-05-07  Andrey Kiselev  <[email protected]>
5494
5495	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
5496	index was out of range.
5497
54982003-05-06  Andrey Kiselev  <[email protected]>
5499
5500	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5501	configure, Makefile.in:	Improved libtiff compilation with OJPEG
5502	support. Now no need for patching IJG JPEG library, hack requred by
5503	libtiff will be compiled and used in-place. Implemented with
5504	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
5505
5506	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
5507	TIFFVGetFieldDefaulted() function.
5508
55092003-05-05  Andrey Kiselev  <[email protected]>
5510
5511	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
5512	comments.
5513
5514	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
5515	was not copied from source image.
5516
5517	* libtiff/getimage.c: Workaround for some images without correct
5518	info about alpha channel as per bug
5519
5520	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
5521
55222003-04-29  Andrey Kiselev  <[email protected]>
5523
5524	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
5525	It basically allows one to use the /flateDecode filter for ZIP
5526	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
5527
5528	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
5529
5530	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
5531	as per bug
5532
5533	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
5534
55352003-04-17  Andrey Kiselev  <[email protected]>
5536
5537	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
5538	due to problems with multidirectory images. Quality of error messages
5539	improved.
5540
55412003-04-16  Andrey Kiselev  <[email protected]>
5542
5543	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
5544	encoded images. See bug entries
5545
5546	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
5547
5548	and
5549
5550	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5551
5552	* libtiff/tif_dirread.c: Additional check for StripByteCounts
5553	correctness. Fixes
5554
5555	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
5556
55572003-03-12  Andrey Kiselev  <[email protected]>
5558
5559	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
5560	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
5561	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
5562	tiffmedian.c}: Added library version reporting facility to all tools.
5563
55642003-03-06  Frank Warmerdam  <[email protected]>
5565
5566	* port/install.sh.in: Fixed problems with install producing paths
5567	like ///usr/local/lib on cygwin.
5568
55692003-02-27  Andrey Kiselev  <[email protected]>
5570
5571	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
5572	raw input page. Patch supplied by Julien Gaulmin. See
5573
5574	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
5575
5576	for details.
5577
55782003-02-26  Frank Warmerdam  <[email protected]>
5579
5580	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
5581	responsible for byte swapping complex image data.
5582
5583	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
5584	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
5585
55862003-02-07  Andrey Kiselev  <[email protected]>
5587
5588	* tools/ppm2tiff.c: Fixed problem with too many arguments.
5589
55902003-02-04  Andrey Kiselev  <[email protected]>
5591
5592	* tools/raw2tiff.c: Memory leak fixed.
5593
55942003-02-03  Andrey Kiselev  <[email protected]>
5595
5596	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
5597	(thanks, Julien!). More switches for fax2tiff tool for better control
5598	of input and output. Details at
5599
5600	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
5601
56022003-02-03  Frank Warmerdam  <[email protected]>
5603
5604	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
5605	library so that we can check if there is already any tile/strip data
5606	before deciding between creating a compressor or a decompressor.
5607
56082003-01-31  Frank Warmerdam  <[email protected]>
5609
5610	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
5611	a pre-existing compressed image.  That is, image writing to
5612	pre-existing compressed images is not allowed.
5613
5614	* libtiff/tif_open.c: Removed error if opening a compressed file
5615	in update mode.
5616
5617	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
5618
56192003-01-31  Andrey Kiselev  <[email protected]>
5620
5621	* config.guess, config.sub: Updated to recent upstream versions.
5622
56232003-01-15  Frank Warmerdam  <[email protected]>
5624
5625	* cut 3.6.0 Beta release.
5626
56272002-12-20  Andrey Kiselev  <[email protected]>
5628
5629	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
5630	in wrong way as per bug
5631
5632	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
5633
56342002-12-17  Frank Warmerdam  <[email protected]>
5635
5636	* libtiff/tif_dirread.c: Allow wrong sized arrays in
5637	TIFFFetchStripThing().
5638
5639	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
5640
56412002-12-02  Frank Warmerdam  <[email protected]>
5642
5643	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
5644	Was using realloc even first time.  Fix by Igor Venevtsev.
5645
56462002-11-30  Frank Warmerdam  <[email protected]>
5647
5648	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
5649	field value.
5650
5651	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
5652	tags in TIFFVGetField() ... added missing break.
5653
56542002-10-14  Frank Warmerdam  <[email protected]>
5655
5656	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
5657	the scanline buffer long enough when writing rgb triplets.
5658	The scanline needs to be 3 X the number of dots or else it will
5659	contain	an incomplete triplet and programs that try to separate
5660	the eps by redefining the colorimage operator will get messed up.
5661	Patch supplied by William Bader.
5662
5663	* Makefile.in: added tif_extension.c to file list as per
5664	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
5665
56662002-10-11  Andrey Kiselev  <[email protected]>
5667
5668	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
5669	large files (>2GiB) supporting. New option in the config.site:
5670	LARGEFILE="yes". Should be enough for I/O of the large files.
5671
56722002-10-10  Frank Warmerdam  <[email protected]>
5673
5674	* libtiff/html/v3.6.0.html: new release notes.
5675
5676	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
5677	link for Andrey.  Pointer to v3.6.0.html.
5678
5679	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
5680
56812002-10-07  Andrey Kiselev  <[email protected]>
5682	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
5683	(thanks, Sebastian!). New switches:
5684	-b # for a bottom margin of # inches
5685	-c   center image
5686	-l # for a left margin of # inches
5687	-r   rotate the image by 180 degrees
5688	New features merged with code for shrinking/overlapping.
5689	Previously added -c and -n switches (for overriding PS units) renamed
5690	in -x and -y respectively.
5691
5692	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
5693
5694	* html/man/*.html: Updated from actual manual pages.
5695
56962002-10-06  Frank Warmerdam  <[email protected]>
5697
5698	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
5699	size on windows.  Use #define boolean hack.
5700
5701	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
5702
5703	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
5704	USING_VISUALAGE is defined.
5705
5706	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5707
57082002-10-03  Frank Warmerdam  <[email protected]>
5709
5710	* libtiff/tiff.h: added COMPRESSION_JP2000.
5711
57122002-10-02  Andrey Kiselev  <[email protected]>
5713
5714	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
5715	by the TIFFFetchByteArray() function. Should finally resolve
5716
5717	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5718
5719	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
5720
5721	* html/Makefile.in: New targets added: html and groffhtml for
5722	producing HTML representations of the manual pages automatically.
5723	html target uses man2html tool, groffhtml uses groff tool.
5724
57252002-09-29  Frank Warmerdam  <[email protected]>
5726
5727	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
5728	from John H. DuBois III.
5729
57302002-09-15  Andrey Kiselev  <[email protected]>
5731
5732	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
5733	manual page for raw2tiff(1) tool.
5734
57352002-09-12  Andrey Kiselev  <[email protected]>
5736
5737	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
5738	the tiffio.h header file.
5739
5740	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
5741	manual page for TIFFDataWidth() function
5742
57432002-09-08  Frank Warmerdam  <[email protected]>
5744
5745	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
5746	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
5747
5748	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
5749	since we are unable to properly include the amount to skip.
5750
5751	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
5752
57532002-09-02  Andrey Kiselev  <[email protected]>
5754
5755	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5756	in TIFFFetchByteArray(). Problem described at
5757	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5758
57592002-08-22  Andrey Kiselev  <[email protected]>
5760
5761	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5762	in _TIFFSetupFieldInfo() function.
5763	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5764
5765	* /libtiff/tif_lzw.c: Additional consistency checking added in
5766	LZWDecode() and LZWDecodeCompat().
5767	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5768	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5769
5770	* /libtiff/tif_lzw.c:
5771	Added check for valid code lengths in LZWDecode() and
5772	LZWDecodeCompat(). Fixes
5773	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5774
57752002-08-16  Andrey Kiselev  <[email protected]>
5776
5777	* /libtiff/{Makefile.vc, libtiff.def}:
5778	Missed declarations added.
5779
57802002-08-15  Frank Warmerdam  <[email protected]>
5781
5782	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5783	return code from the underlying pick function.
5784
5785	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5786
5787	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5788	with FIELD_CUSTOM as mentioned in bug 169.
5789
5790	* tif_close.c: added logic to free dynamically created anonymous
5791	field definitions to correct a small memory leak.
5792
5793	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5794
57952002-08-10  Andrey Kiselev  <[email protected]>
5796
5797	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5798	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5799
58002002-07-31  Frank Warmerdam  <[email protected]>
5801
5802	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5803	JPEGDecode() as per bugzilla bug (issue 1):
5804
5805	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5806
5807	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5808	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5809	present in the tiff tags.
5810
5811	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5812
5813	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5814	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5815	fooled with the value.
5816
5817	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5818
58192002-06-22  Andrey Kiselev  <[email protected]>
5820
5821	* /tools/tiff2ps.c: Added workaround for some software that may crash
5822	when last strip of image contains fewer number of scanlines than
5823	specified by the `/Height' variable. See
5824	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5825	for explanation.
5826
58272002-06-21  Andrey Kiselev  <[email protected]>
5828
5829	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5830	splitting long images in several pages. See
5831	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5832	Patch granted by John Williams <[email protected]>.
5833
58342002-06-11  Frank Warmerdam  <[email protected]>
5835
5836	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5837	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5838	This one is described in:
5839
5840	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5841
5842	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5843
5844	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5845
58462002-05-10  Andrey Kiselev  <[email protected]>
5847
5848	* tools/tiff2ps: New commandline switches to override resolution
5849	units obtained from the input file. Closes
5850	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5851
58522002-04-26  Andrey Kiselev  <[email protected]>
5853
5854	* libtiff/libtiff.def: Added missed declaration.
5855
58562002-04-22  Andrey Kiselev  <[email protected]>
5857
5858	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5859	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5860
58612002-04-20  Andrey Kiselev  <[email protected]>
5862
5863	* libtiff/tif_open.c: Pointers to custom procedures
5864	in TIFFClientOpen() are checked to be not NULL-pointers.
5865
58662002-04-18  Andrey Kiselev  <[email protected]>
5867
5868	* libtiff/libtiff.def: Added missed declarations.
5869
5870	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5871
58722002-04-16  Andrey Kiselev  <[email protected]>
5873
5874	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5875	Should finally close
5876	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5877
58782002-04-10  Andrey Kiselev  <[email protected]>
5879
5880	* tools/tiff2ps: Division by zero fixed.
5881	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5882
58832002-04-09  Andrey Kiselev  <[email protected]>
5884
5885	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5886	TIFFCheckpointDirectory() routine added.
5887	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5888
5889	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5890	for the new function.
5891
58922002-04-08  Andrey Kiselev  <[email protected]>
5893
5894	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5895	additional members tif->tif_decodestatus and tif->tif_encodestatus
5896	for correct handling of unconfigured codecs (we should not try to read
5897	data or to define data size without correct codecs).
5898
5899	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5900	changed. Now it has used tif->tif_decodestatus and
5901	tif->tif_encodestatus.
5902	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5903	case of __cvs_8.tif test image).
5904
5905	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5906	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5907	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5908	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5909
59102002-04-04  Andrey Kiselev  <[email protected]>
5911
5912	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5913	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5914	files by skipping bad strips.
5915	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5916
59172002-04-03  Frank Warmerdam  <[email protected]>
5918
5919	* libtiff/tif_dirwrite.c: Removed some dead code.
5920
5921	* libtiff/*: Cleanup some warnings.
5922
5923	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5924	for variable length FIELD_CUSTOM values.  Was int * but should be
5925	u_short *.
5926
59272002-04-01  Andrey Kiselev  <[email protected]>
5928
5929	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
5930	utility (at cpStripToTile routine).
5931
59322002-03-27  Frank Warmerdam  <[email protected]>
5933
5934	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
5935
5936	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
5937
5938	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
5939	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
5940
5941	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
5942	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
5943
59442002-03-26  Dwight Kelly  <[email protected]>
5945
5946	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5947	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
5948	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
5949	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
5950	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
5951	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
5952
59532002-03-26  Andrey Kiselev  <[email protected]>
5954
5955	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
5956	now also uses TIFFRGBAImageOK before reading. This is additional fix
5957	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5958
59592002-03-25  Andrey Kiselev  <[email protected]>
5960
5961	* libtiff/: tif_getimage.c: Additional check for supported
5962	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
5963	TIFFRGBAImageOK before reading.
5964	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5965
59662002-03-15  Andrey Kiselev  <[email protected]>
5967
5968	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5969	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
5970	TIFFDataType sizes instead of working with tiffDataWidth array
5971	directly. Should prevent out-of-borders bugs in case of unknown or
5972	broken data types.  EstimateStripByteCounts routine modified, so it
5973	won't work when tags with uknown sizes founded.
5974	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
5975
59762002-03-13  Andrey Kiselev  <[email protected]>
5977
5978	* libtiff/tif_getimage.c: Added support for correct handling
5979	`Orientation' tag in gtTileContig. Should be added in other gt*
5980	functions as well, but I have not images for testing yet. Partially
5981	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5982
59832002-03-10  Andrey Kiselev  <[email protected]>
5984
5985	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
5986	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
5987	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
5988	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
5989
59902002-03-08  Andrey Kiselev  <[email protected]>
5991
5992	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
5993	be stripped when installing, utility binaries will do.	Closes
5994	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5995
59962002-02-28  Frank Warmerdam  <[email protected]>
5997
5998	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
5999
6000	* man/libtiff.3t: added copyright tag info.
6001
60022002-02-11  Frank Warmerdam  <[email protected]>
6003
6004	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
6005
6006	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
6007
6008	* man/Makefile.in: Patch DESTDIR handling
6009
6010	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
6011
6012	* configure: OpenBSD changes for Sparc64 and DSO version.
6013
6014	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
6015
60162002-02-05  Frank Warmerdam  <[email protected]>
6017
6018	* config.site/configure: added support for OJPEG=yes option to enable
6019	OJPEG support from config.site.
6020
60212002-01-27  Frank Warmerdam  <[email protected]>
6022
6023	* html/document.html: fixed links for TIFf 6 docs.
6024
60252002-01-18  Frank Warmerdam  <[email protected]>
6026
6027	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
6028
6029	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
6030	decodestrip function returns anything not greater than zero as per
6031	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
6032
6033	* configure: Modify CheckForBigEndian so it can work in a cross
6034	compiled situation.
6035
60362002-01-16  Frank Warmerdam  <[email protected]>
6037
6038	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
6039
6040	* tools/tiffset.c: fix bug in error reporting.
6041
6042	* tools/tiffcp.c: fix several warnings that show up with -Wall.
6043
60442002-01-04  Frank Warmerdam  <[email protected]>
6045
6046	* libtiff/tif_jpeg.c: fixed computation of segment_width for
6047	tiles files to avoid error about it not matching the
6048	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
6049	size.") for ITIFF files.  Apparently the problem was incorporated since
6050	3.5.5, presumably during the OJPEG/JPEG work recently.
6051
60522001-12-15  Frank Warmerdam  <[email protected]>
6053
6054	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
6055
6056	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
6057
6058	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
6059	(defined in tiffconf.h - 1 by default) then the RGBA interface
6060	will assume that a fourth extra sample is ASSOCALPHA if the
6061	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
6062	the library, but makes it work better with RGBA files produced by
6063	lots of applications that don't mark the alpha values properly.
6064
6065	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
6066	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
6067
60682001-12-12  Frank Warmerdam  <[email protected]>
6069
6070	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
6071	override those from tiff directory.  This makes this work with
6072	ImageGear generated files.
6073
60742001-12-07  Frank Warmerdam  <[email protected]>
6075
6076	* html/Makefile.in: added missing images per bug 92.
6077
6078	* port/Makefile.in: fixed clean target per bug 92.
6079
60802001-11-28  Frank Warmerdam  <[email protected]>
6081
6082	* Reissue 3.5.7 release.
6083
6084	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
6085	YYYYMMDD so that it is increasing over time.
6086
6087	* Makefile.in: Ensure that tiffvers.h is regenerated in the
6088	make release target.
6089
6090	* Makefile.in: added libtiff/tiffvers.h to the release file list.
6091
60922001-11-23  Frank Warmerdam  <[email protected]>
6093
6094	* added html/v3.5.7.html, updated html/index.html.
6095
6096	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
6097
60982001-11-15  Frank Warmerdam  <[email protected]>
6099
6100	* configure: fixed test for -lm.
6101
61022001-11-02  Frank Warmerdam  <[email protected]>
6103
6104	* Added PHOTOMETRIC_ITULAB as per bug 90.
6105
6106	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
6107
61082001-10-10  Frank Warmerdam  <[email protected]>
6109
6110	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
6111	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
6112	in keeping with TIFF 6.0 standard in tiff.h
6113
6114	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
6115
61162001-09-26  Frank Warmerdam  <[email protected]>
6117
6118	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
6119	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
6120
61212001-09-24  Frank Warmerdam  <[email protected]>
6122
6123	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
6124
6125	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
6126
6127	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
6128	error about LZW not being available.
6129
6130	* libtiff/tif_dir.c: propagate failure to initialize compression
6131	back from TIFFSetField() as an error status, so applications can
6132	detect failure.
6133
6134	* libtiff/tif_dir.c: removed the auto replacement of
6135	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
6136
6137	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
6138	from CVS as they are all supposed to be auto-generated by configure.
6139
61402001-09-22  Frank Warmerdam  <[email protected]>
6141
6142	* libtiff/tif_ojpeg.c: new update from Scott.
6143
61442001-09-09  Frank Warmerdam  <[email protected]>
6145
6146	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
6147	always use the "safe" version, even if there is a very slight
6148	cost in performance.
6149
6150	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
6151
6152	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
6153	in two places.
6154
6155	* libtiff/tif_getimage.c: Fixed problem with reading strips or
6156	tiles that don't start on a tile boundary.  Fix contributed by
6157	Josep Vallverdu (from HP), and further described in bug 47.
6158
6159	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
6160
6161	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
6162
6163	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
6164
61652001-09-06  Frank Warmerdam  <[email protected]>
6166
6167	* libtiff/tif_packbits.c: fixed memory overrun error.
6168
6169	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
6170
61712001-08-31  Frank Warmerdam  <[email protected]>
6172
6173	* libtiff/tif_getimage.c: relax handling of contig case where
6174	there are extra samples that are supposed to be ignored.  This
6175	should now work for 8bit greyscale or palletted images.
6176
6177	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
6178
61792001-08-28  Frank Warmerdam  <[email protected]>
6180
6181	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
6182	images with more than four samples per pixel.  See:
6183
6184	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
6185
61862001-08-10  Frank Warmerdam  <[email protected]>
6187
6188	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
6189	in TIFFReadRGBATile() to avoid issues in cases of overlapping
6190	buffers.  See Bug 69 in Bugzilla.
6191
6192	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
6193
6194	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
6195
61962001-08-09  Frank Warmerdam  <[email protected]>
6197
6198	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
6199	when checking for 64 bit architectures as per bugzilla bug 67.
6200
62012001-07-27  Frank Warmerdam  <[email protected]>
6202
6203	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
6204	bug 66.
6205
62062001-07-20  Frank Warmerdam  <[email protected]>
6207
6208	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
6209	has been included.
6210
62112001-07-19  Frank Warmerdam  <[email protected]>
6212
6213	* libtiff/tif_open.c: Seek back to zero after failed read,
6214	before writing header.
6215
62162001-07-18  Frank Warmerdam  <[email protected]>
6217
6218	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
6219	much better.  Now depends on having patched libjpeg as per
6220	patch in contrib/ojpeg/*.
6221
62222001-07-17  Frank Warmerdam  <[email protected]>
6223
6224	* */Makefile.in: added DESTDIR support.
6225
6226	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
6227
62282001-07-16  Frank Warmerdam  <[email protected]>
6229
6230	* configure, libtiff/Makefile.in: applied OpenBSD patches
6231	as per:
6232
6233	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
6234
62352001-06-28  Frank Warmerdam  <[email protected]>
6236
6237	* libtiff/tif_getimage.c: Fixed so that failure is properly
6238	reported by gtTileContig, gtStripContig, gtTileSeparate and
6239	gtStripSeparate.
6240
6241	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
6242
6243	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
6244	Updated bug section of tiffcmp.1 to note tiled file issues.
6245
6246	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
6247
62482001-06-22  Frank Warmerdam  <[email protected]>
6249
6250	* configure: Changes for DSO generation on AIX provided by
6251	John Marquart <[email protected]>.
6252
6253	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
6254	on Darwin thanks to Robert Krajewski ([email protected]) and
6255	Keisuke Fujii ([email protected]).
6256
62572001-06-13  Frank Warmerdam  <[email protected]>
6258
6259	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
6260
6261	* man/tiff2rgba.1: new
6262
62632001-05-22  Frank Warmerdam  <[email protected]>
6264
6265	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
6266
62672001-05-13  Frank Warmerdam  <[email protected]>
6268
6269	* libtiff/tools/thumbnail.c: changed default output compression
6270	to packbits from LZW since LZW isn't generally available.
6271
62722001-05-12  Frank Warmerdam  <[email protected]>
6273
6274	* libtiff/tif_ojpeg.c: New.
6275	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
6276	to OJPEG support.
6277
6278	Scott Marovich <[email protected]> supplied OJPEG support.
6279
62802001-05-11  Frank Warmerdam  <[email protected]>
6281
6282	* tiff.h: removed, it duplicates libtiff/tiff.h.
6283
62842001-05-08  Frank Warmerdam  <[email protected]>
6285
6286	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
6287	ensure everything is in order.
6288
6289	* libtiff/libtiff.def: added TIFFCreateDirectory and
6290	TIFFDefaultStripSize as per:
6291
6292	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
6293
62942001-05-02  Frank Warmerdam  <[email protected]>
6295
6296	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
6297	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
6298	force use of uint32 counts instead of short counts.
6299
6300	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
6301	case of writing TIFF_BYTE/TIFF_SBYTE fields.
6302
6303	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
6304
63052001-05-01  Frank Warmerdam  <[email protected]>
6306
6307	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
6308	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
6309
63102001-04-05  Frank Warmerdam  <[email protected]>
6311
6312	* tiffio.h: removed C++ style comment.
6313
6314	* configure: fixed up SCRIPT_SH/SHELL handling.
6315
6316	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
6317
6318	* config.guess: documented more variables as per bug 40.
6319
63202001-04-03  Frank Warmerdam  <[email protected]>
6321
6322	* configure, *Makefile.in: Various changes to improve configuration
6323	for HP/UX specifically, and also in general.  They include:
6324	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
6325	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
6326	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
6327	 - Use -${MAKEFLAGS} in sub makes from makefiles.
6328
6329	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
6330
63312001-04-02  Frank Warmerdam  <[email protected]>
6332
6333	* libtiff/tiff.h: Applied hac to try and resolve the problem
6334	with the inttypes.h include file on AIX.
6335
6336	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
6337
6338	* VERSION: update to 3.5.7 beta in preparation for release.
6339
6340	* configure/config.site: modified to check if -lm is needed for
6341	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
6342
6343	* config.guess: updated wholesale to an FSF version apparently
6344	from 1998 (as opposed to 1994).  This is mainly inspired by
6345	providing for MacOS X support.
6346
63472001-03-29  Frank Warmerdam  <[email protected]>
6348
6349	* configure, Makefile.in, etc: added support for OPTIMIZER being
6350	set from config.site.
6351
63522001-03-28  Frank Warmerdam  <[email protected]>
6353
6354	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
6355
6356	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
6357	sizes. It fixes two problems:
6358
6359	Without	scaling (-S) the fax is now centered on the page size specified
6360	with -H	and/or -W. Before, fax2ps was using an obscure and practially
6361	useless algorithm to allocate the image relative to Letter sized paper
6362	which sometime sled to useless whitespace on the paper, while at the
6363	same time cutting of the faxes printable area at the opposite border.
6364
6365	Second, scaling now preserves aspect ratio, which makes unusual faxes
6366	(in particular short ones) print properly.
6367
6368	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
6369
6370	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
6371	Bruce A. Mallett.  See check message for detailed information
6372	on all the changes, including a faster encoder, fixes for level
6373	2 PostScript, and support for the imagemask operator.
6374
63752001-03-27  Frank Warmerdam  <[email protected]>
6376
6377	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
6378	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
6379
6380	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
6381
63822001-03-16  Frank Warmerdam  <[email protected]>
6383
6384	* tif_dirinfo.c: moved definition of copyright tag in field list.
6385	Apparently they have to be in sorted order by tag id.
6386
63872001-03-13  Frank Warmerdam  <[email protected]>
6388
6389	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
6390	images in RGBA interface.
6391
63922001-03-02  Frank Warmerdam  <[email protected]>
6393
6394	* Added TIFFTAG_COPYRIGHT support.
6395
63962001-02-19  Frank Warmerdam  <[email protected]>
6397
6398	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
6399	with support for extracting subimages with the ,n syntax, and also
6400	adding the -b bias removal flag.
6401
64022001-02-16  Frank Warmerdam  <[email protected]>
6403
6404	* libtiff/libtiff.def: Brent Roman submitted new version adding
6405	serveral missing entry points.
6406
6407	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
6408	Some sort of weird VMS thing.
6409
6410	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
6411
6412	* tif_luv.c/tiff.h/tiffio.h:
6413	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
6414	([email protected]).  He writes:
6415
6416	1) I improved the gamut-mapping function in tif_luv.c for imaginary
6417	colors, because some images were being super-saturated on the input
6418	side and this resulted in some strange color shifts in the output.
6419
6420	2) I added a psuedotag in tiff.h to control random dithering during
6421	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
6422	on for 24-bit LogLuv output.  Dithering improves the average color
6423	accuracy over the image.
6424
6425	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
6426	tiffio.h, to expose internal routines for converting between LogLuv and
6427	XYZ coordinates.  This is helpful for writing more efficient,
6428	specialized conversion routines, especially for reading LogLuv files.
6429
6430	Changes applied with minor edits.
6431
64322001-01-23  Frank Warmerdam  <[email protected]>
6433
6434	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
6435	whether we are encoding or decoding.  This is to ensure graceful
6436	recovery if TIFFClientOpen() discovers an attempt to open a compressed
6437	file for "r+" access, and subsequently close it, as it resets the
6438	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
6439	compressor's concept of whether it is in encode or decode mode.
6440
64412001-01-08  Mike Welles <[email protected]>
6442
6443	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
6444
64452001-01-07  Frank Warmerdam  <[email protected]>
6446
6447	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
6448	as per bug report by Patrick Connor.
6449
64502000-12-28  Frank Warmerdam  <[email protected]>
6451
6452	* Added RELEASE-DATE file to release file list.
6453
6454	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
6455
64562000-12-22  Mike Welles <[email protected]>
6457        * added link to CVS mirror from index.html
6458
6459	* updated html/internals.html to note that LZW compression is
6460	  not supported by default.
6461
64622000-12-22  Frank Warmerdam  <[email protected]>
6463
6464	* updated html/libtiff.html to not point at Niles' old JPL web site
6465	for the man pages, point at www.libtiff.org.
6466
64672000-12-21  Frank Warmerdam  <[email protected]>
6468
6469	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
6470	Leonard Rosenthol <[email protected]>.  May interfere
6471	with correct building on older systems.  If so, please let me know.
6472
64732000-12-19 Mike Welles <[email protected]>
6474
6475	* Took out LZW Encoding from tif_lzw.c
6476
6477	* Created HOWTO-RELEASE
6478
6479	* Created html/v3.5.6.html
6480
6481	* updated index.html
6482
64832000-12-01  Frank Warmerdam  <[email protected]>
6484
6485	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
6486	Patches supplied by Frank Cringle <[email protected]>
6487	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
6488
64892000-11-24  Frank Warmerdam  <[email protected]>
6490
6491	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
6492	target so that the private headers required by libgeotiff can be
6493	installed with the others.  They are not installed by default.
6494
6495	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
6496	targets so libtiff.so will be built with an explicit dependency
6497	on libm.so.
6498
6499	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
6500	libtiff.so.3.5.5.
6501
6502	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
6503	file, or ALPHA version logic.  Added stuff about DIST_POINT in
6504	place of DIST_TYPE and the alpha release number stuff.
6505
65062000-11-22  Frank Warmerdam  <[email protected]>
6507
6508	* I have applied a patch from Steffen Moeller <[email protected]> to
6509	the configure script so that it now accepts the --prefix, and
6510	--exec-prefix directives.
6511
65122000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
6513
6514	* I have made a variety of modifications in an effort to ensure the
6515	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
6516	file which seems to be updated regularly.
6517
6518	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
6519	   version include file.
6520	 o renamed version.h to tiffvers.h because we now have to install it
6521	   with the public libtiff include files.
6522	 o include tiffvers.h in tiffio.h.
6523	 o updated tif_version.c to use tiffvers.h.
6524	 o Updated Makefile.in accordingly.
6525
6526	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
6527	I have updated the win32 detection rules in tiffcomp.h.
6528
65292000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
6530
6531	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
6532	the strip/tile width and height aren't multiples of the sampling size.
6533	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
6534	Some patches from Rick LaMont of Dot C Software.
6535
6536	* Modified tif_packbits.c encoder to avoid compressing more
6537	data than provided if rowsize doesn't factor into provided data
6538	(such as occurs for YCbCr).
6539
65402000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
6541
6542	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
6543	roundup if rows_per_strip not a multiple of vertical sample size.
6544
65452000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
6546
6547	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
6548	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6549	from [email protected].
6550
6551	* Modified tif_packbits.c decoding to avoid overrunning the
6552	output buffer, and to issue a warning if data needs to be
6553	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6554
65552000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
6556
6557	* Modified tiff2bw to ensure portions add to 100%, and that
6558	white is properly recovered.
6559
6560	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
6561	Patch c/o Stanislav Brabec <[email protected]>
6562
65632000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
6564
6565	* Modified TIFFClientOpen() to emit an error on an attempt to
6566	open a comperessed file for update (O_RDWR/r+) access.  This is
6567	because the compressor/decompressor code gets very confused when
6568	the mode is O_RDWR, assuming this means writing only.  See
6569	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
6570
65712000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
6572
6573	* Added GNULDdso target an`d switched linux and freebsd to use it.
6574
65752000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
6576
6577	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
6578	of EXPAND1D() as per bug 11 (from Roman).
6579
65802000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
6581	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
6582	cygwin compatibility.
6583
6584	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
6585	be a proper fix to the buffer sizing problem.  See
6586	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
6587
6588	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
6589	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
6590	Thanks to Nick Lamb <[email protected]> for reporting the
6591	bug and proving the patch.
6592
65932000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
6594
6595	* Fixed tif_jpeg.c so avoid destroying the decompressor before
6596	we are done access data thanks to bug report from:
6597	Michael Eckstein <[email protected]>.
6598
6599	* Reverted tif_flush change.
6600
66012000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
6602
6603	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
6604	error when TIFF_BEENWRITING is not set.  This ensures that the
6605	directory contents can still be flushed by TIFFFlush().
6606
66072000-08-14  Frank Warmerdam  <[email protected]>
6608
6609	* tif_open.c: Don't set MMAP for O_RDWR files.
6610
6611	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
6612	so that files opened for update can be strip chopped too.
6613
6614	* tif_read.c: fixed up bug with files missing rowsperstrip and
6615	the strips per separation fix done a few weeks ago.
6616
66172000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
6618
6619	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
6620	SAMPLEFORMAT_COMPLEXINT.
6621
66222000-07-13  Mike Welles <[email protected]>
6623
6624	* index.html, bugs.html: added bugzilla info.
6625
66262000-07-12  Frank Warmerdam  <[email protected]>
6627
6628	* tif_read.c: fix subtle bug with determining the number of
6629	rows for strips that are the last strip in a separation but
6630	not the last strip of all in TIFFReadEncodedStrip().
6631
6632	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
6633	Peter Skarpetis <[email protected]>
6634
66352000-06-15  Frank Warmerdam  <[email protected]>
6636
6637	* Modified tiffio.h logic with regard to including windows.h.  It
6638	won't include it when building with __CYGWIN__.
6639
66402000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
6641
6642	* README: update to mention www.libtiff.org, don't list Sam's old
6643	email address.
6644
6645	* configure: Fixed DSO test for Linux as per patch from
6646	  Jan Van Buggenhout <[email protected]>.
6647
66482000-04-21  Frank Warmerdam  <[email protected]>
6649
6650	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
6651	one tile/strip images with an offset, and byte count of zero. These
6652	could be "unpopulated" images.
6653
66542000-04-18  Frank Warmerdam  <[email protected]>
6655
6656	* contrib/addtiffo: Added "averaging" resampling option.
6657
6658	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
6659
6660Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
6661
6662	* tools/Makefile.in: Modified to install properly on SGI.
6663
66642000-04-12  Mike Welles	     <[email protected]>
6665	* configure:  Fixed stupid mistake in libc6 test on Linux
6666
66672000-04-04  Mike Welles	     <[email protected]>
6668	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
6669	  caught by BoundsChecker.  From Arvan Pritchard
6670	  <[email protected]>  (untested).
6671
6672	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
6673	  Arvan Pritchard <[email protected]>
6674
6675	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
6676	  Arvan Pritchard <[email protected]>
6677
66782000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
6679
6680	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
6681
66822000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
6683
6684	* fax2ps: Fixed mixup of width and height in bounding box statement
6685	as per submission by Nalin Dahyabhai <[email protected]>.
6686
66872000-03-27  Mike Welles	     <[email protected]>
6688
6689	* fax2ps:  Modified printruns to take uint32 instead of uint16.
6690	Patch courtesy of Bernt Herd <[email protected]>
6691
66922000-03-20  Mike Welles	     <[email protected]>
6693
6694	* configure: added test for libc6 for linux targets.  Bug reported by
6695        Stanislav Brabec <[email protected]>
6696
6697	* Added 3.5 docs to html/Makefile.in.
6698	Thanks to  Stanislav Brabec <[email protected]>
6699
6700	* configure: fixed bugs in sed scripts
6701	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
6702	fix submitted to Stanislav Brabec <[email protected]>
6703
6704	* tools/iptcutil was not in files list, and wasn't being
6705	added to tar archive.  Updated Makefile.in.
6706
67072000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
6708
6709	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
6710	conversion for the run arrays.
6711
67122000-03-03  Frank Warmerdam  <[email protected]>
6713
6714	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
6715	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
6716
67172000-03-02  Frank Warmerdam  <[email protected]>
6718
6719	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
6720
6721	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
6722	to avoid overruns encountered with frle_bug.tif.
6723
6724Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
6725
6726	* Fixed tools/tiffcmp so that stopondiff testing works.
6727	  Patch care of Joseph Orost <[email protected]>.
6728
67292000-01-28    <warmerda@CS46980-B>
6730
6731	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
6732	  set to 1, and added default (off) setting in tiffconf.h.  This
6733	  should eventually be set by the configure script somehow.
6734
6735	  The original work on all these 2-4GB changes was done by
6736	  Peter Smith ([email protected]).
6737
6738	* Modified tif_win32.c to support 2-4GB seeks.
6739
6740	* tentatively changed toff_t to be unsigned instead of signed to
6741	  facilitate support for 2-4GB files.
6742
6743	* Updated a variety of files to use toff_t.  Fixed some mixups
6744	  between toff_t and tsize_t.
6745
6746Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
6747
6748	* Largely reimplemented contrib/addtiffo to avoid temp files,
6749	updating the TIFF file in place.  Fixed a few other bugs to.
6750
6751	* Set tif_rawdatasize to zero when freeing raw data buffer in
6752	TIFFWriteDirectory().
6753
6754	* Enabled "REWRITE_HACK" in tif_write.c by default.
6755
6756	* Fix bug in tif_write.c when switching between reading one directory
6757	and writing to another.
6758
6759	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6760
6761Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6762
6763	* Added TIFFmemory(3t) functions to libtiff.def.
6764
6765Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6766
6767	* Added libtiff/libtiff.def to TIFFILES distribution list.
6768
6769Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6770
6771	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6772
6773	* Altered descriptions in tools to reflect "by default" lzw not supported
6774
6775	* Updated index.html to note lzw compression kit.
6776
6777Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6778
6779	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6780
6781Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6782
6783	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6784
6785	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6786	  when LZW compression invoked.
6787
6788	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6789	  in tools to reflect removal of LZW compression
6790
6791Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6792
6793        * Fixed bug that caused LZW (non) compression to segfault. Added
6794	  warning about LZW compression removed being removed, and why.
6795
6796	* Added nostrip to install in tools/Makefile.in so that debugging
6797	  symbols are kept.
6798
6799Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6800
6801	* Added patch from Ivo Penzar <[email protected]>,
6802	  supporting Adobe ZIP deflate.  Untested.
6803
6804Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6805
6806	* Made Packbits the default compression in tools/tiff2rgba.c instead
6807	of LZW.
6808
6809Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6810
6811	* Added tif_luv to contrib/djgpp/Makefile.lib.
6812
6813Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6814
6815        * Added zip creation to relase makefile target
6816
6817	* Added html for TIFFWriteTile.3t man page.
6818
6819Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6820
6821	* Added some changes to tif_write.c to support rewriting existing
6822	fixed sized tiles and strips.  Code mods disabled by default, only
6823	enabled if REWRITE_HACK is defined for now.
6824
6825Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6826
6827	* Added TIFFWriteTile.3t man page.
6828
6829Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6830
6831	* Added notes on use of makefile.vc in build.html, and fixed
6832	email subscription address.
6833
6834199-11-28  Mike Welles <[email protected]>
6835
6836	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6837
6838	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6839	   from Bruce Carmeron <[email protected]> -- modifications of
6840	   changes made by Frank (sun cc still complained on cast).
6841
6842	*  Added tiffconf.h to install target per request from Bill
6843	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6844 	   know features have been compiled into the TIFF library in order to
6845	   handle things properly".
6846
6847Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6848
6849	* fixed various VC++ warnings as suggested by Gilles Vollant
6850	<[email protected]>.
6851
6852Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6853
6854	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6855	not imply applications are responsible for image data swapping.
6856
68571999-11-22  Mike Welles <[email protected]>
6858	*  HTML-ized the man pages, added to html/man
6859
6860	*  Removed LZW Compression to comply with Unisys patent extortion.
6861
68621999-09-29  Mike Welles		<[email protected]>
6863	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6864	   From Ivo Penzar <[email protected].
6865
6866	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6867	   memory mapped files. <[email protected]>
6868
68691999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6870	* Corrected alpha versioning.
6871
6872	* Removed distinction between  alpha and release targets in Makefile.in.
6873
6874	* added release.stamp target, which tags cvs tree, and updates
6875	  "RELEASE-DATE"
6876
6877	* added releasediff target, which diffs tree with source as of
6878	  date in "RELEASE-DATE"
6879
6880	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6881	  away from alpha/non-alpha distinctions).
6882
6883	* updated html to reflect release
6884
68851999-09-23    <warmerda@CS46980-B>
6886
6887	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6888
6889	* Added CYGWIN case in configure.
6890
6891Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6892
6893	* Applied Francois Dagand's patch to handle fax decompression bug.
6894	  (sizes >= 65536 were failing)
6895
6896Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6897
6898	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6899	  by Christopher Lawton <[email protected]>
6900
6901Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6902
6903	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6904	  Albert Chin-A-Young <[email protected]>
6905
6906	* Added TIFFReassignTagToIgnore() API on behalf of
6907	  Bruce Cameron <[email protected]>.  Man page still pending.
6908
6909Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6910
6911	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6912	files to provide for a rudimentary testsuite.
6913
6914	* Added contrib/tags back from old distribution ... fixed up a bit.
6915
69161999-08-16    <warmerda@CS46980-B>
6917
6918	* Added simple makefile.vc makefiles for building with MS VC++
6919	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6920	better solutions for some users.
6921
6922Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6923
6924	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6925	put it in tools since part of it is in C++.
6926
69271999-08-16  Michael L. Welles  <[email protected]>
6928
6929	* Updated html/index.html with anon CVS instructions.
6930
6931Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
6932
6933	* pre-remove so link before softlink in LINUXdso action in
6934	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
6935	the first.
6936
6937	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
6938	colormaps owned by the TIFF handle itself when trying to fixup wrong
6939	(eight bit) colormaps.  Corrected by maintaining a private copy of
6940	the colormap.
6941
6942	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
6943	tif_getimage.c.
6944
6945	* CVS Repository placed at remotesensing.org.  ChangeLog added.
6946