xref: /libtiff-4.0.7/ChangeLog (revision 33c391ef)
12016-07-01  Even Rouault <even.rouault at spatialys.com>
2
3	* libtiff/tif_luv.c: validate that for COMPRESSION_SGILOG and
4	PHOTOMETRIC_LOGL, there is only one sample per pixel. Avoid
5	potential invalid memory write on corrupted/unexpected images when
6	using the TIFFRGBAImageBegin() interface (reported by
7	Clay Wood)
8
92016-06-28  Even Rouault <even.rouault at spatialys.com>
10
11	* libtiff/tif_pixarlog.c: fix potential buffer write overrun in
12	PixarLogDecode() on corrupted/unexpected images (reported by Mathias Svensson)
13	(CVE-2016-587)
14
152016-06-15  Bob Friesenhahn  <[email protected]>
16
17	* libtiff/libtiff.def: Added _TIFFMultiply32 and _TIFFMultiply64
18	to libtiff.def
19
202016-06-05  Bob Friesenhahn  <[email protected]>
21
22	* tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff,
23	ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from
24	the distribution.  The libtiff tools rgb2ycbcr and thumbnail are
25	only built in the build tree for testing.  Old files are put in
26	new 'archive' subdirectory of the source repository, but not in
27	distribution archives.  These changes are made in order to lessen
28	the maintenance burden.
29
302016-05-10  Bob Friesenhahn  <[email protected]>
31
32	* libtiff/tif_config.vc.h (HAVE_SNPRINTF): Add a '1' to the
33	HAVE_SNPRINTF definition.'
34
352016-05-09  Bob Friesenhahn  <[email protected]>
36
37	* libtiff/tif_config.vc.h (HAVE_SNPRINTF): Applied patch by Edward
38	Lam to define HAVE_SNPRINTF for Visual Studio 2015.
39
402016-04-27  Even Rouault <even.rouault at spatialys.com>
41
42	* libtiff/tif_dirread.c: when compiled with DEFER_STRILE_LOAD,
43	fix regression, introduced on 2014-12-23, when reading a one-strip
44	file without a StripByteCounts tag. GDAL #6490
45
462016-04-07  Bob Friesenhahn  <[email protected]>
47
48	* html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for
49	purposes of security issue reporting.
50
512016-01-23  Even Rouault <even.rouault at spatialys.com>
52
53	* libtiff/*: upstream typo fixes (mostly contributed by Kurt Schwehr)
54	coming from GDAL internal libtiff
55
562016-01-09  Even Rouault <even.rouault at spatialys.com>
57
58	* libtiff/tif_fax3.h: make Param member of TIFFFaxTabEnt structure
59	a uint16 to reduce size of the binary.
60
612016-01-03  Even Rouault <even.rouault at spatialys.com>
62
63	* libtiff/tif_read.c, tif_dirread.c: fix indentation issues raised
64	by GCC 6 -Wmisleading-indentation
65
662015-12-27  Even Rouault <even.rouault at spatialys.com>
67
68	* libtiff/tif_pixarlog.c: avoid zlib error messages to pass a NULL
69	string to %s formatter, which is undefined behaviour in sprintf().
70
712015-12-27  Even Rouault <even.rouault at spatialys.com>
72
73	* libtiff/tif_next.c: fix potential out-of-bound write in NeXTDecode()
74	triggered by http://lcamtuf.coredump.cx/afl/vulns/libtiff5.tif
75	(bugzilla #2508)
76
772015-12-27  Even Rouault <even.rouault at spatialys.com>
78
79	* libtiff/tif_luv.c: fix potential out-of-bound writes in decode
80	functions in non debug builds by replacing assert()s by regular if
81	checks (bugzilla #2522).
82	Fix potential out-of-bound reads in case of short input data.
83
842015-12-26  Even Rouault <even.rouault at spatialys.com>
85
86	* libtiff/tif_getimage.c: fix out-of-bound reads in TIFFRGBAImage
87	interface in case of unsupported values of SamplesPerPixel/ExtraSamples
88	for LogLUV / CIELab. Add explicit call to TIFFRGBAImageOK() in
89	TIFFRGBAImageBegin(). Fix CVE-2015-8665 reported by limingxing and
90	CVE-2015-8683 reported by zzf of Alibaba.
91
922015-12-21  Even Rouault <even.rouault at spatialys.com>
93
94	* libtiff/tif_dirread.c: workaround false positive warning of Clang Static
95	Analyzer about null pointer dereference in TIFFCheckDirOffset().
96
972015-12-19  Even Rouault <even.rouault at spatialys.com>
98
99	* libtiff/tif_fax3.c: remove dead assignment in Fax3PutEOLgdal(). Found
100	by Clang Static Analyzer
101
1022015-12-18  Even Rouault <even.rouault at spatialys.com>
103
104	* libtiff/tif_dirwrite.c: fix truncation to 32 bit of file offsets in
105	TIFFLinkDirectory() and TIFFWriteDirectorySec() when aligning directory
106	offsets on a even offset (affects BigTIFF). This was a regression of the
107	changeset of 2015-10-19.
108
1092015-12-12  Even Rouault <even.rouault at spatialys.com>
110
111	* libtiff/tif_write.c: TIFFWriteEncodedStrip() and TIFFWriteEncodedTile()
112	should return -1 in case of failure of tif_encodestrip() as documented
113	* libtiff/tif_dumpmode.c: DumpModeEncode() should return 0 in case of
114	failure so that the above mentionned functions detect the error.
115
1162015-12-06  Even Rouault <even.rouault at spatialys.com>
117
118	* libtiff/uvcode.h: const'ify uv_code array
119
1202015-12-06  Even Rouault <even.rouault at spatialys.com>
121
122	* libtiff/tif_dirinfo.c: const'ify tiffFields, exifFields,
123	tiffFieldArray and exifFieldArray arrays
124
1252015-12-06  Even Rouault <even.rouault at spatialys.com>
126
127	* libtiff/tif_print.c: constify photoNames and orientNames arrays
128
1292015-12-06  Even Rouault <even.rouault at spatialys.com>
130
131	* libtiff/tif_close.c, libtiff/tif_extension.c : rename link
132	variable to avoid -Wshadow warnings
133
1342015-11-22  Even Rouault <even.rouault at spatialys.com>
135
136	* libtiff/*.c: fix typos in comments (patch by Kurt Schwehr)
137
1382015-11-22  Even Rouault <even.rouault at spatialys.com>
139
140	* libtiff/*.c: fix MSVC warnings related to cast shortening and
141	assignment within conditional expression
142
1432015-11-18  Even Rouault <even.rouault at spatialys.com>
144
145	* libtiff/*.c: fix clang -Wshorten-64-to-32 warnings
146
1472015-11-18  Even Rouault <even.rouault at spatialys.com>
148
149	* libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL
150	to please MSVC 2013
151
1522015-11-17  Even Rouault <even.rouault at spatialys.com>
153
154	* libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction
155	if BitsPerPixel > 24, so as to avoid huge memory allocation and file
156	read attempts
157
1582015-11-02  Even Rouault <even.rouault at spatialys.com>
159
160	* libtiff/tif_dirread.c: remove duplicated assignment (reported by
161	Clang static analyzer)
162
1632015-10-28  Even Rouault <even.rouault at spatialys.com>
164
165	* libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c,
166	libtiff/tif_jpeg_12.c: suppress warnings about 'no previous
167	declaration/prototype'
168
1692015-10-19  Even Rouault <even.rouault at spatialys.com>
170
171	* libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix
172	'warning: negative integer implicitly converted to unsigned type' warning
173	(part of -Wconversion)
174
1752015-10-17  Even Rouault <even.rouault at spatialys.com>
176
177	* libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c,
178	  libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/)
179
1802015-09-12  Bob Friesenhahn  <[email protected]>
181
182	* libtiff 4.0.6 released.
183
184	* html/v4.0.6.html: Added release notes for 4.0.6.
185
1862015-09-06  Bob Friesenhahn  <[email protected]>
187
188	* tools/tiffgt.c: Silence glut API deprecation warnings on MacOS
189	X.  Patch by Roger Leigh.
190
191	* Makefile.am: Added a 'coverity' rule to assist with Coverity
192	submissions.
193
194	* tools/tiff2pdf.c: Fix compiler warning about unused function
195	when JPEG is not available.
196
197	* tools/fax2ps.c (main): Detect failure to write to temporary
198	file.
199
2002015-09-05  Bob Friesenhahn  <[email protected]>
201
202	* libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8):
203	Change implementation so that it does not sometimes overflow the
204	range of a 32-bit int and to avoid a signed vs unsigned compare
205	compiler warning.
206	(TIFF_INT64_MAX): Avoid use of platform-specific large constants.
207	(TIFF_UINT32_MAX): Avoid use of platform-specific large constants.
208
2092015-09-01  Bob Friesenhahn  <[email protected]>
210
211	* Makefile.am (distcheck-hook), configure.ac: Applied patches by
212	Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue
213	with BSD make and to make use of cmake in 'distcheck' target
214	conditional on if cmake is available.
215
216	* CMakeLists.txt, Makefile.am, configure.ac: Applied patches by
217	Roger Leigh (via tiff mailing list on 2015-09-01).
218
219	CMake build is now included in 'distcheck' target.
220
221	Builds with CMake 2.8.9 and newer.
222
223	Tar is now resquested to use POSIX PAX format.
224
2252015-08-31  Bob Friesenhahn  <[email protected]>
226
227	* CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by
228	Roger Leigh (via tiff mailing list on 2015-08-31.
229
230	CMake reads all version information directly from configure.ac to
231	avoid duplication of values.  This basically greps over the file
232	for the LIBTIFF_* variables, then translates them to the form
233	needed for cmake. This includes the release version and libtool
234	shared library version information.
235
236	Make shared/static library building configurable.  Currently it
237	always builds shared libraries, with static libs having a _static
238	suffix (copying zlib, but it means it's got a non-standard name).
239	CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the
240	other, which is now used instead.  There's now a single "tiff"
241	target to build either shared or static as required, and all the
242	tests and tools are linked with this. Note: the Windows tests fail
243	when linked with a static libtiff (says: libtiff.dll not found).
244	Not really a regression since this was not tested up to this
245	point, and it's likely the unit tests haven't (ever?) been run on
246	Windows with a static libtiff, so there's some additional
247	portability issue here to address.  Works fine on UNIX systems,
248	and fine on Windows with the default to build a DLL.
249
250	Add a missing file which wasn't being distributed, causing unit
251	tests to fail.  Note that "find . -name '*.cmake'" lists all the
252	CMake files which need distributing in addition to all the
253	CMakeLists.txt files (which now are distributed).
254
2552015-08-31  Even Rouault <even.rouault at spatialys.com>
256
257	* libtiff/tif_predict.c: pedantic change to add explicit masking
258	with 0xff before casting to uchar in floating-point horizontal
259	differencing and accumulation routines.
260
2612015-08-31  Even Rouault <even.rouault at spatialys.com>
262
263	* libtiff/tif_predict.c: fix generation of output with 16 bit
264	or 32 bit integer, when byte swapping is needed, in
265	horizontal predictor (#2521). Also fixes decoding when there is
266	a single pixel to code (unlikely case...) and byte swapping is
267	involved.
268
2692015-08-30  Even Rouault <even.rouault at spatialys.com>
270
271	* libtiff/tif_lzw.c: make nextdata a unsigned type to avoid
272	undefined behaviour with shifts (gcc -fsanitize=shift)
273
2742015-08-30  Even Rouault <even.rouault at spatialys.com>
275
276	* libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c:
277	add explicit masking with 0xff before casting
278	to unsigned char (make icc -check=conversions happy)
279
280	* libtiff/tif_predict.c: operate on unsigned datatypes when
281	computing/applying differences to avoid undefined behaviour of
282	signed types (C standard compliance)
283
2842015-08-30  Bob Friesenhahn  <[email protected]>
285
286	* configure.ac: libtiff 4.0.5 released.
287
2882015-08-29  Bob Friesenhahn  <[email protected]>
289
290	* CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing
291	list on 2015-08-29) to add ld-version-script option to cmake build
292	to match autoconf.  Note: defaults to 'on' to be ABI-compatible by
293	default with common Linux distribution builds.  Note that the
294	autoconf configure script defaults to 'off'.
295
296	* html/build.html: Applied patch by Roger Leigh (via tiff mailing
297	list on 2015-08-29) to describe how to use CMake to build libtiff.
298
2992015-08-28  Bob Friesenhahn  <[email protected]>
300
301	* html/v4.0.5.html: Added HTML file describing the changes which
302	will appear in the 4.0.5 release.
303
3042015-08-23  Bob Friesenhahn  <[email protected]>
305
306	* libtiff/tiffiop.h: For MinGW comiles, make sure that build
307	supports necessary __MSVCRT_VERSION__ (at least at least 0x800).
308	Otherwise large files can not be supported for POSIX-style I/O.
309
310	* tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit
311	builds about cast to thandle_t.
312
313	* test/rewrite_tag.c (main): Does not require any arguments.
314
3152015-08-20  Bob Friesenhahn  <[email protected]>
316
317	* tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to
318	fix build issues when using Cmake due to Windows large file
319	changes.
320
3212015-08-18  Bob Friesenhahn  <[email protected]>
322
323	* libtiff/tiffiop.h: First cut at supporting large files under
324	Microsoft Windows using tif_unix.c and the libtiff tools.  This
325	only works if the Windows CDK is new enough to support the APIs
326	used (Visual C++ 2005 or later).  Support for large files is not
327	actually tested yet.
328
3292015-08-15  Bob Friesenhahn  <[email protected]>
330
331	* libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that
332	client_data is initialized to a known value, and to report an
333	error on two memory allocation failures.
334
3352015-08-13  Bob Friesenhahn  <[email protected]>
336
337	* CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx
338	symbol versioning.  Patch was mailed to libtiff list on Thu, 13
339	Aug 2015.
340
3412015-07-04  Bob Friesenhahn  <[email protected]>
342
343	* cmake: Add d suffix to debug libraries with MSVC.  Patch #3 of 3
344	by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20
345	+0100.
346
347	* cmake: Add extra warning flags.  Patch #2 of 3 by Roger Leigh
348	posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
349
350	* cmake: Correct snprintf fallback for VS2015.  Patch #1 of 3 by
351	Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
352
3532015-06-24  Bob Friesenhahn  <[email protected]>
354
355	* CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to
356	libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several
357	corrections to ensure that the autotools build still works were
358	added by me.  I have not yet tested the build using 'cmake' or
359	MSVC with 'nmake'.
360
3612015-06-21  Bob Friesenhahn  <[email protected]>
362
363	* test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG
364	library so only execute if JPEG is available.
365
366	* libtiff 4.0.4 released.
367
368	* configure.ac: Add a HAVE_FOO Automake conditional for each
369	add-on library.
370
371	* test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode
372	requires JPEG support to compile.  Use Automake conditional to
373	only include it when JPEG support is available.
374
375	* html/build.html: Try to improve the nmake-based VC++ build
376	description.
377
378	* libtiff/tiffconf.vc.h: Build fixes based on testing.
379
380	* libtiff/tif_config.vc.h: Build fixes based on testing.
381
382	* libtiff/libtiff.def: TIFFRasterScanline does not exist so remove
383	export for it.
384
3852015-06-20  Bob Friesenhahn  <[email protected]>
386
387	* libtiff/tif_config.vc.h: Make adjustments to match the new
388	definitions that configure produces, including for WIN64.  Still
389	needs to be tested.
390
391	* configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting
392	specifier.  64-bit MinGW supports 'long long' but support for
393	'lld' is not assured by the run-time DLLs and so GCC warns.
394	Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition
395	and printf format specifier to deal with printing values of
396	'size_t' type.  In particular, this was necessary for WIN64.
397	Added a configure test for if the system headers provide 'optarg'
398	(normal case) and block out the many explicit 'extern' statements
399	in the utilities.  This was found to be necessary under Windows
400	when getopt is in a DLL and the symbols are already imported with
401	dllimport via standard header files.
402
403	* test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32
404	and boolean in MinGW build due to including jpeglib.h.
405
406	* test/rewrite_tag.c (main): Fix problem with location of variable
407	declaration.
408
409	* libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs,
410	TIFFReadRGBAImageOriented, TIFFSetCompressionScheme,
411	TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc,
412	TIFFRasterScanline, TIFFSetErrorHandlerExt,
413	TIFFSetWarningHandlerExt, TIFFNumberOfDirectories,
414	TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory,
415	TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by
416	Roger Leigh and justified by use in libtiff tests, documentation,
417	and changelog notes.  Also sorted symbol list and removed
418	duplicate entries.
419
4202015-06-16  Bob Friesenhahn  <[email protected]>
421
422	* libtiff/tif_getimage.c: Fix four Coverity issues related to
423	unintended sign extension.
424
4252015-06-16  Even Rouault <even.rouault at spatialys.com>
426
427	* libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna)
428
4292015-06-14  Lee Howard  <[email protected]>
430
431	* libtiff/tif_unix.c: contribution from Vadim Zeitlin on
432	Bugzilla Bug #2510 fixes several harmless but still annoying
433	warnings
434
435	* configure: contribution from Ludolf Holzheid on Bugzilla
436	Bug #2498.  Adds an option to select the file I/O style on
437	Windows hosts.
438
439	* libtiff/tif_getimage.c: contribution from Gary Cramblitt
440	on Bugzilla Bug #2409.  Correct reading of certain tiled TIFFs.
441
442	* configure, configure.ac: contribution from Marcos H. Woehrmann
443	on Bugzilla Bug #2405.  Correct shell equality operator.
444
445	* tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt
446	on Bugzilla Bug #2401.  Appropriately call glFlush().
447
448	* tools/tiff2pdf.c: change ColorTransform from "0" to "1"
449	following Bugzilla Bug #2150.
450
4512015-06-13  Lee Howard  <[email protected]>
452
453	* libtiff/tif_lzw.c: contribution from Andy Cave - decode
454	files that contain consecutive CODE_CLEAR codes.
455
456	* tools/tiff2pdf.c: contribution from Antti S. Lankila on
457	Bugzilla Bug #2078. Suppress initial output of the header.
458
459	* tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy -
460	Take care in using the return value from snprintf().
461
462	* tools/tiffcrop.c: contribution from Eduardo Robles Elvira -
463	correctly copy the compression tag from the source TIFF.
464
465	* tools/tiff2ps.c: contribution from Eduardo Robles Elvira -
466	correct sizing and scaling problems with output document.
467
4682015-06-10  Bob Friesenhahn  <[email protected]>
469
470	* libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two
471	clean implementations in order to avoid pre-processor hell.  Only
472	one of the implementations is used in a given build.
473
4742015-06-08  Even Rouault <even.rouault at spatialys.com>
475
476	* libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12
477	case
478
4792015-06-07  Bob Friesenhahn  <[email protected]>
480
481	* libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975
482	"Division or modulo by zero".
483	(TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division
484	or modulo by zero".
485	(TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by
486	zero".
487	(TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by
488	zero".
489
490	* libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and
491	715974 "Division or modulo by zero".
492
4932015-05-31  Bob Friesenhahn  <[email protected]>
494
495	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity
496	1134470 "Logically dead code" by making the roll-over check
497	explicit.
498
499	* libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227
500	"Division or modulo by zero".
501	(LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by
502	zero".
503	(LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by
504	zero".
505	(LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by
506	zero".
507
508	* libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix
509	Coverity 298626 "Logically dead code".
510	(TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead
511	code".
512	(TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead
513	code".
514	(TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead
515	code"
516
517	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++
518	operator precedenc in evaluation.  Might quench Coverity 1134470
519	"Logically dead code".
520
521	* libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands
522	don't affect result".  This change uses ifdefs to include
523	applicable code based on properties of libjpeg.  Still needs to be
524	re-tested with 12-bit "6b" and "MK1".
525
5262015-05-30  Bob Friesenhahn  <[email protected]>
527
528	* libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310
529	"Resource leak".
530
531	* libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix
532	Coverity 601720 "Resource leak".
533
534	* libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624
535	"Dereference before null check".
536
537	* libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400
538	"Missing break in switch".
539
540	* contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer
541	size calculation for overflow.
542
543	* contrib/addtiffo/addtiffo.c (main): Possibly address Coverity
544	1024226 "Untrusted value as argument".
545
546	* tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted
547	value as argument".
548	(checksignature): Fix Coverity 1024894 "Ignoring number of bytes
549	read".
550	(readextension): Fix Coverity 1024893 "Ignoring number of bytes
551	read".
552	(readgifimage): Fix Coverity 1024890 "Ignoring number of bytes
553	read".
554	(readraster): Fix Coverity 1024891 "Ignoring number of bytes
555	read".
556	(readgifimage): Fix Coverity 1024892 "Ignoring number of bytes
557	read".
558
559	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181
560	"Structurally dead code".
561
562	* tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return
563	value from library".
564	(guessSize): Fix Coverity 1024888 "Unchecked return value from
565	library".
566	(guessSize): Fix Coverity 1214162 "Ignoring number of bytes read".
567	(guessSize): Fix Coverity 1024889 "Unchecked return value from
568	library".
569
570	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621
571	"Resource leak".
572	(t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead
573	code".
574	(t2p_write_pdf): Fix Coverity 1227690 "Unused value".
575
5762015-05-29  Bob Friesenhahn  <[email protected]>
577
578	* contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468
579	"Infinite loop".
580	(formatIPTC): Fix Coverity 1024727 "Truncated stdio return value".
581	(formatIPTC): Fix Coverity 1214240 "Untrusted loop bound".
582
5832015-05-28  Bob Friesenhahn  <[email protected]>
584
585	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
586	Coverity 298615 "Resource leak".
587	(TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign
588	extension".
589
590	* tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value
591	as argument".
592	(main): Fix Coverity 1024678 "Unchecked return value from
593	library".
594	(main): Fix Coverity 1024679 "Unchecked return value from
595	library".
596	(main): Fix Coverity 1214160 "Ignoring number of bytes read".
597
598	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
599	Coverity 298615 "Resource leak".
600
601	* tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309
602	"Resource leak".
603
604	* tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource
605	leak".
606	(cpStrips): Fix Coverity 1024305 "Resource leak".
607
6082015-05-27  Bob Friesenhahn  <[email protected]>
609
610	* tools/ras2tiff.c: Fix Sun Raster header definition to be safe
611	for 64-bit systems.  Add some header validations.  Should fix many
612	Coverity issues.
613	(main): Fix Coverity 1301206: "Integer handling issues  (BAD_SHIFT)".
614	(main): Quiet Coverity 1024223 "Untrusted value as argument".
615
616	* tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting
617	level does not match indentation".
618	(get_histogram): Quiet Coverity 1024386 "Out-of-bounds read".
619	This was a benign mis-diagnosis but added code to enforce against
620	buffer overflow.
621
622	* tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical
623	vs. bitwise operator".
624	(readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or
625	modulo by zero".
626	(readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead
627	code".
628	(writeSingleSection): Fix Coverity 1024796 "Nesting level does not
629	match indentation".
630	(writeCroppedImage): Fix Coverity 1024797 "Nesting level does not
631	match indentation".
632	(loadImage): Fix Coverity 1299741 "Dereference before null check".
633	(loadImage): Fix Coverity 1299740 "Out-of-bounds write".
634
6352015-03-02  Even Rouault  <[email protected]>
636
637	* tools/tiffdither.c: check memory allocations to avoid writing to
638	NULL pointer. Also check multiplication overflow. Fixes #2501,
639	CVE-2014-8128. Derived from patch by Petr Gajdos.
640
6412015-01-26  Even Rouault  <[email protected]>
642
643	* add html/v4.0.4beta.html under version control
644	* HOWTO-RELEASE: write that cvs add html/vX.X.html must be used
645
6462015-01-26  Even Rouault  <[email protected]>
647
648	* libtiff 4.0.4beta released
649
6502015-01-26  Even Rouault  <[email protected]>
651
652	* automake: updated to 1.15
653	* libtool: updated to 2.4.5
654
6552015-01-22  Even Rouault  <[email protected]>
656
657	* tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
658
6592015-01-05  Frank Warmerdam  <[email protected]>
660
661	* html/bugs.html: remove note about needing to email the tiff mailing
662	list administrator about being approved for membership, this appears
663	not to be true.
664
6652015-01-05  Olivier Paquet  <[email protected]>
666
667	* tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
668
6692015-01-03  Even Rouault  <[email protected]>
670
671	* libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
672	when reading more than 65535 directories, and effectively error out when
673	reaching that limit.
674
6752014-12-29  Even Rouault  <[email protected]>
676
677	* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
678	markers to avoid emitting a warning (even if, according to the TechNote,
679	there are admitedly unusual/not recommended or even forbidden variants, but
680	they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
681	SOF9 and SOF10).
682	Define in_color_space and input_components to the right values in
683	JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
684	libjpeg API documentation, so as to be compatible with mozjpeg library.
685	Note: the default settings of mozjpeg will produce progressive scans, which
686	is forbidden by the TechNote.
687
6882014-12-29  Even Rouault  <[email protected]>
689
690	* libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
691	to avoid buffer leak (fix previous fix, found by Coverity scan)
692
6932014-12-29  Even Rouault  <[email protected]>
694
695	* libtiff/tif_next.c: add new tests to check that we don't read outside of
696	the compressed input stream buffer.
697
698	* libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
699    in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
700    putcontig8bitYCbCr21tile cases.
701
7022014-12-27  Even Rouault  <[email protected]>
703
704	* libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
705	extented tags installed by user code through the extender mechaninm before
706	calling the extender callback (GDAL #5054)
707
7082014-12-26  Bob Friesenhahn  <[email protected]>
709
710	* tools/tiffcrop.c: Fix warnings about variables set but not used.
711
712	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
713	but not used.
714
715	* tools/tiffgt.c: Fix warnings about unused parameters.
716
717	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
718
7192014-12-25  Even Rouault  <[email protected]>
720
721	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
722	various typos found by Debian lintian tool (GDAL #5756)
723
7242014-12-24  Even Rouault  <[email protected]>
725
726	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
727	http://bugzilla.maptools.org/show_bug.cgi?id=2235
728
7292014-12-24  Even Rouault  <[email protected]>
730
731	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
732	http://bugzilla.maptools.org/show_bug.cgi?id=2445
733
7342014-12-24  Even Rouault  <[email protected]>
735
736	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
737	Derived from patch by Petr Gajdos,
738	http://bugzilla.maptools.org/show_bug.cgi?id=2443
739
7402014-12-23  Even Rouault  <[email protected]>
741
742	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
743	of _TIFFFillStriles(). This solves crashing bug on corrupted
744	images generated by afl.
745
7462014-12-23  Even Rouault  <[email protected]>
747
748	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
749	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
750	images generated by afl.
751
7522014-12-21  Bob Friesenhahn  <[email protected]>
753
754	* tools/tiffdump.c: Guard against arithmetic overflow when
755	calculating allocation buffer sizes.
756
7572014-12-21  Even Rouault  <[email protected]>
758
759	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
760	SamplesPerPixel = 3. Enforce that
761	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
762
7632014-12-21  Even Rouault  <[email protected]>
764
765	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
766	copying. The right fix would be to properly copy it, but not worth the burden
767	for those esoteric utilities.
768	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
769
7702014-12-21  Even Rouault  <[email protected]>
771
772	* tools/thumbnail.c: fix out-of-buffer write
773	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
774
7752014-12-21  Even Rouault  <[email protected]>
776
777	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
778	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
779	COMPRESSION_CCITTFAX4
780	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
781
7822014-12-21  Even Rouault  <[email protected]>
783
784	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
785	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
786
7872014-12-21  Even Rouault  <[email protected]>
788
789	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
790	TIFFTAG_SAMPLESPERPIXEL
791
7922014-12-21  Even Rouault  <[email protected]>
793
794	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
795	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
796	Description: fix for Debian bug #741451
797	tiffcp crashes when converting JPEG-encoded TIFF to a different
798	encoding (like none or lzw). For example this will probably fail:
799	tiffcp -c none jpeg_encoded_file.tif output.tif
800	The reason is that when the input file contains JPEG data,
801	the tiffcp code forces conversion to RGB space. However,
802	the output normally inherits YCbCr subsampling parameters
803	from the input, which leads to a smaller working buffer
804	than necessary. The buffer is subsequently overrun inside
805	cpStripToTile() (called from writeBufferToContigTiles).
806	Note that the resulting TIFF file would be scrambled even
807	if tiffcp wouldn't crash, since the output file would contain
808	RGB data intepreted as subsampled YCbCr values.
809	This patch fixes the problem by forcing RGB space on the output
810	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
811	Author: Tomasz Buchert <[email protected]>
812
8132014-12-21  Even Rouault  <[email protected]>
814
815	Fix various crasher bugs on fuzzed images.
816	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
817	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
818	the directory
819	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
820	TransferFunction if BitsPerSample has not yet been read, otherwise reading
821	it later will cause user code to crash if BitsPerSample > 1
822	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
823	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
824	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
825	instead of imagewidth to avoid crash
826	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
827	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
828	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
829	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
830	* tools/tiffdump.c: fix crash due to overflow of entry count.
831
8322014-12-15  Even Rouault  <[email protected]>
833
834	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
835	all tiles/strips to include quantization tables even when the jpegtablesmode
836	had the JPEGTABLESMODE_QUANT bit set.
837	Also add explicit removal of Huffman tables when jpegtablesmode has the
838	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
839	first tile/strip (only useful in update scenarios. create-only was
840	fine)
841
8422014-12-09  Bob Friesenhahn  <[email protected]>
843
844	* tools/tiff2pdf.c: Assure that memory size calculations for
845	_TIFFmalloc() do not overflow the range of tmsize_t.
846
8472014-12-07  Even Rouault  <[email protected]>
848
849	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
850	Valgrind and Address Sanitizer on test suite
851
8522014-12-07  Bob Friesenhahn  <[email protected]>
853
854	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
855	tag can return one channel, with the other two channels set to
856	NULL.  The tiff2pdf code was expecting that other two channels
857	were duplicate pointers in the case where there is only one
858	channel.  Detect this condition in order to avoid a crash, and
859	presumably perform correctly with just one channel.
860
8612014-12-06  Bob Friesenhahn  <[email protected]>
862
863	* tools/tiffdump.c: Fix double-free bug.
864
8652014-11-27  Even Rouault  <[email protected]>
866
867	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
868	Visual Studio 2015 aka VC 14 aka MSVC 1900
869
8702014-11-20  Even Rouault  <[email protected]>
871
872	* libtiff/tif_lzw.c: prevent potential null dereference of
873	sp->dec_codetab in LZWPreDecode (bug #2459)
874
875	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
876	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
877
878	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
879
880	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
881	Coverity happier (not a bug, #2459)
882
883	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
884	(not a bug, #2459)
885
886	* tools/tiff2pdf.c: close PDF file (bug #2479)
887
888	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
889
890	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
891	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
892
893	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
894	(bug #2459) and add missing va_end in dump_info (#2459)
895
896	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
897
8982014-11-20  Even Rouault  <[email protected]>
899	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
900	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
901
9022014-11-20  Even Rouault  <[email protected]>
903	* automake: updated to 1.14.1
904	* libtool: updated to 2.4.3
905	* HOWTO-RELEASE: small update about autotools building order
906
9072014-10-20  Olivier Paquet  <[email protected]>
908	* tools/tiff2pdf.c: Preserve input file directory order when pages
909	are tagged with the same page number.
910
9112014-08-31  Bob Friesenhahn  <[email protected]>
912
913	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
914	count for tag should be a warning rather than an error since
915	errors terminate processing.
916
9172014-06-07  Bob Friesenhahn  <[email protected]>
918
919	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
920	was wrongly described.  Fix suggested by Miguel Medalha.
921
9222014-05-06  Bob Friesenhahn  <[email protected]>
923
924	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
925	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
926	Reviewed and forwarded by Lee Howard.
927
9282013-11-30  Frank Warmerdam  <[email protected]>
929
930	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
931
9322013-10-21  Frank Warmerdam  <[email protected]>
933
934	* libtiff/tif_dir.c: generate error in case of directory count
935	overflow.
936
9372013-10-01  Frank Warmerdam  <[email protected]>
938
939	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
940	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
941
9422013-09-12  Bob Friesenhahn  <[email protected]>
943
944	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
945	be defective, then set it to zero before returning error in order
946	to terminate processing of truncated TIFF.  Issue found and fix
947	suggested by Richard Nolde.
948
9492013-08-14  Frank Warmerdam  <[email protected]>
950
951	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
952
9532013-08-13  Frank Warmerdam  <[email protected]>
954
955	* tools/gif2tiff.c: Be more careful about corrupt or
956	hostile input files (#2450, CVE-2013-4231)
957
958	* tools/tiff2pdf.c: terminate after failure of allocating
959	ycbcr buffer (bug #2449, CVE-2013-4232)
960
9612013-07-09  Frank Warmerdam  <[email protected]>
962
963	* tools/tiffinfo.c: Default various values fetched with
964	TIFFGetField() to avoid being uninitialized.
965
9662013-05-02  Tom Lane  <[email protected]>
967
968	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
969	t2p_process_jpeg_strip to be at least marginally competent.  The
970	approach is still fundamentally flawed, but at least now it won't
971	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
972
9732013-05-02  Tom Lane  <[email protected]>
974
975	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
976 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
977 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
978 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
979 	large enough, and eliminate substantially all uses of sprintf(buf,
980 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
981 	protect against overflow of fixed-size buffers.  This responds in
982 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
983 	t2p_write_pdf_page(), but in general it seems like a good idea to
984 	deprecate use of sprintf().
985
9862013-03-29  Bob Friesenhahn  <[email protected]>
987
988	* configure.ac: Applied patch by Brad Smith to improve pkg-config
989	static linking by adding -lm to Libs.private when needed.
990
9912013-03-05  Tom Lane  <[email protected]>
992
993	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
994 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
995 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
996 	tools/tiffdither.c: Sync tool usage printouts and man pages with
997 	reality (quite a few options had escaped being documented in one
998 	or both places).  Per an old report from Miroslav Vadkerti.
999
10002013-01-25  Bob Friesenhahn  <[email protected]>
1001
1002	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
1003	rotation angle was set by the auto rotate check, it was retained
1004	for all pages that followed instead ofa being retested for each
1005	page.  Patch by Richard Nolde.
1006
10072013-01-18  Frank Warmerdam  <[email protected]>
1008
1009	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
1010	64bit linux.
1011
1012	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
1013	http://bugzilla.maptools.org/show_bug.cgi?id=2427
1014
10152012-12-20  Tom Lane  <[email protected]>
1016
1017	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
1018	it will pass with more versions of libjpeg.  (There are at least
1019	three in active use now, and JPEG_LIB_VERSION doesn't tell us
1020	enough to uniquely identify expected results.)
1021
10222012-12-12  Tom Lane  <[email protected]>
1023
1024	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
1025	field_passcount fields: it had the TIFF_VARIABLE and
1026	TIFF_VARIABLE2 cases backwards.
1027
10282012-12-10  Tom Lane  <[email protected]>
1029
1030	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
1031 	check the linebytes calculation too, get the max() calculation
1032 	straight, avoid redundant error messages, check for malloc
1033 	failure.
1034
10352012-12-10  Tom Lane  <[email protected]>
1036
1037	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
1038 	(to enlarge tbuf for possible partial stride at end) so that
1039 	overflow in the integer addition is detected.  Per gripe from
1040 	Huzaifa Sidhpurwala.
1041
10422012-12-03  Bob Friesenhahn  <[email protected]>
1043
1044	* tools/tiffset.c: tiffset now supports a -u option to unset a
1045	tag.  Patch by Zach Baker. See
1046	http://bugzilla.maptools.org/show_bug.cgi?id=2419
1047
10482012-11-18  Bob Friesenhahn  <[email protected]>
1049
1050	* automake: Update Automake to 1.12.5 release.
1051
1052	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
1053	require malloc() to return NULL pointer if requested allocation
1054	size is zero.  Assure that _TIFFmalloc does.
1055
10562012-11-01  Frank Warmerdam  <[email protected]>
1057
1058	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
1059	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
1060	Red Hat Security Response team for the fix.
1061
10622012-10-18  Frank Warmerdam  <[email protected]>
1063
1064	* tif_zip.c: Avoid crash on NULL error messages.
1065
10662012-09-22  Bob Friesenhahn  <[email protected]>
1067
1068	* libtiff 4.0.3 released.
1069
10702012-09-20  Bob Friesenhahn  <[email protected]>
1071
1072	* Makefile.am: Update to Automake 1.12.4
1073
10742012-08-19  Bob Friesenhahn  <[email protected]>
1075
1076	* Makefile.in: Update to Automake 1.12.3
1077
1078	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
1079	some TIFF/FX support in libtiff.  Add the tag definitions to
1080	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
1081	and also fixes an error in a comment.  Adds the photometric values
1082	to tif_print.c, and fixes a bug.  These changes are by Steve
1083	Underwood.
1084
10852012-08-13  Frank Warmerdam  <[email protected]>
1086
1087	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
1088	compressed file: http://trac.osgeo.org/gdal/ticket/4771
1089
10902012-08-02  Frank Warmerdam  <[email protected]>
1091
1092	* libtiff/tif_dirread.c: report error in case of mismatch value
1093	counts for tags (ie. DotRange).
1094
10952012-07-26  Tom Lane  <[email protected]>
1096
1097	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
1098 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
1099	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
1100	as external accessors for the opaque type TIFFField.
1101
1102	* tools/tiffset.c: Make tiffset use the above functions instead of
1103	relying on library private headers.
1104
11052012-07-19  Tom Lane  <[email protected]>
1106
1107	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
1108	after a malloc failure.  No crash risk AFAICS, but the program
1109	might not report exit code 1 as desired.  h/t [email protected]
1110
11112012-07-18  Tom Lane  <[email protected]>
1112
1113	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
1114	prevents core dumps or perhaps even arbitrary code execution when
1115	processing a corrupt input file (CVE-2012-3401).
1116
11172012-07-06  Bob Friesenhahn  <[email protected]>
1118
1119	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
1120	IJG JPEG 7+ uses a different upsampling algorithm which produces
1121	different numeric results.
1122
1123	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
1124	work with IJG JPEG 7+.
1125
11262012-07-04  Bob Friesenhahn  <[email protected]>
1127
1128	* test/raw_decode.c: Add changes so that test can run with build
1129	directory outside of source directory.
1130
11312012-07-02  Frank Warmerdam  <[email protected]>
1132
1133	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
1134	imagery (http://trac.osgeo.org/gdal/ticket/4732)
1135
11362012-06-20  Frank Warmerdam  <[email protected]>
1137
1138	* libtiff/tif_fax3.c: fix memory initialization of runs, only
1139	partly done.
1140
1141	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
1142	full "stride" past the end.
1143
11442012-06-19  Frank Warmerdam  <[email protected]>
1145
1146	* libtiff/tif_packbits.c: fix read past end of data buffer.
1147
11482012-06-15  Frank Warmerdam  <[email protected]>
1149
1150	*  libtiff 4.0.2 released.
1151
1152	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
1153	warnings with clang.
1154
11552012-06-15  Tom Lane  <[email protected]>
1156
1157	* tools/tiff2pdf.c: Defend against integer overflows while
1158	calculating required buffer sizes (CVE-2012-2113).
1159
11602012-06-12  Frank Warmerdam  <[email protected]>
1161
1162	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
1163
1164	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
1165
11662012-06-07  Frank Warmerdam  <[email protected]>
1167
1168	* libtiff/tif_print.c: avoid pretty printing other fields when
1169	we don't have the proper amount and type of data or if the field
1170	is actually autodefined.
1171
11722012-06-05  Frank Warmerdam  <[email protected]>
1173
1174	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
1175	ycbcrsubsampling values result in a runtime error, not just an
1176	assertion.
1177
1178	* tests/custom_dir.c: Add testing of EXIF and custom directory
1179	reading and writing.
1180
1181	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
1182	and TIFFCreateEXIFDirectory() functions.
1183
1184	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
1185	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
1186	differently.  This is to avoid using special TIFFGetField/TIFFSetField
1187	rules for these fields in non-image directories (like EXIF).
1188
11892012-06-04  Frank Warmerdam  <[email protected]>
1190
1191	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
1192	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
1193	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
1194
11952012-06-01  Frank Warmerdam  <[email protected]>
1196
1197	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
1198
1199	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
1200	http://bugzilla.maptools.org/show_bug.cgi?id=2379
1201
1202	* libtiff/tif_unix.c: use strerror() to return a more specific error message
1203	on failed open.
1204	http://bugzilla.maptools.org/show_bug.cgi?id=2341
1205
1206	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
1207	http://bugzilla.maptools.org/show_bug.cgi?id=2386
1208
1209	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
1210	for testing jpeg in tiff image decoding including the "raw" decode interface.
1211
12122012-05-31  Frank Warmerdam  <[email protected]>
1213
1214	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
1215	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
1216	sampling values.
1217
1218	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
1219
1220	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
1221	http://bugzilla.maptools.org/show_bug.cgi?id=2398
1222
12232012-05-29  Frank Warmerdam  <[email protected]>
1224
1225	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
1226	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
1227	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
1228	to get/set functions for different tags!
1229
1230	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
1231	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
1232
12332012-05-24  Frank Warmerdam  <[email protected]>
1234
1235	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
1236	accumulate" and overwrite the end by one word in at least some cases.
1237
12382012-05-23  Frank Warmerdam  <[email protected]>
1239
1240	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
1241
1242	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
1243
1244	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
1245	the same image.
1246
1247	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
1248	stripbytecounts or stripoffsets or where loading these fails.
1249
1250	* libtiff/tif_print.c: be careful about whether min/max values are singular
1251	or one per sample.
1252
1253	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
1254	May affect things like ISOSpeedRatings.
1255
1256	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
1257	in some cases.
1258
12592012-05-19  Bob Friesenhahn  <[email protected]>
1260
1261	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
1262	example for how to retreive the value of unsupported tags.
1263
12642012-03-30  Frank Warmerdam  <[email protected]>
1265
1266	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
1267	care of Tom Lane @ Red Hat.
1268
12692012-02-18  Bob Friesenhahn  <[email protected]>
1270
1271	* libtiff 4.0.1 released.
1272
1273	* Update automake used to 1.11.3.
1274
1275	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
1276	attribute specification to lessen the risk of accidental macro
1277	substitution.  Patch from Vincent Torri.
1278
12792012-01-31  Frank Warmerdam  <[email protected]>
1280
1281	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
1282	assumption tag fetching is always successful.
1283
1284	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
1285
12862012-01-22  Bob Friesenhahn  <[email protected]>
1287
1288	* configure.ac: Add support for using library symbol versioning on
1289	ELF systems with the GNU linker.  Support is enabled via
1290	--enable-ld-version-script.  Disabled by default for now until
1291	there is a decision for how to deploy a libtiff with versioned
1292	symbols after libtiff 4.0.0 was already released.
1293
12942011-12-22  Bob Friesenhahn  <[email protected]>
1295
1296	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
1297
1298	tif_win32.c.  Patch by Edward Lam.
1299
1300	* configure.ac: Add libtiff private dependency on -llzma for
1301	pkg-config.  Patch by Mark Brand.
1302	Updated Automake to 1.11.2.
1303
13042011-12-21  Bob Friesenhahn  <[email protected]>
1305
1306	* libtiff 4.0.0 released.
1307
13082011-12-08  Frank Warmerdam  <[email protected]>
1309
1310	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
1311	of _TIFFFillStriles() results (#gdal 4372)
1312
13132011-12-07  Frank Warmerdam  <[email protected]>
1314
1315	* libtiff/tif_dirread.c: fixes to deal with invalid files where
1316	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
1317
1318	* libtiff/tif_dirread.c: fix error reporting when there is no
1319	tag information struct and name (gdal #4373)
1320
13212011-10-22  Bob Friesenhahn  <[email protected]>
1322
1323	* Update GNU libtool to 2.4.2.
1324
1325	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
1326	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
1327	Deroulers.
1328
13292011-06-21  Frank Warmerdam  <[email protected]>
1330
1331	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
1332
13332011-05-31  Jim Meyering  <[email protected]>
1334
1335	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
1336	upon failure to allocate "resizeddata".
1337	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
1338	allocation failure, not before.
1339	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
1340	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
1341	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
1342	NULL-deref and possible overflow
1343	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
1344	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
1345	and set of otherwise unused local, data_is_empty.
1346	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
1347	Diagnose out-of-memory failure and return 0 rather than
1348	dereferencing NULL.
1349
13502011-05-24  Frank Warmerdam  <[email protected]>
1351
1352	* libtiff/tif_dirread.c: produce special error message for zero tag
1353	directories instead of error out on the malloc(0) failure.
1354
13552011-05-16  Frank Warmerdam  <[email protected]>
1356
1357	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
1358	related declarations as they are in active use by libraries
1359	such as libgeotiff, and work just fine.  (#2315)
1360
13612011-04-20  Frank Warmerdam  <[email protected]>
1362
1363	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
1364	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
1365	http://bugzilla.maptools.org/show_bug.cgi?id=2315
1366
1367	* libtiff/libtiff.def: add some missing (64bit) APIs.
1368	http://bugzilla.maptools.org/show_bug.cgi?id=2316
1369
13702011-04-09  Bob Friesenhahn  <[email protected]>
1371
1372	* libtiff 4.0.0beta7 released.
1373
13742011-04-09  Bob Friesenhahn  <[email protected]>
1375
1376	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
1377	the run-time target whereas target is used to specify the final
1378	output target if the package is a build tool (like a compiler),
1379	which libtiff is not.  Resolves libtiff bug 2307 "Use
1380	AC_CANONICAL_HOST macro".
1381
13822011-04-02  Bob Friesenhahn  <[email protected]>
1383
1384	* configure.ac: Support configuring TIFF_INT64_FORMAT and
1385	TIFF_UINT64_FORMAT appropriately for MinGW32.
1386
1387	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
1388	printf conventions for 64-bit types because it uses the WIN32 CRT.
1389
1390	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
1391	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
1392	printf conventions for 64-bit types because it uses the WIN32 CRT.
1393
1394	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
1395	understood by WIN32 CRT.
1396
1397	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
1398
1399	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
1400	it is much more portable.  Tmpfile is included in ISO/IEC
1401	9899:1990 and the WIN32 CRT.
1402
14032011-03-26  Frank Warmerdam  <[email protected]>
1404
1405	* tools/tiffset.c: add -d and -sd switches to allow operation on
1406	a particular directory, not just the first (jef).
1407
14082011-03-21  Frank Warmerdam  <[email protected]>
1409
1410	* libtiff/tif_thunder.c: Correct potential buffer overflow with
1411	thunder encoded files with wrong bitspersample set.  The libtiff
1412	development team would like to thank Marin Barbella and TippingPoint's
1413	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
1414	CVE-2011-1167).
1415	http://bugzilla.maptools.org/show_bug.cgi?id=2300
1416
14172011-03-10  Frank Warmerdam  <[email protected]>
1418
1419	* libtiff/tif_fax3.h: Fix to last change allowing zero length
1420	runs at the start of a scanline - needed for legal cases.
1421
14222011-03-02  Frank Warmerdam  <[email protected]>
1423
1424	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
1425	a move left.  Without this, a malicious input file can generate an
1426	indefinitely large series of runs without a0 ever reaching the right
1427	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
1428	This is a modified version of a patch proposed by Drew Yao of Apple
1429	Product Security.  It adds an unexpected() report, and disallows the
1430	equality case, since emitting a run without increasing a0 still allows
1431	buffer overrun.
1432
14332011-02-23  Frank Warmerdam  <[email protected]>
1434
1435	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
1436
1437	* tools/tiff2rgba.c: close source file on error to make leak
1438	detection easier.
1439
1440	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
1441
1442	http://bugzilla.maptools.org/show_bug.cgi?id=2295
1443
14442011-02-22  Frank Warmerdam  <[email protected]>
1445
1446	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
1447	_SUPPORT)
1448
14492011-02-18  Frank Warmerdam  <[email protected]>
1450
1451	* configure.ac, configure: Added support for --enable-chunky-strip-read
1452	configure option to enable the experimental feature from a couple
1453	months ago for reading big strips in chunks.
1454
1455	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
1456	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
1457	Implement optional support for deferring the load of strip/tile
1458	offset and size tags for optimized scanning of directories.  Enabled
1459	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
1460	#define in tif_config.h).
1461
14622011-02-11  Frank Warmerdam  <[email protected]>
1463
1464	* libtiff/tif_print.c: remove unused variable.
1465
14662011-02-09  Frank Warmerdam  <[email protected]>
1467
1468	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
1469	with non-console (popup message) builds on win32.
1470
1471	http://bugzilla.maptools.org/show_bug.cgi?id=2293
1472
14732011-01-24  Olivier Paquet  <[email protected]>
1474
1475	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
1476	tif_print.c, tiff.h, tiffiop.h} : Added support for
1477	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
1478	values for each sample. Presents the min/max of all samples by default for
1479	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
1480	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
1481	http://www.asmail.be/msg0055458208.html
1482
14832011-01-06  Frank Warmerdam  <[email protected]>
1484
1485	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
1486	maintained.
1487
1488	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
1489	for CHUNKY_STRIP_READ_SUPPORT.
1490
1491	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
1492	during JPEGPreDecode and JPEGDecode calls.
1493	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
1494	as compression formats like JPEG keep 16 lines interleaved in a sense
1495	and might need to touch	quite a bit of data.
1496
1497	http://trac.osgeo.org/gdal/ticket/3894
1498
14992011-01-03  Lee Howard <[email protected]>
1500
1501	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
1502	caused by commit on 2010-12-14.  Submitted by e-mail from
1503	Even Rouault <[email protected]>
1504
15052010-12-31  Olivier Paquet  <[email protected]>
1506
1507	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
1508	http://bugzilla.maptools.org/show_bug.cgi?id=2266
1509
15102010-12-23  Andrey Kiselev  <[email protected]>
1511
1512	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
1513	compression level parameter (preset) for Deflate and LZMA encoders,
1514	e.g "-c lzma:p1" or "-c zip:p9".
1515
1516	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
1517	(preset) in LZMAVSetField().
1518
15192010-12-18  Bob Friesenhahn  <[email protected]>
1520
1521	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
1522	Makefile.
1523
15242010-12-14  Andrey Kiselev  <[email protected]>
1525
1526	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
1527	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
1528	TIFF compression scheme LZMA reserving a new value 34925 for
1529	Compression tag. As per
1530	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
1531
15322010-12-14  Lee Howard <[email protected]>
1533
1534	* libtiff/tif_dirread.c: tolerate some cases where
1535	FIELD_COLORMAP is missing
1536	http://bugzilla.maptools.org/show_bug.cgi?id=2189
1537
15382010-12-14  Lee Howard <[email protected]>
1539
1540	* libtiff/tif_read.c: change read_ahead to tmsize_t
1541	http://bugzilla.maptools.org/show_bug.cgi?id=2222
1542
15432010-12-14  Lee Howard <[email protected]>
1544
1545	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
1546	Windows except on Cygwin
1547	http://bugzilla.maptools.org/show_bug.cgi?id=2224
1548
15492010-12-14  Lee Howard <[email protected]>
1550
1551	* tools/gif2tiff.c: fix buffer overrun
1552	http://bugzilla.maptools.org/show_bug.cgi?id=2270
1553
15542010-12-14  Lee Howard <[email protected]>
1555
1556	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
1557	to improve compatibility with various viewers
1558	submitted by e-mail from Dwight Kelly <[email protected]>
1559
15602010-12-13  Lee Howard <[email protected]>
1561
1562	* tools/fax2ps.c: be consistent with page-numbering
1563	http://bugzilla.maptools.org/show_bug.cgi?id=2225
1564
15652010-12-13  Lee Howard <[email protected]>
1566
1567	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
1568	resolves CVE-2010-2595
1569	http://bugzilla.maptools.org/show_bug.cgi?id=2208
1570
15712010-12-13  Lee Howard <[email protected]>
1572
1573	* tools/tiffcrop.c: new release by Richard Nolde
1574	http://bugzilla.maptools.org/show_bug.cgi?id=2004
1575
15762010-12-12  Lee Howard <[email protected]>
1577
1578	* tools/tiff2pdf.c: fix colors for images with RGBA
1579	interleaved data
1580	http://bugzilla.maptools.org/show_bug.cgi?id=2250
1581
15822010-12-12  Lee Howard <[email protected]>
1583
1584	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
1585	http://bugzilla.maptools.org/show_bug.cgi?id=2164
1586
15872010-12-11  Lee Howard <[email protected]>
1588
1589	* tools/tiff2pdf.c: remove invalid duplication for Lab
1590	http://bugzilla.maptools.org/show_bug.cgi?id=2162
1591
15922010-12-11  Lee Howard <[email protected]>
1593
1594	* libtiff/tif_jpeg.c: fix use of clumplines calculation
1595	http://bugzilla.maptools.org/show_bug.cgi?id=2149
1596
15972010-12-11  Lee Howard <[email protected]>
1598
1599	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
1600	http://bugzilla.maptools.org/show_bug.cgi?id=2118
1601
16022010-12-11  Lee Howard <[email protected]>
1603
1604	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
1605	  libtiff/tif_zip.c: fix build errors for VC6
1606	http://bugzilla.maptools.org/show_bug.cgi?id=2105
1607
16082010-12-11  Lee Howard <[email protected]>
1609
1610	* libtiff/tif_stream.cxx: warnings cleanup
1611	http://bugzilla.maptools.org/show_bug.cgi?id=2091
1612	* libtiff/tif_dirread.c: warnings cleanup
1613	http://bugzilla.maptools.org/show_bug.cgi?id=2092
1614
16152010-12-11  Lee Howard <[email protected]>
1616
1617	* tools/tiff2pdf.c: add fill-page option
1618	http://bugzilla.maptools.org/show_bug.cgi?id=2051
1619
16202010-12-11  Lee Howard <[email protected]>
1621
1622	* libtiff/tif_dirread.c: modify warnings
1623	http://bugzilla.maptools.org/show_bug.cgi?id=2016
1624
16252010-12-11  Lee Howard <[email protected]>
1626
1627	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
1628        http://bugzilla.maptools.org/show_bug.cgi?id=1999
1629
16302010-12-11  Lee Howard <[email protected]>
1631
1632	* tools/tiffinfoce.c: strip byte counts are uint64* now
1633
16342010-12-11  Lee Howard <[email protected]>
1635
1636        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
1637        or missing byte-count tag
1638        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
1639        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
1640
16412010-12-08  Lee Howard <[email protected]>
1642
1643        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
1644        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
1645
16462010-12-06  Lee Howard <[email protected]>
1647
1648        * libtiff/tif_open.c: Fix mode check before opening a file.
1649        http://bugzilla.maptools.org/show_bug.cgi?id=1906
1650
16512010-11-27  Bob Friesenhahn  <[email protected]>
1652
1653	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
1654	Patch by Vincent Torri.
1655
16562010-10-21  Frank Warmerdam  <[email protected]>
1657
1658	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
1659
1660	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
1661
1662	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
1663
16642010-09-25  Lee Howard <[email protected]>
1665
1666	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
1667	with additional command line options for Document Title,
1668	Document Creator, and Page Orientation
1669
16702010-07-13  Bob Friesenhahn  <[email protected]>
1671
1672	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
1673	potentially unterminated buffer due to using an exceptionally long
1674	file name.
1675
16762010-07-08  Andrey Kiselev  <[email protected]>
1677
1678	* tools/tiff2pdf.c: Fixed ID buffer filling in
1679	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
1680
16812010-07-07  Andrey Kiselev  <[email protected]>
1682
1683	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
1684	to expected value as the warning message suggests. As per bug
1685	http://bugzilla.maptools.org/show_bug.cgi?id=1963
1686
16872010-07-06  Andrey Kiselev  <[email protected]>
1688
1689	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
1690	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
1691	which should be set by value.
1692
1693	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
1694	and _TIFFFieldWithName() if the tag is not found in the tag table.
1695	This should be normal situation and returned NULL value should be
1696	properly handled by the caller.
1697
16982010-07-02  Andrey Kiselev  <[email protected]>
1699
1700	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
1701	integer type conversions. As per bug
1702	http://bugzilla.maptools.org/show_bug.cgi?id=2207
1703
1704	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
1705	WhitePoint tag as per bug
1706	http://bugzilla.maptools.org/show_bug.cgi?id=2042
1707
1708	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1709	working with YCbCr image in PickContigCase(). As per bug
1710	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1711
1712	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1713	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1714	we don't need any post-processing. That helps to reset the hook if we
1715	previously set this field to some other value and the hook was
1716	initialized accordingly. As per bug
1717	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1718
17192010-07-01  Andrey Kiselev  <[email protected]>
1720
1721	* tools/tiffgt.c: Properly check the raster buffer allocations for
1722	integer overflows. As per bug
1723	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1724
1725	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1726	upstream.
1727
1728	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1729	multiply_32() and multiply_64() functions into tif_aux.c file and
1730	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1731
17322010-06-30  Andrey Kiselev  <[email protected]>
1733
1734	* tools/tiff2pdf.c: Better generation of ID field in
1735	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1736
1737	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1738	converting JPEG encoded tiles.
1739
1740	* tools/tiff2pdf.c: Better handling of string fields, use static
1741	string buffers instead of dynamically allocated, use strncpy() instead
1742	of strcpy(), control the string lengths.
1743
17442010-06-25  Andrey Kiselev  <[email protected]>
1745
1746	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1747	referencing to uninitialized memory in some cases (e.g. when tile size
1748	set bigger than the image size).
1749
17502010-06-15  Bob Friesenhahn  <[email protected]>
1751
1752	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1753	subsampled data since tiffcrop currently doesn't support it.  Fix
1754	JPEG support.
1755
17562010-06-13  Frank Warmerdam  <[email protected]>
1757
1758	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1759
1760	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1761	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1762	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1763	size is larger.  Also, there are a bunch of places that try to
1764	memset() a malloc'd buffer before checking for malloc failure, which
1765	would result in core dump if there actually were a failure. (#2211)
1766
17672010-06-11  Bob Friesenhahn  <[email protected]>
1768
1769	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1770	avoid compiler warnings if parameter types are not sign
1771	consistent.
1772
1773	* libtiff 4.0.0alpha6 released.
1774
1775	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1776	European page size dimensions.  Added an option to allow the user
1777	to specify a custom page size on the command line.  Fix the case
1778	where a page size specified with a fractional part was being
1779	coerced to an integer by retyping the variables that define the
1780	paper size.
1781
1782	* html/index.html: Update for the 3.9.3 release.
1783
1784	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1785	YCbCr subsampled data since tiffcp currently doesn't support it.
1786	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1787
1788	* Update libtool to version 2.2.10.
1789
17902010-06-10  Bob Friesenhahn  <[email protected]>
1791
1792	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1793	multiplier is zero.
1794
17952010-06-09  Bob Friesenhahn  <[email protected]>
1796
1797	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1798	CVE-2010-1411 was not complete.
1799
1800	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1801	multiply two integers.  Returns zero if there is an integer
1802	overflow.
1803
1804	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1805	is reported when reading the input file.
1806
18072010-06-08  Bob Friesenhahn  <[email protected]>
1808
1809	* Update libtool to version 2.2.8.
1810
1811	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1812	buffer due to integer overflow in TIFFroundup() and several other
1813	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1814	fixes CVE-2010-1411.
1815
1816	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1817	result in an integer overflow. This causes TIFFroundup() to also
1818	return zero if there would be an integer overflow.
1819
1820	* contrib: Add an emacs formatting mode footer to all source files
1821	so that emacs can be effectively used.
1822
18232010-06-03  Oliver Chen Feng <[email protected]>
1824
1825	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1826	file PAGENUMBER value in sequence for users who care the page
1827	sequence, this will also prevent tiff2pdf from creating pdf file from
1828	the merged tiff file with wrong page sequence.
1829
18302010-05-08  Olivier Paquet  <[email protected]>
1831
1832	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1833	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1834	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1835	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1836	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1837
18382010-05-07  Frank Warmerdam  <[email protected]>
1839
1840	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1841	JPEGPreEncode(), not just when we want to output local tables.
1842	Otherwise the quality used during compression may not be right and
1843	might not match the tables in the tables tag.   This bug only occurs
1844	when seeking between directories in the midst of writing blocks.
1845	http://trac.osgeo.org/gdal/ticket/3539
1846
18472010-05-06  Andrey Kiselev  <[email protected]>
1848
1849	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1850	Regenerated from the source.
1851
18522010-05-05  Olivier Paquet  <[email protected]>
1853
1854	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1855	had stopped working. Also made it always print 6 floats instead of
1856	2*SamplesPerPixel.
1857	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1858	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1859	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1860	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1861
18622010-05-05  Frank Warmerdam  <[email protected]>
1863
1864	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1865	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1866
18672010-04-21  Frank Warmerdam  <[email protected]>
1868
1869	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1870	JPEGSetupEncode() is called if the tables already seem to be
1871	established.  This prevents spurious updates and rewriting of
1872	directories with jpegtables when doing updates to existing images.
1873	http://trac.osgeo.org/gdal/ticket/3539
1874
18752010-04-20  Olivier Paquet  <[email protected]>
1876
1877	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1878	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1879	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1880	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1881	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1882
18832010-04-10  Bob Friesenhahn  <[email protected]>
1884
1885	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
1886	when the tag count value is zero.  Error handling is still a
1887	regression since in 3.9.2, empty tags are skipped (with a warning)
1888	rather than returning a hard error and refusing to read the file.
1889
1890	* tools/ppm2tiff.c (main): While case for parsing comment line
1891	requires extra parenthesis to work as expected.  Reported by
1892	Thomas Sinclair.
1893
18942010-04-02  Frank Warmerdam  <[email protected]>
1895
1896	* libtiff/tif_read.c (primarily): Add support for
1897	CHUNKY_STRIP_READ_SUPPORT where large strips are
1898	read in chunks for applications using TIFFReadScanline().
1899	This is intended to make it more practical work with very
1900	large compressed one-strip files.   Feature is off by default.
1901	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
1902	http://trac.osgeo.org/gdal/ticket/3514
1903
19042010-03-31  Frank Warmerdam  <[email protected]>
1905
1906	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
1907	directories so previously placed directories will be migrated to
1908	the end of file if needed.
1909
19102010-03-30  Frank Warmerdam  <[email protected]>
1911
1912	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
1913	to support operating on strips/tiles of more than 256MB.
1914	http://trac.osgeo.org/gdal/ticket/3512
1915
19162010-03-10  Bob Friesenhahn  <[email protected]>
1917
1918	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
1919	that it is clearly a memory allocation error message, and also
1920	includes the size of the allocation request.
1921
19222010-02-22  Lee Howard  <[email protected]>
1923
1924	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
1925	the JPEG TIFF as is is not required in order to prevent it from
1926	being unused and filled with invalid data.  (Leave it to be
1927	generated by later activity.)
1928	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1929	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
1930	data rather than skipping them.  This fixes the ability to view in
1931	Acrobat Reader, Evince, and Ghostscript.
1932	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1933	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
1934	strips.
1935	http://bugzilla.maptools.org/show_bug.cgi?id=2029
1936
19372009-12-03  Frank Warmerdam  <[email protected]>
1938
1939	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
1940	Made so that when working with downsampled images a stub function
1941	reporting an error is used for tif_decoderow.  We cannot meaningfully
1942	support reading scanlines in this situation.  (#1936)
1943
1944	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
1945	resetting of the upsampling values (gdal:#3259).
1946	http://bugzilla.maptools.org/show_bug.cgi?id=1936
1947
19482009-11-30  Frank Warmerdam  <[email protected]>
1949
1950	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
1951	tools/ras2tiff.c: Fix resource leaks on error.
1952	http://bugzilla.maptools.org/show_bug.cgi?id=2121
1953
1954	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
1955	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
1956	of as a custom(generic) field to avoid a potential reentrancy problem.
1957	http://bugzilla.maptools.org/show_bug.cgi?id=2125
1958
1959	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
1960	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
1961	const, and display_sRGB static and const.
1962	http://bugzilla.maptools.org/show_bug.cgi?id=2124
1963
19642009-11-04  Bob Friesenhahn  <[email protected]>
1965
1966	* libtiff 4.0.0alpha5 released.
1967
19682009-11-03  Bob Friesenhahn  <[email protected]>
1969
1970	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
1971	version has undergone substantial testing with arbitrary sample
1972	bit depths.  Also eliminates GCC compilation warnings.
1973
19742009-11-02  Bob Friesenhahn  <[email protected]>
1975
1976	* port/libport.h: Add extern declarations for getopt standard
1977	globals.
1978
19792009-10-31  Bob Friesenhahn  <[email protected]>
1980
1981	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
1982	noticed in 64-bit build of libtiff with Visual Studio 2005.
1983	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
1984	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
1985
1986	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
1987	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
1988	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
1989	http://bugzilla.maptools.org/show_bug.cgi?id=2068
1990
19912009-10-29  Bob Friesenhahn  <[email protected]>
1992
1993	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
1994	pointer" warnings.
1995
19962009-10-28  Bob Friesenhahn  <[email protected]>
1997
1998	* html/tools.html: Add manual page links, and a summary
1999	description of tiffcrop.
2000
20012009-10-07  Bob Friesenhahn  <[email protected]>
2002
2003	* configure.ac: x86_64 should use the same fill order as i386.
2004
20052009-09-24  Bob Friesenhahn  <[email protected]>
2006
2007	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
2008	Nolde.  Major updates to add significant functionality for reading
2009	and writing tile based images with bit depths not a multiple of 8
2010	which cannot be handled by tiffcp.
2011
20122009-09-03  Bob Friesenhahn  <[email protected]>
2013
2014	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
2015	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
2016	"Bug 2090 - OJPEG crash with libjpeg v7".
2017	http://bugzilla.maptools.org/show_bug.cgi?id=2090
2018
20192009-09-03  Frank Warmerdam  <[email protected]>
2020
2021	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
2022	interface when stoponerror is set.
2023	http://bugzilla.maptools.org/show_bug.cgi?id=2071
2024
20252009-08-30  Bob Friesenhahn  <[email protected]>
2026
2027	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
2028	fix build with gcc when using the "-Wformat
2029	-Werror=format-security" flags.
2030
20312009-08-29  Bob Friesenhahn  <[email protected]>
2032
2033	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
2034	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
2035	utilities tests.
2036
20372009-08-28  Bob Friesenhahn  <[email protected]>
2038
2039	* tools/tiffinfo.c: tiffinfo should return error status to the
2040	caller.  Register a private error callback to accomplish that.
2041
2042	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
2043	PNM formats so that we will be able to test more of the tools.
2044	While adding these test images I notice that bmp2tiff and gif2tiff
2045	only support ancient versions of their respective formats.
2046
20472009-08-27  Bob Friesenhahn  <[email protected]>
2048
2049	* libtiff 4.0.0alpha4 released.
2050
2051	* HOWTO-RELEASE: Improved release instructions.
2052
20532009-08-24  Bob Friesenhahn  <[email protected]>
2054
2055	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
2056	fixes for "Bug 2023 - nroff errors in manual pages".
2057	http://bugzilla.maptools.org/show_bug.cgi?id=2023
2058
2059	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
2060	CVE-2009-2347 libtiff: integer overflows in various inter-color
2061	space conversion tools".
2062	http://bugzilla.maptools.org/show_bug.cgi?id=2079
2063
2064	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
2065	Berkenbilt for "Bug 2024 - possible null pointer dereference with
2066	one-line fix".
2067	http://bugzilla.maptools.org/show_bug.cgi?id=2024
2068
2069	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
2070	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
2071	segfault after setting tdir_tag = IGNORE".
2072	http://bugzilla.maptools.org/show_bug.cgi?id=1895
2073
20742009-08-23  Bob Friesenhahn  <[email protected]>
2075
2076	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
2077	tiffcrop.sh into a collection of many specific tests.  Re-wrote
2078	all of the existing tests to be based on some simple shell
2079	functions.  Make distcheck works again.
2080
2081	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
2082	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
2083	tests under valgrind.
2084
20852009-08-21  Bob Friesenhahn  <[email protected]>
2086
2087	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
2088	build.
2089
2090	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
2091	actually activated since it needed to be enabled in this
2092	Makefile.am.  Also activated parallel-tests mode since it offers
2093	useful features such as per-test .log files and a summary test
2094	report .log file.
2095
20962009-08-20  Bob Friesenhahn  <[email protected]>
2097
2098	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
2099	libtool 2.2.6.  Enabled support for silent build rules
2100	(--enable-silent-rules or 'make V=0') and colorized tests.
2101
2102	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
2103
21042009-06-30  Frank Warmerdam  <[email protected]>
2105
2106	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
2107
2108	* tools/tiffcp.c: add -c sgilog support.
2109
2110	* libtiff/tif_luv.c: correct return codes from encoderow to be
2111	1 on success instead of zero.
2112	http://bugzilla.maptools.org/show_bug.cgi?id=2069
2113
2114	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
2115	#1085 for a better underflow fix that errors properly.
2116	http://bugzilla.maptools.org/show_bug.cgi?id=2065
2117	http://bugzilla.maptools.org/show_bug.cgi?id=1985
2118
21192009-06-26  Frank Warmerdam  <[email protected]>
2120
2121	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
2122	fails on oddly sized 12bit jpeg compressed ycbcr images.
2123
21242009-06-22  Frank Warmerdam  <[email protected]>
2125
2126	* libtiff/tif_lzw.c: Fix buffer underflow bug.
2127	http://bugzilla.maptools.org/show_bug.cgi?id=2065
2128
21292009-06-21  Frank Warmerdam  <[email protected]>
2130
2131	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
2132	for dual mode 8/12 bit jpeg support.
2133
21342009-06-03  Frank Warmerdam  <[email protected]>
2135
2136	* libtiff/tif_write.c: do not override the planar configuration to be
2137	contig for one sample files if planar configuration is already set.
2138	http://bugzilla.maptools.org/show_bug.cgi?id=2057
2139
21402009-06-02  Frank Warmerdam  <[email protected]>
2141
2142	* libtiff/libtiff.def: Add TIFFUnsetField.
2143
21442009-05-03  Frank Warmerdam  <[email protected]>
2145
2146	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
2147	error reports to use "%s" as format string.
2148	http://trac.osgeo.org/gdal/ticket/2976
2149
21502009-03-12  Frank Warmerdam  <[email protected]>
2151
2152	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
2153	for some codecs (#2020).
2154
21552009-02-12  Frank Warmerdam  <[email protected]>
2156
2157	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
2158	http://bugzilla.maptools.org/show_bug.cgi?id=2005
2159
21602009-02-09  Frank Warmerdam  <[email protected]>
2161
2162	* libtiff/tif_dirread.c: Improve allocation safety when allocated
2163	buffer for large tags.  (#1998)  Related to (#1993)
2164
21652009-02-06  Frank Warmerdam  <[email protected]>
2166
2167	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
2168	test suite should pass.
2169
21702009-02-05  Frank Warmerdam  <[email protected]>
2171
2172	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
2173	but at the 2GB boundary to avoid overflow on 32bit systems.
2174	http://bugzilla.maptools.org/show_bug.cgi?id=1993
2175
2176	* libtiff/tif_dirread.c: Remove some assertions that blow due to
2177	corrupt files rather than in response to library internal
2178	inconsistencies.
2179	http://bugzilla.maptools.org/show_bug.cgi?id=1995
2180	http://bugzilla.maptools.org/show_bug.cgi?id=1991
2181
2182	* libtiff/tif_dirread.c: Fixed testing for failed result from
2183	TIFFReadDirectoryFindFieldInfo().
2184	http://bugzilla.maptools.org/show_bug.cgi?id=1992
2185
21862009-01-23  Frank Warmerdam  <[email protected]>
2187
2188	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
2189	http://bugzilla.maptools.org/show_bug.cgi?id=1911
2190
2191	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
2192
2193	http://bugzilla.maptools.org/show_bug.cgi?id=1924
2194
2195	* tools/tiffcrop.c: initialize xres/yres values.
2196
2197	* test/*.sh - default ${srcdir} to local directory.
2198
2199	* test/common.sh - start verbose mode after common settings.
2200
2201	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
2202	avoid type mismatches on different platforms.
2203	http://bugzilla.maptools.org/show_bug.cgi?id=1889
2204
22052009-01-22  Frank Warmerdam  <[email protected]>
2206
2207	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
2208	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
2209
2210	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
2211	defined, primarily to reduce prototype warnings on windows.
2212
2213	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
2214	about unused parameters, and uninitialized variables.
2215
22162009-01-21  Bob Friesenhahn  <[email protected]>
2217
2218	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
2219	order to trace full execution detail while executing the test suite.
2220
22212009-01-20  Frank Warmerdam  <[email protected]>
2222
2223	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
2224
22252009-01-20  Bob Friesenhahn  <[email protected]>
2226
2227	* test/Makefile.am (CLEANFILES): Make sure that test output files
2228	are removed by 'make clean'
2229
2230	* Update autotools for 4.0.0 beta3
2231
2232	* 4.0.0 beta3 produced.
2233
22342009-01-12  Bob Friesenhahn  <[email protected]>
2235
2236	* test/tiffcrop.sh: New test script for tiffcrop from Richard
2237	Nolde.
2238
2239	* tools/tiff2ps.c: Remove spurious message to stderr.
2240
22412009-01-11  Bob Friesenhahn  <[email protected]>
2242
2243	* tools/tiff2ps.c: Incorporated significant functionality update
2244	from Richard Nolde.  In particular, support for rotating the image
2245	by 90, 180, 270, and 'auto' has been added.
2246
2247	* man/tiffcrop.1: Incorporated documentation updates from Richard
2248	Nolde.
2249
2250	* tools/tiffcrop.c: Incorporated significant functionality update
2251	from Richard Nolde.
2252
22532008-12-31  Bob Friesenhahn  <[email protected]>
2254
2255	* libtiff/tiffio.h: GCC will now validate format specifications
2256	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
2257	TIFFWarningExt() in order to reveal bugs.
2258
2259	* Many fixes throughout to work better as a 64-bit build.
2260
22612008-12-30  Bob Friesenhahn  <[email protected]>
2262
2263	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
2264	tags now require 64-bit parameter rather than 32-bit.
2265
2266	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
2267	64-bit values.
2268
2269	* tools/thumbnail.c: Eliminate crash noticed while running test
2270	suite.
2271
22722008-12-29  Bob Friesenhahn  <[email protected]>
2273
2274	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
2275	Initialize stack variables to avoid compiler warning.
2276
2277	* tools/tiffinfoce.c (main): Use toff_t for offset type when
2278	retrieving offset of EXIF IFD.
2279
2280	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
2281	TIFFClientOpen() callback and other external function definitions.
2282
2283	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
2284	type now.  Fixes crash when dumping files containing an EXIF IFD.
2285
2286	* m4/libtool.m4: Update to libtool 2.2.6.
2287
22882008-12-21  Frank Warmerdam  <[email protected]>
2289
2290	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
2291
2292	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
2293	strip for the last partial strip in a jpeg compressed file.
2294	http://bugzilla.maptools.org/show_bug.cgi?id=1981
2295
22962008-10-29  Frank Warmerdam  <[email protected]>
2297
2298	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
2299	we take the shortcut to only update the strip/tile offsets in place.
2300	http://trac.osgeo.org/gdal/ticket/2621
2301
23022008-10-21  Andrey Kiselev  <[email protected]>
2303
2304	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
2305	the older versions retained).
2306
23072008-10-09  Frank Warmerdam  <[email protected]>
2308
2309	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
2310	IPP enabled version of libjpeg from Intel.
2311	http://bugzilla.maptools.org/show_bug.cgi?id=1951
2312
23132008-09-05  Andrey Kiselev  <[email protected]>
2314
2315	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
2316	Required for libtiff 4.0.
2317
2318	* tools/tiffsplit.c: Use dynamically allocated array instead of static
2319	when constructing output file names.
2320
23212008-09-03  Andrey Kiselev  <[email protected]>
2322
2323	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
2324	doing the filename/path construction.
2325
2326	* tools/tiff2pdf.c: More appropriate format string in
2327	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
2328
2329	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
2330
2331	http://bugzilla.maptools.org/show_bug.cgi?id=1929
2332
2333	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
2334	CVE-2008-2327 security issue.
2335
23362008-09-01  Frank Warmerdam  <[email protected]>
2337
2338	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
2339
2340	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
2341	depending on whether the file is bigtiff or classic tiff.
2342	http://bugzilla.maptools.org/show_bug.cgi?id=1917
2343
23442008-08-12  Edward Lam  <[email protected]>
2345
2346	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
2347	consistent (__int64) casting when testing if _lseeki64 has
2348	successfully seeked as requested.  This is necessary for large
2349	file support to work since off_t is only 32-bit.
2350
23512008-07-29  Frank Warmerdam  <[email protected]>
2352
2353	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
2354	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
2355	with control logic to return runtime errors (c/o Even Rouault) (#1927).
2356
23572008-06-17  Frank Warmerdam  <[email protected]>
2358
2359	* tools/tiffcrop.c: Fix some portability problems.
2360
2361	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
2362	used in tif_jpeg.c.
2363
2364	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
2365	as TIFFOpen().
2366
23672008-06-01  Frank Warmerdam  <[email protected]>
2368
2369	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
2370	like Sparc/Solaris.
2371	http://bugzilla.maptools.org/show_bug.cgi?id=1892
2372
23732008-05-27  Frank Warmerdam  <[email protected]>
2374
2375	* libtiff.def: Add TIFFFindField
2376	http://bugzilla.maptools.org/show_bug.cgi?id=1891
2377
23782008-05-26  Frank Warmerdam  <[email protected]>
2379
2380	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
2381
2382	* li2008-04-15  Andrey Kiselev  <[email protected]>
2383
2384btiff/tif_win32.c: Replace custom Win32 memory api with generic
2385	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
2386	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
2387
2388	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
2389	in windows version (care of Edward Lam).
2390
23912008-05-24  Frank Warmerdam  <[email protected]>
2392
2393	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
2394	compression codec codes.
2395
2396	* tif_dirwrite.c: fix potential memory leak.
2397
2398	* tif_dirread.c: Fix unchecked malloc result.
2399
24002008-05-24  Bob Friesenhahn  <[email protected]>
2401
2402	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
2403	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
2404	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
2405	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
2406	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
2407	suggestions from Lee Howard posted to the tiff list on 13 Sep
2408	2007.
2409
24102008-05-23  Frank Warmerdam  <[email protected]>
2411
2412	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
2413	possible runtime problem reported by coverity.
2414
2415	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
2416
2417	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
2418	http://bugzilla.maptools.org/show_bug.cgi?id=1888
2419
2420	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
2421
2422	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
2423
2424	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
2425	Cleanup scanline allocation to avoid coverity warning.
2426
2427	* tools/thumbnail.c: Check for TIFFOpen() failure.
2428
24292008-05-18  Frank Warmerdam  <[email protected]>
2430
2431	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
2432	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
2433	why this is needed.
2434
24352008-05-09  Bob Friesenhahn  <[email protected]>
2436
2437	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
2438	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
2439
24402008-04-15  Andrey Kiselev  <[email protected]>
2441
2442	* test/: Test suite updated. Everything is passed now.
2443
2444	* libtiff/tif_dirinfo.c: Fixed description of the
2445	TIFFTAG_NUMBEROFINKS tag.
2446
24472008-04-14  Andrey Kiselev  <[email protected]>
2448
2449	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
2450	Get rid of some of "dereferencing type-punned" warnings by converting
2451	tdir_offset field of TIFFDirEntry structure into union.
2452
24532008-04-10  Andrey Kiselev  <[email protected]>
2454
2455	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
2456	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
2457	from the public interface. Type of its 'count' parameter changed
2458	from uint32 to tmsize_t.
2459
2460	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
2461	of the tiff structure have the size_t type instead of uint32.
2462
24632008-04-09  Andrey Kiselev  <[email protected]>
2464
2465	* tools/tiffdump.c: Added support for MSVS 6.0.
2466
2467	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
2468	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
2469	point values on MSVS 6.0 platform.
2470
24712008-03-14  Frank Warmerdam  <[email protected]>
2472
2473	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
2474	TIFFReadDirEntryArray() since they are interfering with seemingly
2475	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
2476
24772008-02-09  Joris Van Damme  <[email protected]>
2478
2479	* tif_dirread.c: Added handling for the case of number of values for
2480	PageNumber tag different from 2 (previously resulted in an assert
2481	indicating lack of handling and was forgotten about)
2482
24832008-02-01  Frank Warmerdam  <[email protected]>
2484
2485	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
2486	the actual jpeg data stream if the first strip/tile has zero size.
2487	This is the case when GDAL creates a new file with zero sizes, closes
2488	and reopens it.
2489
24902008-01-07  Frank Warmerdam  <[email protected]>
2491
2492	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
2493
24942008-01-01  Frank Warmerdam  <[email protected]>
2495
2496	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
2497
2498	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
2499	targets.
2500
2501	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
2502	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
2503	(x64).
2504
2505	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
2506	and TIFFFieldWithName() now return TIFFField pointers instead of
2507	TIFFFieldInfo pointers.
2508
2509	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
2510	exist. This makes it compile again on Windows
2511
2512	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
2513	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
2514
2515	* test/rewrite_tag.c: New test for TIFFRewriteField().
2516
25172007-12-31  Frank Warmerdam  <[email protected]>
2518
2519	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
2520	rewrites one field "on disk" updating an existing directory
2521	entry.  Lots of limitations still...
2522
2523	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
2524	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
2525	the strip offset/size values are dirty but nothing else about the
2526	directory is dirty.  In flush handle "just stripmaps dirty" as a
2527	special case that just rewrites these values without otherwise
2528	modifying the directory on disk using TIFFRewriteField().
2529
2530	We also modify logic so that in update mode the directory is not
2531	marked dirty on read, but only when something is changed.  This
2532	means we need to keep track of updates to the stripmap stuff in
2533	TIFFAppendToStrip().
2534
25352007-12-10  Frank Warmerdam  <[email protected]>
2536
2537	* tif_jpeg.c: Improve ability to switch between encoding and decoding
2538	in the jpeg code (gdal bug #2033).
2539
25402007-11-23  Frank Warmerdam  <[email protected]>
2541
2542	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
2543	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
2544	rawcp/rawcc buffer are for writing and thus may require flushing.
2545	Necessary to distinguish whether they need to be written to disk when
2546	in mixed read/write mode and doing a mixture of writing followed by
2547	reading.  http://trac.osgeo.org/gdal/ticket/1758
2548
25492007-11-23  Andrey Kiselev  <[email protected]>
2550
2551	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
2552	from Alexey Chupahin.
2553
25542007-11-02  Frank Warmerdam  <[email protected]>
2555
2556	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
2557	establishing if an existing tile can be rewritten to the same location
2558	by comparing the current size to all the other blocks in the same
2559	directory.  This is dangerous in many situations and can easily
2560	corrupt a file.  (observed in esoteric GDAL situation that's hard to
2561	document).  This change involves leaving the stripbytecount[] values
2562	unaltered till TIFFAppendToStrip().  Now we only write a block back
2563	to the same location it used to be at if the new data is the same
2564	size or smaller - otherwise we move it to the end of file.
2565
2566	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
2567	data when writing the directory just because we have BEENWRITING at
2568	some point in the past.  This was causing odd junk to be written out
2569	in a tile of data when a single tile had an interleaving of reading
2570	and writing with reading last.  (highlighted by gdal
2571	autotest/gcore/tif_write.py test 7.
2572
2573	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
2574	modifying callers buffer.
2575	http://trac.osgeo.org/gdal/ticket/1965
2576
2577	* tif_predict.c/h: more fixes related to last item, keeping a
2578	distinct pfunc for encode and decode cases as these were getting
2579	mixed up sometimes.
2580	http://trac.osgeo.org/gdal/ticket/1948
2581
25822007-11-01  Frank Warmerdam  <[email protected]>
2583
2584	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
2585	predictor based encoding and decoding works in read-write update
2586	mode properly.
2587	http://trac.osgeo.org/gdal/ticket/1948
2588
25892007-10-24  Joris Van Damme  <[email protected]>
2590
2591	* tif_dirread.c: Fixed problem with bogus file triggering
2592	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
2593	ChopUpSingleUncompressedStrip
2594
25952007-10-22  Joris Van Damme  <[email protected]>
2596
2597	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
2598	at best, access violation at worst, when subsampled JPEG compressed imagery
2599	is decoded without the JPEG_COLORMODE feature
2600
26012007-10-11  Frank Warmerdam  <[email protected]>
2602
2603	* html/index.html: Update "people responsible" section.
2604
26052007-10-05  Frank Warmerdam  <[email protected]>
2606
2607	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
2608	as reported on the mailing list.
2609
26102007-10-01  Joris Van Damme  <[email protected]>
2611
2612	* changed some more incorrect %lud printf flags to %lu
2613
26142007-09-29  Joris Van Damme  <[email protected]>
2615
2616	* tif_dirread.c: Strip chopping interfered badly with uncompressed
2617	subsampled images because it tried to divide subsampled rowblocks,
2618	leading to all sorts of errors throughout the library for these
2619	images. Fixed by making strip chopping divide in row counts that
2620	are a multiple of vertical subsampling value.
2621
26222007-09-28  Joris Van Damme  <[email protected]>
2623
2624	* tif_dirread.c: Logical cast working around compiler warning
2625
2626	* tif_read.c: Correction of some error flags and parameter lists
2627
26282007-09-27  Joris Van Damme  <[email protected]>
2629
2630	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
2631	when dealing with large bitspersample values, shutting up purification
2632	tools that warn about truncation, though it remains incorrect and
2633	indicates a conceptual problem there.
2634
2635	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
2636	of first IFD) to proper place because it badly interfered with memory
2637	mapping, resulting in mapping flag even with dummy mapping functions
2638	that returned 0 whilst at the same time the mapping tif_size wasn't
2639	set, thus resulting in continuous incorrect beyond-eof errors.
2640
26412007-09-24  Joris Van Damme  <[email protected]>
2642
2643	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
2644	inconsistent use of const in tiffFields and exifFields definition
2645
26462007-09-20  Frank Warmerdam  <[email protected]>
2647
2648	* tif_dirwrite.c: Always write tile/strip offsets and sizes
2649	using LONG8 type when output format is BigTIFF.  The
2650	TIFFWriteDirectoryTagLongLong8Array() function was restructured
2651	accordingly.
2652
2653	* tif_dirread.c: Improvements to error reporting text in
2654	TIFFFetchDirectory().
2655
26562007-09-19  Bob Friesenhahn  <[email protected]>
2657
2658	* test/images: Added a small collection of test images for use by
2659	test programs and scripts.
2660	* test/tiffinfo.sh: A trivial example test script.
2661	* test/common.sh: Added small script for setting the environment
2662	used by script-based tests.
2663
26642007-08-24  Frank Warmerdam  <[email protected]>
2665
2666	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
2667	zero when writing directory contents to preserve the ability to
2668	rewrite directories in place, even in the middle of a directory
2669	chain.
2670
2671	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
2672	definitions that are missing.  Existing definitions are silently
2673	ignored.
2674
2675	* tif_dirread.c: Add runtime error for fields for which no definition
2676	is found (in addition to an assert for developers) in
2677	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
2678	prudent.
2679
26802007-08-10  Joris Van Damme  <[email protected]>
2681
2682	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
2683	from _TIFFRGBAImage structure to revert unwanted ABI change.
2684
26852007-08-10  Joris Van Damme  <[email protected]>
2686
2687	* libtiff/tif_win32.c: use SetFilePointer instead of
2688	SetFilePointerEx, as per bug
2689
2690	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
2691
26922007-07-19  Andrey Kiselev  <[email protected]>
2693
2694	* libtiff/tif_stream.cxx: Put all callback functions declarations
2695	inside extern "C" block.
2696
2697	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
2698	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
2699	formatter instead of "%lld" with MSVC compiler.
2700
2701	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
2702	_TIFFUInt64ToDouble() functions.
2703
27042007-07-18  Andrey Kiselev  <[email protected]>
2705
2706	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
2707	integer constants.
2708
2709	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2710	remove tif_config.h/tiffconf.h during cleaning. As per bug
2711
2712	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2713
2714	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2715
2716	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2717
27182007-07-13  Andrey Kiselev  <[email protected]>
2719
2720	* libtiff 4.0.0alpha released.
2721
27222007-07-12  Andrey Kiselev  <[email protected]>
2723
2724	* tools/tiff2pdf.c: Added missed extern optind as per bug
2725
2726	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2727
2728	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2729	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2730	extending scheme completed.
2731
27322007-07-11  Bob Friesenhahn  <[email protected]>
2733
2734	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2735	use standard C++ library size types and attempt to detect overflow
2736	cases.
2737
27382007-07-08  Andrey Kiselev  <[email protected]>
2739
2740	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2741	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2742	tag extending scheme. Use the new scheme everywhere.
2743
2744	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2745	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2746	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2747	TIFFFIeldInfo structure replaced with TIFFField structure.
2748	TIFFFieldInfo retained for the backward compatibility.
2749
27502007-07-05  Bob Friesenhahn  <[email protected]>
2751
2752	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2753	defined.
2754
27552007-07-04  Andrey Kiselev  <[email protected]>
2756
2757	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2758	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2759	removed.
2760
2761	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2762	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2763	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2764	These tags are not codec-specific and relate to image content, so
2765	process them as other normal tags.
2766
2767	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2768	public tiffio.h to private tif_dir.h.
2769
2770	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2771	outdated.
2772
27732007-07-03  Andrey Kiselev  <[email protected]>
2774
2775	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2776	tif_win3.c}: Obsoleted portability stuff removed.
2777
2778	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2779
2780	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2781
2782	Patch from William Bader.
2783
2784	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2785	significant upgrade of the whole utility as per bug
2786
2787	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2788
2789	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2790	PDF file using TIFFClientOpen() machinery as it is implemented
2791	by Leon Bottou.
2792
27932007-06-26  Bob Friesenhahn  <[email protected]>
2794
2795	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2796	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2797	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2798	allow returning -1 for errors.
2799	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2800
28012007-06-25  Bob Friesenhahn  <[email protected]>
2802
2803	* port/strtoull.c: New porting function in case strtoull() is not
2804	available on the target system.
2805	* configure.ac: Add configure support for determining sized types
2806	in a portable way and performing necessary substitutions in
2807	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2808	definitions.
2809
28102007-04-27  Andrey Kiselev  <[email protected]>
2811
2812	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2813
2814	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2815
28162007-04-07  Andrey Kiselev  <[email protected]>
2817
2818	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2819	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2820	tif_predict.c, tif_zip.c}: Finally fix bug
2821
2822	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2823
2824	by introducing _TIFFMergeFieldInfo() returning integer error status
2825	instead of void in case of problems with field merging (e.g., if the
2826	field with such a tag already registered). TIFFMergeFieldInfo() in
2827	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2828	check returned value.
2829
28302007-04-07  Frank Warmerdam  <[email protected]>
2831
2832	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2833	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2834
28352007-04-06  Frank Warmerdam  <[email protected]>
2836
2837	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2838	will convert from decompressor to compressor or compress to decompress
2839	if required by the force arguments.  This works around a problem in
2840	where the JPEGFixupTestSubsampling() may cause a decompressor to
2841	be setup on a directory when later a compressor is required with the
2842	force flag set.  Occurs with the addtiffo program for instance.
2843
28442007-04-06  Andrey Kiselev  <[email protected]>
2845
2846	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2847	functionality from Richard Nolde. As per bug
2848
2849	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2850
28512007-03-28  Frank Warmerdam  <[email protected]>
2852
2853	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2854
28552007-03-17  Joris Van Damme  <[email protected]>
2856
2857	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2858
28592007-03-07  Joris Van Damme  <[email protected]>
2860
2861	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2862	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2863	factor. This bug is mentioned in:
2864	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2865	http://www.asmail.be/msg0054766825.html
2866
28672007-03-07  Joris Van Damme  <[email protected]>
2868
2869	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2870
2871	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2872	unused arguments by standard C indication for the same
2873
28742007-02-27  Andrey Kiselev  <[email protected]>
2875
2876	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2877	counters in TIFFFetchData(). Should finally fix the issue
2878
2879	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2880
28812007-02-24  Andrey Kiselev  <[email protected]>
2882
2883	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
2884	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2885
2886	* libtiff/tif_dirread.c: Added special function to handle
2887	SubjectDistance EXIF tag as per bug
2888
2889	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
2890
2891	* tools/tiff2pdf.c: Do not assume inches when the resolution units
2892	do not specified. As per bug
2893
2894	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2895
2896	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
2897	it was set as infinite. As per bug
2898
2899	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2900
2901	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
2902	by Richard Nolde. As per bug
2903
2904	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
2905
29062007-02-22  Andrey Kiselev  <[email protected]>
2907
2908	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
2909	ExtraSamples == 999 produced by Corel Draw. As per bug
2910
2911	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
2912
2913	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
2914	changed from tsize_t to uint32 to be able to work with data arrays
2915	larger than 2GB. Fixes bug
2916
2917	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2918
2919	Idea submitted by Matt Hancher.
2920
29212007-01-31  Andrey Kiselev  <[email protected]>
2922
2923	* tools/tif2rgba.c: This utility does not work properly on big-endian
2924	architectures. It was fixed including the bug
2925
2926	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
2927
29282007-01-15  Mateusz Loskot <[email protected]>
2929
2930	* Submitted libtiff port for Windows CE platform
2931	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
2932	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
2933	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
2934	functons from tif_win32.c.
2935	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
2936	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
2937	standard header files for Windows CE build.
2938	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
2939
29402006-11-19  Frank Warmerdam  <[email protected]>
2941
2942	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
2943	we move a strip.
2944	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
2945
29462006-10-13  Andrey Kiselev  <[email protected]>
2947
2948	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
2949	in Gentoo bug ():
2950
2951	http://bugs.gentoo.org/show_bug.cgi?id=142383
2952
2953	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
2954	Though it is still far from the state of being working and useful.
2955
29562006-10-12  Andrey Kiselev  <[email protected]>
2957
2958	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
2959	method.
2960
2961	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
2962	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
2963
2964	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
2965	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
2966
2967	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
2968	vulnerabilities, reported in Gentoo bug ():
2969
2970	http://bugs.gentoo.org/show_bug.cgi?id=142383
2971
29722006-09-28  Andrey Kiselev  <[email protected]>
2973
2974	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
2975	vulnerabilities, as per	Gentoo bug ():
2976
2977	http://bugs.gentoo.org/show_bug.cgi?id=142383
2978
29792006-09-27  Frank Warmerdam  <[email protected]>
2980
2981	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
2982	encoding and decoding on the same read-write TIFF handle.  The LZW
2983	code can now maintain encode and decode state at the same time. The
2984	ZIP code will switch back and forth as needed.
2985	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
2986
29872006-09-20  Frank Warmerdam  <[email protected]>
2988
2989	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
2990	tif_config.vc.h for easier identification by folks using an IDE.
2991
29922006-07-25  Frank Warmerdam  <[email protected]>
2993
2994	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
2995
29962006-07-19  Frank Warmerdam  <[email protected]>
2997
2998	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
2999	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
3000	to bug report by Peng Gao with black strip at bottom of images.
3001
30022006-07-12  Frank Warmerdam  <[email protected]>
3003
3004	* tif_dirwrite.c: make sure to use uint32 for wordcount in
3005	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
3006	It already seems to have been done for other field types.  Needed
3007	for "tiffset" on files with geotiff ascii text.
3008
30092006-07-04  Bob Friesenhahn  <[email protected]>
3010
3011	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
3012	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
3013	its use does not appear to be required, so use it only when it is
3014	available.
3015
30162006-06-24  Andrey Kiselev  <[email protected]>
3017
3018	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
3019
3020	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
3021	function TIFFFetchDirectory() avoiding code duplication in
3022	TIFFReadDirectory() and TIFFReadCustomDirectory().
3023
30242006-06-19  Frank Warmerdam  <[email protected]>
3025
3026	* tools/tiff2pdf.c: Fix handling of -q values.
3027	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
3028
30292006-06-17  Frank Warmerdam  <[email protected]>
3030
3031	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
3032	files.  Modified TIFFReadDirectory() to not invoke
3033	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
3034	but one of them is zero.
3035	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
3036
30372006-06-08  Andrey Kiselev  <[email protected]>
3038
3039	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
3040	checking code in the separate function TIFFCheckDirOffset().
3041
3042	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
3043
3044	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
3045
3046	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
3047
3048	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
3049
3050	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
3051
3052	* tools/tiff2pdf.c: Fixed buffer overflow condition in
3053	t2p_write_pdf_string() as per bug
3054
3055	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
3056
30572006-06-07  Andrey Kiselev  <[email protected]>
3058
3059	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
3060	support for JBIG compression scheme (34661 code) contributed by Lee
3061	Howard. As per bug
3062
3063	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
3064
3065	* configure, configure.ac: OJPEG support enabled by default.
3066
3067	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
3068
30692006-06-03  Bob Friesenhahn  <[email protected]>
3070
3071	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
3072	TIFFPrintDirectory().  Joris Van Damme authored the fix.
3073
30742006-04-21  Andrey Kiselev  <[email protected]>
3075
3076	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
3077	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
3078
3079	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
3080	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
3081	Added support for OpenVMS by Alexey Chupahin, [email protected].
3082
30832006-04-20  Andrey Kiselev  <[email protected]>
3084
3085	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
3086	Properly set the binary mode for stdin stream as per bug
3087	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
3088
3089	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
3090	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
3091	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
3092	tiffset.1}: Improvements in page formatting as per bug
3093	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
3094
3095	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
3096	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
3097
30982006-04-18  Frank Warmerdam  <[email protected]>
3099
3100	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
3101	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
3102
31032006-04-12  Joris Van Damme  <[email protected]>
3104
3105	* libtiff/tif_getimage.c: Added support for planarconfig separate
3106	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
3107
31082006-04-11  Joris Van Damme  <[email protected]>
3109
3110	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
3111	- Conversion of unassociated alpha to associated alpha now done with
3112	  more performant LUT, and calculation more correct
3113	- Conversion of 16bit data to 8bit data now done with
3114	  more performant LUT, and calculation more correct
3115	- Bugfix of handling of 16bit RGB with unassociated alpha
3116
31172006-04-11  Joris Van Damme  <[email protected]>
3118
3119	* libtiff/tif_getimage.c:
3120	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
3121	  buffer for alpha strile and filled it, only to never read it back.
3122	  Removed allocation and fill.
3123	- Minor rename of vars in gtTileSeparate and gtStripSeparate
3124	  anticipating planned functionality extension
3125
31262006-04-08  Joris Van Damme  <[email protected]>
3127
3128	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
3129	and pickTileSeparateCase to PickSeparateCase as both work on strips as
3130	well
3131
3132	* libtiff/tif_getimage.c: moved img->get selection from
3133	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
3134	logical hook for planned functionality extension
3135
31362006-04-08  Joris Van Damme  <[email protected]>
3137
3138	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
3139	of inappropriate use of jpeg_abort instead of jpeg_destroy
3140
31412006-04-07  Joris Van Damme  <[email protected]>
3142
3143	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
3144	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
3145	on subsampled images - this ought to get sorted when we feel brave
3146	enough to replace TIFFScanlineSize alltogether
3147
3148	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
3149
31502006-04-04  Joris Van Damme  <[email protected]>
3151
3152	* libtiff/tiffio.h: added new type tstrile_t
3153
3154	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
3155	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
3156	toff_t*
3157
3158	* libtiff/tif_ojpeg.c: totally new implementation
3159
3160	* libtiff/tif_dirread.c: added several hacks to suit new support of
3161	OJPEG
3162
3163	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
3164	of OJPEG images in favor of tif_getimage.c native handling of
3165	YCbCr and desubsampling
3166
31672006-03-29  Frank Warmerdam  <[email protected]>
3168
3169	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
3170	interpretation causes the "upsampled" flag to be recomputed.  Fixes
3171	peculiar bug where photometric flag had to be set before jpegcolormode
3172	flag.
3173
31742006-03-25  Joris Van Damme  <[email protected]>
3175
3176	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
3177
3178	* libtiff/tif_strip.c: temporarilly added two new versions of
3179	TIFFScanlineSize
3180	  - TIFFNewScanlineSize: proposed new version, after all related
3181	    issues and side-effects are sorted out
3182	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
3183	This needs further sorting out.
3184
31852006-03-25  Joris Van Damme  <[email protected]>
3186
3187	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
3188	of last truncated strip data to TIFFWriteEncodedStrip
3189
31902006-03-25  Joris Van Damme  <[email protected]>
3191
3192	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
3193
31942006-03-25  Joris Van Damme  <[email protected]>
3195
3196	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
3197
3198	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
3199
3200	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
3201	prepare	the path for new tif_ojpeg.c
3202
32032006-03-23  Andrey Kiselev  <[email protected]>
3204
3205	* libtiff 3.8.2 released.
3206
3207	* tools/Makefile.am: Use runtime paths linker flags when rpath
3208	option enabled.
3209
32102006-03-21  Andrey Kiselev  <[email protected]>
3211
3212	* libtiff/libtiff.def: Added missed exports as per bug
3213	http://bugzilla.remotesensing.org/attachment.cgi?id=337
3214
3215	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
3216	tools/Makefile.vc: Makefiles improvements as per bug
3217	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
3218
3219	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
3220	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
3221	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
3222
3223	* libtiff/tif_strip.c: Take subsampling in account when calculating
3224	TIFFScanlineSize().
3225
3226	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
3227
32282006-03-17  Andrey Kiselev  <[email protected]>
3229
3230	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
3231	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
3232
3233	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
3234	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
3235
32362006-03-16  Andrey Kiselev  <[email protected]>
3237
3238	* libtiff/tiffiop.h: Added decalration for
3239	_TIFFSetDefaultCompressionState().
3240
3241	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
3242	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
3243	codec cleanup methods. As per bug
3244
3245	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
3246
32472006-03-15  Andrey Kiselev  <[email protected]>
3248
3249	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
3250	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
3251
3252	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
3253	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
3254
3255	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
3256	removed; move here the STRIP_SIZE_DEFAULT macro definition.
3257
3258	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
3259	macro definition.
3260
3261	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
3262
32632006-03-14  Andrey Kiselev  <[email protected]>
3264
3265	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
3266	in TIFFReadDirectory, because it is always set at the start of
3267	function and we allow TIFFs without that tag set.
3268
32692005-03-13  Andrey Kiselev  <[email protected]>
3270
3271	* libtiff 3.8.1 released.
3272
32732006-03-07  Andrey Kiselev  <[email protected]>
3274
3275	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
3276	function as per bug
3277	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3278
3279	* libtiff/tif_dirread.c: More wise check for integer overflow
3280	condition as per bug
3281	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3282
3283	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
3284	Properly restore setfield/getfield methods in cleanup functions. As
3285	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3286
32872006-03-03  Andrey Kiselev  <[email protected]>
3288
3289	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
3290	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
3291
3292	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
3293	TIFFPredictorCleanup() in codec cleanup methods. As per bug
3294
3295	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3296
3297	* libtiff/tif_dirread.c: Fixed integer overflow condition in
3298	TIFFFetchData() function. As per bug
3299
3300	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3301
33022006-03-01  Andrey Kiselev  <[email protected]>
3303
3304	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
3305	TIFFSetField() method, not directly. As per bug
3306
3307	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
3308
3309	* tools/ppm2tiff.c: Added support for PBM files as per bug
3310	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
3311
33122006-02-27  Andrey Kiselev  <[email protected]>
3313
3314	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
3315	to avoid crash as per bug
3316
3317	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
3318
33192006-02-26  Andrey Kiselev  <[email protected]>
3320
3321	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
3322	t2p_sample_rgba_to_rgb() was used in place of each other, that was
3323	resulted in problems with RGBA images with associated alpha.
3324	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
3325
33262006-02-23  Andrey Kiselev  <[email protected]>
3327
3328	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
3329	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
3330
3331	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
3332	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
3333	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
3334
3335	* tools/tiff2ps.c: Properly scale all the pages when converting
3336	multipage TIFF with /width/height/center options set. As per bug
3337
3338	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
3339
33402006-02-15  Andrey Kiselev  <[email protected]>
3341
3342	* tools/tiff2pdf.c: Do not create output file until all option checks
3343	will be done. As per bug
3344
3345	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
3346
3347	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
3348	list of input files as per bug:
3349
3350	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
3351
33522006-02-09  Andrey Kiselev  <[email protected]>
3353
3354	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
3355	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
3356
3357	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
3358	TIFFRGBAImage interface.
3359
3360	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
3361	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
3362
33632006-02-07  Frank Warmerdam  <[email protected]>
3364
3365	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
3366	compressed TIFF files, per submission from Dan Cobra.
3367
33682006-02-07  Andrey Kiselev  <[email protected]>
3369
3370	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
3371	cast values to avoid warnings. As per bug
3372	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3373
3374	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
3375	appropriate. As per bug
3376	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3377
3378	* libtiff/tif_aux.c: Fixed type of temporary variable in
3379	_TIFFCheckMalloc() as per bug
3380	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3381
33822006-02-06  Andrey Kiselev  <[email protected]>
3383
3384	* libtiff/tif_aux.c: Return static array when fetching default
3385	YCbCrCoefficients (another problem, reported a the
3386	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
3387
33882006-02-03  Andrey Kiselev  <[email protected]>
3389
3390	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
3391	YCbCrSubsampling and DotRange tags as per bugs
3392
3393	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
3394	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
3395
3396	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
3397	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
3398
3399	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
3400
34012006-01-23  Andrey Kiselev  <[email protected]>
3402
3403	* libtool related stuff updated from the 2.1a branch.
3404
34052006-01-11  Frank Warmerdam  <[email protected]>
3406
3407	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
3408	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
3409	properly as per bug:
3410	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
3411
34122006-01-09  Bob Friesenhahn  <[email protected]>
3413
3414	* configure.ac: Fix with_default_strip_size comparison as reported
3415	by Norihiko Murase.
3416
34172006-01-08  Bob Friesenhahn  <[email protected]>
3418
3419	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
3420	incorrectly, tests were not actually testing the uninstalled
3421	libtiff.  Now they are.
3422
34232006-01-04  Andrey Kiselev  <[email protected]>
3424
3425	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
3426	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
3427	should be uint32 value.
3428
34292006-01-02  Bob Friesenhahn  <[email protected]>
3430
3431	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
3432	be used if build directory is not the same as source directory.
3433	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
3434	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
3435	and re-sorted tag names in alphabetical order.
3436
34372005-12-29  Andrey Kiselev  <[email protected]>
3438
3439	* libtiff 3.8.0 released.
3440
34412005-12-28  Bob Friesenhahn  <[email protected]>
3442
3443	* tools/bmp2tiff.c (main): Fixed warning regarding returning
3444	inconsistent types from a condition.
3445	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
3446	format.
3447	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
3448
34492005-12-28  Joris Van Damme  <[email protected]>
3450
3451	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
3452
34532005-12-27  Andrey Kiselev  <[email protected]>
3454
3455	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
3456	windows.h, to reduce the compile time.
3457
34582005-12-26  Bob Friesenhahn  <[email protected]>
3459
3460	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
3461
34622005-12-26  Andrey Kiselev  <[email protected]>
3463
3464	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
3465	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
3466	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
3467	private functions to retrieve FieldInfo arrays.
3468
34692005-12-24  Bob Friesenhahn  <[email protected]>
3470
3471	* html/build.html: Added some additional instructions for when
3472	building using MSVC under Windows.  Also fixed two HTML syntax
3473	errors and used HTML Tidy to tidy up the HTML syntax and
3474	formatting.
3475
34762005-12-24  Andrey Kiselev  <[email protected]>
3477
3478	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
3479	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
3480	StoNits tags custom.
3481
34822005-12-23  Andrey Kiselev  <[email protected]>
3483
3484	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
3485	WhitePoint tag custom.
3486
3487	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
3488
34892005-12-23  Joris Van Damme  <[email protected]>
3490
3491	* libtiff/tiffio.h: fixed typo that potentially resulted in
3492	redefininition of USE_WIN32_FILEIO
3493
3494	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
3495	calls in core LibTiff.
3496
34972005-12-21  Andrey Kiselev  <[email protected]>
3498
3499	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
3500	Photoshop and ICCProfile tags custom.
3501
35022005-12-21  Joris Van Damme  <[email protected]>
3503
3504	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
3505	newer code to get context indicator in error handler and still
3506	remain compatible with older code: Done TIFFError calls everywhere
3507	except in tools
3508
35092005-12-20  Andrey Kiselev  <[email protected]>
3510
3511	* tools/tiffcp.c: Added many error reporting messages; fixed integer
3512	overflow as per bug
3513
3514	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
3515
35162005-12-16  Frank Warmerdam  <[email protected]>
3517
3518	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
3519	YCbCr images in jpeg compressed TIFF files.
3520
35212005-12-14  Andrey Kiselev  <[email protected]>
3522
3523	* tools/tiffcp.c: Return non-zero status when reading fails (again).
3524
35252005-12-13  Andrey Kiselev  <[email protected]>
3526
3527	* tools/tiffcp.c: Return non-zero status when reading fails.
3528
35292005-12-12  Andrey Kiselev  <[email protected]>
3530
3531	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
3532
35332005-12-09  Andrey Kiselev  <[email protected]>
3534
3535	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
3536	custom.
3537
3538	* tools/tiffinfo.c: Print EXIF directory contents if exist.
3539
3540	* libtiff/tiff.h: Few EXIF tag numbers added.
3541
3542	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
3543	tiffio.h}: Preliminary support to read custom directories. New
3544	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
3545
35462005-12-07  Andrey Kiselev  <[email protected]>
3547
3548	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
3549	More work to implement custom directory read support.
3550
3551	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
3552	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
3553	tags custom.
3554
35552005-12-05  Andrey Kiselev  <[email protected]>
3556
3557	* libtiff/tif_dirread.c: One more workaround for broken
3558	StripByteCounts tag. Handle the case when StripByteCounts array filled
3559	with completely wrong values.
3560
35612005-11-30  Andrey Kiselev  <[email protected]>
3562
3563	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
3564	in the TIFFOpenW() function as per bug
3565
3566	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
3567
3568	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
3569	functions as per bug
3570
3571	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
3572
35732005-11-20  Frank Warmerdam  <[email protected]>
3574
3575	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
3576	for MS MDI format.
3577	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
3578
3579	* .cvsignore: many files added, and a few update according
3580	to suggestion of Brad HArds on tiff mailing list.
3581
35822005-11-03  Frank Warmerdam  <[email protected]>
3583
3584	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
3585	public.
3586
35872005-10-31  Andrey Kiselev  <[email protected]>
3588
3589	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
3590	as per bug
3591
3592	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
3593
3594	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
3595	as per bug
3596
3597	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
3598
3599	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
3600	problem as per bug
3601
3602	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
3603
3604	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
3605
3606	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
3607
3608	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
3609	ResolutionUnit tags modifiable during write process. As per bug
3610
3611	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
3612
3613	* tools/tiffsplit.c: Copy fax related fields over splitted parts
3614	as per bug
3615
3616	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
3617
36182005-10-21  Frank Warmerdam  <[email protected]>
3619
3620	* tif_dirread.c: Don't try and split single strips into "0" strips
3621	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
3622	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
3623
36242005-10-20  Joris Van Damme  <[email protected]>
3625
3626	* tif_fax3.c: changed 'at scanline ...' style warning/errors
3627	with incorrect use of tif_row, to 'at line ... of
3628	strip/tile ...' style
3629
36302005-10-15  Frank Warmerdam  <[email protected]>
3631
3632	* tif_write.c: fixed setting of planarconfig as per bug report
3633	on the mailing list from Joris.
3634
36352005-10-07  Andrey Kiselev  <[email protected]>
3636
3637	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
3638	tif_dirread.c}: Make the default strip size configurable via the
3639	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
3640
36412005-09-30  Bob Friesenhahn  <[email protected]>
3642
3643	* html/support.html: Fixed link to documentation on Greg Ward's
3644	LogLuv TIFF format.
3645
36462005-09-28  Andrey Kiselev  <[email protected]>
3647
3648	* tools/tiffdump.c: Fixed crash when reading malformed tags.
3649
36502005-09-20  Andrey Kiselev  <[email protected]>
3651
3652	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
3653	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
3654
36552005-09-12  Andrey Kiselev  <[email protected]>
3656
3657	* libtiff 3.7.4 released.
3658
3659	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
3660	from Patrick Welche (all scripts moved in the 'config' and 'm4'
3661	directories).
3662
36632005-09-12  Frank Warmerdam  <[email protected]>
3664
3665	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
3666
36672005-09-05  Frank Warmerdam  <[email protected]>
3668
3669	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
3670	also set it to NULL to avoid double free when re-setting custom
3671	string fields as per:
3672
3673	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
3674
36752005-08-12  Frank Warmerdam  <[email protected]>
3676
3677	* libtiff/tif_print.c: avoid signed/unsigned warning.
3678
3679	* libtiff/tif_dirread.c: removed unused variable.
3680
36812005-07-30  Frank Warmerdam  <[email protected]>
3682
3683	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
3684	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
3685	pass on bigendian (macosx) system.
3686
36872005-07-28  Andrey Kiselev  <[email protected]>
3688
3689	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
3690	CheckMalloc() function to _TIFFCheckMalloc() and make it available
3691	globally as an internal helper routine.
3692
36932005-07-27  Andrey Kiselev  <[email protected]>
3694
3695	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
3696	the custom tags handling code.
3697
36982005-07-26  Andrey Kiselev  <[email protected]>
3699
3700	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
3701	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
3702	function, use TIFFFetchNormalTag() instead as per bug
3703
3704	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3705
3706	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
3707	instead.
3708
3709	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3710
3711	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3712
37132005-07-25  Andrey Kiselev  <[email protected]>
3714
3715	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3716
3717	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3718
37192005-07-21  Andrey Kiselev  <[email protected]>
3720
3721	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3722	the TIFFWriteCheck() function in case of single band images (as per
3723	TIFF spec).
3724
37252005-07-12  Andrey Kiselev  <[email protected]>
3726
3727	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3728	support for SCons software building tool (http://www.scons.org/).
3729	This is experimental infrastructure and it will exist along with the
3730	autotools mechanics.
3731
37322005-07-07  Andrey Kiselev  <[email protected]>
3733
3734	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3735	the NetBSD source tree (the old	4-clause BSD license changed to
3736	the new 3-clause one).
3737
3738	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3739	replacement module.
3740
3741	* port/dummy.c: Make the dummy function static.
3742
37432005-07-06  Andrey Kiselev  <[email protected]>
3744
3745	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3746
3747	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3748	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3749	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3750
37512005-07-04  Andrey Kiselev  <[email protected]>
3752
3753	* libtiff 3.7.3 released.
3754
3755	* configure, configure.ac: Do not use empty -R option when linking
3756	with --enable-rpath.
3757
37582005-07-01  Andrey Kiselev  <[email protected]>
3759
3760	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3761	reading the first IFD when needed. As per bug
3762
3763	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3764
3765	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3766	effects.
3767
37682005-06-23  Andrey Kiselev  <[email protected]>
3769
3770	* tools/tiff2pdf.c: Print two characters per loop in the
3771	t2p_write_pdf_trailer(). As per bug
3772
3773	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3774
3775	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3776	per bug
3777
3778	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3779
3780	* acinclude.m4: Updated to latest OpenGL test macros versions.
3781
3782	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3783	platform. As per bug
3784
3785	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3786
37872005-06-14  Andrey Kiselev  <[email protected]>
3788
3789	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3790	and YClipPathUnits tags.
3791
37922005-06-07  Andrey Kiselev  <[email protected]>
3793
3794	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3795	use pixel sized shift in contigous case.
3796
37972005-06-06  Andrey Kiselev  <[email protected]>
3798
3799	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3800	Make overviews working for contiguos images.
3801
38022005-06-03  Andrey Kiselev  <[email protected]>
3803
3804	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3805	time one.
3806
3807	* libtiff/tif_predict.c: Floating point predictor now works on
3808	big-endian hosts.
3809
38102005-06-01  Andrey Kiselev  <[email protected]>
3811
3812	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3813	ASCII values.
3814
3815	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3816	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3817	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3818	TargetPrinter tags custom.
3819
3820	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3821	TIFF_CODERSETUP flag (to fix memry leaks).
3822
3823	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3824	allocating.
3825
38262005-05-26  Andrey Kiselev  <[email protected]>
3827
3828	* configure.ac, libtiff/Makefile.am: Added workaround for
3829	OpenBSD/MirOS soname problem as per bug
3830
3831	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3832
3833	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3834	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3835	per bug
3836
3837	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3838
38392005-05-25  Andrey Kiselev  <[email protected]>
3840
3841	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3842	the fscanf() function. As per bug
3843
3844	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3845
3846	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3847	uint16 array when fetching the BYTE and SBYTE filds, so we should
3848	consider result as pointer to uint16 array and not as array of chars.
3849	As per bug
3850
3851	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3852
3853	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3854
3855	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3856
3857	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3858	mode in CreateFile() call as per bug
3859
3860	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3861
3862	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3863	libtiffxx libraries as per bug
3864
3865	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3866
3867	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3868	GDAL.
3869
38702005-05-23  Frank Warmerdam  <[email protected]>
3871
3872	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3873	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3874	in directory.
3875
38762005-05-22  Frank Warmerdam  <[email protected]>
3877
3878	* libtiff/tif_dirread.c: Changed the code that computes
3879	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3880	zero. This is a common case with GDAL indicating a "null" tile/strip.
3881
38822005-05-17  Andrey Kiselev  <[email protected]>
3883
3884	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
3885
38862005-05-06  Frank Warmerdam  <[email protected]>
3887
3888	* libtiff/tif_dirread.c: Applied similar change to
3889	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
3890
3891	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3892
3893	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
3894
38952005-05-06  Andrey Kiselev  <[email protected]>
3896	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
3897	added new option '-b' to use interpolation in output PDF files (Bruno
3898	Ledoux).
3899
39002005-05-05  Frank Warmerdam  <[email protected]>
3901
3902	* libtiff/tif_dirread.c: Ensure that broken files with too many
3903	values in PerSampleShorts work ok instead of crashing.
3904
3905	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3906
39072005-04-27  Andrey Kiselev  <[email protected]>
3908
3909	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
3910	input file.
3911
39122005-04-15  Andrey Kiselev  <[email protected]>
3913
3914	* libtiff/tif_predict.c: Added ability to encode floating point
3915	predictor, as per TIFF Technical Note 3.
3916
39172005-04-14  Andrey Kiselev  <[email protected]>
3918
3919	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
3920	floating point predictor, as per TIFF Technical Note 3.
3921
39222005-04-13  Andrey Kiselev  <[email protected]>
3923
3924	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
3925	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
3926	swap 24-bit floating point values.
3927
3928	* libtiff/tiff.h: Added predictor constants.
3929
39302005-04-08  Andrey Kiselev  <[email protected]>
3931
3932	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
3933	values in _TIFFVSetField() function. Inspired by the bug
3934
3935	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3936
3937	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
3938	as per bug
3939
3940	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3941
39422005-03-30  Andrey Kiselev  <[email protected]>
3943
3944	* libtiff/tif_open.c: Do not read header in case the output file
3945	should be truncated (Ron).
3946
3947	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
3948	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
3949
3950	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
3951
39522005-03-22  Andrey Kiselev  <[email protected]>
3953
3954	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
3955	rpath option.
3956
39572005-03-21  Andrey Kiselev  <[email protected]>
3958
3959	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
3960	tags.
3961
39622005-03-18  Andrey Kiselev  <[email protected]>
3963
3964	* libtiff/dirinfo.c: Added DNG tags.
3965
3966	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
3967	handling code.
3968
3969	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
3970	added DNG 1.1.0.0 tags.
3971
3972	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
3973	bug
3974
3975	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
3976
3977	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
3978
39792005-03-17  Andrey Kiselev  <[email protected]>
3980
3981	* nmake.opt: Build with Win32 CRT library by default.
3982
3983	* tools/tiff2ps.c: Fixed typo in page size handling code.
3984
3985	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
3986	by value.
3987
3988	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
3989
39902005-03-15  Andrey Kiselev  <[email protected]>
3991
3992	* libtiff 3.7.2 released.
3993
39942005-03-09  Andrey Kiselev  <[email protected]>
3995
3996	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
3997	floating point data; complain on unsupported bit depths.
3998
39992005-03-05  Andrey Kiselev  <[email protected]>
4000
4001	* tif_stream.cxx: Use ios namespace instead of ios_base to support
4002	GCC 2.95.
4003
4004	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
4005	Lee Howard for HylaFax DCS tag
4006	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
4007
40082005-03-04  Andrey Kiselev  <[email protected]>
4009
4010	* configure, configure.ac: Use -rpath option instead of -R as per bug
4011
4012	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
4013
4014	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
4015	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
4016	software. As per bug
4017
4018	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
4019
4020	* nmake.opt, html/build.html: Add more comments, change the config
4021	file organization a bit as per bug
4022
4023	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
4024
4025	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
4026	as per bug
4027
4028	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
4029
40302005-03-03  Andrey Kiselev  <[email protected]>
4031
4032	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
4033	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
4034
4035	* tools/fax2ps.c: Replace insecure mktemp() function with the
4036	tmpfile() as per bug
4037
4038	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
4039
40402005-02-04  Andrey Kiselev  <[email protected]>
4041
4042	* libtiff/tiff.h: Changed the int8 definition to be always signed char
4043	as per bug
4044
4045	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
4046
4047	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
4048	block as per bug
4049
4050	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
4051
40522005-02-03  Bob Friesenhahn  <[email protected]>
4053
4054	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
4055	display more correctly.  Images display brighter than they should
4056	on a Sun workstation.
4057
40582005-02-03  Andrey Kiselev  <[email protected]>
4059
4060	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
4061	suspicious values in the tags. As per bugs
4062
4063	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
4064
4065	and
4066
4067	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
4068
4069	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
4070
4071	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
4072
40732005-01-31  Bob Friesenhahn  <[email protected]>
4074
4075	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
4076	(TIFFTAG_TILELENGTH): Corrected description.
4077
40782005-01-30  Andrey Kiselev  <[email protected]>
4079
4080	* configure.ac: Fixes for --with-docdir option as per bug
4081
4082	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
4083
4084	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
4085	bug
4086
4087	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
4088
4089	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
4090	Michael Rinne and Edward Lam.
4091
40922005-01-15  Andrey Kiselev  <[email protected]>
4093
4094	* configure.ac: Make the documentation directory location configurable
4095	via the --with-docdir option (as suggested by Jeremy C. Reed).
4096
4097	* libtiff/tif_color.c: Use double as the second argument of pow()
4098	function in TIFFCIELabToRGBInit(). As per bug
4099
4100	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
4101
4102	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
4103	integer as per bug
4104
4105	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
4106
4107	* libtiff/tif_getimage.c: Always fill the error message buffer in
4108	TIFFRGBAImageBegin() as per bug
4109
4110	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
4111
41122005-01-12  Andrey Kiselev  <[email protected]>
4113
4114	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
4115	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
4116	tags as per bug
4117
4118	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
4119
4120	* libtiff/tif_win32.c: Fixed message formatting in functions
4121	Win32WarningHandler() and Win32ErrorHandler() as per bug
4122
4123	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
4124
4125	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
4126	per bug
4127
4128	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
4129
41302005-01-11  Andrey Kiselev  <[email protected]>
4131
4132	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
4133	"C"' section as per bug
4134
4135	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
4136
4137	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
4138	compiler to avoid double definition of BSD types as per bug
4139
4140	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4141
4142	* libtiff/Makefile.am: Place the C++ stream API in the separate
4143	library called libtiffxx to avoid unneeded dependencies. Probably
4144	there will be more C++ API in the future. As per bugs
4145
4146	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
4147
4148	and
4149
4150	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
4151
41522005-01-05  Andrey Kiselev  <[email protected]>
4153
4154	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
4155	wrong tag counts (Dmitry V. Levin, Martin Pitt).
4156
4157	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
4158	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
4159
41602004-12-25  Andrey Kiselev  <[email protected]>
4161
4162	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
4163	RGB-images as per bug
4164
4165	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
4166
4167
4168	* tools/tiffset.c: Convert character option to integer value as per
4169	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
4170
41712004-12-20  Andrey Kiselev  <[email protected]>
4172
4173	* libtiff 3.7.1 released.
4174
4175	* html/tiffset.1.html: Add missed manual page as per bug
4176
4177	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
4178
4179	* libtiff/tiff.h: Revert back libtiff data type definitions as per
4180	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
4181
41822004-12-19  Andrey Kiselev  <[email protected]>
4183
4184	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
4185	checking for tag count in TIFFReadDirectory() function. As per bug
4186
4187	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
4188
4189	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
4190	CheckMallock() function.
4191
4192	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
4193	RGB-images as per bug
4194
4195	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
4196
41972004-12-15  Frank Warmerdam  <[email protected]>
4198
4199	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
4200	SunPro compiler.
4201
42022004-12-11  Bob Friesenhahn  <[email protected]>
4203
4204	* autogen.sh: aclocal and autoheader should be executed after
4205	libtoolize.  Also add '-I .' to aclocal invocation to check
4206	current directory for macros.
4207
42082004-12-10  Andrey Kiselev  <[email protected]>
4209
4210	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
4211	as per bugs
4212
4213	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
4214
4215	and
4216
4217	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
4218
42192004-12-04  Andrey Kiselev  <[email protected]>
4220
4221	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
4222
4223	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
4224
4225	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
4226	mode as per bug
4227
4228	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
4229
4230	* libtiff/tif_config.in.vc: Removed unneded definitions for
4231	read/open/close/lseek functions to fix the
4232
4233	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
4234
42352004-12-03  Andrey Kiselev  <[email protected]>
4236
4237	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
4238	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
4239	must be removed in the future, as it was never used properly. As per
4240	bug
4241
4242	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
4243
42442004-11-30  Bob Friesenhahn  <[email protected]>
4245
4246	* libtiff/tif_jpeg.c: Added a work-around in order to allow
4247	compilation with the heavily modified version of libjpeg delivered
4248	with Cygwin.
4249
42502004-11-29  Andrey Kiselev  <[email protected]>
4251
4252	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
4253	counts. As per bug
4254
4255	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
4256
4257	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
4258
4259	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
4260
42612004-11-28  Andrey Kiselev  <[email protected]>
4262
4263	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
4264	on Windows.
4265
4266	* nmake.opt: Add missed DLLNAME variable.
4267
42682004-11-26  Frank Warmerdam  <[email protected]>
4269
4270	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
4271
42722004-11-24  Andrey Kiselev  <[email protected]>
4273
4274	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
4275	per bug
4276
4277	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
4278
4279	* man/tiffset.1: Added manual page for tiffset tool written by Jay
4280	Berkenbilt. As per bug
4281
4282	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
4283
42842004-11-23  Frank Warmerdam  <[email protected]>
4285
4286	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
4287
42882004-11-21  Frank Warmerdam  <[email protected]>
4289
4290	* html/document.html: Updated Adobe web links as per email from Joris.
4291
42922004-11-21  Andrey Kiselev  <[email protected]>
4293
4294	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
4295	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
4296	use C++ streams should #include <tiffio.hxx>.
4297
42982004-11-13  Andrey Kiselev  <[email protected]>
4299
4300	* libtiff/tiff.h: Added Adobe DNG tags.
4301
4302	* libtiff/tif_win32.c: Typo fixed.
4303
4304	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
4305	be compliant with the latest standard. Appropriate additions in
4306	makefiles now completed.
4307
43082004-11-11  Andrey Kiselev  <[email protected]>
4309
4310	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
4311	different tag types. As per bug
4312
4313	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
4314
43152004-11-10  Andrey Kiselev  <[email protected]>
4316
4317	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
4318	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
4319
43202004-11-09  Andrey Kiselev  <[email protected]>
4321
4322	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
4323
43242004-11-07  Andrey Kiselev  <[email protected]>
4325
4326	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
4327	contributed by Edward Lam (see
4328	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
4329	Though no changes in any makefiles yet.
4330
43312004-11-05  Frank Warmerdam  <[email protected]>
4332
4333	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
4334	is bad. This is the callers responsibility.
4335	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
4336
43372004-11-05  Andrey Kiselev  <[email protected]>
4338
4339	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
4340	function to work with the double byte strings (used to represent
4341	filenames in some locales). As per bug
4342
4343	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
4344
4345	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
4346	Compression tags of type LONG from broken TIFFS as per bug
4347
4348	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
4349
4350	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
4351	the writecount should have uint32 type. As per bug
4352
4353	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
4354
4355	* libtiff/tif_write.c: Fixed wrong if() statement in
4356	TIFFAppendToStrip() function as per bug
4357
4358	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
4359
43602004-11-04  Andrey Kiselev  <[email protected]>
4361
4362	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
4363	field. The caller should supply a count when setting this field. As
4364	per bug
4365
4366	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
4367
4368	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
4369	uint32 count. Use this type everywhere.
4370
43712004-11-03  Frank Warmerdam  <[email protected]>
4372
4373	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
4374
43752004-11-02  Frank Warmerdam  <[email protected]>
4376
4377	* tools/tiff2rgba.c: removed extra newlines in usage message.
4378
43792004-10-30  Andrey Kiselev  <[email protected]>
4380
4381	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
4382
4383	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
4384	tags (Tristan Hill).
4385
43862004-10-30  Frank Warmerdam  <[email protected]>
4387
4388	* libtiff/tiffiop.h: added fallback definition of assert() if we
4389	don't have assert.h.
4390
43912004-10-29  Andrey Kiselev  <[email protected]>
4392
4393	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
4394	choosing when the incorrect Group4Options tag set. As per bug
4395
4396	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
4397
4398	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
4399	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
4400	TIFFWriteNormalTag().
4401
44022004-10-28  Andrey Kiselev  <[email protected]>
4403
4404	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
4405	tags (Peter Fales).
4406
4407	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
4408
44092004-10-28  Frank Warmerdam  <[email protected]>
4410
4411	* tools/tiff2pdf.c: added casts to avoid warnings.
4412
4413	* libtiff/libtiff.def: Added several more entry points required
4414	to link fax2tiff.c against the DLL on windows.
4415
44162004-10-27  Andrey Kiselev  <[email protected]>
4417
4418	* configure, configure.ac: Added --enable-rpath option to embed linker
4419	paths into library binary.
4420
44212004-10-26  Andrey Kiselev  <[email protected]>
4422
4423	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
4424
4425	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
4426	(Vladimir Nadvornik, Dmitry V. Levin).
4427
44282004-10-16  Andrey Kiselev  <[email protected]>
4429
4430	* libtiff 3.7.0 released.
4431
44322004-10-15  Bob Friesenhahn  <[email protected]>
4433
4434	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
4435	in this file so its inclusion is removed.  Including stdio.h
4436	sometimes incurs an INT32 typedef conflict between MinGW's
4437	basetsd.h and libjpeg's jmorecfg.h.
4438
44392004-10-15  Andrey Kiselev  <[email protected]>
4440
4441	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
4442
44432004-10-13  Bob Friesenhahn  <[email protected]>
4444
4445	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
4446	conflict noticed under MinGW.
4447	* ltmain.sh: Fix for MinGW compilation.
4448
44492004-10-13  Frank Warmerdam  <[email protected]>
4450
4451	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
4452	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
4453
44542004-10-12  Andrey Kiselev  <[email protected]>
4455
4456	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
4457	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
4458	properly (Dmitry V. Levin, Marcus Meissner).
4459
44602004-10-11  Andrey Kiselev  <[email protected]>
4461
4462	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
4463	to TIFF_IFD.
4464
44652004-10-10  Andrey Kiselev  <[email protected]>
4466
4467	* tools/bmp2tif.c: Check the space allocation results.
4468
44692004-10-09  Andrey Kiselev  <[email protected]>
4470
4471	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
4472	of the TIFFDirectory structure with the 0 instead of -1 to avoid
4473	confusing integer overflows in TIFFTileRowSize() for striped images.
4474
4475	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
4476	by Ross A. Finlayson.
4477
4478	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
4479
4480	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
4481
44822004-10-08  Frank Warmerdam  <[email protected]>
4483
4484	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
4485	of tif_fieldinfo.
4486
4487	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
4488
44892004-10-04  Bob Friesenhahn  <[email protected]>
4490
4491	* contrib/iptcutil/README: Added the missing README which goes
4492	along with iptcutil.
4493
44942004-10-03  Andrey Kiselev  <[email protected]>
4495
4496	* libtiff/tif_compress.c: Improved error reporting in
4497	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
4498
44992004-10-02  Andrey Kiselev  <[email protected]>
4500
4501	* libtiff 3.7.0beta2 released.
4502
4503	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
4504	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
4505	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
4506	allocations and	integer overflows (Dmitry V. Levin).
4507
4508	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
4509
45102004-10-01  Frank Warmerdam  <[email protected]>
4511
4512	* libtiff/tif_open.c: added a more informative message if a BigTIFF
4513	file is opened.
4514
45152004-09-30  Frank Warmerdam  <[email protected]>
4516
4517	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
4518	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
4519	in the Adobe XMP Specification.
4520
45212004-09-29  Andrey Kiselev  <[email protected]>
4522
4523	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
4524	memset().
4525
4526	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
4527	from Dmitry V. Levin to fix possible integer overflow problems.
4528
45292004-09-28  Andrey Kiselev  <[email protected]>
4530
4531	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
4532	(Dmitry V. Levin).
4533
45342004-09-26  Andrey Kiselev  <[email protected]>
4535
4536	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
4537	Optimize checking for the strip bounds.
4538
4539	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
4540	TIFFRasterScanlineSize() functions report zero in the case of integer
4541	overflow now. Properly handle this case in TIFFReadDirectory()
4542	(patches from Dmitry V. Levin).
4543
45442004-09-25  Andrey Kiselev  <[email protected]>
4545
4546	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
4547	macro where appropriate.
4548
4549	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
4550	noted by Gennady Khokhorin.
4551
4552	* libtiff/tif_dirread.c: Always check the return values, returned
4553	by the _TIFFmalloc() (Dmitry V. Levin).
4554
4555	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
4556	functions (Dmitry V. Levin).
4557
4558	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
4559	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
4560	TIFFGrowStrips() (found by Dmitry V. Levin).
4561
45622004-09-24  Andrey Kiselev  <[email protected]>
4563
4564	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
4565	to get the list of configured codecs.
4566
4567	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
4568	Dmitry V. Levin.
4569
45702004-09-23  Andrey Kiselev  <[email protected]>
4571
4572	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
4573	possible integer overflow in CheckMalloc() function.
4574
45752004-09-22  Andrey Kiselev  <[email protected]>
4576
4577	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
4578	of plain TIFFhowmany() where appropriate.
4579
45802004-09-21  Andrey Kiselev  <[email protected]>
4581
4582	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
4583
45842004-09-19  Andrey Kiselev  <[email protected]>
4585
4586	* libtiff 3.7.0beta released.
4587
4588	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
4589	overruns fixed, as noted by Chris Evans.
4590
45912004-09-14  Bob Friesenhahn  <[email protected]>
4592
4593	* commit: Added a script to make it more convenient to commit
4594	updates.  The CVS commit message is extracted from this ChangeLog
4595	file.
4596
45972004-09-14  Andrey Kiselev  <[email protected]>
4598
4599	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
4600	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
4601	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
4602	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
4603	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
4604	tif_config.h.in, tiffiop.h}:
4605	Get rid of BSD data types (u_char, u_short, u_int, u_long).
4606
46072004-09-13  Bob Friesenhahn  <[email protected]>
4608
4609	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
4610	specification. Reference libtiff bug tracking system to submit
4611	private tag additions.
4612
46132004-09-12  Bob Friesenhahn  <[email protected]>
4614
4615	* tools/tiffgt.c: Include "tif_config.h".
4616
4617	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
4618	tiffgt.  This results in the 'compile' script being added to the
4619	project.
4620
4621	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
4622	required to find OpenGL headers necessary to build tiffgt.  Also
4623	ensure that the libtiff that we built is used rather than some other
4624	libtiff installed on the system.
4625
46262004-09-12  Andrey Kiselev  <[email protected]>
4627
4628	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
4629	libraries.
4630
46312004-09-11  Bob Friesenhahn  <[email protected]>
4632
4633	* configure.ac: Pass library configuration defines via
4634	tif_config.h rather than extending CPPFLAGS. Configure a
4635	libtiff/tiffconf.h in order to satisfy application requirements
4636	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
4637	this causes failure to build on systems which properly respect
4638	this request.
4639
4640	* libtiff/tiffconf.h.in: New file to act as the template for the
4641	configured tiffconf.h
4642
4643	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
4644
46452004-09-10  Frank Warmerdam  <[email protected]>
4646
4647	* html/internals.html: Split off a discussion of adding new tags
4648	into addingtags.html.
4649
46502004-09-10  Andrey Kiselev  <[email protected]>
4651
4652	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
4653
4654	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
4655
4656	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4657
4658	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
4659
4660	* libtiff/tif_dirread.c: Don't reject to read tags of the
4661	SamplesPerPixel size when the tag count is greater than number of
4662	samples as per bug
4663
4664	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
4665
4666	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
4667	defining int8/uint8/... etc. types. As per bug
4668
4669	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
4670
46712004-09-09  Frank Warmerdam  <[email protected]>
4672
4673	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
4674	to avoid compile warnings about getopt() and a few other things.
4675
46762004-09-02  Andrey Kiselev  <[email protected]>
4677
4678	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
4679	assigning magic in TIFFFetchFloat().
4680
46812004-09-01  Andrey Kiselev  <[email protected]>
4682
4683	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
4684	to avoid requirement for tiffiop.h inclusion in some applications. See
4685	here
4686
4687	http://www.asmail.be/msg0054799560.html
4688
4689	for details.
4690
4691	* tools/fax2tiff.c: Use the new functions in the code.
4692
46932004-08-25  Andrey Kiselev  <[email protected]>
4694
4695	* tools/tiff2pdf.c: Initialize arrays properly.
4696
4697	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
4698	properly initialize array in PSDataBW().
4699
47002004-08-24  Andrey Kiselev  <[email protected]>
4701
4702	* tools/tiff2pdf.c: More fixes for bug
4703
4704	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4705
4706	from Ross Finlayson.
4707
47082004-08-23  Andrey Kiselev  <[email protected]>
4709
4710	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4711
4712	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4713	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4714
4715	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4716
4717	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4718
47192004-08-20  Andrey Kiselev  <[email protected]>
4720
4721	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4722	that the input file has compression, photometric interpretation,
4723	etcetra, tags or if not than a more descriptive error is returned.
4724
4725	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4726	code, responsible for tag data type checking.
4727
47282004-08-19  Andrey Kiselev  <[email protected]>
4729
4730	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4731	variable as per bug
4732
4733	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4734
47352004-08-16  Andrey Kiselev  <[email protected]>
4736
4737	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4738	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4739
47402004-08-01  Andrey Kiselev  <[email protected]>
4741
4742	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4743	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4744
47452004-07-24  Andrey Kiselev  <[email protected]>
4746
4747	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4748	separate package. All libtiff tools are updated to not advertise an
4749	abcence of LZW support.
4750
47512004-07-12  Andrey Kiselev  <[email protected]>
4752
4753	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4754
47552004-07-11  Andrey Kiselev  <[email protected]>
4756
4757	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4758	messages, as suggested by Bernd Herd.
4759
47602004-07-03  Andrey Kiselev  <[email protected]>
4761
4762	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4763	when setting custom tags by value. Reported by Eric Fieleke.
4764
47652004-06-14  Andrey Kiselev  <[email protected]>
4766
4767	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4768
47692004-06-08  Andrey Kiselev  <[email protected]>
4770
4771	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4772	into TIFFs.
4773
47742004-06-07  Andrey Kiselev  <[email protected]>
4775
4776	* libtiff 3.7.0alpha released.
4777
47782004-06-06  Andrey Kiselev  <[email protected]>
4779
4780	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4781	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4782	ones :-).
4783
4784	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4785	problems in 64-bit environment).
4786
47872004-06-05  Andrey Kiselev  <[email protected]>
4788
4789	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4790	Tags can be supplied by the mnemonic name or number.
4791
4792	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4793	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4794
47952004-05-27  Andrey Kiselev  <[email protected]>
4796
4797	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4798	markers as per bug
4799
4800	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4801
48022004-05-24  Andrey Kiselev  <[email protected]>
4803
4804	* tools/tiffsplit.c: Don't forget to copy Photometric
4805	Interpretation tag.
4806
48072004-05-20  Andrey Kiselev  <[email protected]>
4808
4809	* libtiff/{tif_open.c, tiffio.h}: New function added:
4810	TIFFIsBigEndian(). Function returns nonzero if given was file written
4811	in big-endian order.
4812
4813	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4814	files. Now output files will be written using the same byte order
4815	flag as	in the input image. See
4816
4817	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4818
4819	for details.
4820
48212004-05-19  Frank Warmerdam  <[email protected]>
4822
4823	* libtiff/tif_print.c: added (untested) support for printing
4824	SSHORT, SLONG and SRATIONAL fields.
4825
4826	* tools/tiffcp.c: close output file on normal exit.
4827
48282004-05-17  Andrey Kiselev  <[email protected]>
4829
4830	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4831	if compression type mismatches. See
4832
4833	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4834
48352004-04-30  Andrey Kiselev  <[email protected]>
4836
4837	* libtiff/tif_strip.c: Never return 0 from the
4838	TIFFNumberOfStrips().
4839
48402004-04-29  Andrey Kiselev  <[email protected]>
4841
4842	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4843	store single SampleFormat value for multisampled images. See
4844
4845	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4846
48472004-04-25  Andrey Kiselev  <[email protected]>
4848
4849	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4850	int16 and int32 types to avoid complains on some compilers. Details at
4851
4852	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4853
48542004-04-20  Andrey Kiselev  <[email protected]>
4855
4856	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4857
4858	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4859
48602004-04-14  Andrey Kiselev  <[email protected]>
4861
4862	* libtiff/tif_write.c: Allow in-place updating of the compressed
4863	images (don't work properly with all codecs). For details see GDAL bug
4864
4865	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4866
48672004-04-06  Andrey Kiselev  <[email protected]>
4868
4869	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4870	in the Intergarph JPEG compressed TIFF images as per bug:
4871
4872	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4873
48742004-04-04  Frank Warmerdam  <[email protected]>
4875
4876	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4877	via bad2.
4878
48792004-03-26  Andrey Kiselev  <[email protected]>
4880
4881	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4882	JPEG compression of grayscale images.
4883
4884	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
4885	present in the input image.
4886
48872004-03-19  Andrey Kiselev  <[email protected]>
4888
4889	* {many}: The first attempt to switch to autotools.
4890
48912004-03-03  Andrey Kiselev  <[email protected]>
4892
4893	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
4894	TIFFClientOpen() when the appropriate client functions was not
4895	supplied by user.
4896
48972004-03-02  Frank Warmerdam  <[email protected]>
4898
4899	* tools/ycbcr.c: fixed main() declaration as per:
4900	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
4901
49022004-02-26  Andrey Kiselev  <[email protected]>
4903
4904	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
4905	images. Reported by Artem Mirolubov.
4906
4907	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
4908	tag type in TIFFFetchNormalTag() as per bug
4909
4910	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
4911
49122004-02-17  Frank Warmerdam  <[email protected]>
4913
4914	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
4915	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
4916
49172004-02-05  Andrey Kiselev  <[email protected]>
4918
4919	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
4920	bug
4921
4922	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
4923
4924	But we need more work on fax codec to support update mode.
4925
49262004-01-30  Frank Warmerdam  <[email protected]>
4927
4928	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
4929	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
4930	Scott Reynolds.
4931
49322004-01-29  Andrey Kiselev  <[email protected]>
4933
4934	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
4935	and TIFFTAG_INDEXED as per bug
4936
4937	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
4938
4939	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
4940	NULL before proceeding further as per bug
4941
4942	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
4943
4944	Check results, returned by the TIFFFdOpen() before returning and close
4945	file if TIFFFdOpen() failed as per bug
4946
4947	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4948
4949	* libtiff/tif_open.c: More fixes for
4950
4951	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4952
49532004-01-28  Andrey Kiselev  <[email protected]>
4954
4955	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
4956	TIFFCleanup() from the TIFFClose() in order to fix the bug
4957
4958	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4959
4960	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
4961	InkNames tag as per bug
4962
4963	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
4964
4965	Memory leak fixed.
4966
49672004-01-21  Frank Warmerdam  <[email protected]>
4968
4969	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
4970	are field_passcount=TRUE properly.  Arguably anonymous custom tags
4971	should be declared as passcount=FALSE, but I don't want to change
4972	that without a careful review.
4973
49742004-01-20  Andrey Kiselev  <[email protected]>
4975
4976	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
4977	stripped image in TIFFWriteBufferSetup(). As per bug
4978
4979	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
4980
49812004-01-11  Andrey Kiselev  <[email protected]>
4982
4983	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
4984	patch from Gerben Koopmans.
4985
4986	* libtiff/tif_dirread.c: Check field_passcount value before setting
4987	the value of undefined type, patch from Gerben Koopmans.
4988
49892004-01-02  Andrey Kiselev  <[email protected]>
4990
4991	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
4992	non-RGB images.
4993
49942003-12-31  Andrey Kiselev  <[email protected]>
4995
4996	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
4997	pointer passed. Patch supplied by Larry Grill.
4998
4999	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
5000	suggested by Jeremy C. Reed.
5001
50022003-12-26  Andrey Kiselev  <[email protected]>
5003
5004	* libtiff 3.6.1 released.
5005
50062003-12-24  Andrey Kiselev  <[email protected]>
5007
5008	* config.guess, config.sub: Updated from the recent upstream.
5009
50102003-12-22  Andrey Kiselev  <[email protected]>
5011
5012	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
5013	More cleanups in color conversion interface, added appropriate manual
5014	page.
5015
50162003-12-19  Andrey Kiselev  <[email protected]>
5017
5018	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
5019	per bug
5020
5021	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
5022
5023	* tools/tiff2ps.c: Added support for alpha channel. Fixes
5024
5025	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
5026
5027	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
5028	Interface for Lab->RGB color conversion is finally cleaned up.
5029	Added support for ReferenceBlackWhite tag handling when converted from
5030	YCbCr color space. The latter closes
5031
5032	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
5033
50342003-12-07  Andrey Kiselev  <[email protected]>
5035
5036	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
5037
5038	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
5039	library.
5040
50412003-12-06  Andrey Kiselev  <[email protected]>
5042
5043	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
5044	file and properly use it for CIE Lab->RGB transform.
5045
50462003-12-04  Andrey Kiselev  <[email protected]>
5047
5048	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
5049	conversion routines now in the tif_color.c module. New function
5050	TIFFYCbCrtoRGB() available in TIFF API.
5051
5052	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
5053
50542003-12-03  Andrey Kiselev  <[email protected]>
5055
5056	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
5057	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
5058	module.
5059
5060	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
5061	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
5062	Finally resolved problems with orientation handling. TIFFRGBAImage
5063	interface now properly supports all possible orientations, i.e. images
5064	will be flipped both in horizontal and vertical directions if
5065	required. 'Known bugs' section now removed from the appropriate manual
5066	pages. Closed bug entry:
5067
5068	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
5069
50702003-12-02  Andrey Kiselev  <[email protected]>
5071
5072	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
5073	function calls as per bug
5074
5075	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
5076
50772003-11-28 Ross Finlayson  <[email protected]>
5078
5079	* tools/tiff2pdf.c:  Some bugs fixed.
5080
50812003-11-27  Andrey Kiselev  <[email protected]>
5082
5083	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
5084	reported by Antonio Scuri.
5085
5086	* man/tiff2pdf.1: Few improvements in page layout.
5087
5088	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
5089	 Added support fpr tiff2pdf manual page.
5090
50912003-11-26 Ross Finlayson  <[email protected]>
5092
5093	* /man/tiff2pdf.1:  File added to repository.
5094
50952003-11-26  Andrey Kiselev  <[email protected]>
5096
5097	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
5098	 Added support fpr tiff2pdf utility.
5099
51002003-11-25  Ross Finlayson  <[email protected]>
5101
5102	* /tools/tiff2pdf.c:  File added to repository.
5103
51042003-11-22  Andrey Kiselev  <[email protected]>
5105
5106	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
5107
51082003-11-21  Andrey Kiselev  <[email protected]>
5109
5110	* /tools/raw2tiff.c: #include <getopt.h> removed.
5111
5112	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
5113	sgigt utility removed and replaced with the completely rewritten
5114	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
5115	there is a lot of things to improve.
5116
5117	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
5118	extract the fields from the OJPEG files. Patch supplied by Ross
5119	Finlayson.
5120
5121	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
5122	Added new function TIFFIsCODECConfigured(), suggested by Ross
5123	Finlayson.
5124
51252003-11-18  Andrey Kiselev  <[email protected]>
5126
5127	* libtiff/tif_dirinfo.c: Implemented binary search in
5128	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
5129
5130	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
5131	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
5132
51332003-11-17  Frank Warmerdam  <[email protected]>
5134
5135	* tif_dirread.c: do not mark all anonymously defined tags to be
5136	IGNOREd.
5137
51382003-11-17  Andrey Kiselev  <[email protected]>
5139
5140	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
5141	TIFFDataWidth() function insted of tiffDataWidth array.
5142
51432003-11-16  Andrey Kiselev  <[email protected]>
5144
5145	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
5146	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
5147
51482003-11-15  Frank Warmerdam  <[email protected]>
5149
5150	* Makefile.in: fixed missing backslash for tif_color.c in list.
5151
51522003-11-13  Andrey Kiselev  <[email protected]>
5153
5154	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
5155	New color space conversion code: CIE L*a*b* 1976 images now supported
5156	by the TIFFRGBAImage interface. All introduced routines go to new
5157	module tif_color.c. Eventually all color conversion functions should
5158	be moved there.
5159
51602003-11-12  Andrey Kiselev  <[email protected]>
5161
5162	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
5163	with the reverse byte order (it is reported by the magic header
5164	field). Problem reported by Andreas Wiesmann.
5165
5166	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
5167	calculation function. Guessing mechanics now documented in manual page.
5168
51692003-11-11  Andrey Kiselev  <[email protected]>
5170
5171	* tools/raw2tiff.c: Implemented image size guessing using
5172	correlation coefficient calculation between two neighbour lines.
5173
51742003-11-09  Frank Warmerdam  <[email protected]>
5175
5176	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
5177	planarconfig_contig case in TIFFComputeTile().
5178
5179	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
5180
51812003-11-09  Andrey Kiselev  <[email protected]>
5182
5183	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
5184
51852003-11-07  Andrey Kiselev  <[email protected]>
5186
5187	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
5188	Added TIFFRawStripSize() function as suggested by Chris Hanson.
5189
51902003-11-03  Andrey Kiselev  <[email protected]>
5191
5192	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
5193	per bug
5194
5195	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
5196
51972003-10-29  Andrey Kiselev  <[email protected]>
5198
5199	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
5200
5201	* html/build.html: Added note about GNU make requirement.
5202
52032003-10-25  Andrey Kiselev  <[email protected]>
5204
5205	* Makefile.in: Fixes in using MAKEFLAGS as per bug
5206
5207	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
5208
5209	* port/install.sh.in: Option -p added to the mkdir command to create
5210	all directory tree structure before installing.
5211
52122003-10-18  Andrey Kiselev  <[email protected]>
5213
5214	* /tools/tiff2ps.c: #include <strings.h> replaced with the
5215	#include <string.h>.
5216
52172003-10-16  Andrey Kiselev  <[email protected]>
5218
5219	* Makefile.in: Add an absolute path to the test_pics.sh call.
5220
52212003-10-12  Andrey Kiselev  <[email protected]>
5222
5223	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
5224	typedefs.
5225
52262003-10-09  Andrey Kiselev  <[email protected]>
5227
5228	* configure, libtiff/{Makefile.in, mkversion.c}:
5229	Relative buildings fixed.
5230
5231	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
5232	rule.
5233
52342003-10-07  Andrey Kiselev  <[email protected]>
5235
5236	* Makefile.in: Added missed v3.6.0.html.
5237
5238	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
5239	ORIENTATION_BOTLEFT.
5240
52412003-10-04  Andrey Kiselev  <[email protected]>
5242
5243	* 3.6.0 final release.
5244
52452003-10-03  Andrey Kiselev  <[email protected]>
5246
5247	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
5248	function TIFFReadRGBAImageOriented() implemented to retrieve raster
5249	array with user-specified origin position as suggested by Jason Frank.
5250	See
5251
5252	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
5253
5254	for details.
5255
5256	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
5257	instead of TIFFReadRGBAImage().
5258
5259	* tools/tiff2ps.c: Fixed possible endless loop as per bug
5260
5261	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
5262
52632003-09-30  Andrey Kiselev  <[email protected]>
5264
5265	* libtiff/tif_dirread.c: Check field counter against number of fields
5266	in order to fix
5267
5268	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
5269
5270	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
5271
5272	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
5273
52742003-09-25  Andrey Kiselev  <[email protected]>
5275
5276	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
5277	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
5278
5279	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
5280
52812003-09-23  Andrey Kiselev  <[email protected]>
5282
5283	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
5284
5285	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
5286
52872003-08-21  Andrey Kiselev  <[email protected]>
5288
5289	* tools/tiffmedian.c: int declaration replaced with the uint32 to
5290	support large images as per bug
5291
5292	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
5293
52942003-08-12  Andrey Kiselev  <[email protected]>
5295
5296 	* libtiff/Makefile.in: Fixed problem with building in different
5297	directory.
5298
5299	* tools/tiff2ps.c: Added missing #include <strings.h>.
5300
5301	* libtiff/tif_dirwrite.c: More fixes for custom tags code
5302	from Ashley Dreier.
5303
53042003-08-07  Andrey Kiselev  <[email protected]>
5305
5306	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
5307	Patch submitted by Balatoni Denes (with corrections from Tom
5308	Kacvinsky).
5309
5310	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
5311	being used. Reported by Tom Kacvinsky.
5312
5313	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
5314	reported by Ashley Dreier.
5315
5316	* libtiff/tif_print.c: Fixed problem with float tags reading, support
5317	for printing RATIONAL and BYTE tags added.
5318
53192003-08-05  Andrey Kiselev  <[email protected]>
5320
5321	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
5322	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
5323	problems with predictor initialization. Remove O_RDONLY check during
5324	state block allocation to be able open LZW compressed files in update
5325	mode.
5326
5327	Problem exist for libtiff version of the tif_lzw.c module. One from
5328	lzw-compression-kit hasn't such troubles.
5329
53302003-08-04  Frank Warmerdam  <[email protected]>
5331
5332	* libtiff/tif_write.c: modified tif_write.c so that the various
5333	encoded write functions use tif_postdecode() to apply byte order
5334	swapping (swab) to the application passed data buffer if the same
5335	would be done when reading.  This allows us to write pixel data with
5336	more than 8 bits per sample to existing files of a non-native byte
5337	order.  One side effect of this change is the applications buffer
5338	itself is altered in this case by the act of writing.
5339
5340	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
5341
53422003-07-25  Frank Warmerdam  <[email protected]>
5343
5344	* libtiff/tif_open.c: avoid signed/unsigned casting warning
5345	initializing typemask as per patch from J.A. Strother.
5346
5347	* tools/tiffcp.c: fixed signed/unsigned casting warning.
5348
5349	* libtiff/tif_print.c: dos2unix conversion.
5350
5351	* tools/tiffsplit.c: increased the maximum number of pages that
5352	can be split.  Patch provided by Andrew J. Montalenti.
5353
53542003-07-11  Andrey Kiselev  <[email protected]>
5355
5356	* tools/raw2tiff.c: Added option `-p' to explicitly select color
5357	space of input image data. Closes
5358
5359	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
5360
53612003-07-08  Frank Warmerdam  <[email protected]>
5362
5363	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
5364	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
5365	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
5366	avoid casting warning at /W4.
5367
53682003-07-03  Andrey Kiselev  <[email protected]>
5369
5370	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
5371
53722003-06-30  Andrey Kiselev  <[email protected]>
5373
5374	* libtiff/tif_pixarlog.c: Unused variables removed.
5375
5376	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
5377	EstimateStripByteCounts() as per bug
5378
5379	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
5380
5381	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
5382	64-bit architectures as per bug
5383
5384	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
5385
5386	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
5387	unknown data type.
5388
53892003-06-19  Frank Warmerdam  <[email protected]>
5390
5391	* libtiff/tif_print.c: fixed some serious bugs when printing
5392	custom tags ... almost certain to crash.
5393
5394	* libtiff/tif_dirread.c: Don't ignore custom fields that are
5395	autodefined.  Not sure how this got to be like this.
5396
53972003-06-18  Andrey Kiselev  <[email protected]>
5398
5399	* 3.6.0 Beta2 released.
5400
5401	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
5402	comparing as per bug
5403
5404	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
5405
5406	`-z' option now can be used to set the number of reported different
5407	bytes.
5408
54092003-06-09  Andrey Kiselev  <[email protected]>
5410
5411	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
5412	to -r option to get the entire image as one strip. See
5413
5414	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5415
5416	for details.
5417
54182003-06-04  Andrey Kiselev  <[email protected]>
5419
5420	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
5421	values as per bug
5422
5423	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5424
54252003-05-27  Frank Warmerdam  <[email protected]>
5426
5427	* libtiff/tif_jpeg.c: modified segment_height calculation to always
5428	be a full height tile for tiled images.  Also changed error to just
5429	be a warning.
5430
54312003-05-25  Andrey Kiselev  <[email protected]>
5432
5433	* tools/fax2tiff.c: Page numbering fixed, as per bug
5434
5435	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
5436
54372003-05-20  Andrey Kiselev  <[email protected]>
5438
5439	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5440	configure, Makefile.in:	Switched back to the old behaviour. Likely
5441	better solution should be found for OJPEG support.
5442
54432003-05-11  Andrey Kiselev  <[email protected]>
5444
5445	* libtiff/mkversion.c: Fixed problem with wrong string size when
5446	reading RELEASE-DATE file.
5447
54482003-05-07  Andrey Kiselev  <[email protected]>
5449
5450	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
5451	index was out of range.
5452
54532003-05-06  Andrey Kiselev  <[email protected]>
5454
5455	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5456	configure, Makefile.in:	Improved libtiff compilation with OJPEG
5457	support. Now no need for patching IJG JPEG library, hack requred by
5458	libtiff will be compiled and used in-place. Implemented with
5459	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
5460
5461	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
5462	TIFFVGetFieldDefaulted() function.
5463
54642003-05-05  Andrey Kiselev  <[email protected]>
5465
5466	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
5467	comments.
5468
5469	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
5470	was not copied from source image.
5471
5472	* libtiff/getimage.c: Workaround for some images without correct
5473	info about alpha channel as per bug
5474
5475	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
5476
54772003-04-29  Andrey Kiselev  <[email protected]>
5478
5479	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
5480	It basically allows one to use the /flateDecode filter for ZIP
5481	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
5482
5483	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
5484
5485	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
5486	as per bug
5487
5488	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
5489
54902003-04-17  Andrey Kiselev  <[email protected]>
5491
5492	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
5493	due to problems with multidirectory images. Quality of error messages
5494	improved.
5495
54962003-04-16  Andrey Kiselev  <[email protected]>
5497
5498	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
5499	encoded images. See bug entries
5500
5501	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
5502
5503	and
5504
5505	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5506
5507	* libtiff/tif_dirread.c: Additional check for StripByteCounts
5508	correctness. Fixes
5509
5510	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
5511
55122003-03-12  Andrey Kiselev  <[email protected]>
5513
5514	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
5515	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
5516	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
5517	tiffmedian.c}: Added library version reporting facility to all tools.
5518
55192003-03-06  Frank Warmerdam  <[email protected]>
5520
5521	* port/install.sh.in: Fixed problems with install producing paths
5522	like ///usr/local/lib on cygwin.
5523
55242003-02-27  Andrey Kiselev  <[email protected]>
5525
5526	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
5527	raw input page. Patch supplied by Julien Gaulmin. See
5528
5529	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
5530
5531	for details.
5532
55332003-02-26  Frank Warmerdam  <[email protected]>
5534
5535	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
5536	responsible for byte swapping complex image data.
5537
5538	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
5539	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
5540
55412003-02-07  Andrey Kiselev  <[email protected]>
5542
5543	* tools/ppm2tiff.c: Fixed problem with too many arguments.
5544
55452003-02-04  Andrey Kiselev  <[email protected]>
5546
5547	* tools/raw2tiff.c: Memory leak fixed.
5548
55492003-02-03  Andrey Kiselev  <[email protected]>
5550
5551	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
5552	(thanks, Julien!). More switches for fax2tiff tool for better control
5553	of input and output. Details at
5554
5555	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
5556
55572003-02-03  Frank Warmerdam  <[email protected]>
5558
5559	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
5560	library so that we can check if there is already any tile/strip data
5561	before deciding between creating a compressor or a decompressor.
5562
55632003-01-31  Frank Warmerdam  <[email protected]>
5564
5565	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
5566	a pre-existing compressed image.  That is, image writing to
5567	pre-existing compressed images is not allowed.
5568
5569	* libtiff/tif_open.c: Removed error if opening a compressed file
5570	in update mode.
5571
5572	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
5573
55742003-01-31  Andrey Kiselev  <[email protected]>
5575
5576	* config.guess, config.sub: Updated to recent upstream versions.
5577
55782003-01-15  Frank Warmerdam  <[email protected]>
5579
5580	* cut 3.6.0 Beta release.
5581
55822002-12-20  Andrey Kiselev  <[email protected]>
5583
5584	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
5585	in wrong way as per bug
5586
5587	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
5588
55892002-12-17  Frank Warmerdam  <[email protected]>
5590
5591	* libtiff/tif_dirread.c: Allow wrong sized arrays in
5592	TIFFFetchStripThing().
5593
5594	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
5595
55962002-12-02  Frank Warmerdam  <[email protected]>
5597
5598	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
5599	Was using realloc even first time.  Fix by Igor Venevtsev.
5600
56012002-11-30  Frank Warmerdam  <[email protected]>
5602
5603	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
5604	field value.
5605
5606	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
5607	tags in TIFFVGetField() ... added missing break.
5608
56092002-10-14  Frank Warmerdam  <[email protected]>
5610
5611	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
5612	the scanline buffer long enough when writing rgb triplets.
5613	The scanline needs to be 3 X the number of dots or else it will
5614	contain	an incomplete triplet and programs that try to separate
5615	the eps by redefining the colorimage operator will get messed up.
5616	Patch supplied by William Bader.
5617
5618	* Makefile.in: added tif_extension.c to file list as per
5619	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
5620
56212002-10-11  Andrey Kiselev  <[email protected]>
5622
5623	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
5624	large files (>2GiB) supporting. New option in the config.site:
5625	LARGEFILE="yes". Should be enough for I/O of the large files.
5626
56272002-10-10  Frank Warmerdam  <[email protected]>
5628
5629	* libtiff/html/v3.6.0.html: new release notes.
5630
5631	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
5632	link for Andrey.  Pointer to v3.6.0.html.
5633
5634	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
5635
56362002-10-07  Andrey Kiselev  <[email protected]>
5637	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
5638	(thanks, Sebastian!). New switches:
5639	-b # for a bottom margin of # inches
5640	-c   center image
5641	-l # for a left margin of # inches
5642	-r   rotate the image by 180 degrees
5643	New features merged with code for shrinking/overlapping.
5644	Previously added -c and -n switches (for overriding PS units) renamed
5645	in -x and -y respectively.
5646
5647	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
5648
5649	* html/man/*.html: Updated from actual manual pages.
5650
56512002-10-06  Frank Warmerdam  <[email protected]>
5652
5653	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
5654	size on windows.  Use #define boolean hack.
5655
5656	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
5657
5658	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
5659	USING_VISUALAGE is defined.
5660
5661	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5662
56632002-10-03  Frank Warmerdam  <[email protected]>
5664
5665	* libtiff/tiff.h: added COMPRESSION_JP2000.
5666
56672002-10-02  Andrey Kiselev  <[email protected]>
5668
5669	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
5670	by the TIFFFetchByteArray() function. Should finally resolve
5671
5672	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5673
5674	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
5675
5676	* html/Makefile.in: New targets added: html and groffhtml for
5677	producing HTML representations of the manual pages automatically.
5678	html target uses man2html tool, groffhtml uses groff tool.
5679
56802002-09-29  Frank Warmerdam  <[email protected]>
5681
5682	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
5683	from John H. DuBois III.
5684
56852002-09-15  Andrey Kiselev  <[email protected]>
5686
5687	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
5688	manual page for raw2tiff(1) tool.
5689
56902002-09-12  Andrey Kiselev  <[email protected]>
5691
5692	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
5693	the tiffio.h header file.
5694
5695	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
5696	manual page for TIFFDataWidth() function
5697
56982002-09-08  Frank Warmerdam  <[email protected]>
5699
5700	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
5701	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
5702
5703	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
5704	since we are unable to properly include the amount to skip.
5705
5706	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
5707
57082002-09-02  Andrey Kiselev  <[email protected]>
5709
5710	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5711	in TIFFFetchByteArray(). Problem described at
5712	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5713
57142002-08-22  Andrey Kiselev  <[email protected]>
5715
5716	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5717	in _TIFFSetupFieldInfo() function.
5718	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5719
5720	* /libtiff/tif_lzw.c: Additional consistency checking added in
5721	LZWDecode() and LZWDecodeCompat().
5722	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5723	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5724
5725	* /libtiff/tif_lzw.c:
5726	Added check for valid code lengths in LZWDecode() and
5727	LZWDecodeCompat(). Fixes
5728	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5729
57302002-08-16  Andrey Kiselev  <[email protected]>
5731
5732	* /libtiff/{Makefile.vc, libtiff.def}:
5733	Missed declarations added.
5734
57352002-08-15  Frank Warmerdam  <[email protected]>
5736
5737	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5738	return code from the underlying pick function.
5739
5740	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5741
5742	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5743	with FIELD_CUSTOM as mentioned in bug 169.
5744
5745	* tif_close.c: added logic to free dynamically created anonymous
5746	field definitions to correct a small memory leak.
5747
5748	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5749
57502002-08-10  Andrey Kiselev  <[email protected]>
5751
5752	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5753	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5754
57552002-07-31  Frank Warmerdam  <[email protected]>
5756
5757	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5758	JPEGDecode() as per bugzilla bug (issue 1):
5759
5760	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5761
5762	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5763	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5764	present in the tiff tags.
5765
5766	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5767
5768	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5769	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5770	fooled with the value.
5771
5772	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5773
57742002-06-22  Andrey Kiselev  <[email protected]>
5775
5776	* /tools/tiff2ps.c: Added workaround for some software that may crash
5777	when last strip of image contains fewer number of scanlines than
5778	specified by the `/Height' variable. See
5779	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5780	for explanation.
5781
57822002-06-21  Andrey Kiselev  <[email protected]>
5783
5784	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5785	splitting long images in several pages. See
5786	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5787	Patch granted by John Williams <[email protected]>.
5788
57892002-06-11  Frank Warmerdam  <[email protected]>
5790
5791	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5792	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5793	This one is described in:
5794
5795	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5796
5797	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5798
5799	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5800
58012002-05-10  Andrey Kiselev  <[email protected]>
5802
5803	* tools/tiff2ps: New commandline switches to override resolution
5804	units obtained from the input file. Closes
5805	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5806
58072002-04-26  Andrey Kiselev  <[email protected]>
5808
5809	* libtiff/libtiff.def: Added missed declaration.
5810
58112002-04-22  Andrey Kiselev  <[email protected]>
5812
5813	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5814	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5815
58162002-04-20  Andrey Kiselev  <[email protected]>
5817
5818	* libtiff/tif_open.c: Pointers to custom procedures
5819	in TIFFClientOpen() are checked to be not NULL-pointers.
5820
58212002-04-18  Andrey Kiselev  <[email protected]>
5822
5823	* libtiff/libtiff.def: Added missed declarations.
5824
5825	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5826
58272002-04-16  Andrey Kiselev  <[email protected]>
5828
5829	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5830	Should finally close
5831	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5832
58332002-04-10  Andrey Kiselev  <[email protected]>
5834
5835	* tools/tiff2ps: Division by zero fixed.
5836	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5837
58382002-04-09  Andrey Kiselev  <[email protected]>
5839
5840	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5841	TIFFCheckpointDirectory() routine added.
5842	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5843
5844	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5845	for the new function.
5846
58472002-04-08  Andrey Kiselev  <[email protected]>
5848
5849	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5850	additional members tif->tif_decodestatus and tif->tif_encodestatus
5851	for correct handling of unconfigured codecs (we should not try to read
5852	data or to define data size without correct codecs).
5853
5854	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5855	changed. Now it has used tif->tif_decodestatus and
5856	tif->tif_encodestatus.
5857	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5858	case of __cvs_8.tif test image).
5859
5860	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5861	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5862	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5863	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5864
58652002-04-04  Andrey Kiselev  <[email protected]>
5866
5867	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5868	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5869	files by skipping bad strips.
5870	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5871
58722002-04-03  Frank Warmerdam  <[email protected]>
5873
5874	* libtiff/tif_dirwrite.c: Removed some dead code.
5875
5876	* libtiff/*: Cleanup some warnings.
5877
5878	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5879	for variable length FIELD_CUSTOM values.  Was int * but should be
5880	u_short *.
5881
58822002-04-01  Andrey Kiselev  <[email protected]>
5883
5884	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
5885	utility (at cpStripToTile routine).
5886
58872002-03-27  Frank Warmerdam  <[email protected]>
5888
5889	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
5890
5891	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
5892
5893	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
5894	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
5895
5896	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
5897	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
5898
58992002-03-26  Dwight Kelly  <[email protected]>
5900
5901	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5902	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
5903	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
5904	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
5905	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
5906	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
5907
59082002-03-26  Andrey Kiselev  <[email protected]>
5909
5910	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
5911	now also uses TIFFRGBAImageOK before reading. This is additional fix
5912	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5913
59142002-03-25  Andrey Kiselev  <[email protected]>
5915
5916	* libtiff/: tif_getimage.c: Additional check for supported
5917	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
5918	TIFFRGBAImageOK before reading.
5919	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5920
59212002-03-15  Andrey Kiselev  <[email protected]>
5922
5923	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5924	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
5925	TIFFDataType sizes instead of working with tiffDataWidth array
5926	directly. Should prevent out-of-borders bugs in case of unknown or
5927	broken data types.  EstimateStripByteCounts routine modified, so it
5928	won't work when tags with uknown sizes founded.
5929	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
5930
59312002-03-13  Andrey Kiselev  <[email protected]>
5932
5933	* libtiff/tif_getimage.c: Added support for correct handling
5934	`Orientation' tag in gtTileContig. Should be added in other gt*
5935	functions as well, but I have not images for testing yet. Partially
5936	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5937
59382002-03-10  Andrey Kiselev  <[email protected]>
5939
5940	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
5941	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
5942	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
5943	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
5944
59452002-03-08  Andrey Kiselev  <[email protected]>
5946
5947	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
5948	be stripped when installing, utility binaries will do.	Closes
5949	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5950
59512002-02-28  Frank Warmerdam  <[email protected]>
5952
5953	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
5954
5955	* man/libtiff.3t: added copyright tag info.
5956
59572002-02-11  Frank Warmerdam  <[email protected]>
5958
5959	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
5960
5961	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5962
5963	* man/Makefile.in: Patch DESTDIR handling
5964
5965	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
5966
5967	* configure: OpenBSD changes for Sparc64 and DSO version.
5968
5969	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
5970
59712002-02-05  Frank Warmerdam  <[email protected]>
5972
5973	* config.site/configure: added support for OJPEG=yes option to enable
5974	OJPEG support from config.site.
5975
59762002-01-27  Frank Warmerdam  <[email protected]>
5977
5978	* html/document.html: fixed links for TIFf 6 docs.
5979
59802002-01-18  Frank Warmerdam  <[email protected]>
5981
5982	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
5983
5984	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
5985	decodestrip function returns anything not greater than zero as per
5986	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
5987
5988	* configure: Modify CheckForBigEndian so it can work in a cross
5989	compiled situation.
5990
59912002-01-16  Frank Warmerdam  <[email protected]>
5992
5993	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
5994
5995	* tools/tiffset.c: fix bug in error reporting.
5996
5997	* tools/tiffcp.c: fix several warnings that show up with -Wall.
5998
59992002-01-04  Frank Warmerdam  <[email protected]>
6000
6001	* libtiff/tif_jpeg.c: fixed computation of segment_width for
6002	tiles files to avoid error about it not matching the
6003	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
6004	size.") for ITIFF files.  Apparently the problem was incorporated since
6005	3.5.5, presumably during the OJPEG/JPEG work recently.
6006
60072001-12-15  Frank Warmerdam  <[email protected]>
6008
6009	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
6010
6011	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
6012
6013	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
6014	(defined in tiffconf.h - 1 by default) then the RGBA interface
6015	will assume that a fourth extra sample is ASSOCALPHA if the
6016	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
6017	the library, but makes it work better with RGBA files produced by
6018	lots of applications that don't mark the alpha values properly.
6019
6020	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
6021	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
6022
60232001-12-12  Frank Warmerdam  <[email protected]>
6024
6025	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
6026	override those from tiff directory.  This makes this work with
6027	ImageGear generated files.
6028
60292001-12-07  Frank Warmerdam  <[email protected]>
6030
6031	* html/Makefile.in: added missing images per bug 92.
6032
6033	* port/Makefile.in: fixed clean target per bug 92.
6034
60352001-11-28  Frank Warmerdam  <[email protected]>
6036
6037	* Reissue 3.5.7 release.
6038
6039	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
6040	YYYYMMDD so that it is increasing over time.
6041
6042	* Makefile.in: Ensure that tiffvers.h is regenerated in the
6043	make release target.
6044
6045	* Makefile.in: added libtiff/tiffvers.h to the release file list.
6046
60472001-11-23  Frank Warmerdam  <[email protected]>
6048
6049	* added html/v3.5.7.html, updated html/index.html.
6050
6051	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
6052
60532001-11-15  Frank Warmerdam  <[email protected]>
6054
6055	* configure: fixed test for -lm.
6056
60572001-11-02  Frank Warmerdam  <[email protected]>
6058
6059	* Added PHOTOMETRIC_ITULAB as per bug 90.
6060
6061	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
6062
60632001-10-10  Frank Warmerdam  <[email protected]>
6064
6065	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
6066	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
6067	in keeping with TIFF 6.0 standard in tiff.h
6068
6069	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
6070
60712001-09-26  Frank Warmerdam  <[email protected]>
6072
6073	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
6074	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
6075
60762001-09-24  Frank Warmerdam  <[email protected]>
6077
6078	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
6079
6080	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
6081
6082	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
6083	error about LZW not being available.
6084
6085	* libtiff/tif_dir.c: propagate failure to initialize compression
6086	back from TIFFSetField() as an error status, so applications can
6087	detect failure.
6088
6089	* libtiff/tif_dir.c: removed the auto replacement of
6090	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
6091
6092	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
6093	from CVS as they are all supposed to be auto-generated by configure.
6094
60952001-09-22  Frank Warmerdam  <[email protected]>
6096
6097	* libtiff/tif_ojpeg.c: new update from Scott.
6098
60992001-09-09  Frank Warmerdam  <[email protected]>
6100
6101	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
6102	always use the "safe" version, even if there is a very slight
6103	cost in performance.
6104
6105	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
6106
6107	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
6108	in two places.
6109
6110	* libtiff/tif_getimage.c: Fixed problem with reading strips or
6111	tiles that don't start on a tile boundary.  Fix contributed by
6112	Josep Vallverdu (from HP), and further described in bug 47.
6113
6114	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
6115
6116	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
6117
6118	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
6119
61202001-09-06  Frank Warmerdam  <[email protected]>
6121
6122	* libtiff/tif_packbits.c: fixed memory overrun error.
6123
6124	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
6125
61262001-08-31  Frank Warmerdam  <[email protected]>
6127
6128	* libtiff/tif_getimage.c: relax handling of contig case where
6129	there are extra samples that are supposed to be ignored.  This
6130	should now work for 8bit greyscale or palletted images.
6131
6132	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
6133
61342001-08-28  Frank Warmerdam  <[email protected]>
6135
6136	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
6137	images with more than four samples per pixel.  See:
6138
6139	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
6140
61412001-08-10  Frank Warmerdam  <[email protected]>
6142
6143	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
6144	in TIFFReadRGBATile() to avoid issues in cases of overlapping
6145	buffers.  See Bug 69 in Bugzilla.
6146
6147	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
6148
6149	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
6150
61512001-08-09  Frank Warmerdam  <[email protected]>
6152
6153	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
6154	when checking for 64 bit architectures as per bugzilla bug 67.
6155
61562001-07-27  Frank Warmerdam  <[email protected]>
6157
6158	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
6159	bug 66.
6160
61612001-07-20  Frank Warmerdam  <[email protected]>
6162
6163	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
6164	has been included.
6165
61662001-07-19  Frank Warmerdam  <[email protected]>
6167
6168	* libtiff/tif_open.c: Seek back to zero after failed read,
6169	before writing header.
6170
61712001-07-18  Frank Warmerdam  <[email protected]>
6172
6173	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
6174	much better.  Now depends on having patched libjpeg as per
6175	patch in contrib/ojpeg/*.
6176
61772001-07-17  Frank Warmerdam  <[email protected]>
6178
6179	* */Makefile.in: added DESTDIR support.
6180
6181	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
6182
61832001-07-16  Frank Warmerdam  <[email protected]>
6184
6185	* configure, libtiff/Makefile.in: applied OpenBSD patches
6186	as per:
6187
6188	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
6189
61902001-06-28  Frank Warmerdam  <[email protected]>
6191
6192	* libtiff/tif_getimage.c: Fixed so that failure is properly
6193	reported by gtTileContig, gtStripContig, gtTileSeparate and
6194	gtStripSeparate.
6195
6196	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
6197
6198	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
6199	Updated bug section of tiffcmp.1 to note tiled file issues.
6200
6201	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
6202
62032001-06-22  Frank Warmerdam  <[email protected]>
6204
6205	* configure: Changes for DSO generation on AIX provided by
6206	John Marquart <[email protected]>.
6207
6208	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
6209	on Darwin thanks to Robert Krajewski ([email protected]) and
6210	Keisuke Fujii ([email protected]).
6211
62122001-06-13  Frank Warmerdam  <[email protected]>
6213
6214	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
6215
6216	* man/tiff2rgba.1: new
6217
62182001-05-22  Frank Warmerdam  <[email protected]>
6219
6220	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
6221
62222001-05-13  Frank Warmerdam  <[email protected]>
6223
6224	* libtiff/tools/thumbnail.c: changed default output compression
6225	to packbits from LZW since LZW isn't generally available.
6226
62272001-05-12  Frank Warmerdam  <[email protected]>
6228
6229	* libtiff/tif_ojpeg.c: New.
6230	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
6231	to OJPEG support.
6232
6233	Scott Marovich <[email protected]> supplied OJPEG support.
6234
62352001-05-11  Frank Warmerdam  <[email protected]>
6236
6237	* tiff.h: removed, it duplicates libtiff/tiff.h.
6238
62392001-05-08  Frank Warmerdam  <[email protected]>
6240
6241	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
6242	ensure everything is in order.
6243
6244	* libtiff/libtiff.def: added TIFFCreateDirectory and
6245	TIFFDefaultStripSize as per:
6246
6247	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
6248
62492001-05-02  Frank Warmerdam  <[email protected]>
6250
6251	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
6252	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
6253	force use of uint32 counts instead of short counts.
6254
6255	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
6256	case of writing TIFF_BYTE/TIFF_SBYTE fields.
6257
6258	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
6259
62602001-05-01  Frank Warmerdam  <[email protected]>
6261
6262	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
6263	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
6264
62652001-04-05  Frank Warmerdam  <[email protected]>
6266
6267	* tiffio.h: removed C++ style comment.
6268
6269	* configure: fixed up SCRIPT_SH/SHELL handling.
6270
6271	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
6272
6273	* config.guess: documented more variables as per bug 40.
6274
62752001-04-03  Frank Warmerdam  <[email protected]>
6276
6277	* configure, *Makefile.in: Various changes to improve configuration
6278	for HP/UX specifically, and also in general.  They include:
6279	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
6280	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
6281	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
6282	 - Use -${MAKEFLAGS} in sub makes from makefiles.
6283
6284	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
6285
62862001-04-02  Frank Warmerdam  <[email protected]>
6287
6288	* libtiff/tiff.h: Applied hac to try and resolve the problem
6289	with the inttypes.h include file on AIX.
6290
6291	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
6292
6293	* VERSION: update to 3.5.7 beta in preparation for release.
6294
6295	* configure/config.site: modified to check if -lm is needed for
6296	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
6297
6298	* config.guess: updated wholesale to an FSF version apparently
6299	from 1998 (as opposed to 1994).  This is mainly inspired by
6300	providing for MacOS X support.
6301
63022001-03-29  Frank Warmerdam  <[email protected]>
6303
6304	* configure, Makefile.in, etc: added support for OPTIMIZER being
6305	set from config.site.
6306
63072001-03-28  Frank Warmerdam  <[email protected]>
6308
6309	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
6310
6311	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
6312	sizes. It fixes two problems:
6313
6314	Without	scaling (-S) the fax is now centered on the page size specified
6315	with -H	and/or -W. Before, fax2ps was using an obscure and practially
6316	useless algorithm to allocate the image relative to Letter sized paper
6317	which sometime sled to useless whitespace on the paper, while at the
6318	same time cutting of the faxes printable area at the opposite border.
6319
6320	Second, scaling now preserves aspect ratio, which makes unusual faxes
6321	(in particular short ones) print properly.
6322
6323	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
6324
6325	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
6326	Bruce A. Mallett.  See check message for detailed information
6327	on all the changes, including a faster encoder, fixes for level
6328	2 PostScript, and support for the imagemask operator.
6329
63302001-03-27  Frank Warmerdam  <[email protected]>
6331
6332	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
6333	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
6334
6335	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
6336
63372001-03-16  Frank Warmerdam  <[email protected]>
6338
6339	* tif_dirinfo.c: moved definition of copyright tag in field list.
6340	Apparently they have to be in sorted order by tag id.
6341
63422001-03-13  Frank Warmerdam  <[email protected]>
6343
6344	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
6345	images in RGBA interface.
6346
63472001-03-02  Frank Warmerdam  <[email protected]>
6348
6349	* Added TIFFTAG_COPYRIGHT support.
6350
63512001-02-19  Frank Warmerdam  <[email protected]>
6352
6353	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
6354	with support for extracting subimages with the ,n syntax, and also
6355	adding the -b bias removal flag.
6356
63572001-02-16  Frank Warmerdam  <[email protected]>
6358
6359	* libtiff/libtiff.def: Brent Roman submitted new version adding
6360	serveral missing entry points.
6361
6362	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
6363	Some sort of weird VMS thing.
6364
6365	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
6366
6367	* tif_luv.c/tiff.h/tiffio.h:
6368	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
6369	([email protected]).  He writes:
6370
6371	1) I improved the gamut-mapping function in tif_luv.c for imaginary
6372	colors, because some images were being super-saturated on the input
6373	side and this resulted in some strange color shifts in the output.
6374
6375	2) I added a psuedotag in tiff.h to control random dithering during
6376	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
6377	on for 24-bit LogLuv output.  Dithering improves the average color
6378	accuracy over the image.
6379
6380	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
6381	tiffio.h, to expose internal routines for converting between LogLuv and
6382	XYZ coordinates.  This is helpful for writing more efficient,
6383	specialized conversion routines, especially for reading LogLuv files.
6384
6385	Changes applied with minor edits.
6386
63872001-01-23  Frank Warmerdam  <[email protected]>
6388
6389	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
6390	whether we are encoding or decoding.  This is to ensure graceful
6391	recovery if TIFFClientOpen() discovers an attempt to open a compressed
6392	file for "r+" access, and subsequently close it, as it resets the
6393	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
6394	compressor's concept of whether it is in encode or decode mode.
6395
63962001-01-08  Mike Welles <[email protected]>
6397
6398	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
6399
64002001-01-07  Frank Warmerdam  <[email protected]>
6401
6402	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
6403	as per bug report by Patrick Connor.
6404
64052000-12-28  Frank Warmerdam  <[email protected]>
6406
6407	* Added RELEASE-DATE file to release file list.
6408
6409	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
6410
64112000-12-22  Mike Welles <[email protected]>
6412        * added link to CVS mirror from index.html
6413
6414	* updated html/internals.html to note that LZW compression is
6415	  not supported by default.
6416
64172000-12-22  Frank Warmerdam  <[email protected]>
6418
6419	* updated html/libtiff.html to not point at Niles' old JPL web site
6420	for the man pages, point at www.libtiff.org.
6421
64222000-12-21  Frank Warmerdam  <[email protected]>
6423
6424	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
6425	Leonard Rosenthol <[email protected]>.  May interfere
6426	with correct building on older systems.  If so, please let me know.
6427
64282000-12-19 Mike Welles <[email protected]>
6429
6430	* Took out LZW Encoding from tif_lzw.c
6431
6432	* Created HOWTO-RELEASE
6433
6434	* Created html/v3.5.6.html
6435
6436	* updated index.html
6437
64382000-12-01  Frank Warmerdam  <[email protected]>
6439
6440	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
6441	Patches supplied by Frank Cringle <[email protected]>
6442	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
6443
64442000-11-24  Frank Warmerdam  <[email protected]>
6445
6446	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
6447	target so that the private headers required by libgeotiff can be
6448	installed with the others.  They are not installed by default.
6449
6450	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
6451	targets so libtiff.so will be built with an explicit dependency
6452	on libm.so.
6453
6454	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
6455	libtiff.so.3.5.5.
6456
6457	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
6458	file, or ALPHA version logic.  Added stuff about DIST_POINT in
6459	place of DIST_TYPE and the alpha release number stuff.
6460
64612000-11-22  Frank Warmerdam  <[email protected]>
6462
6463	* I have applied a patch from Steffen Moeller <[email protected]> to
6464	the configure script so that it now accepts the --prefix, and
6465	--exec-prefix directives.
6466
64672000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
6468
6469	* I have made a variety of modifications in an effort to ensure the
6470	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
6471	file which seems to be updated regularly.
6472
6473	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
6474	   version include file.
6475	 o renamed version.h to tiffvers.h because we now have to install it
6476	   with the public libtiff include files.
6477	 o include tiffvers.h in tiffio.h.
6478	 o updated tif_version.c to use tiffvers.h.
6479	 o Updated Makefile.in accordingly.
6480
6481	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
6482	I have updated the win32 detection rules in tiffcomp.h.
6483
64842000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
6485
6486	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
6487	the strip/tile width and height aren't multiples of the sampling size.
6488	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
6489	Some patches from Rick LaMont of Dot C Software.
6490
6491	* Modified tif_packbits.c encoder to avoid compressing more
6492	data than provided if rowsize doesn't factor into provided data
6493	(such as occurs for YCbCr).
6494
64952000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
6496
6497	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
6498	roundup if rows_per_strip not a multiple of vertical sample size.
6499
65002000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
6501
6502	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
6503	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6504	from [email protected].
6505
6506	* Modified tif_packbits.c decoding to avoid overrunning the
6507	output buffer, and to issue a warning if data needs to be
6508	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6509
65102000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
6511
6512	* Modified tiff2bw to ensure portions add to 100%, and that
6513	white is properly recovered.
6514
6515	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
6516	Patch c/o Stanislav Brabec <[email protected]>
6517
65182000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
6519
6520	* Modified TIFFClientOpen() to emit an error on an attempt to
6521	open a comperessed file for update (O_RDWR/r+) access.  This is
6522	because the compressor/decompressor code gets very confused when
6523	the mode is O_RDWR, assuming this means writing only.  See
6524	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
6525
65262000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
6527
6528	* Added GNULDdso target an`d switched linux and freebsd to use it.
6529
65302000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
6531
6532	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
6533	of EXPAND1D() as per bug 11 (from Roman).
6534
65352000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
6536	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
6537	cygwin compatibility.
6538
6539	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
6540	be a proper fix to the buffer sizing problem.  See
6541	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
6542
6543	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
6544	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
6545	Thanks to Nick Lamb <[email protected]> for reporting the
6546	bug and proving the patch.
6547
65482000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
6549
6550	* Fixed tif_jpeg.c so avoid destroying the decompressor before
6551	we are done access data thanks to bug report from:
6552	Michael Eckstein <[email protected]>.
6553
6554	* Reverted tif_flush change.
6555
65562000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
6557
6558	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
6559	error when TIFF_BEENWRITING is not set.  This ensures that the
6560	directory contents can still be flushed by TIFFFlush().
6561
65622000-08-14  Frank Warmerdam  <[email protected]>
6563
6564	* tif_open.c: Don't set MMAP for O_RDWR files.
6565
6566	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
6567	so that files opened for update can be strip chopped too.
6568
6569	* tif_read.c: fixed up bug with files missing rowsperstrip and
6570	the strips per separation fix done a few weeks ago.
6571
65722000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
6573
6574	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
6575	SAMPLEFORMAT_COMPLEXINT.
6576
65772000-07-13  Mike Welles <[email protected]>
6578
6579	* index.html, bugs.html: added bugzilla info.
6580
65812000-07-12  Frank Warmerdam  <[email protected]>
6582
6583	* tif_read.c: fix subtle bug with determining the number of
6584	rows for strips that are the last strip in a separation but
6585	not the last strip of all in TIFFReadEncodedStrip().
6586
6587	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
6588	Peter Skarpetis <[email protected]>
6589
65902000-06-15  Frank Warmerdam  <[email protected]>
6591
6592	* Modified tiffio.h logic with regard to including windows.h.  It
6593	won't include it when building with __CYGWIN__.
6594
65952000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
6596
6597	* README: update to mention www.libtiff.org, don't list Sam's old
6598	email address.
6599
6600	* configure: Fixed DSO test for Linux as per patch from
6601	  Jan Van Buggenhout <[email protected]>.
6602
66032000-04-21  Frank Warmerdam  <[email protected]>
6604
6605	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
6606	one tile/strip images with an offset, and byte count of zero. These
6607	could be "unpopulated" images.
6608
66092000-04-18  Frank Warmerdam  <[email protected]>
6610
6611	* contrib/addtiffo: Added "averaging" resampling option.
6612
6613	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
6614
6615Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
6616
6617	* tools/Makefile.in: Modified to install properly on SGI.
6618
66192000-04-12  Mike Welles	     <[email protected]>
6620	* configure:  Fixed stupid mistake in libc6 test on Linux
6621
66222000-04-04  Mike Welles	     <[email protected]>
6623	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
6624	  caught by BoundsChecker.  From Arvan Pritchard
6625	  <[email protected]>  (untested).
6626
6627	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
6628	  Arvan Pritchard <[email protected]>
6629
6630	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
6631	  Arvan Pritchard <[email protected]>
6632
66332000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
6634
6635	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
6636
66372000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
6638
6639	* fax2ps: Fixed mixup of width and height in bounding box statement
6640	as per submission by Nalin Dahyabhai <[email protected]>.
6641
66422000-03-27  Mike Welles	     <[email protected]>
6643
6644	* fax2ps:  Modified printruns to take uint32 instead of uint16.
6645	Patch courtesy of Bernt Herd <[email protected]>
6646
66472000-03-20  Mike Welles	     <[email protected]>
6648
6649	* configure: added test for libc6 for linux targets.  Bug reported by
6650        Stanislav Brabec <[email protected]>
6651
6652	* Added 3.5 docs to html/Makefile.in.
6653	Thanks to  Stanislav Brabec <[email protected]>
6654
6655	* configure: fixed bugs in sed scripts
6656	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
6657	fix submitted to Stanislav Brabec <[email protected]>
6658
6659	* tools/iptcutil was not in files list, and wasn't being
6660	added to tar archive.  Updated Makefile.in.
6661
66622000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
6663
6664	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
6665	conversion for the run arrays.
6666
66672000-03-03  Frank Warmerdam  <[email protected]>
6668
6669	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
6670	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
6671
66722000-03-02  Frank Warmerdam  <[email protected]>
6673
6674	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
6675
6676	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
6677	to avoid overruns encountered with frle_bug.tif.
6678
6679Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
6680
6681	* Fixed tools/tiffcmp so that stopondiff testing works.
6682	  Patch care of Joseph Orost <[email protected]>.
6683
66842000-01-28    <warmerda@CS46980-B>
6685
6686	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
6687	  set to 1, and added default (off) setting in tiffconf.h.  This
6688	  should eventually be set by the configure script somehow.
6689
6690	  The original work on all these 2-4GB changes was done by
6691	  Peter Smith ([email protected]).
6692
6693	* Modified tif_win32.c to support 2-4GB seeks.
6694
6695	* tentatively changed toff_t to be unsigned instead of signed to
6696	  facilitate support for 2-4GB files.
6697
6698	* Updated a variety of files to use toff_t.  Fixed some mixups
6699	  between toff_t and tsize_t.
6700
6701Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
6702
6703	* Largely reimplemented contrib/addtiffo to avoid temp files,
6704	updating the TIFF file in place.  Fixed a few other bugs to.
6705
6706	* Set tif_rawdatasize to zero when freeing raw data buffer in
6707	TIFFWriteDirectory().
6708
6709	* Enabled "REWRITE_HACK" in tif_write.c by default.
6710
6711	* Fix bug in tif_write.c when switching between reading one directory
6712	and writing to another.
6713
6714	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6715
6716Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6717
6718	* Added TIFFmemory(3t) functions to libtiff.def.
6719
6720Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6721
6722	* Added libtiff/libtiff.def to TIFFILES distribution list.
6723
6724Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6725
6726	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6727
6728	* Altered descriptions in tools to reflect "by default" lzw not supported
6729
6730	* Updated index.html to note lzw compression kit.
6731
6732Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6733
6734	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6735
6736Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6737
6738	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6739
6740	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6741	  when LZW compression invoked.
6742
6743	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6744	  in tools to reflect removal of LZW compression
6745
6746Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6747
6748        * Fixed bug that caused LZW (non) compression to segfault. Added
6749	  warning about LZW compression removed being removed, and why.
6750
6751	* Added nostrip to install in tools/Makefile.in so that debugging
6752	  symbols are kept.
6753
6754Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6755
6756	* Added patch from Ivo Penzar <[email protected]>,
6757	  supporting Adobe ZIP deflate.  Untested.
6758
6759Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6760
6761	* Made Packbits the default compression in tools/tiff2rgba.c instead
6762	of LZW.
6763
6764Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6765
6766	* Added tif_luv to contrib/djgpp/Makefile.lib.
6767
6768Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6769
6770        * Added zip creation to relase makefile target
6771
6772	* Added html for TIFFWriteTile.3t man page.
6773
6774Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6775
6776	* Added some changes to tif_write.c to support rewriting existing
6777	fixed sized tiles and strips.  Code mods disabled by default, only
6778	enabled if REWRITE_HACK is defined for now.
6779
6780Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6781
6782	* Added TIFFWriteTile.3t man page.
6783
6784Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6785
6786	* Added notes on use of makefile.vc in build.html, and fixed
6787	email subscription address.
6788
6789199-11-28  Mike Welles <[email protected]>
6790
6791	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6792
6793	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6794	   from Bruce Carmeron <[email protected]> -- modifications of
6795	   changes made by Frank (sun cc still complained on cast).
6796
6797	*  Added tiffconf.h to install target per request from Bill
6798	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6799 	   know features have been compiled into the TIFF library in order to
6800	   handle things properly".
6801
6802Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6803
6804	* fixed various VC++ warnings as suggested by Gilles Vollant
6805	<[email protected]>.
6806
6807Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6808
6809	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6810	not imply applications are responsible for image data swapping.
6811
68121999-11-22  Mike Welles <[email protected]>
6813	*  HTML-ized the man pages, added to html/man
6814
6815	*  Removed LZW Compression to comply with Unisys patent extortion.
6816
68171999-09-29  Mike Welles		<[email protected]>
6818	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6819	   From Ivo Penzar <[email protected].
6820
6821	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6822	   memory mapped files. <[email protected]>
6823
68241999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6825	* Corrected alpha versioning.
6826
6827	* Removed distinction between  alpha and release targets in Makefile.in.
6828
6829	* added release.stamp target, which tags cvs tree, and updates
6830	  "RELEASE-DATE"
6831
6832	* added releasediff target, which diffs tree with source as of
6833	  date in "RELEASE-DATE"
6834
6835	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6836	  away from alpha/non-alpha distinctions).
6837
6838	* updated html to reflect release
6839
68401999-09-23    <warmerda@CS46980-B>
6841
6842	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6843
6844	* Added CYGWIN case in configure.
6845
6846Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6847
6848	* Applied Francois Dagand's patch to handle fax decompression bug.
6849	  (sizes >= 65536 were failing)
6850
6851Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6852
6853	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6854	  by Christopher Lawton <[email protected]>
6855
6856Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6857
6858	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6859	  Albert Chin-A-Young <[email protected]>
6860
6861	* Added TIFFReassignTagToIgnore() API on behalf of
6862	  Bruce Cameron <[email protected]>.  Man page still pending.
6863
6864Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6865
6866	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6867	files to provide for a rudimentary testsuite.
6868
6869	* Added contrib/tags back from old distribution ... fixed up a bit.
6870
68711999-08-16    <warmerda@CS46980-B>
6872
6873	* Added simple makefile.vc makefiles for building with MS VC++
6874	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6875	better solutions for some users.
6876
6877Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6878
6879	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6880	put it in tools since part of it is in C++.
6881
68821999-08-16  Michael L. Welles  <[email protected]>
6883
6884	* Updated html/index.html with anon CVS instructions.
6885
6886Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
6887
6888	* pre-remove so link before softlink in LINUXdso action in
6889	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
6890	the first.
6891
6892	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
6893	colormaps owned by the TIFF handle itself when trying to fixup wrong
6894	(eight bit) colormaps.  Corrected by maintaining a private copy of
6895	the colormap.
6896
6897	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
6898	tif_getimage.c.
6899
6900	* CVS Repository placed at remotesensing.org.  ChangeLog added.
6901