xref: /libtiff-4.0.7/ChangeLog (revision 87f02eac)
12015-11-18  Even Rouault <even.rouault at spatialys.com>
2
3	* libtiff/*.c: fix clang -Wshorten-64-to-32 warnings
4
52015-11-18  Even Rouault <even.rouault at spatialys.com>
6
7	* libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL
8	to please MSVC 2013
9
102015-11-17  Even Rouault <even.rouault at spatialys.com>
11
12	* libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction
13	if BitsPerPixel > 24, so as to avoid huge memory allocation and file
14	read attempts
15
162015-11-02  Even Rouault <even.rouault at spatialys.com>
17
18	* libtiff/tif_dirread.c: remove duplicated assignment (reported by
19	Clang static analyzer)
20
212015-10-28  Even Rouault <even.rouault at spatialys.com>
22
23	* libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c,
24	libtiff/tif_jpeg_12.c: suppress warnings about 'no previous
25	declaration/prototype'
26
272015-10-19  Even Rouault <even.rouault at spatialys.com>
28
29	* libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix
30	'warning: negative integer implicitly converted to unsigned type' warning
31	(part of -Wconversion)
32
332015-10-17  Even Rouault <even.rouault at spatialys.com>
34
35	* libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c,
36	  libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/)
37
382015-09-12  Bob Friesenhahn  <[email protected]>
39
40	* libtiff 4.0.6 released.
41
42	* html/v4.0.6.html: Added release notes for 4.0.6.
43
442015-09-06  Bob Friesenhahn  <[email protected]>
45
46	* tools/tiffgt.c: Silence glut API deprecation warnings on MacOS
47	X.  Patch by Roger Leigh.
48
49	* Makefile.am: Added a 'coverity' rule to assist with Coverity
50	submissions.
51
52	* tools/tiff2pdf.c: Fix compiler warning about unused function
53	when JPEG is not available.
54
55	* tools/fax2ps.c (main): Detect failure to write to temporary
56	file.
57
582015-09-05  Bob Friesenhahn  <[email protected]>
59
60	* libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8):
61	Change implementation so that it does not sometimes overflow the
62	range of a 32-bit int and to avoid a signed vs unsigned compare
63	compiler warning.
64	(TIFF_INT64_MAX): Avoid use of platform-specific large constants.
65	(TIFF_UINT32_MAX): Avoid use of platform-specific large constants.
66
672015-09-01  Bob Friesenhahn  <[email protected]>
68
69	* Makefile.am (distcheck-hook), configure.ac: Applied patches by
70	Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue
71	with BSD make and to make use of cmake in 'distcheck' target
72	conditional on if cmake is available.
73
74	* CMakeLists.txt, Makefile.am, configure.ac: Applied patches by
75	Roger Leigh (via tiff mailing list on 2015-09-01).
76
77	CMake build is now included in 'distcheck' target.
78
79	Builds with CMake 2.8.9 and newer.
80
81	Tar is now resquested to use POSIX PAX format.
82
832015-08-31  Bob Friesenhahn  <[email protected]>
84
85	* CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by
86	Roger Leigh (via tiff mailing list on 2015-08-31.
87
88	CMake reads all version information directly from configure.ac to
89	avoid duplication of values.  This basically greps over the file
90	for the LIBTIFF_* variables, then translates them to the form
91	needed for cmake. This includes the release version and libtool
92	shared library version information.
93
94	Make shared/static library building configurable.  Currently it
95	always builds shared libraries, with static libs having a _static
96	suffix (copying zlib, but it means it's got a non-standard name).
97	CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the
98	other, which is now used instead.  There's now a single "tiff"
99	target to build either shared or static as required, and all the
100	tests and tools are linked with this. Note: the Windows tests fail
101	when linked with a static libtiff (says: libtiff.dll not found).
102	Not really a regression since this was not tested up to this
103	point, and it's likely the unit tests haven't (ever?) been run on
104	Windows with a static libtiff, so there's some additional
105	portability issue here to address.  Works fine on UNIX systems,
106	and fine on Windows with the default to build a DLL.
107
108	Add a missing file which wasn't being distributed, causing unit
109	tests to fail.  Note that "find . -name '*.cmake'" lists all the
110	CMake files which need distributing in addition to all the
111	CMakeLists.txt files (which now are distributed).
112
1132015-08-31  Even Rouault <even.rouault at spatialys.com>
114
115	* libtiff/tif_predict.c: pedantic change to add explicit masking
116	with 0xff before casting to uchar in floating-point horizontal
117	differencing and accumulation routines.
118
1192015-08-31  Even Rouault <even.rouault at spatialys.com>
120
121	* libtiff/tif_predict.c: fix generation of output with 16 bit
122	or 32 bit integer, when byte swapping is needed, in
123	horizontal predictor (#2521). Also fixes decoding when there is
124	a single pixel to code (unlikely case...) and byte swapping is
125	involved.
126
1272015-08-30  Even Rouault <even.rouault at spatialys.com>
128
129	* libtiff/tif_lzw.c: make nextdata a unsigned type to avoid
130	undefined behaviour with shifts (gcc -fsanitize=shift)
131
1322015-08-30  Even Rouault <even.rouault at spatialys.com>
133
134	* libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c:
135	add explicit masking with 0xff before casting
136	to unsigned char (make icc -check=conversions happy)
137
138	* libtiff/tif_predict.c: operate on unsigned datatypes when
139	computing/applying differences to avoid undefined behaviour of
140	signed types (C standard compliance)
141
1422015-08-30  Bob Friesenhahn  <[email protected]>
143
144	* configure.ac: libtiff 4.0.5 released.
145
1462015-08-29  Bob Friesenhahn  <[email protected]>
147
148	* CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing
149	list on 2015-08-29) to add ld-version-script option to cmake build
150	to match autoconf.  Note: defaults to 'on' to be ABI-compatible by
151	default with common Linux distribution builds.  Note that the
152	autoconf configure script defaults to 'off'.
153
154	* html/build.html: Applied patch by Roger Leigh (via tiff mailing
155	list on 2015-08-29) to describe how to use CMake to build libtiff.
156
1572015-08-28  Bob Friesenhahn  <[email protected]>
158
159	* html/v4.0.5.html: Added HTML file describing the changes which
160	will appear in the 4.0.5 release.
161
1622015-08-23  Bob Friesenhahn  <[email protected]>
163
164	* libtiff/tiffiop.h: For MinGW comiles, make sure that build
165	supports necessary __MSVCRT_VERSION__ (at least at least 0x800).
166	Otherwise large files can not be supported for POSIX-style I/O.
167
168	* tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit
169	builds about cast to thandle_t.
170
171	* test/rewrite_tag.c (main): Does not require any arguments.
172
1732015-08-20  Bob Friesenhahn  <[email protected]>
174
175	* tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to
176	fix build issues when using Cmake due to Windows large file
177	changes.
178
1792015-08-18  Bob Friesenhahn  <[email protected]>
180
181	* libtiff/tiffiop.h: First cut at supporting large files under
182	Microsoft Windows using tif_unix.c and the libtiff tools.  This
183	only works if the Windows CDK is new enough to support the APIs
184	used (Visual C++ 2005 or later).  Support for large files is not
185	actually tested yet.
186
1872015-08-15  Bob Friesenhahn  <[email protected]>
188
189	* libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that
190	client_data is initialized to a known value, and to report an
191	error on two memory allocation failures.
192
1932015-08-13  Bob Friesenhahn  <[email protected]>
194
195	* CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx
196	symbol versioning.  Patch was mailed to libtiff list on Thu, 13
197	Aug 2015.
198
1992015-07-04  Bob Friesenhahn  <[email protected]>
200
201	* cmake: Add d suffix to debug libraries with MSVC.  Patch #3 of 3
202	by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20
203	+0100.
204
205	* cmake: Add extra warning flags.  Patch #2 of 3 by Roger Leigh
206	posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
207
208	* cmake: Correct snprintf fallback for VS2015.  Patch #1 of 3 by
209	Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
210
2112015-06-24  Bob Friesenhahn  <[email protected]>
212
213	* CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to
214	libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several
215	corrections to ensure that the autotools build still works were
216	added by me.  I have not yet tested the build using 'cmake' or
217	MSVC with 'nmake'.
218
2192015-06-21  Bob Friesenhahn  <[email protected]>
220
221	* test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG
222	library so only execute if JPEG is available.
223
224	* libtiff 4.0.4 released.
225
226	* configure.ac: Add a HAVE_FOO Automake conditional for each
227	add-on library.
228
229	* test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode
230	requires JPEG support to compile.  Use Automake conditional to
231	only include it when JPEG support is available.
232
233	* html/build.html: Try to improve the nmake-based VC++ build
234	description.
235
236	* libtiff/tiffconf.vc.h: Build fixes based on testing.
237
238	* libtiff/tif_config.vc.h: Build fixes based on testing.
239
240	* libtiff/libtiff.def: TIFFRasterScanline does not exist so remove
241	export for it.
242
2432015-06-20  Bob Friesenhahn  <[email protected]>
244
245	* libtiff/tif_config.vc.h: Make adjustments to match the new
246	definitions that configure produces, including for WIN64.  Still
247	needs to be tested.
248
249	* configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting
250	specifier.  64-bit MinGW supports 'long long' but support for
251	'lld' is not assured by the run-time DLLs and so GCC warns.
252	Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition
253	and printf format specifier to deal with printing values of
254	'size_t' type.  In particular, this was necessary for WIN64.
255	Added a configure test for if the system headers provide 'optarg'
256	(normal case) and block out the many explicit 'extern' statements
257	in the utilities.  This was found to be necessary under Windows
258	when getopt is in a DLL and the symbols are already imported with
259	dllimport via standard header files.
260
261	* test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32
262	and boolean in MinGW build due to including jpeglib.h.
263
264	* test/rewrite_tag.c (main): Fix problem with location of variable
265	declaration.
266
267	* libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs,
268	TIFFReadRGBAImageOriented, TIFFSetCompressionScheme,
269	TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc,
270	TIFFRasterScanline, TIFFSetErrorHandlerExt,
271	TIFFSetWarningHandlerExt, TIFFNumberOfDirectories,
272	TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory,
273	TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by
274	Roger Leigh and justified by use in libtiff tests, documentation,
275	and changelog notes.  Also sorted symbol list and removed
276	duplicate entries.
277
2782015-06-16  Bob Friesenhahn  <[email protected]>
279
280	* libtiff/tif_getimage.c: Fix four Coverity issues related to
281	unintended sign extension.
282
2832015-06-16  Even Rouault <even.rouault at spatialys.com>
284
285	* libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna)
286
2872015-06-14  Lee Howard  <[email protected]>
288
289	* libtiff/tif_unix.c: contribution from Vadim Zeitlin on
290	Bugzilla Bug #2510 fixes several harmless but still annoying
291	warnings
292
293	* configure: contribution from Ludolf Holzheid on Bugzilla
294	Bug #2498.  Adds an option to select the file I/O style on
295	Windows hosts.
296
297	* libtiff/tif_getimage.c: contribution from Gary Cramblitt
298	on Bugzilla Bug #2409.  Correct reading of certain tiled TIFFs.
299
300	* configure, configure.ac: contribution from Marcos H. Woehrmann
301	on Bugzilla Bug #2405.  Correct shell equality operator.
302
303	* tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt
304	on Bugzilla Bug #2401.  Appropriately call glFlush().
305
306	* tools/tiff2pdf.c: change ColorTransform from "0" to "1"
307	following Bugzilla Bug #2150.
308
3092015-06-13  Lee Howard  <[email protected]>
310
311	* libtiff/tif_lzw.c: contribution from Andy Cave - decode
312	files that contain consecutive CODE_CLEAR codes.
313
314	* tools/tiff2pdf.c: contribution from Antti S. Lankila on
315	Bugzilla Bug #2078. Suppress initial output of the header.
316
317	* tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy -
318	Take care in using the return value from snprintf().
319
320	* tools/tiffcrop.c: contribution from Eduardo Robles Elvira -
321	correctly copy the compression tag from the source TIFF.
322
323	* tools/tiff2ps.c: contribution from Eduardo Robles Elvira -
324	correct sizing and scaling problems with output document.
325
3262015-06-10  Bob Friesenhahn  <[email protected]>
327
328	* libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two
329	clean implementations in order to avoid pre-processor hell.  Only
330	one of the implementations is used in a given build.
331
3322015-06-08  Even Rouault <even.rouault at spatialys.com>
333
334	* libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12
335	case
336
3372015-06-07  Bob Friesenhahn  <[email protected]>
338
339	* libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975
340	"Division or modulo by zero".
341	(TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division
342	or modulo by zero".
343	(TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by
344	zero".
345	(TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by
346	zero".
347
348	* libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and
349	715974 "Division or modulo by zero".
350
3512015-05-31  Bob Friesenhahn  <[email protected]>
352
353	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity
354	1134470 "Logically dead code" by making the roll-over check
355	explicit.
356
357	* libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227
358	"Division or modulo by zero".
359	(LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by
360	zero".
361	(LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by
362	zero".
363	(LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by
364	zero".
365
366	* libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix
367	Coverity 298626 "Logically dead code".
368	(TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead
369	code".
370	(TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead
371	code".
372	(TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead
373	code"
374
375	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++
376	operator precedenc in evaluation.  Might quench Coverity 1134470
377	"Logically dead code".
378
379	* libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands
380	don't affect result".  This change uses ifdefs to include
381	applicable code based on properties of libjpeg.  Still needs to be
382	re-tested with 12-bit "6b" and "MK1".
383
3842015-05-30  Bob Friesenhahn  <[email protected]>
385
386	* libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310
387	"Resource leak".
388
389	* libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix
390	Coverity 601720 "Resource leak".
391
392	* libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624
393	"Dereference before null check".
394
395	* libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400
396	"Missing break in switch".
397
398	* contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer
399	size calculation for overflow.
400
401	* contrib/addtiffo/addtiffo.c (main): Possibly address Coverity
402	1024226 "Untrusted value as argument".
403
404	* tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted
405	value as argument".
406	(checksignature): Fix Coverity 1024894 "Ignoring number of bytes
407	read".
408	(readextension): Fix Coverity 1024893 "Ignoring number of bytes
409	read".
410	(readgifimage): Fix Coverity 1024890 "Ignoring number of bytes
411	read".
412	(readraster): Fix Coverity 1024891 "Ignoring number of bytes
413	read".
414	(readgifimage): Fix Coverity 1024892 "Ignoring number of bytes
415	read".
416
417	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181
418	"Structurally dead code".
419
420	* tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return
421	value from library".
422	(guessSize): Fix Coverity 1024888 "Unchecked return value from
423	library".
424	(guessSize): Fix Coverity 1214162 "Ignoring number of bytes read".
425	(guessSize): Fix Coverity 1024889 "Unchecked return value from
426	library".
427
428	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621
429	"Resource leak".
430	(t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead
431	code".
432	(t2p_write_pdf): Fix Coverity 1227690 "Unused value".
433
4342015-05-29  Bob Friesenhahn  <[email protected]>
435
436	* contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468
437	"Infinite loop".
438	(formatIPTC): Fix Coverity 1024727 "Truncated stdio return value".
439	(formatIPTC): Fix Coverity 1214240 "Untrusted loop bound".
440
4412015-05-28  Bob Friesenhahn  <[email protected]>
442
443	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
444	Coverity 298615 "Resource leak".
445	(TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign
446	extension".
447
448	* tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value
449	as argument".
450	(main): Fix Coverity 1024678 "Unchecked return value from
451	library".
452	(main): Fix Coverity 1024679 "Unchecked return value from
453	library".
454	(main): Fix Coverity 1214160 "Ignoring number of bytes read".
455
456	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
457	Coverity 298615 "Resource leak".
458
459	* tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309
460	"Resource leak".
461
462	* tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource
463	leak".
464	(cpStrips): Fix Coverity 1024305 "Resource leak".
465
4662015-05-27  Bob Friesenhahn  <[email protected]>
467
468	* tools/ras2tiff.c: Fix Sun Raster header definition to be safe
469	for 64-bit systems.  Add some header validations.  Should fix many
470	Coverity issues.
471	(main): Fix Coverity 1301206: "Integer handling issues  (BAD_SHIFT)".
472	(main): Quiet Coverity 1024223 "Untrusted value as argument".
473
474	* tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting
475	level does not match indentation".
476	(get_histogram): Quiet Coverity 1024386 "Out-of-bounds read".
477	This was a benign mis-diagnosis but added code to enforce against
478	buffer overflow.
479
480	* tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical
481	vs. bitwise operator".
482	(readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or
483	modulo by zero".
484	(readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead
485	code".
486	(writeSingleSection): Fix Coverity 1024796 "Nesting level does not
487	match indentation".
488	(writeCroppedImage): Fix Coverity 1024797 "Nesting level does not
489	match indentation".
490	(loadImage): Fix Coverity 1299741 "Dereference before null check".
491	(loadImage): Fix Coverity 1299740 "Out-of-bounds write".
492
4932015-03-02  Even Rouault  <[email protected]>
494
495	* tools/tiffdither.c: check memory allocations to avoid writing to
496	NULL pointer. Also check multiplication overflow. Fixes #2501,
497	CVE-2014-8128. Derived from patch by Petr Gajdos.
498
4992015-01-26  Even Rouault  <[email protected]>
500
501	* add html/v4.0.4beta.html under version control
502	* HOWTO-RELEASE: write that cvs add html/vX.X.html must be used
503
5042015-01-26  Even Rouault  <[email protected]>
505
506	* libtiff 4.0.4beta released
507
5082015-01-26  Even Rouault  <[email protected]>
509
510	* automake: updated to 1.15
511	* libtool: updated to 2.4.5
512
5132015-01-22  Even Rouault  <[email protected]>
514
515	* tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
516
5172015-01-05  Frank Warmerdam  <[email protected]>
518
519	* html/bugs.html: remove note about needing to email the tiff mailing
520	list administrator about being approved for membership, this appears
521	not to be true.
522
5232015-01-05  Olivier Paquet  <[email protected]>
524
525	* tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
526
5272015-01-03  Even Rouault  <[email protected]>
528
529	* libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
530	when reading more than 65535 directories, and effectively error out when
531	reaching that limit.
532
5332014-12-29  Even Rouault  <[email protected]>
534
535	* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
536	markers to avoid emitting a warning (even if, according to the TechNote,
537	there are admitedly unusual/not recommended or even forbidden variants, but
538	they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
539	SOF9 and SOF10).
540	Define in_color_space and input_components to the right values in
541	JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
542	libjpeg API documentation, so as to be compatible with mozjpeg library.
543	Note: the default settings of mozjpeg will produce progressive scans, which
544	is forbidden by the TechNote.
545
5462014-12-29  Even Rouault  <[email protected]>
547
548	* libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
549	to avoid buffer leak (fix previous fix, found by Coverity scan)
550
5512014-12-29  Even Rouault  <[email protected]>
552
553	* libtiff/tif_next.c: add new tests to check that we don't read outside of
554	the compressed input stream buffer.
555
556	* libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
557    in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
558    putcontig8bitYCbCr21tile cases.
559
5602014-12-27  Even Rouault  <[email protected]>
561
562	* libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
563	extented tags installed by user code through the extender mechaninm before
564	calling the extender callback (GDAL #5054)
565
5662014-12-26  Bob Friesenhahn  <[email protected]>
567
568	* tools/tiffcrop.c: Fix warnings about variables set but not used.
569
570	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
571	but not used.
572
573	* tools/tiffgt.c: Fix warnings about unused parameters.
574
575	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
576
5772014-12-25  Even Rouault  <[email protected]>
578
579	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
580	various typos found by Debian lintian tool (GDAL #5756)
581
5822014-12-24  Even Rouault  <[email protected]>
583
584	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
585	http://bugzilla.maptools.org/show_bug.cgi?id=2235
586
5872014-12-24  Even Rouault  <[email protected]>
588
589	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
590	http://bugzilla.maptools.org/show_bug.cgi?id=2445
591
5922014-12-24  Even Rouault  <[email protected]>
593
594	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
595	Derived from patch by Petr Gajdos,
596	http://bugzilla.maptools.org/show_bug.cgi?id=2443
597
5982014-12-23  Even Rouault  <[email protected]>
599
600	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
601	of _TIFFFillStriles(). This solves crashing bug on corrupted
602	images generated by afl.
603
6042014-12-23  Even Rouault  <[email protected]>
605
606	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
607	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
608	images generated by afl.
609
6102014-12-21  Bob Friesenhahn  <[email protected]>
611
612	* tools/tiffdump.c: Guard against arithmetic overflow when
613	calculating allocation buffer sizes.
614
6152014-12-21  Even Rouault  <[email protected]>
616
617	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
618	SamplesPerPixel = 3. Enforce that
619	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
620
6212014-12-21  Even Rouault  <[email protected]>
622
623	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
624	copying. The right fix would be to properly copy it, but not worth the burden
625	for those esoteric utilities.
626	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
627
6282014-12-21  Even Rouault  <[email protected]>
629
630	* tools/thumbnail.c: fix out-of-buffer write
631	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
632
6332014-12-21  Even Rouault  <[email protected]>
634
635	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
636	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
637	COMPRESSION_CCITTFAX4
638	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
639
6402014-12-21  Even Rouault  <[email protected]>
641
642	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
643	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
644
6452014-12-21  Even Rouault  <[email protected]>
646
647	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
648	TIFFTAG_SAMPLESPERPIXEL
649
6502014-12-21  Even Rouault  <[email protected]>
651
652	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
653	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
654	Description: fix for Debian bug #741451
655	tiffcp crashes when converting JPEG-encoded TIFF to a different
656	encoding (like none or lzw). For example this will probably fail:
657	tiffcp -c none jpeg_encoded_file.tif output.tif
658	The reason is that when the input file contains JPEG data,
659	the tiffcp code forces conversion to RGB space. However,
660	the output normally inherits YCbCr subsampling parameters
661	from the input, which leads to a smaller working buffer
662	than necessary. The buffer is subsequently overrun inside
663	cpStripToTile() (called from writeBufferToContigTiles).
664	Note that the resulting TIFF file would be scrambled even
665	if tiffcp wouldn't crash, since the output file would contain
666	RGB data intepreted as subsampled YCbCr values.
667	This patch fixes the problem by forcing RGB space on the output
668	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
669	Author: Tomasz Buchert <[email protected]>
670
6712014-12-21  Even Rouault  <[email protected]>
672
673	Fix various crasher bugs on fuzzed images.
674	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
675	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
676	the directory
677	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
678	TransferFunction if BitsPerSample has not yet been read, otherwise reading
679	it later will cause user code to crash if BitsPerSample > 1
680	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
681	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
682	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
683	instead of imagewidth to avoid crash
684	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
685	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
686	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
687	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
688	* tools/tiffdump.c: fix crash due to overflow of entry count.
689
6902014-12-15  Even Rouault  <[email protected]>
691
692	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
693	all tiles/strips to include quantization tables even when the jpegtablesmode
694	had the JPEGTABLESMODE_QUANT bit set.
695	Also add explicit removal of Huffman tables when jpegtablesmode has the
696	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
697	first tile/strip (only useful in update scenarios. create-only was
698	fine)
699
7002014-12-09  Bob Friesenhahn  <[email protected]>
701
702	* tools/tiff2pdf.c: Assure that memory size calculations for
703	_TIFFmalloc() do not overflow the range of tmsize_t.
704
7052014-12-07  Even Rouault  <[email protected]>
706
707	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
708	Valgrind and Address Sanitizer on test suite
709
7102014-12-07  Bob Friesenhahn  <[email protected]>
711
712	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
713	tag can return one channel, with the other two channels set to
714	NULL.  The tiff2pdf code was expecting that other two channels
715	were duplicate pointers in the case where there is only one
716	channel.  Detect this condition in order to avoid a crash, and
717	presumably perform correctly with just one channel.
718
7192014-12-06  Bob Friesenhahn  <[email protected]>
720
721	* tools/tiffdump.c: Fix double-free bug.
722
7232014-11-27  Even Rouault  <[email protected]>
724
725	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
726	Visual Studio 2015 aka VC 14 aka MSVC 1900
727
7282014-11-20  Even Rouault  <[email protected]>
729
730	* libtiff/tif_lzw.c: prevent potential null dereference of
731	sp->dec_codetab in LZWPreDecode (bug #2459)
732
733	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
734	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
735
736	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
737
738	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
739	Coverity happier (not a bug, #2459)
740
741	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
742	(not a bug, #2459)
743
744	* tools/tiff2pdf.c: close PDF file (bug #2479)
745
746	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
747
748	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
749	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
750
751	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
752	(bug #2459) and add missing va_end in dump_info (#2459)
753
754	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
755
7562014-11-20  Even Rouault  <[email protected]>
757	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
758	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
759
7602014-11-20  Even Rouault  <[email protected]>
761	* automake: updated to 1.14.1
762	* libtool: updated to 2.4.3
763	* HOWTO-RELEASE: small update about autotools building order
764
7652014-10-20  Olivier Paquet  <[email protected]>
766	* tools/tiff2pdf.c: Preserve input file directory order when pages
767	are tagged with the same page number.
768
7692014-08-31  Bob Friesenhahn  <[email protected]>
770
771	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
772	count for tag should be a warning rather than an error since
773	errors terminate processing.
774
7752014-06-07  Bob Friesenhahn  <[email protected]>
776
777	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
778	was wrongly described.  Fix suggested by Miguel Medalha.
779
7802014-05-06  Bob Friesenhahn  <[email protected]>
781
782	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
783	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
784	Reviewed and forwarded by Lee Howard.
785
7862013-11-30  Frank Warmerdam  <[email protected]>
787
788	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
789
7902013-10-21  Frank Warmerdam  <[email protected]>
791
792	* libtiff/tif_dir.c: generate error in case of directory count
793	overflow.
794
7952013-10-01  Frank Warmerdam  <[email protected]>
796
797	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
798	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
799
8002013-09-12  Bob Friesenhahn  <[email protected]>
801
802	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
803	be defective, then set it to zero before returning error in order
804	to terminate processing of truncated TIFF.  Issue found and fix
805	suggested by Richard Nolde.
806
8072013-08-14  Frank Warmerdam  <[email protected]>
808
809	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
810
8112013-08-13  Frank Warmerdam  <[email protected]>
812
813	* tools/gif2tiff.c: Be more careful about corrupt or
814	hostile input files (#2450, CVE-2013-4231)
815
816	* tools/tiff2pdf.c: terminate after failure of allocating
817	ycbcr buffer (bug #2449, CVE-2013-4232)
818
8192013-07-09  Frank Warmerdam  <[email protected]>
820
821	* tools/tiffinfo.c: Default various values fetched with
822	TIFFGetField() to avoid being uninitialized.
823
8242013-05-02  Tom Lane  <[email protected]>
825
826	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
827	t2p_process_jpeg_strip to be at least marginally competent.  The
828	approach is still fundamentally flawed, but at least now it won't
829	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
830
8312013-05-02  Tom Lane  <[email protected]>
832
833	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
834 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
835 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
836 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
837 	large enough, and eliminate substantially all uses of sprintf(buf,
838 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
839 	protect against overflow of fixed-size buffers.  This responds in
840 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
841 	t2p_write_pdf_page(), but in general it seems like a good idea to
842 	deprecate use of sprintf().
843
8442013-03-29  Bob Friesenhahn  <[email protected]>
845
846	* configure.ac: Applied patch by Brad Smith to improve pkg-config
847	static linking by adding -lm to Libs.private when needed.
848
8492013-03-05  Tom Lane  <[email protected]>
850
851	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
852 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
853 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
854 	tools/tiffdither.c: Sync tool usage printouts and man pages with
855 	reality (quite a few options had escaped being documented in one
856 	or both places).  Per an old report from Miroslav Vadkerti.
857
8582013-01-25  Bob Friesenhahn  <[email protected]>
859
860	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
861	rotation angle was set by the auto rotate check, it was retained
862	for all pages that followed instead ofa being retested for each
863	page.  Patch by Richard Nolde.
864
8652013-01-18  Frank Warmerdam  <[email protected]>
866
867	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
868	64bit linux.
869
870	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
871	http://bugzilla.maptools.org/show_bug.cgi?id=2427
872
8732012-12-20  Tom Lane  <[email protected]>
874
875	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
876	it will pass with more versions of libjpeg.  (There are at least
877	three in active use now, and JPEG_LIB_VERSION doesn't tell us
878	enough to uniquely identify expected results.)
879
8802012-12-12  Tom Lane  <[email protected]>
881
882	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
883	field_passcount fields: it had the TIFF_VARIABLE and
884	TIFF_VARIABLE2 cases backwards.
885
8862012-12-10  Tom Lane  <[email protected]>
887
888	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
889 	check the linebytes calculation too, get the max() calculation
890 	straight, avoid redundant error messages, check for malloc
891 	failure.
892
8932012-12-10  Tom Lane  <[email protected]>
894
895	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
896 	(to enlarge tbuf for possible partial stride at end) so that
897 	overflow in the integer addition is detected.  Per gripe from
898 	Huzaifa Sidhpurwala.
899
9002012-12-03  Bob Friesenhahn  <[email protected]>
901
902	* tools/tiffset.c: tiffset now supports a -u option to unset a
903	tag.  Patch by Zach Baker. See
904	http://bugzilla.maptools.org/show_bug.cgi?id=2419
905
9062012-11-18  Bob Friesenhahn  <[email protected]>
907
908	* automake: Update Automake to 1.12.5 release.
909
910	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
911	require malloc() to return NULL pointer if requested allocation
912	size is zero.  Assure that _TIFFmalloc does.
913
9142012-11-01  Frank Warmerdam  <[email protected]>
915
916	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
917	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
918	Red Hat Security Response team for the fix.
919
9202012-10-18  Frank Warmerdam  <[email protected]>
921
922	* tif_zip.c: Avoid crash on NULL error messages.
923
9242012-09-22  Bob Friesenhahn  <[email protected]>
925
926	* libtiff 4.0.3 released.
927
9282012-09-20  Bob Friesenhahn  <[email protected]>
929
930	* Makefile.am: Update to Automake 1.12.4
931
9322012-08-19  Bob Friesenhahn  <[email protected]>
933
934	* Makefile.in: Update to Automake 1.12.3
935
936	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
937	some TIFF/FX support in libtiff.  Add the tag definitions to
938	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
939	and also fixes an error in a comment.  Adds the photometric values
940	to tif_print.c, and fixes a bug.  These changes are by Steve
941	Underwood.
942
9432012-08-13  Frank Warmerdam  <[email protected]>
944
945	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
946	compressed file: http://trac.osgeo.org/gdal/ticket/4771
947
9482012-08-02  Frank Warmerdam  <[email protected]>
949
950	* libtiff/tif_dirread.c: report error in case of mismatch value
951	counts for tags (ie. DotRange).
952
9532012-07-26  Tom Lane  <[email protected]>
954
955	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
956 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
957	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
958	as external accessors for the opaque type TIFFField.
959
960	* tools/tiffset.c: Make tiffset use the above functions instead of
961	relying on library private headers.
962
9632012-07-19  Tom Lane  <[email protected]>
964
965	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
966	after a malloc failure.  No crash risk AFAICS, but the program
967	might not report exit code 1 as desired.  h/t [email protected]
968
9692012-07-18  Tom Lane  <[email protected]>
970
971	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
972	prevents core dumps or perhaps even arbitrary code execution when
973	processing a corrupt input file (CVE-2012-3401).
974
9752012-07-06  Bob Friesenhahn  <[email protected]>
976
977	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
978	IJG JPEG 7+ uses a different upsampling algorithm which produces
979	different numeric results.
980
981	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
982	work with IJG JPEG 7+.
983
9842012-07-04  Bob Friesenhahn  <[email protected]>
985
986	* test/raw_decode.c: Add changes so that test can run with build
987	directory outside of source directory.
988
9892012-07-02  Frank Warmerdam  <[email protected]>
990
991	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
992	imagery (http://trac.osgeo.org/gdal/ticket/4732)
993
9942012-06-20  Frank Warmerdam  <[email protected]>
995
996	* libtiff/tif_fax3.c: fix memory initialization of runs, only
997	partly done.
998
999	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
1000	full "stride" past the end.
1001
10022012-06-19  Frank Warmerdam  <[email protected]>
1003
1004	* libtiff/tif_packbits.c: fix read past end of data buffer.
1005
10062012-06-15  Frank Warmerdam  <[email protected]>
1007
1008	*  libtiff 4.0.2 released.
1009
1010	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
1011	warnings with clang.
1012
10132012-06-15  Tom Lane  <[email protected]>
1014
1015	* tools/tiff2pdf.c: Defend against integer overflows while
1016	calculating required buffer sizes (CVE-2012-2113).
1017
10182012-06-12  Frank Warmerdam  <[email protected]>
1019
1020	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
1021
1022	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
1023
10242012-06-07  Frank Warmerdam  <[email protected]>
1025
1026	* libtiff/tif_print.c: avoid pretty printing other fields when
1027	we don't have the proper amount and type of data or if the field
1028	is actually autodefined.
1029
10302012-06-05  Frank Warmerdam  <[email protected]>
1031
1032	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
1033	ycbcrsubsampling values result in a runtime error, not just an
1034	assertion.
1035
1036	* tests/custom_dir.c: Add testing of EXIF and custom directory
1037	reading and writing.
1038
1039	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
1040	and TIFFCreateEXIFDirectory() functions.
1041
1042	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
1043	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
1044	differently.  This is to avoid using special TIFFGetField/TIFFSetField
1045	rules for these fields in non-image directories (like EXIF).
1046
10472012-06-04  Frank Warmerdam  <[email protected]>
1048
1049	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
1050	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
1051	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
1052
10532012-06-01  Frank Warmerdam  <[email protected]>
1054
1055	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
1056
1057	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
1058	http://bugzilla.maptools.org/show_bug.cgi?id=2379
1059
1060	* libtiff/tif_unix.c: use strerror() to return a more specific error message
1061	on failed open.
1062	http://bugzilla.maptools.org/show_bug.cgi?id=2341
1063
1064	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
1065	http://bugzilla.maptools.org/show_bug.cgi?id=2386
1066
1067	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
1068	for testing jpeg in tiff image decoding including the "raw" decode interface.
1069
10702012-05-31  Frank Warmerdam  <[email protected]>
1071
1072	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
1073	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
1074	sampling values.
1075
1076	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
1077
1078	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
1079	http://bugzilla.maptools.org/show_bug.cgi?id=2398
1080
10812012-05-29  Frank Warmerdam  <[email protected]>
1082
1083	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
1084	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
1085	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
1086	to get/set functions for different tags!
1087
1088	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
1089	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
1090
10912012-05-24  Frank Warmerdam  <[email protected]>
1092
1093	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
1094	accumulate" and overwrite the end by one word in at least some cases.
1095
10962012-05-23  Frank Warmerdam  <[email protected]>
1097
1098	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
1099
1100	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
1101
1102	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
1103	the same image.
1104
1105	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
1106	stripbytecounts or stripoffsets or where loading these fails.
1107
1108	* libtiff/tif_print.c: be careful about whether min/max values are singular
1109	or one per sample.
1110
1111	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
1112	May affect things like ISOSpeedRatings.
1113
1114	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
1115	in some cases.
1116
11172012-05-19  Bob Friesenhahn  <[email protected]>
1118
1119	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
1120	example for how to retreive the value of unsupported tags.
1121
11222012-03-30  Frank Warmerdam  <[email protected]>
1123
1124	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
1125	care of Tom Lane @ Red Hat.
1126
11272012-02-18  Bob Friesenhahn  <[email protected]>
1128
1129	* libtiff 4.0.1 released.
1130
1131	* Update automake used to 1.11.3.
1132
1133	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
1134	attribute specification to lessen the risk of accidental macro
1135	substitution.  Patch from Vincent Torri.
1136
11372012-01-31  Frank Warmerdam  <[email protected]>
1138
1139	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
1140	assumption tag fetching is always successful.
1141
1142	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
1143
11442012-01-22  Bob Friesenhahn  <[email protected]>
1145
1146	* configure.ac: Add support for using library symbol versioning on
1147	ELF systems with the GNU linker.  Support is enabled via
1148	--enable-ld-version-script.  Disabled by default for now until
1149	there is a decision for how to deploy a libtiff with versioned
1150	symbols after libtiff 4.0.0 was already released.
1151
11522011-12-22  Bob Friesenhahn  <[email protected]>
1153
1154	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
1155
1156	tif_win32.c.  Patch by Edward Lam.
1157
1158	* configure.ac: Add libtiff private dependency on -llzma for
1159	pkg-config.  Patch by Mark Brand.
1160	Updated Automake to 1.11.2.
1161
11622011-12-21  Bob Friesenhahn  <[email protected]>
1163
1164	* libtiff 4.0.0 released.
1165
11662011-12-08  Frank Warmerdam  <[email protected]>
1167
1168	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
1169	of _TIFFFillStriles() results (#gdal 4372)
1170
11712011-12-07  Frank Warmerdam  <[email protected]>
1172
1173	* libtiff/tif_dirread.c: fixes to deal with invalid files where
1174	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
1175
1176	* libtiff/tif_dirread.c: fix error reporting when there is no
1177	tag information struct and name (gdal #4373)
1178
11792011-10-22  Bob Friesenhahn  <[email protected]>
1180
1181	* Update GNU libtool to 2.4.2.
1182
1183	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
1184	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
1185	Deroulers.
1186
11872011-06-21  Frank Warmerdam  <[email protected]>
1188
1189	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
1190
11912011-05-31  Jim Meyering  <[email protected]>
1192
1193	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
1194	upon failure to allocate "resizeddata".
1195	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
1196	allocation failure, not before.
1197	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
1198	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
1199	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
1200	NULL-deref and possible overflow
1201	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
1202	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
1203	and set of otherwise unused local, data_is_empty.
1204	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
1205	Diagnose out-of-memory failure and return 0 rather than
1206	dereferencing NULL.
1207
12082011-05-24  Frank Warmerdam  <[email protected]>
1209
1210	* libtiff/tif_dirread.c: produce special error message for zero tag
1211	directories instead of error out on the malloc(0) failure.
1212
12132011-05-16  Frank Warmerdam  <[email protected]>
1214
1215	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
1216	related declarations as they are in active use by libraries
1217	such as libgeotiff, and work just fine.  (#2315)
1218
12192011-04-20  Frank Warmerdam  <[email protected]>
1220
1221	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
1222	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
1223	http://bugzilla.maptools.org/show_bug.cgi?id=2315
1224
1225	* libtiff/libtiff.def: add some missing (64bit) APIs.
1226	http://bugzilla.maptools.org/show_bug.cgi?id=2316
1227
12282011-04-09  Bob Friesenhahn  <[email protected]>
1229
1230	* libtiff 4.0.0beta7 released.
1231
12322011-04-09  Bob Friesenhahn  <[email protected]>
1233
1234	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
1235	the run-time target whereas target is used to specify the final
1236	output target if the package is a build tool (like a compiler),
1237	which libtiff is not.  Resolves libtiff bug 2307 "Use
1238	AC_CANONICAL_HOST macro".
1239
12402011-04-02  Bob Friesenhahn  <[email protected]>
1241
1242	* configure.ac: Support configuring TIFF_INT64_FORMAT and
1243	TIFF_UINT64_FORMAT appropriately for MinGW32.
1244
1245	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
1246	printf conventions for 64-bit types because it uses the WIN32 CRT.
1247
1248	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
1249	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
1250	printf conventions for 64-bit types because it uses the WIN32 CRT.
1251
1252	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
1253	understood by WIN32 CRT.
1254
1255	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
1256
1257	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
1258	it is much more portable.  Tmpfile is included in ISO/IEC
1259	9899:1990 and the WIN32 CRT.
1260
12612011-03-26  Frank Warmerdam  <[email protected]>
1262
1263	* tools/tiffset.c: add -d and -sd switches to allow operation on
1264	a particular directory, not just the first (jef).
1265
12662011-03-21  Frank Warmerdam  <[email protected]>
1267
1268	* libtiff/tif_thunder.c: Correct potential buffer overflow with
1269	thunder encoded files with wrong bitspersample set.  The libtiff
1270	development team would like to thank Marin Barbella and TippingPoint's
1271	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
1272	CVE-2011-1167).
1273	http://bugzilla.maptools.org/show_bug.cgi?id=2300
1274
12752011-03-10  Frank Warmerdam  <[email protected]>
1276
1277	* libtiff/tif_fax3.h: Fix to last change allowing zero length
1278	runs at the start of a scanline - needed for legal cases.
1279
12802011-03-02  Frank Warmerdam  <[email protected]>
1281
1282	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
1283	a move left.  Without this, a malicious input file can generate an
1284	indefinitely large series of runs without a0 ever reaching the right
1285	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
1286	This is a modified version of a patch proposed by Drew Yao of Apple
1287	Product Security.  It adds an unexpected() report, and disallows the
1288	equality case, since emitting a run without increasing a0 still allows
1289	buffer overrun.
1290
12912011-02-23  Frank Warmerdam  <[email protected]>
1292
1293	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
1294
1295	* tools/tiff2rgba.c: close source file on error to make leak
1296	detection easier.
1297
1298	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
1299
1300	http://bugzilla.maptools.org/show_bug.cgi?id=2295
1301
13022011-02-22  Frank Warmerdam  <[email protected]>
1303
1304	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
1305	_SUPPORT)
1306
13072011-02-18  Frank Warmerdam  <[email protected]>
1308
1309	* configure.ac, configure: Added support for --enable-chunky-strip-read
1310	configure option to enable the experimental feature from a couple
1311	months ago for reading big strips in chunks.
1312
1313	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
1314	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
1315	Implement optional support for deferring the load of strip/tile
1316	offset and size tags for optimized scanning of directories.  Enabled
1317	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
1318	#define in tif_config.h).
1319
13202011-02-11  Frank Warmerdam  <[email protected]>
1321
1322	* libtiff/tif_print.c: remove unused variable.
1323
13242011-02-09  Frank Warmerdam  <[email protected]>
1325
1326	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
1327	with non-console (popup message) builds on win32.
1328
1329	http://bugzilla.maptools.org/show_bug.cgi?id=2293
1330
13312011-01-24  Olivier Paquet  <[email protected]>
1332
1333	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
1334	tif_print.c, tiff.h, tiffiop.h} : Added support for
1335	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
1336	values for each sample. Presents the min/max of all samples by default for
1337	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
1338	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
1339	http://www.asmail.be/msg0055458208.html
1340
13412011-01-06  Frank Warmerdam  <[email protected]>
1342
1343	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
1344	maintained.
1345
1346	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
1347	for CHUNKY_STRIP_READ_SUPPORT.
1348
1349	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
1350	during JPEGPreDecode and JPEGDecode calls.
1351	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
1352	as compression formats like JPEG keep 16 lines interleaved in a sense
1353	and might need to touch	quite a bit of data.
1354
1355	http://trac.osgeo.org/gdal/ticket/3894
1356
13572011-01-03  Lee Howard <[email protected]>
1358
1359	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
1360	caused by commit on 2010-12-14.  Submitted by e-mail from
1361	Even Rouault <[email protected]>
1362
13632010-12-31  Olivier Paquet  <[email protected]>
1364
1365	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
1366	http://bugzilla.maptools.org/show_bug.cgi?id=2266
1367
13682010-12-23  Andrey Kiselev  <[email protected]>
1369
1370	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
1371	compression level parameter (preset) for Deflate and LZMA encoders,
1372	e.g "-c lzma:p1" or "-c zip:p9".
1373
1374	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
1375	(preset) in LZMAVSetField().
1376
13772010-12-18  Bob Friesenhahn  <[email protected]>
1378
1379	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
1380	Makefile.
1381
13822010-12-14  Andrey Kiselev  <[email protected]>
1383
1384	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
1385	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
1386	TIFF compression scheme LZMA reserving a new value 34925 for
1387	Compression tag. As per
1388	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
1389
13902010-12-14  Lee Howard <[email protected]>
1391
1392	* libtiff/tif_dirread.c: tolerate some cases where
1393	FIELD_COLORMAP is missing
1394	http://bugzilla.maptools.org/show_bug.cgi?id=2189
1395
13962010-12-14  Lee Howard <[email protected]>
1397
1398	* libtiff/tif_read.c: change read_ahead to tmsize_t
1399	http://bugzilla.maptools.org/show_bug.cgi?id=2222
1400
14012010-12-14  Lee Howard <[email protected]>
1402
1403	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
1404	Windows except on Cygwin
1405	http://bugzilla.maptools.org/show_bug.cgi?id=2224
1406
14072010-12-14  Lee Howard <[email protected]>
1408
1409	* tools/gif2tiff.c: fix buffer overrun
1410	http://bugzilla.maptools.org/show_bug.cgi?id=2270
1411
14122010-12-14  Lee Howard <[email protected]>
1413
1414	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
1415	to improve compatibility with various viewers
1416	submitted by e-mail from Dwight Kelly <[email protected]>
1417
14182010-12-13  Lee Howard <[email protected]>
1419
1420	* tools/fax2ps.c: be consistent with page-numbering
1421	http://bugzilla.maptools.org/show_bug.cgi?id=2225
1422
14232010-12-13  Lee Howard <[email protected]>
1424
1425	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
1426	resolves CVE-2010-2595
1427	http://bugzilla.maptools.org/show_bug.cgi?id=2208
1428
14292010-12-13  Lee Howard <[email protected]>
1430
1431	* tools/tiffcrop.c: new release by Richard Nolde
1432	http://bugzilla.maptools.org/show_bug.cgi?id=2004
1433
14342010-12-12  Lee Howard <[email protected]>
1435
1436	* tools/tiff2pdf.c: fix colors for images with RGBA
1437	interleaved data
1438	http://bugzilla.maptools.org/show_bug.cgi?id=2250
1439
14402010-12-12  Lee Howard <[email protected]>
1441
1442	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
1443	http://bugzilla.maptools.org/show_bug.cgi?id=2164
1444
14452010-12-11  Lee Howard <[email protected]>
1446
1447	* tools/tiff2pdf.c: remove invalid duplication for Lab
1448	http://bugzilla.maptools.org/show_bug.cgi?id=2162
1449
14502010-12-11  Lee Howard <[email protected]>
1451
1452	* libtiff/tif_jpeg.c: fix use of clumplines calculation
1453	http://bugzilla.maptools.org/show_bug.cgi?id=2149
1454
14552010-12-11  Lee Howard <[email protected]>
1456
1457	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
1458	http://bugzilla.maptools.org/show_bug.cgi?id=2118
1459
14602010-12-11  Lee Howard <[email protected]>
1461
1462	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
1463	  libtiff/tif_zip.c: fix build errors for VC6
1464	http://bugzilla.maptools.org/show_bug.cgi?id=2105
1465
14662010-12-11  Lee Howard <[email protected]>
1467
1468	* libtiff/tif_stream.cxx: warnings cleanup
1469	http://bugzilla.maptools.org/show_bug.cgi?id=2091
1470	* libtiff/tif_dirread.c: warnings cleanup
1471	http://bugzilla.maptools.org/show_bug.cgi?id=2092
1472
14732010-12-11  Lee Howard <[email protected]>
1474
1475	* tools/tiff2pdf.c: add fill-page option
1476	http://bugzilla.maptools.org/show_bug.cgi?id=2051
1477
14782010-12-11  Lee Howard <[email protected]>
1479
1480	* libtiff/tif_dirread.c: modify warnings
1481	http://bugzilla.maptools.org/show_bug.cgi?id=2016
1482
14832010-12-11  Lee Howard <[email protected]>
1484
1485	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
1486        http://bugzilla.maptools.org/show_bug.cgi?id=1999
1487
14882010-12-11  Lee Howard <[email protected]>
1489
1490	* tools/tiffinfoce.c: strip byte counts are uint64* now
1491
14922010-12-11  Lee Howard <[email protected]>
1493
1494        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
1495        or missing byte-count tag
1496        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
1497        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
1498
14992010-12-08  Lee Howard <[email protected]>
1500
1501        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
1502        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
1503
15042010-12-06  Lee Howard <[email protected]>
1505
1506        * libtiff/tif_open.c: Fix mode check before opening a file.
1507        http://bugzilla.maptools.org/show_bug.cgi?id=1906
1508
15092010-11-27  Bob Friesenhahn  <[email protected]>
1510
1511	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
1512	Patch by Vincent Torri.
1513
15142010-10-21  Frank Warmerdam  <[email protected]>
1515
1516	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
1517
1518	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
1519
1520	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
1521
15222010-09-25  Lee Howard <[email protected]>
1523
1524	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
1525	with additional command line options for Document Title,
1526	Document Creator, and Page Orientation
1527
15282010-07-13  Bob Friesenhahn  <[email protected]>
1529
1530	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
1531	potentially unterminated buffer due to using an exceptionally long
1532	file name.
1533
15342010-07-08  Andrey Kiselev  <[email protected]>
1535
1536	* tools/tiff2pdf.c: Fixed ID buffer filling in
1537	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
1538
15392010-07-07  Andrey Kiselev  <[email protected]>
1540
1541	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
1542	to expected value as the warning message suggests. As per bug
1543	http://bugzilla.maptools.org/show_bug.cgi?id=1963
1544
15452010-07-06  Andrey Kiselev  <[email protected]>
1546
1547	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
1548	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
1549	which should be set by value.
1550
1551	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
1552	and _TIFFFieldWithName() if the tag is not found in the tag table.
1553	This should be normal situation and returned NULL value should be
1554	properly handled by the caller.
1555
15562010-07-02  Andrey Kiselev  <[email protected]>
1557
1558	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
1559	integer type conversions. As per bug
1560	http://bugzilla.maptools.org/show_bug.cgi?id=2207
1561
1562	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
1563	WhitePoint tag as per bug
1564	http://bugzilla.maptools.org/show_bug.cgi?id=2042
1565
1566	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1567	working with YCbCr image in PickContigCase(). As per bug
1568	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1569
1570	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1571	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1572	we don't need any post-processing. That helps to reset the hook if we
1573	previously set this field to some other value and the hook was
1574	initialized accordingly. As per bug
1575	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1576
15772010-07-01  Andrey Kiselev  <[email protected]>
1578
1579	* tools/tiffgt.c: Properly check the raster buffer allocations for
1580	integer overflows. As per bug
1581	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1582
1583	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1584	upstream.
1585
1586	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1587	multiply_32() and multiply_64() functions into tif_aux.c file and
1588	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1589
15902010-06-30  Andrey Kiselev  <[email protected]>
1591
1592	* tools/tiff2pdf.c: Better generation of ID field in
1593	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1594
1595	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1596	converting JPEG encoded tiles.
1597
1598	* tools/tiff2pdf.c: Better handling of string fields, use static
1599	string buffers instead of dynamically allocated, use strncpy() instead
1600	of strcpy(), control the string lengths.
1601
16022010-06-25  Andrey Kiselev  <[email protected]>
1603
1604	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1605	referencing to uninitialized memory in some cases (e.g. when tile size
1606	set bigger than the image size).
1607
16082010-06-15  Bob Friesenhahn  <[email protected]>
1609
1610	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1611	subsampled data since tiffcrop currently doesn't support it.  Fix
1612	JPEG support.
1613
16142010-06-13  Frank Warmerdam  <[email protected]>
1615
1616	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1617
1618	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1619	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1620	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1621	size is larger.  Also, there are a bunch of places that try to
1622	memset() a malloc'd buffer before checking for malloc failure, which
1623	would result in core dump if there actually were a failure. (#2211)
1624
16252010-06-11  Bob Friesenhahn  <[email protected]>
1626
1627	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1628	avoid compiler warnings if parameter types are not sign
1629	consistent.
1630
1631	* libtiff 4.0.0alpha6 released.
1632
1633	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1634	European page size dimensions.  Added an option to allow the user
1635	to specify a custom page size on the command line.  Fix the case
1636	where a page size specified with a fractional part was being
1637	coerced to an integer by retyping the variables that define the
1638	paper size.
1639
1640	* html/index.html: Update for the 3.9.3 release.
1641
1642	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1643	YCbCr subsampled data since tiffcp currently doesn't support it.
1644	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1645
1646	* Update libtool to version 2.2.10.
1647
16482010-06-10  Bob Friesenhahn  <[email protected]>
1649
1650	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1651	multiplier is zero.
1652
16532010-06-09  Bob Friesenhahn  <[email protected]>
1654
1655	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1656	CVE-2010-1411 was not complete.
1657
1658	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1659	multiply two integers.  Returns zero if there is an integer
1660	overflow.
1661
1662	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1663	is reported when reading the input file.
1664
16652010-06-08  Bob Friesenhahn  <[email protected]>
1666
1667	* Update libtool to version 2.2.8.
1668
1669	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1670	buffer due to integer overflow in TIFFroundup() and several other
1671	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1672	fixes CVE-2010-1411.
1673
1674	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1675	result in an integer overflow. This causes TIFFroundup() to also
1676	return zero if there would be an integer overflow.
1677
1678	* contrib: Add an emacs formatting mode footer to all source files
1679	so that emacs can be effectively used.
1680
16812010-06-03  Oliver Chen Feng <[email protected]>
1682
1683	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1684	file PAGENUMBER value in sequence for users who care the page
1685	sequence, this will also prevent tiff2pdf from creating pdf file from
1686	the merged tiff file with wrong page sequence.
1687
16882010-05-08  Olivier Paquet  <[email protected]>
1689
1690	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1691	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1692	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1693	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1694	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1695
16962010-05-07  Frank Warmerdam  <[email protected]>
1697
1698	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1699	JPEGPreEncode(), not just when we want to output local tables.
1700	Otherwise the quality used during compression may not be right and
1701	might not match the tables in the tables tag.   This bug only occurs
1702	when seeking between directories in the midst of writing blocks.
1703	http://trac.osgeo.org/gdal/ticket/3539
1704
17052010-05-06  Andrey Kiselev  <[email protected]>
1706
1707	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1708	Regenerated from the source.
1709
17102010-05-05  Olivier Paquet  <[email protected]>
1711
1712	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1713	had stopped working. Also made it always print 6 floats instead of
1714	2*SamplesPerPixel.
1715	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1716	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1717	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1718	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1719
17202010-05-05  Frank Warmerdam  <[email protected]>
1721
1722	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1723	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1724
17252010-04-21  Frank Warmerdam  <[email protected]>
1726
1727	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1728	JPEGSetupEncode() is called if the tables already seem to be
1729	established.  This prevents spurious updates and rewriting of
1730	directories with jpegtables when doing updates to existing images.
1731	http://trac.osgeo.org/gdal/ticket/3539
1732
17332010-04-20  Olivier Paquet  <[email protected]>
1734
1735	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1736	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1737	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1738	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1739	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1740
17412010-04-10  Bob Friesenhahn  <[email protected]>
1742
1743	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
1744	when the tag count value is zero.  Error handling is still a
1745	regression since in 3.9.2, empty tags are skipped (with a warning)
1746	rather than returning a hard error and refusing to read the file.
1747
1748	* tools/ppm2tiff.c (main): While case for parsing comment line
1749	requires extra parenthesis to work as expected.  Reported by
1750	Thomas Sinclair.
1751
17522010-04-02  Frank Warmerdam  <[email protected]>
1753
1754	* libtiff/tif_read.c (primarily): Add support for
1755	CHUNKY_STRIP_READ_SUPPORT where large strips are
1756	read in chunks for applications using TIFFReadScanline().
1757	This is intended to make it more practical work with very
1758	large compressed one-strip files.   Feature is off by default.
1759	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
1760	http://trac.osgeo.org/gdal/ticket/3514
1761
17622010-03-31  Frank Warmerdam  <[email protected]>
1763
1764	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
1765	directories so previously placed directories will be migrated to
1766	the end of file if needed.
1767
17682010-03-30  Frank Warmerdam  <[email protected]>
1769
1770	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
1771	to support operating on strips/tiles of more than 256MB.
1772	http://trac.osgeo.org/gdal/ticket/3512
1773
17742010-03-10  Bob Friesenhahn  <[email protected]>
1775
1776	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
1777	that it is clearly a memory allocation error message, and also
1778	includes the size of the allocation request.
1779
17802010-02-22  Lee Howard  <[email protected]>
1781
1782	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
1783	the JPEG TIFF as is is not required in order to prevent it from
1784	being unused and filled with invalid data.  (Leave it to be
1785	generated by later activity.)
1786	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1787	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
1788	data rather than skipping them.  This fixes the ability to view in
1789	Acrobat Reader, Evince, and Ghostscript.
1790	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1791	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
1792	strips.
1793	http://bugzilla.maptools.org/show_bug.cgi?id=2029
1794
17952009-12-03  Frank Warmerdam  <[email protected]>
1796
1797	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
1798	Made so that when working with downsampled images a stub function
1799	reporting an error is used for tif_decoderow.  We cannot meaningfully
1800	support reading scanlines in this situation.  (#1936)
1801
1802	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
1803	resetting of the upsampling values (gdal:#3259).
1804	http://bugzilla.maptools.org/show_bug.cgi?id=1936
1805
18062009-11-30  Frank Warmerdam  <[email protected]>
1807
1808	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
1809	tools/ras2tiff.c: Fix resource leaks on error.
1810	http://bugzilla.maptools.org/show_bug.cgi?id=2121
1811
1812	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
1813	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
1814	of as a custom(generic) field to avoid a potential reentrancy problem.
1815	http://bugzilla.maptools.org/show_bug.cgi?id=2125
1816
1817	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
1818	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
1819	const, and display_sRGB static and const.
1820	http://bugzilla.maptools.org/show_bug.cgi?id=2124
1821
18222009-11-04  Bob Friesenhahn  <[email protected]>
1823
1824	* libtiff 4.0.0alpha5 released.
1825
18262009-11-03  Bob Friesenhahn  <[email protected]>
1827
1828	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
1829	version has undergone substantial testing with arbitrary sample
1830	bit depths.  Also eliminates GCC compilation warnings.
1831
18322009-11-02  Bob Friesenhahn  <[email protected]>
1833
1834	* port/libport.h: Add extern declarations for getopt standard
1835	globals.
1836
18372009-10-31  Bob Friesenhahn  <[email protected]>
1838
1839	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
1840	noticed in 64-bit build of libtiff with Visual Studio 2005.
1841	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
1842	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
1843
1844	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
1845	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
1846	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
1847	http://bugzilla.maptools.org/show_bug.cgi?id=2068
1848
18492009-10-29  Bob Friesenhahn  <[email protected]>
1850
1851	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
1852	pointer" warnings.
1853
18542009-10-28  Bob Friesenhahn  <[email protected]>
1855
1856	* html/tools.html: Add manual page links, and a summary
1857	description of tiffcrop.
1858
18592009-10-07  Bob Friesenhahn  <[email protected]>
1860
1861	* configure.ac: x86_64 should use the same fill order as i386.
1862
18632009-09-24  Bob Friesenhahn  <[email protected]>
1864
1865	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
1866	Nolde.  Major updates to add significant functionality for reading
1867	and writing tile based images with bit depths not a multiple of 8
1868	which cannot be handled by tiffcp.
1869
18702009-09-03  Bob Friesenhahn  <[email protected]>
1871
1872	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
1873	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
1874	"Bug 2090 - OJPEG crash with libjpeg v7".
1875	http://bugzilla.maptools.org/show_bug.cgi?id=2090
1876
18772009-09-03  Frank Warmerdam  <[email protected]>
1878
1879	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
1880	interface when stoponerror is set.
1881	http://bugzilla.maptools.org/show_bug.cgi?id=2071
1882
18832009-08-30  Bob Friesenhahn  <[email protected]>
1884
1885	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
1886	fix build with gcc when using the "-Wformat
1887	-Werror=format-security" flags.
1888
18892009-08-29  Bob Friesenhahn  <[email protected]>
1890
1891	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
1892	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
1893	utilities tests.
1894
18952009-08-28  Bob Friesenhahn  <[email protected]>
1896
1897	* tools/tiffinfo.c: tiffinfo should return error status to the
1898	caller.  Register a private error callback to accomplish that.
1899
1900	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
1901	PNM formats so that we will be able to test more of the tools.
1902	While adding these test images I notice that bmp2tiff and gif2tiff
1903	only support ancient versions of their respective formats.
1904
19052009-08-27  Bob Friesenhahn  <[email protected]>
1906
1907	* libtiff 4.0.0alpha4 released.
1908
1909	* HOWTO-RELEASE: Improved release instructions.
1910
19112009-08-24  Bob Friesenhahn  <[email protected]>
1912
1913	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
1914	fixes for "Bug 2023 - nroff errors in manual pages".
1915	http://bugzilla.maptools.org/show_bug.cgi?id=2023
1916
1917	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
1918	CVE-2009-2347 libtiff: integer overflows in various inter-color
1919	space conversion tools".
1920	http://bugzilla.maptools.org/show_bug.cgi?id=2079
1921
1922	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
1923	Berkenbilt for "Bug 2024 - possible null pointer dereference with
1924	one-line fix".
1925	http://bugzilla.maptools.org/show_bug.cgi?id=2024
1926
1927	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
1928	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
1929	segfault after setting tdir_tag = IGNORE".
1930	http://bugzilla.maptools.org/show_bug.cgi?id=1895
1931
19322009-08-23  Bob Friesenhahn  <[email protected]>
1933
1934	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
1935	tiffcrop.sh into a collection of many specific tests.  Re-wrote
1936	all of the existing tests to be based on some simple shell
1937	functions.  Make distcheck works again.
1938
1939	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
1940	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
1941	tests under valgrind.
1942
19432009-08-21  Bob Friesenhahn  <[email protected]>
1944
1945	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
1946	build.
1947
1948	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
1949	actually activated since it needed to be enabled in this
1950	Makefile.am.  Also activated parallel-tests mode since it offers
1951	useful features such as per-test .log files and a summary test
1952	report .log file.
1953
19542009-08-20  Bob Friesenhahn  <[email protected]>
1955
1956	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
1957	libtool 2.2.6.  Enabled support for silent build rules
1958	(--enable-silent-rules or 'make V=0') and colorized tests.
1959
1960	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
1961
19622009-06-30  Frank Warmerdam  <[email protected]>
1963
1964	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
1965
1966	* tools/tiffcp.c: add -c sgilog support.
1967
1968	* libtiff/tif_luv.c: correct return codes from encoderow to be
1969	1 on success instead of zero.
1970	http://bugzilla.maptools.org/show_bug.cgi?id=2069
1971
1972	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
1973	#1085 for a better underflow fix that errors properly.
1974	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1975	http://bugzilla.maptools.org/show_bug.cgi?id=1985
1976
19772009-06-26  Frank Warmerdam  <[email protected]>
1978
1979	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
1980	fails on oddly sized 12bit jpeg compressed ycbcr images.
1981
19822009-06-22  Frank Warmerdam  <[email protected]>
1983
1984	* libtiff/tif_lzw.c: Fix buffer underflow bug.
1985	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1986
19872009-06-21  Frank Warmerdam  <[email protected]>
1988
1989	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
1990	for dual mode 8/12 bit jpeg support.
1991
19922009-06-03  Frank Warmerdam  <[email protected]>
1993
1994	* libtiff/tif_write.c: do not override the planar configuration to be
1995	contig for one sample files if planar configuration is already set.
1996	http://bugzilla.maptools.org/show_bug.cgi?id=2057
1997
19982009-06-02  Frank Warmerdam  <[email protected]>
1999
2000	* libtiff/libtiff.def: Add TIFFUnsetField.
2001
20022009-05-03  Frank Warmerdam  <[email protected]>
2003
2004	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
2005	error reports to use "%s" as format string.
2006	http://trac.osgeo.org/gdal/ticket/2976
2007
20082009-03-12  Frank Warmerdam  <[email protected]>
2009
2010	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
2011	for some codecs (#2020).
2012
20132009-02-12  Frank Warmerdam  <[email protected]>
2014
2015	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
2016	http://bugzilla.maptools.org/show_bug.cgi?id=2005
2017
20182009-02-09  Frank Warmerdam  <[email protected]>
2019
2020	* libtiff/tif_dirread.c: Improve allocation safety when allocated
2021	buffer for large tags.  (#1998)  Related to (#1993)
2022
20232009-02-06  Frank Warmerdam  <[email protected]>
2024
2025	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
2026	test suite should pass.
2027
20282009-02-05  Frank Warmerdam  <[email protected]>
2029
2030	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
2031	but at the 2GB boundary to avoid overflow on 32bit systems.
2032	http://bugzilla.maptools.org/show_bug.cgi?id=1993
2033
2034	* libtiff/tif_dirread.c: Remove some assertions that blow due to
2035	corrupt files rather than in response to library internal
2036	inconsistencies.
2037	http://bugzilla.maptools.org/show_bug.cgi?id=1995
2038	http://bugzilla.maptools.org/show_bug.cgi?id=1991
2039
2040	* libtiff/tif_dirread.c: Fixed testing for failed result from
2041	TIFFReadDirectoryFindFieldInfo().
2042	http://bugzilla.maptools.org/show_bug.cgi?id=1992
2043
20442009-01-23  Frank Warmerdam  <[email protected]>
2045
2046	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
2047	http://bugzilla.maptools.org/show_bug.cgi?id=1911
2048
2049	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
2050
2051	http://bugzilla.maptools.org/show_bug.cgi?id=1924
2052
2053	* tools/tiffcrop.c: initialize xres/yres values.
2054
2055	* test/*.sh - default ${srcdir} to local directory.
2056
2057	* test/common.sh - start verbose mode after common settings.
2058
2059	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
2060	avoid type mismatches on different platforms.
2061	http://bugzilla.maptools.org/show_bug.cgi?id=1889
2062
20632009-01-22  Frank Warmerdam  <[email protected]>
2064
2065	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
2066	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
2067
2068	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
2069	defined, primarily to reduce prototype warnings on windows.
2070
2071	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
2072	about unused parameters, and uninitialized variables.
2073
20742009-01-21  Bob Friesenhahn  <[email protected]>
2075
2076	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
2077	order to trace full execution detail while executing the test suite.
2078
20792009-01-20  Frank Warmerdam  <[email protected]>
2080
2081	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
2082
20832009-01-20  Bob Friesenhahn  <[email protected]>
2084
2085	* test/Makefile.am (CLEANFILES): Make sure that test output files
2086	are removed by 'make clean'
2087
2088	* Update autotools for 4.0.0 beta3
2089
2090	* 4.0.0 beta3 produced.
2091
20922009-01-12  Bob Friesenhahn  <[email protected]>
2093
2094	* test/tiffcrop.sh: New test script for tiffcrop from Richard
2095	Nolde.
2096
2097	* tools/tiff2ps.c: Remove spurious message to stderr.
2098
20992009-01-11  Bob Friesenhahn  <[email protected]>
2100
2101	* tools/tiff2ps.c: Incorporated significant functionality update
2102	from Richard Nolde.  In particular, support for rotating the image
2103	by 90, 180, 270, and 'auto' has been added.
2104
2105	* man/tiffcrop.1: Incorporated documentation updates from Richard
2106	Nolde.
2107
2108	* tools/tiffcrop.c: Incorporated significant functionality update
2109	from Richard Nolde.
2110
21112008-12-31  Bob Friesenhahn  <[email protected]>
2112
2113	* libtiff/tiffio.h: GCC will now validate format specifications
2114	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
2115	TIFFWarningExt() in order to reveal bugs.
2116
2117	* Many fixes throughout to work better as a 64-bit build.
2118
21192008-12-30  Bob Friesenhahn  <[email protected]>
2120
2121	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
2122	tags now require 64-bit parameter rather than 32-bit.
2123
2124	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
2125	64-bit values.
2126
2127	* tools/thumbnail.c: Eliminate crash noticed while running test
2128	suite.
2129
21302008-12-29  Bob Friesenhahn  <[email protected]>
2131
2132	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
2133	Initialize stack variables to avoid compiler warning.
2134
2135	* tools/tiffinfoce.c (main): Use toff_t for offset type when
2136	retrieving offset of EXIF IFD.
2137
2138	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
2139	TIFFClientOpen() callback and other external function definitions.
2140
2141	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
2142	type now.  Fixes crash when dumping files containing an EXIF IFD.
2143
2144	* m4/libtool.m4: Update to libtool 2.2.6.
2145
21462008-12-21  Frank Warmerdam  <[email protected]>
2147
2148	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
2149
2150	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
2151	strip for the last partial strip in a jpeg compressed file.
2152	http://bugzilla.maptools.org/show_bug.cgi?id=1981
2153
21542008-10-29  Frank Warmerdam  <[email protected]>
2155
2156	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
2157	we take the shortcut to only update the strip/tile offsets in place.
2158	http://trac.osgeo.org/gdal/ticket/2621
2159
21602008-10-21  Andrey Kiselev  <[email protected]>
2161
2162	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
2163	the older versions retained).
2164
21652008-10-09  Frank Warmerdam  <[email protected]>
2166
2167	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
2168	IPP enabled version of libjpeg from Intel.
2169	http://bugzilla.maptools.org/show_bug.cgi?id=1951
2170
21712008-09-05  Andrey Kiselev  <[email protected]>
2172
2173	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
2174	Required for libtiff 4.0.
2175
2176	* tools/tiffsplit.c: Use dynamically allocated array instead of static
2177	when constructing output file names.
2178
21792008-09-03  Andrey Kiselev  <[email protected]>
2180
2181	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
2182	doing the filename/path construction.
2183
2184	* tools/tiff2pdf.c: More appropriate format string in
2185	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
2186
2187	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
2188
2189	http://bugzilla.maptools.org/show_bug.cgi?id=1929
2190
2191	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
2192	CVE-2008-2327 security issue.
2193
21942008-09-01  Frank Warmerdam  <[email protected]>
2195
2196	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
2197
2198	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
2199	depending on whether the file is bigtiff or classic tiff.
2200	http://bugzilla.maptools.org/show_bug.cgi?id=1917
2201
22022008-08-12  Edward Lam  <[email protected]>
2203
2204	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
2205	consistent (__int64) casting when testing if _lseeki64 has
2206	successfully seeked as requested.  This is necessary for large
2207	file support to work since off_t is only 32-bit.
2208
22092008-07-29  Frank Warmerdam  <[email protected]>
2210
2211	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
2212	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
2213	with control logic to return runtime errors (c/o Even Rouault) (#1927).
2214
22152008-06-17  Frank Warmerdam  <[email protected]>
2216
2217	* tools/tiffcrop.c: Fix some portability problems.
2218
2219	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
2220	used in tif_jpeg.c.
2221
2222	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
2223	as TIFFOpen().
2224
22252008-06-01  Frank Warmerdam  <[email protected]>
2226
2227	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
2228	like Sparc/Solaris.
2229	http://bugzilla.maptools.org/show_bug.cgi?id=1892
2230
22312008-05-27  Frank Warmerdam  <[email protected]>
2232
2233	* libtiff.def: Add TIFFFindField
2234	http://bugzilla.maptools.org/show_bug.cgi?id=1891
2235
22362008-05-26  Frank Warmerdam  <[email protected]>
2237
2238	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
2239
2240	* li2008-04-15  Andrey Kiselev  <[email protected]>
2241
2242btiff/tif_win32.c: Replace custom Win32 memory api with generic
2243	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
2244	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
2245
2246	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
2247	in windows version (care of Edward Lam).
2248
22492008-05-24  Frank Warmerdam  <[email protected]>
2250
2251	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
2252	compression codec codes.
2253
2254	* tif_dirwrite.c: fix potential memory leak.
2255
2256	* tif_dirread.c: Fix unchecked malloc result.
2257
22582008-05-24  Bob Friesenhahn  <[email protected]>
2259
2260	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
2261	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
2262	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
2263	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
2264	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
2265	suggestions from Lee Howard posted to the tiff list on 13 Sep
2266	2007.
2267
22682008-05-23  Frank Warmerdam  <[email protected]>
2269
2270	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
2271	possible runtime problem reported by coverity.
2272
2273	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
2274
2275	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
2276	http://bugzilla.maptools.org/show_bug.cgi?id=1888
2277
2278	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
2279
2280	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
2281
2282	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
2283	Cleanup scanline allocation to avoid coverity warning.
2284
2285	* tools/thumbnail.c: Check for TIFFOpen() failure.
2286
22872008-05-18  Frank Warmerdam  <[email protected]>
2288
2289	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
2290	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
2291	why this is needed.
2292
22932008-05-09  Bob Friesenhahn  <[email protected]>
2294
2295	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
2296	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
2297
22982008-04-15  Andrey Kiselev  <[email protected]>
2299
2300	* test/: Test suite updated. Everything is passed now.
2301
2302	* libtiff/tif_dirinfo.c: Fixed description of the
2303	TIFFTAG_NUMBEROFINKS tag.
2304
23052008-04-14  Andrey Kiselev  <[email protected]>
2306
2307	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
2308	Get rid of some of "dereferencing type-punned" warnings by converting
2309	tdir_offset field of TIFFDirEntry structure into union.
2310
23112008-04-10  Andrey Kiselev  <[email protected]>
2312
2313	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
2314	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
2315	from the public interface. Type of its 'count' parameter changed
2316	from uint32 to tmsize_t.
2317
2318	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
2319	of the tiff structure have the size_t type instead of uint32.
2320
23212008-04-09  Andrey Kiselev  <[email protected]>
2322
2323	* tools/tiffdump.c: Added support for MSVS 6.0.
2324
2325	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
2326	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
2327	point values on MSVS 6.0 platform.
2328
23292008-03-14  Frank Warmerdam  <[email protected]>
2330
2331	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
2332	TIFFReadDirEntryArray() since they are interfering with seemingly
2333	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
2334
23352008-02-09  Joris Van Damme  <[email protected]>
2336
2337	* tif_dirread.c: Added handling for the case of number of values for
2338	PageNumber tag different from 2 (previously resulted in an assert
2339	indicating lack of handling and was forgotten about)
2340
23412008-02-01  Frank Warmerdam  <[email protected]>
2342
2343	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
2344	the actual jpeg data stream if the first strip/tile has zero size.
2345	This is the case when GDAL creates a new file with zero sizes, closes
2346	and reopens it.
2347
23482008-01-07  Frank Warmerdam  <[email protected]>
2349
2350	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
2351
23522008-01-01  Frank Warmerdam  <[email protected]>
2353
2354	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
2355
2356	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
2357	targets.
2358
2359	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
2360	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
2361	(x64).
2362
2363	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
2364	and TIFFFieldWithName() now return TIFFField pointers instead of
2365	TIFFFieldInfo pointers.
2366
2367	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
2368	exist. This makes it compile again on Windows
2369
2370	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
2371	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
2372
2373	* test/rewrite_tag.c: New test for TIFFRewriteField().
2374
23752007-12-31  Frank Warmerdam  <[email protected]>
2376
2377	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
2378	rewrites one field "on disk" updating an existing directory
2379	entry.  Lots of limitations still...
2380
2381	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
2382	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
2383	the strip offset/size values are dirty but nothing else about the
2384	directory is dirty.  In flush handle "just stripmaps dirty" as a
2385	special case that just rewrites these values without otherwise
2386	modifying the directory on disk using TIFFRewriteField().
2387
2388	We also modify logic so that in update mode the directory is not
2389	marked dirty on read, but only when something is changed.  This
2390	means we need to keep track of updates to the stripmap stuff in
2391	TIFFAppendToStrip().
2392
23932007-12-10  Frank Warmerdam  <[email protected]>
2394
2395	* tif_jpeg.c: Improve ability to switch between encoding and decoding
2396	in the jpeg code (gdal bug #2033).
2397
23982007-11-23  Frank Warmerdam  <[email protected]>
2399
2400	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
2401	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
2402	rawcp/rawcc buffer are for writing and thus may require flushing.
2403	Necessary to distinguish whether they need to be written to disk when
2404	in mixed read/write mode and doing a mixture of writing followed by
2405	reading.  http://trac.osgeo.org/gdal/ticket/1758
2406
24072007-11-23  Andrey Kiselev  <[email protected]>
2408
2409	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
2410	from Alexey Chupahin.
2411
24122007-11-02  Frank Warmerdam  <[email protected]>
2413
2414	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
2415	establishing if an existing tile can be rewritten to the same location
2416	by comparing the current size to all the other blocks in the same
2417	directory.  This is dangerous in many situations and can easily
2418	corrupt a file.  (observed in esoteric GDAL situation that's hard to
2419	document).  This change involves leaving the stripbytecount[] values
2420	unaltered till TIFFAppendToStrip().  Now we only write a block back
2421	to the same location it used to be at if the new data is the same
2422	size or smaller - otherwise we move it to the end of file.
2423
2424	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
2425	data when writing the directory just because we have BEENWRITING at
2426	some point in the past.  This was causing odd junk to be written out
2427	in a tile of data when a single tile had an interleaving of reading
2428	and writing with reading last.  (highlighted by gdal
2429	autotest/gcore/tif_write.py test 7.
2430
2431	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
2432	modifying callers buffer.
2433	http://trac.osgeo.org/gdal/ticket/1965
2434
2435	* tif_predict.c/h: more fixes related to last item, keeping a
2436	distinct pfunc for encode and decode cases as these were getting
2437	mixed up sometimes.
2438	http://trac.osgeo.org/gdal/ticket/1948
2439
24402007-11-01  Frank Warmerdam  <[email protected]>
2441
2442	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
2443	predictor based encoding and decoding works in read-write update
2444	mode properly.
2445	http://trac.osgeo.org/gdal/ticket/1948
2446
24472007-10-24  Joris Van Damme  <[email protected]>
2448
2449	* tif_dirread.c: Fixed problem with bogus file triggering
2450	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
2451	ChopUpSingleUncompressedStrip
2452
24532007-10-22  Joris Van Damme  <[email protected]>
2454
2455	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
2456	at best, access violation at worst, when subsampled JPEG compressed imagery
2457	is decoded without the JPEG_COLORMODE feature
2458
24592007-10-11  Frank Warmerdam  <[email protected]>
2460
2461	* html/index.html: Update "people responsible" section.
2462
24632007-10-05  Frank Warmerdam  <[email protected]>
2464
2465	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
2466	as reported on the mailing list.
2467
24682007-10-01  Joris Van Damme  <[email protected]>
2469
2470	* changed some more incorrect %lud printf flags to %lu
2471
24722007-09-29  Joris Van Damme  <[email protected]>
2473
2474	* tif_dirread.c: Strip chopping interfered badly with uncompressed
2475	subsampled images because it tried to divide subsampled rowblocks,
2476	leading to all sorts of errors throughout the library for these
2477	images. Fixed by making strip chopping divide in row counts that
2478	are a multiple of vertical subsampling value.
2479
24802007-09-28  Joris Van Damme  <[email protected]>
2481
2482	* tif_dirread.c: Logical cast working around compiler warning
2483
2484	* tif_read.c: Correction of some error flags and parameter lists
2485
24862007-09-27  Joris Van Damme  <[email protected]>
2487
2488	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
2489	when dealing with large bitspersample values, shutting up purification
2490	tools that warn about truncation, though it remains incorrect and
2491	indicates a conceptual problem there.
2492
2493	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
2494	of first IFD) to proper place because it badly interfered with memory
2495	mapping, resulting in mapping flag even with dummy mapping functions
2496	that returned 0 whilst at the same time the mapping tif_size wasn't
2497	set, thus resulting in continuous incorrect beyond-eof errors.
2498
24992007-09-24  Joris Van Damme  <[email protected]>
2500
2501	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
2502	inconsistent use of const in tiffFields and exifFields definition
2503
25042007-09-20  Frank Warmerdam  <[email protected]>
2505
2506	* tif_dirwrite.c: Always write tile/strip offsets and sizes
2507	using LONG8 type when output format is BigTIFF.  The
2508	TIFFWriteDirectoryTagLongLong8Array() function was restructured
2509	accordingly.
2510
2511	* tif_dirread.c: Improvements to error reporting text in
2512	TIFFFetchDirectory().
2513
25142007-09-19  Bob Friesenhahn  <[email protected]>
2515
2516	* test/images: Added a small collection of test images for use by
2517	test programs and scripts.
2518	* test/tiffinfo.sh: A trivial example test script.
2519	* test/common.sh: Added small script for setting the environment
2520	used by script-based tests.
2521
25222007-08-24  Frank Warmerdam  <[email protected]>
2523
2524	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
2525	zero when writing directory contents to preserve the ability to
2526	rewrite directories in place, even in the middle of a directory
2527	chain.
2528
2529	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
2530	definitions that are missing.  Existing definitions are silently
2531	ignored.
2532
2533	* tif_dirread.c: Add runtime error for fields for which no definition
2534	is found (in addition to an assert for developers) in
2535	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
2536	prudent.
2537
25382007-08-10  Joris Van Damme  <[email protected]>
2539
2540	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
2541	from _TIFFRGBAImage structure to revert unwanted ABI change.
2542
25432007-08-10  Joris Van Damme  <[email protected]>
2544
2545	* libtiff/tif_win32.c: use SetFilePointer instead of
2546	SetFilePointerEx, as per bug
2547
2548	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
2549
25502007-07-19  Andrey Kiselev  <[email protected]>
2551
2552	* libtiff/tif_stream.cxx: Put all callback functions declarations
2553	inside extern "C" block.
2554
2555	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
2556	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
2557	formatter instead of "%lld" with MSVC compiler.
2558
2559	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
2560	_TIFFUInt64ToDouble() functions.
2561
25622007-07-18  Andrey Kiselev  <[email protected]>
2563
2564	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
2565	integer constants.
2566
2567	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2568	remove tif_config.h/tiffconf.h during cleaning. As per bug
2569
2570	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2571
2572	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2573
2574	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2575
25762007-07-13  Andrey Kiselev  <[email protected]>
2577
2578	* libtiff 4.0.0alpha released.
2579
25802007-07-12  Andrey Kiselev  <[email protected]>
2581
2582	* tools/tiff2pdf.c: Added missed extern optind as per bug
2583
2584	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2585
2586	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2587	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2588	extending scheme completed.
2589
25902007-07-11  Bob Friesenhahn  <[email protected]>
2591
2592	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2593	use standard C++ library size types and attempt to detect overflow
2594	cases.
2595
25962007-07-08  Andrey Kiselev  <[email protected]>
2597
2598	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2599	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2600	tag extending scheme. Use the new scheme everywhere.
2601
2602	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2603	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2604	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2605	TIFFFIeldInfo structure replaced with TIFFField structure.
2606	TIFFFieldInfo retained for the backward compatibility.
2607
26082007-07-05  Bob Friesenhahn  <[email protected]>
2609
2610	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2611	defined.
2612
26132007-07-04  Andrey Kiselev  <[email protected]>
2614
2615	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2616	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2617	removed.
2618
2619	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2620	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2621	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2622	These tags are not codec-specific and relate to image content, so
2623	process them as other normal tags.
2624
2625	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2626	public tiffio.h to private tif_dir.h.
2627
2628	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2629	outdated.
2630
26312007-07-03  Andrey Kiselev  <[email protected]>
2632
2633	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2634	tif_win3.c}: Obsoleted portability stuff removed.
2635
2636	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2637
2638	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2639
2640	Patch from William Bader.
2641
2642	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2643	significant upgrade of the whole utility as per bug
2644
2645	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2646
2647	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2648	PDF file using TIFFClientOpen() machinery as it is implemented
2649	by Leon Bottou.
2650
26512007-06-26  Bob Friesenhahn  <[email protected]>
2652
2653	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2654	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2655	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2656	allow returning -1 for errors.
2657	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2658
26592007-06-25  Bob Friesenhahn  <[email protected]>
2660
2661	* port/strtoull.c: New porting function in case strtoull() is not
2662	available on the target system.
2663	* configure.ac: Add configure support for determining sized types
2664	in a portable way and performing necessary substitutions in
2665	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2666	definitions.
2667
26682007-04-27  Andrey Kiselev  <[email protected]>
2669
2670	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2671
2672	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2673
26742007-04-07  Andrey Kiselev  <[email protected]>
2675
2676	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2677	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2678	tif_predict.c, tif_zip.c}: Finally fix bug
2679
2680	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2681
2682	by introducing _TIFFMergeFieldInfo() returning integer error status
2683	instead of void in case of problems with field merging (e.g., if the
2684	field with such a tag already registered). TIFFMergeFieldInfo() in
2685	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2686	check returned value.
2687
26882007-04-07  Frank Warmerdam  <[email protected]>
2689
2690	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2691	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2692
26932007-04-06  Frank Warmerdam  <[email protected]>
2694
2695	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2696	will convert from decompressor to compressor or compress to decompress
2697	if required by the force arguments.  This works around a problem in
2698	where the JPEGFixupTestSubsampling() may cause a decompressor to
2699	be setup on a directory when later a compressor is required with the
2700	force flag set.  Occurs with the addtiffo program for instance.
2701
27022007-04-06  Andrey Kiselev  <[email protected]>
2703
2704	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2705	functionality from Richard Nolde. As per bug
2706
2707	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2708
27092007-03-28  Frank Warmerdam  <[email protected]>
2710
2711	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2712
27132007-03-17  Joris Van Damme  <[email protected]>
2714
2715	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2716
27172007-03-07  Joris Van Damme  <[email protected]>
2718
2719	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2720	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2721	factor. This bug is mentioned in:
2722	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2723	http://www.asmail.be/msg0054766825.html
2724
27252007-03-07  Joris Van Damme  <[email protected]>
2726
2727	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2728
2729	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2730	unused arguments by standard C indication for the same
2731
27322007-02-27  Andrey Kiselev  <[email protected]>
2733
2734	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2735	counters in TIFFFetchData(). Should finally fix the issue
2736
2737	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2738
27392007-02-24  Andrey Kiselev  <[email protected]>
2740
2741	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
2742	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2743
2744	* libtiff/tif_dirread.c: Added special function to handle
2745	SubjectDistance EXIF tag as per bug
2746
2747	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
2748
2749	* tools/tiff2pdf.c: Do not assume inches when the resolution units
2750	do not specified. As per bug
2751
2752	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2753
2754	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
2755	it was set as infinite. As per bug
2756
2757	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2758
2759	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
2760	by Richard Nolde. As per bug
2761
2762	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
2763
27642007-02-22  Andrey Kiselev  <[email protected]>
2765
2766	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
2767	ExtraSamples == 999 produced by Corel Draw. As per bug
2768
2769	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
2770
2771	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
2772	changed from tsize_t to uint32 to be able to work with data arrays
2773	larger than 2GB. Fixes bug
2774
2775	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2776
2777	Idea submitted by Matt Hancher.
2778
27792007-01-31  Andrey Kiselev  <[email protected]>
2780
2781	* tools/tif2rgba.c: This utility does not work properly on big-endian
2782	architectures. It was fixed including the bug
2783
2784	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
2785
27862007-01-15  Mateusz Loskot <[email protected]>
2787
2788	* Submitted libtiff port for Windows CE platform
2789	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
2790	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
2791	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
2792	functons from tif_win32.c.
2793	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
2794	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
2795	standard header files for Windows CE build.
2796	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
2797
27982006-11-19  Frank Warmerdam  <[email protected]>
2799
2800	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
2801	we move a strip.
2802	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
2803
28042006-10-13  Andrey Kiselev  <[email protected]>
2805
2806	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
2807	in Gentoo bug ():
2808
2809	http://bugs.gentoo.org/show_bug.cgi?id=142383
2810
2811	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
2812	Though it is still far from the state of being working and useful.
2813
28142006-10-12  Andrey Kiselev  <[email protected]>
2815
2816	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
2817	method.
2818
2819	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
2820	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
2821
2822	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
2823	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
2824
2825	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
2826	vulnerabilities, reported in Gentoo bug ():
2827
2828	http://bugs.gentoo.org/show_bug.cgi?id=142383
2829
28302006-09-28  Andrey Kiselev  <[email protected]>
2831
2832	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
2833	vulnerabilities, as per	Gentoo bug ():
2834
2835	http://bugs.gentoo.org/show_bug.cgi?id=142383
2836
28372006-09-27  Frank Warmerdam  <[email protected]>
2838
2839	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
2840	encoding and decoding on the same read-write TIFF handle.  The LZW
2841	code can now maintain encode and decode state at the same time. The
2842	ZIP code will switch back and forth as needed.
2843	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
2844
28452006-09-20  Frank Warmerdam  <[email protected]>
2846
2847	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
2848	tif_config.vc.h for easier identification by folks using an IDE.
2849
28502006-07-25  Frank Warmerdam  <[email protected]>
2851
2852	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
2853
28542006-07-19  Frank Warmerdam  <[email protected]>
2855
2856	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
2857	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
2858	to bug report by Peng Gao with black strip at bottom of images.
2859
28602006-07-12  Frank Warmerdam  <[email protected]>
2861
2862	* tif_dirwrite.c: make sure to use uint32 for wordcount in
2863	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
2864	It already seems to have been done for other field types.  Needed
2865	for "tiffset" on files with geotiff ascii text.
2866
28672006-07-04  Bob Friesenhahn  <[email protected]>
2868
2869	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
2870	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
2871	its use does not appear to be required, so use it only when it is
2872	available.
2873
28742006-06-24  Andrey Kiselev  <[email protected]>
2875
2876	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
2877
2878	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
2879	function TIFFFetchDirectory() avoiding code duplication in
2880	TIFFReadDirectory() and TIFFReadCustomDirectory().
2881
28822006-06-19  Frank Warmerdam  <[email protected]>
2883
2884	* tools/tiff2pdf.c: Fix handling of -q values.
2885	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
2886
28872006-06-17  Frank Warmerdam  <[email protected]>
2888
2889	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
2890	files.  Modified TIFFReadDirectory() to not invoke
2891	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
2892	but one of them is zero.
2893	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
2894
28952006-06-08  Andrey Kiselev  <[email protected]>
2896
2897	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
2898	checking code in the separate function TIFFCheckDirOffset().
2899
2900	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
2901
2902	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
2903
2904	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
2905
2906	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
2907
2908	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
2909
2910	* tools/tiff2pdf.c: Fixed buffer overflow condition in
2911	t2p_write_pdf_string() as per bug
2912
2913	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
2914
29152006-06-07  Andrey Kiselev  <[email protected]>
2916
2917	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
2918	support for JBIG compression scheme (34661 code) contributed by Lee
2919	Howard. As per bug
2920
2921	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
2922
2923	* configure, configure.ac: OJPEG support enabled by default.
2924
2925	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
2926
29272006-06-03  Bob Friesenhahn  <[email protected]>
2928
2929	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
2930	TIFFPrintDirectory().  Joris Van Damme authored the fix.
2931
29322006-04-21  Andrey Kiselev  <[email protected]>
2933
2934	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
2935	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
2936
2937	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
2938	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
2939	Added support for OpenVMS by Alexey Chupahin, [email protected].
2940
29412006-04-20  Andrey Kiselev  <[email protected]>
2942
2943	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
2944	Properly set the binary mode for stdin stream as per bug
2945	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
2946
2947	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
2948	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
2949	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
2950	tiffset.1}: Improvements in page formatting as per bug
2951	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
2952
2953	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
2954	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
2955
29562006-04-18  Frank Warmerdam  <[email protected]>
2957
2958	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
2959	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
2960
29612006-04-12  Joris Van Damme  <[email protected]>
2962
2963	* libtiff/tif_getimage.c: Added support for planarconfig separate
2964	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
2965
29662006-04-11  Joris Van Damme  <[email protected]>
2967
2968	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
2969	- Conversion of unassociated alpha to associated alpha now done with
2970	  more performant LUT, and calculation more correct
2971	- Conversion of 16bit data to 8bit data now done with
2972	  more performant LUT, and calculation more correct
2973	- Bugfix of handling of 16bit RGB with unassociated alpha
2974
29752006-04-11  Joris Van Damme  <[email protected]>
2976
2977	* libtiff/tif_getimage.c:
2978	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
2979	  buffer for alpha strile and filled it, only to never read it back.
2980	  Removed allocation and fill.
2981	- Minor rename of vars in gtTileSeparate and gtStripSeparate
2982	  anticipating planned functionality extension
2983
29842006-04-08  Joris Van Damme  <[email protected]>
2985
2986	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
2987	and pickTileSeparateCase to PickSeparateCase as both work on strips as
2988	well
2989
2990	* libtiff/tif_getimage.c: moved img->get selection from
2991	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
2992	logical hook for planned functionality extension
2993
29942006-04-08  Joris Van Damme  <[email protected]>
2995
2996	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
2997	of inappropriate use of jpeg_abort instead of jpeg_destroy
2998
29992006-04-07  Joris Van Damme  <[email protected]>
3000
3001	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
3002	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
3003	on subsampled images - this ought to get sorted when we feel brave
3004	enough to replace TIFFScanlineSize alltogether
3005
3006	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
3007
30082006-04-04  Joris Van Damme  <[email protected]>
3009
3010	* libtiff/tiffio.h: added new type tstrile_t
3011
3012	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
3013	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
3014	toff_t*
3015
3016	* libtiff/tif_ojpeg.c: totally new implementation
3017
3018	* libtiff/tif_dirread.c: added several hacks to suit new support of
3019	OJPEG
3020
3021	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
3022	of OJPEG images in favor of tif_getimage.c native handling of
3023	YCbCr and desubsampling
3024
30252006-03-29  Frank Warmerdam  <[email protected]>
3026
3027	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
3028	interpretation causes the "upsampled" flag to be recomputed.  Fixes
3029	peculiar bug where photometric flag had to be set before jpegcolormode
3030	flag.
3031
30322006-03-25  Joris Van Damme  <[email protected]>
3033
3034	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
3035
3036	* libtiff/tif_strip.c: temporarilly added two new versions of
3037	TIFFScanlineSize
3038	  - TIFFNewScanlineSize: proposed new version, after all related
3039	    issues and side-effects are sorted out
3040	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
3041	This needs further sorting out.
3042
30432006-03-25  Joris Van Damme  <[email protected]>
3044
3045	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
3046	of last truncated strip data to TIFFWriteEncodedStrip
3047
30482006-03-25  Joris Van Damme  <[email protected]>
3049
3050	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
3051
30522006-03-25  Joris Van Damme  <[email protected]>
3053
3054	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
3055
3056	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
3057
3058	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
3059	prepare	the path for new tif_ojpeg.c
3060
30612006-03-23  Andrey Kiselev  <[email protected]>
3062
3063	* libtiff 3.8.2 released.
3064
3065	* tools/Makefile.am: Use runtime paths linker flags when rpath
3066	option enabled.
3067
30682006-03-21  Andrey Kiselev  <[email protected]>
3069
3070	* libtiff/libtiff.def: Added missed exports as per bug
3071	http://bugzilla.remotesensing.org/attachment.cgi?id=337
3072
3073	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
3074	tools/Makefile.vc: Makefiles improvements as per bug
3075	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
3076
3077	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
3078	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
3079	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
3080
3081	* libtiff/tif_strip.c: Take subsampling in account when calculating
3082	TIFFScanlineSize().
3083
3084	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
3085
30862006-03-17  Andrey Kiselev  <[email protected]>
3087
3088	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
3089	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
3090
3091	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
3092	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
3093
30942006-03-16  Andrey Kiselev  <[email protected]>
3095
3096	* libtiff/tiffiop.h: Added decalration for
3097	_TIFFSetDefaultCompressionState().
3098
3099	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
3100	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
3101	codec cleanup methods. As per bug
3102
3103	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
3104
31052006-03-15  Andrey Kiselev  <[email protected]>
3106
3107	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
3108	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
3109
3110	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
3111	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
3112
3113	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
3114	removed; move here the STRIP_SIZE_DEFAULT macro definition.
3115
3116	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
3117	macro definition.
3118
3119	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
3120
31212006-03-14  Andrey Kiselev  <[email protected]>
3122
3123	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
3124	in TIFFReadDirectory, because it is always set at the start of
3125	function and we allow TIFFs without that tag set.
3126
31272005-03-13  Andrey Kiselev  <[email protected]>
3128
3129	* libtiff 3.8.1 released.
3130
31312006-03-07  Andrey Kiselev  <[email protected]>
3132
3133	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
3134	function as per bug
3135	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3136
3137	* libtiff/tif_dirread.c: More wise check for integer overflow
3138	condition as per bug
3139	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3140
3141	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
3142	Properly restore setfield/getfield methods in cleanup functions. As
3143	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3144
31452006-03-03  Andrey Kiselev  <[email protected]>
3146
3147	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
3148	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
3149
3150	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
3151	TIFFPredictorCleanup() in codec cleanup methods. As per bug
3152
3153	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3154
3155	* libtiff/tif_dirread.c: Fixed integer overflow condition in
3156	TIFFFetchData() function. As per bug
3157
3158	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
3159
31602006-03-01  Andrey Kiselev  <[email protected]>
3161
3162	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
3163	TIFFSetField() method, not directly. As per bug
3164
3165	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
3166
3167	* tools/ppm2tiff.c: Added support for PBM files as per bug
3168	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
3169
31702006-02-27  Andrey Kiselev  <[email protected]>
3171
3172	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
3173	to avoid crash as per bug
3174
3175	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
3176
31772006-02-26  Andrey Kiselev  <[email protected]>
3178
3179	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
3180	t2p_sample_rgba_to_rgb() was used in place of each other, that was
3181	resulted in problems with RGBA images with associated alpha.
3182	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
3183
31842006-02-23  Andrey Kiselev  <[email protected]>
3185
3186	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
3187	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
3188
3189	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
3190	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
3191	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
3192
3193	* tools/tiff2ps.c: Properly scale all the pages when converting
3194	multipage TIFF with /width/height/center options set. As per bug
3195
3196	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
3197
31982006-02-15  Andrey Kiselev  <[email protected]>
3199
3200	* tools/tiff2pdf.c: Do not create output file until all option checks
3201	will be done. As per bug
3202
3203	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
3204
3205	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
3206	list of input files as per bug:
3207
3208	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
3209
32102006-02-09  Andrey Kiselev  <[email protected]>
3211
3212	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
3213	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
3214
3215	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
3216	TIFFRGBAImage interface.
3217
3218	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
3219	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
3220
32212006-02-07  Frank Warmerdam  <[email protected]>
3222
3223	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
3224	compressed TIFF files, per submission from Dan Cobra.
3225
32262006-02-07  Andrey Kiselev  <[email protected]>
3227
3228	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
3229	cast values to avoid warnings. As per bug
3230	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3231
3232	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
3233	appropriate. As per bug
3234	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3235
3236	* libtiff/tif_aux.c: Fixed type of temporary variable in
3237	_TIFFCheckMalloc() as per bug
3238	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3239
32402006-02-06  Andrey Kiselev  <[email protected]>
3241
3242	* libtiff/tif_aux.c: Return static array when fetching default
3243	YCbCrCoefficients (another problem, reported a the
3244	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
3245
32462006-02-03  Andrey Kiselev  <[email protected]>
3247
3248	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
3249	YCbCrSubsampling and DotRange tags as per bugs
3250
3251	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
3252	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
3253
3254	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
3255	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
3256
3257	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
3258
32592006-01-23  Andrey Kiselev  <[email protected]>
3260
3261	* libtool related stuff updated from the 2.1a branch.
3262
32632006-01-11  Frank Warmerdam  <[email protected]>
3264
3265	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
3266	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
3267	properly as per bug:
3268	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
3269
32702006-01-09  Bob Friesenhahn  <[email protected]>
3271
3272	* configure.ac: Fix with_default_strip_size comparison as reported
3273	by Norihiko Murase.
3274
32752006-01-08  Bob Friesenhahn  <[email protected]>
3276
3277	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
3278	incorrectly, tests were not actually testing the uninstalled
3279	libtiff.  Now they are.
3280
32812006-01-04  Andrey Kiselev  <[email protected]>
3282
3283	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
3284	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
3285	should be uint32 value.
3286
32872006-01-02  Bob Friesenhahn  <[email protected]>
3288
3289	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
3290	be used if build directory is not the same as source directory.
3291	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
3292	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
3293	and re-sorted tag names in alphabetical order.
3294
32952005-12-29  Andrey Kiselev  <[email protected]>
3296
3297	* libtiff 3.8.0 released.
3298
32992005-12-28  Bob Friesenhahn  <[email protected]>
3300
3301	* tools/bmp2tiff.c (main): Fixed warning regarding returning
3302	inconsistent types from a condition.
3303	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
3304	format.
3305	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
3306
33072005-12-28  Joris Van Damme  <[email protected]>
3308
3309	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
3310
33112005-12-27  Andrey Kiselev  <[email protected]>
3312
3313	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
3314	windows.h, to reduce the compile time.
3315
33162005-12-26  Bob Friesenhahn  <[email protected]>
3317
3318	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
3319
33202005-12-26  Andrey Kiselev  <[email protected]>
3321
3322	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
3323	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
3324	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
3325	private functions to retrieve FieldInfo arrays.
3326
33272005-12-24  Bob Friesenhahn  <[email protected]>
3328
3329	* html/build.html: Added some additional instructions for when
3330	building using MSVC under Windows.  Also fixed two HTML syntax
3331	errors and used HTML Tidy to tidy up the HTML syntax and
3332	formatting.
3333
33342005-12-24  Andrey Kiselev  <[email protected]>
3335
3336	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
3337	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
3338	StoNits tags custom.
3339
33402005-12-23  Andrey Kiselev  <[email protected]>
3341
3342	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
3343	WhitePoint tag custom.
3344
3345	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
3346
33472005-12-23  Joris Van Damme  <[email protected]>
3348
3349	* libtiff/tiffio.h: fixed typo that potentially resulted in
3350	redefininition of USE_WIN32_FILEIO
3351
3352	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
3353	calls in core LibTiff.
3354
33552005-12-21  Andrey Kiselev  <[email protected]>
3356
3357	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
3358	Photoshop and ICCProfile tags custom.
3359
33602005-12-21  Joris Van Damme  <[email protected]>
3361
3362	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
3363	newer code to get context indicator in error handler and still
3364	remain compatible with older code: Done TIFFError calls everywhere
3365	except in tools
3366
33672005-12-20  Andrey Kiselev  <[email protected]>
3368
3369	* tools/tiffcp.c: Added many error reporting messages; fixed integer
3370	overflow as per bug
3371
3372	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
3373
33742005-12-16  Frank Warmerdam  <[email protected]>
3375
3376	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
3377	YCbCr images in jpeg compressed TIFF files.
3378
33792005-12-14  Andrey Kiselev  <[email protected]>
3380
3381	* tools/tiffcp.c: Return non-zero status when reading fails (again).
3382
33832005-12-13  Andrey Kiselev  <[email protected]>
3384
3385	* tools/tiffcp.c: Return non-zero status when reading fails.
3386
33872005-12-12  Andrey Kiselev  <[email protected]>
3388
3389	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
3390
33912005-12-09  Andrey Kiselev  <[email protected]>
3392
3393	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
3394	custom.
3395
3396	* tools/tiffinfo.c: Print EXIF directory contents if exist.
3397
3398	* libtiff/tiff.h: Few EXIF tag numbers added.
3399
3400	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
3401	tiffio.h}: Preliminary support to read custom directories. New
3402	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
3403
34042005-12-07  Andrey Kiselev  <[email protected]>
3405
3406	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
3407	More work to implement custom directory read support.
3408
3409	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
3410	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
3411	tags custom.
3412
34132005-12-05  Andrey Kiselev  <[email protected]>
3414
3415	* libtiff/tif_dirread.c: One more workaround for broken
3416	StripByteCounts tag. Handle the case when StripByteCounts array filled
3417	with completely wrong values.
3418
34192005-11-30  Andrey Kiselev  <[email protected]>
3420
3421	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
3422	in the TIFFOpenW() function as per bug
3423
3424	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
3425
3426	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
3427	functions as per bug
3428
3429	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
3430
34312005-11-20  Frank Warmerdam  <[email protected]>
3432
3433	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
3434	for MS MDI format.
3435	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
3436
3437	* .cvsignore: many files added, and a few update according
3438	to suggestion of Brad HArds on tiff mailing list.
3439
34402005-11-03  Frank Warmerdam  <[email protected]>
3441
3442	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
3443	public.
3444
34452005-10-31  Andrey Kiselev  <[email protected]>
3446
3447	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
3448	as per bug
3449
3450	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
3451
3452	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
3453	as per bug
3454
3455	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
3456
3457	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
3458	problem as per bug
3459
3460	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
3461
3462	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
3463
3464	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
3465
3466	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
3467	ResolutionUnit tags modifiable during write process. As per bug
3468
3469	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
3470
3471	* tools/tiffsplit.c: Copy fax related fields over splitted parts
3472	as per bug
3473
3474	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
3475
34762005-10-21  Frank Warmerdam  <[email protected]>
3477
3478	* tif_dirread.c: Don't try and split single strips into "0" strips
3479	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
3480	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
3481
34822005-10-20  Joris Van Damme  <[email protected]>
3483
3484	* tif_fax3.c: changed 'at scanline ...' style warning/errors
3485	with incorrect use of tif_row, to 'at line ... of
3486	strip/tile ...' style
3487
34882005-10-15  Frank Warmerdam  <[email protected]>
3489
3490	* tif_write.c: fixed setting of planarconfig as per bug report
3491	on the mailing list from Joris.
3492
34932005-10-07  Andrey Kiselev  <[email protected]>
3494
3495	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
3496	tif_dirread.c}: Make the default strip size configurable via the
3497	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
3498
34992005-09-30  Bob Friesenhahn  <[email protected]>
3500
3501	* html/support.html: Fixed link to documentation on Greg Ward's
3502	LogLuv TIFF format.
3503
35042005-09-28  Andrey Kiselev  <[email protected]>
3505
3506	* tools/tiffdump.c: Fixed crash when reading malformed tags.
3507
35082005-09-20  Andrey Kiselev  <[email protected]>
3509
3510	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
3511	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
3512
35132005-09-12  Andrey Kiselev  <[email protected]>
3514
3515	* libtiff 3.7.4 released.
3516
3517	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
3518	from Patrick Welche (all scripts moved in the 'config' and 'm4'
3519	directories).
3520
35212005-09-12  Frank Warmerdam  <[email protected]>
3522
3523	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
3524
35252005-09-05  Frank Warmerdam  <[email protected]>
3526
3527	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
3528	also set it to NULL to avoid double free when re-setting custom
3529	string fields as per:
3530
3531	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
3532
35332005-08-12  Frank Warmerdam  <[email protected]>
3534
3535	* libtiff/tif_print.c: avoid signed/unsigned warning.
3536
3537	* libtiff/tif_dirread.c: removed unused variable.
3538
35392005-07-30  Frank Warmerdam  <[email protected]>
3540
3541	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
3542	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
3543	pass on bigendian (macosx) system.
3544
35452005-07-28  Andrey Kiselev  <[email protected]>
3546
3547	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
3548	CheckMalloc() function to _TIFFCheckMalloc() and make it available
3549	globally as an internal helper routine.
3550
35512005-07-27  Andrey Kiselev  <[email protected]>
3552
3553	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
3554	the custom tags handling code.
3555
35562005-07-26  Andrey Kiselev  <[email protected]>
3557
3558	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
3559	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
3560	function, use TIFFFetchNormalTag() instead as per bug
3561
3562	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3563
3564	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
3565	instead.
3566
3567	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3568
3569	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3570
35712005-07-25  Andrey Kiselev  <[email protected]>
3572
3573	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3574
3575	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3576
35772005-07-21  Andrey Kiselev  <[email protected]>
3578
3579	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3580	the TIFFWriteCheck() function in case of single band images (as per
3581	TIFF spec).
3582
35832005-07-12  Andrey Kiselev  <[email protected]>
3584
3585	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3586	support for SCons software building tool (http://www.scons.org/).
3587	This is experimental infrastructure and it will exist along with the
3588	autotools mechanics.
3589
35902005-07-07  Andrey Kiselev  <[email protected]>
3591
3592	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3593	the NetBSD source tree (the old	4-clause BSD license changed to
3594	the new 3-clause one).
3595
3596	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3597	replacement module.
3598
3599	* port/dummy.c: Make the dummy function static.
3600
36012005-07-06  Andrey Kiselev  <[email protected]>
3602
3603	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3604
3605	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3606	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3607	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3608
36092005-07-04  Andrey Kiselev  <[email protected]>
3610
3611	* libtiff 3.7.3 released.
3612
3613	* configure, configure.ac: Do not use empty -R option when linking
3614	with --enable-rpath.
3615
36162005-07-01  Andrey Kiselev  <[email protected]>
3617
3618	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3619	reading the first IFD when needed. As per bug
3620
3621	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3622
3623	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3624	effects.
3625
36262005-06-23  Andrey Kiselev  <[email protected]>
3627
3628	* tools/tiff2pdf.c: Print two characters per loop in the
3629	t2p_write_pdf_trailer(). As per bug
3630
3631	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3632
3633	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3634	per bug
3635
3636	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3637
3638	* acinclude.m4: Updated to latest OpenGL test macros versions.
3639
3640	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3641	platform. As per bug
3642
3643	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3644
36452005-06-14  Andrey Kiselev  <[email protected]>
3646
3647	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3648	and YClipPathUnits tags.
3649
36502005-06-07  Andrey Kiselev  <[email protected]>
3651
3652	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3653	use pixel sized shift in contigous case.
3654
36552005-06-06  Andrey Kiselev  <[email protected]>
3656
3657	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3658	Make overviews working for contiguos images.
3659
36602005-06-03  Andrey Kiselev  <[email protected]>
3661
3662	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3663	time one.
3664
3665	* libtiff/tif_predict.c: Floating point predictor now works on
3666	big-endian hosts.
3667
36682005-06-01  Andrey Kiselev  <[email protected]>
3669
3670	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3671	ASCII values.
3672
3673	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3674	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3675	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3676	TargetPrinter tags custom.
3677
3678	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3679	TIFF_CODERSETUP flag (to fix memry leaks).
3680
3681	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3682	allocating.
3683
36842005-05-26  Andrey Kiselev  <[email protected]>
3685
3686	* configure.ac, libtiff/Makefile.am: Added workaround for
3687	OpenBSD/MirOS soname problem as per bug
3688
3689	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3690
3691	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3692	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3693	per bug
3694
3695	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3696
36972005-05-25  Andrey Kiselev  <[email protected]>
3698
3699	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3700	the fscanf() function. As per bug
3701
3702	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3703
3704	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3705	uint16 array when fetching the BYTE and SBYTE filds, so we should
3706	consider result as pointer to uint16 array and not as array of chars.
3707	As per bug
3708
3709	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3710
3711	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3712
3713	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3714
3715	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3716	mode in CreateFile() call as per bug
3717
3718	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3719
3720	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3721	libtiffxx libraries as per bug
3722
3723	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3724
3725	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3726	GDAL.
3727
37282005-05-23  Frank Warmerdam  <[email protected]>
3729
3730	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3731	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3732	in directory.
3733
37342005-05-22  Frank Warmerdam  <[email protected]>
3735
3736	* libtiff/tif_dirread.c: Changed the code that computes
3737	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3738	zero. This is a common case with GDAL indicating a "null" tile/strip.
3739
37402005-05-17  Andrey Kiselev  <[email protected]>
3741
3742	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
3743
37442005-05-06  Frank Warmerdam  <[email protected]>
3745
3746	* libtiff/tif_dirread.c: Applied similar change to
3747	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
3748
3749	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3750
3751	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
3752
37532005-05-06  Andrey Kiselev  <[email protected]>
3754	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
3755	added new option '-b' to use interpolation in output PDF files (Bruno
3756	Ledoux).
3757
37582005-05-05  Frank Warmerdam  <[email protected]>
3759
3760	* libtiff/tif_dirread.c: Ensure that broken files with too many
3761	values in PerSampleShorts work ok instead of crashing.
3762
3763	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3764
37652005-04-27  Andrey Kiselev  <[email protected]>
3766
3767	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
3768	input file.
3769
37702005-04-15  Andrey Kiselev  <[email protected]>
3771
3772	* libtiff/tif_predict.c: Added ability to encode floating point
3773	predictor, as per TIFF Technical Note 3.
3774
37752005-04-14  Andrey Kiselev  <[email protected]>
3776
3777	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
3778	floating point predictor, as per TIFF Technical Note 3.
3779
37802005-04-13  Andrey Kiselev  <[email protected]>
3781
3782	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
3783	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
3784	swap 24-bit floating point values.
3785
3786	* libtiff/tiff.h: Added predictor constants.
3787
37882005-04-08  Andrey Kiselev  <[email protected]>
3789
3790	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
3791	values in _TIFFVSetField() function. Inspired by the bug
3792
3793	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3794
3795	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
3796	as per bug
3797
3798	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3799
38002005-03-30  Andrey Kiselev  <[email protected]>
3801
3802	* libtiff/tif_open.c: Do not read header in case the output file
3803	should be truncated (Ron).
3804
3805	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
3806	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
3807
3808	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
3809
38102005-03-22  Andrey Kiselev  <[email protected]>
3811
3812	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
3813	rpath option.
3814
38152005-03-21  Andrey Kiselev  <[email protected]>
3816
3817	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
3818	tags.
3819
38202005-03-18  Andrey Kiselev  <[email protected]>
3821
3822	* libtiff/dirinfo.c: Added DNG tags.
3823
3824	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
3825	handling code.
3826
3827	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
3828	added DNG 1.1.0.0 tags.
3829
3830	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
3831	bug
3832
3833	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
3834
3835	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
3836
38372005-03-17  Andrey Kiselev  <[email protected]>
3838
3839	* nmake.opt: Build with Win32 CRT library by default.
3840
3841	* tools/tiff2ps.c: Fixed typo in page size handling code.
3842
3843	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
3844	by value.
3845
3846	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
3847
38482005-03-15  Andrey Kiselev  <[email protected]>
3849
3850	* libtiff 3.7.2 released.
3851
38522005-03-09  Andrey Kiselev  <[email protected]>
3853
3854	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
3855	floating point data; complain on unsupported bit depths.
3856
38572005-03-05  Andrey Kiselev  <[email protected]>
3858
3859	* tif_stream.cxx: Use ios namespace instead of ios_base to support
3860	GCC 2.95.
3861
3862	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
3863	Lee Howard for HylaFax DCS tag
3864	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
3865
38662005-03-04  Andrey Kiselev  <[email protected]>
3867
3868	* configure, configure.ac: Use -rpath option instead of -R as per bug
3869
3870	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
3871
3872	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
3873	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
3874	software. As per bug
3875
3876	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
3877
3878	* nmake.opt, html/build.html: Add more comments, change the config
3879	file organization a bit as per bug
3880
3881	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
3882
3883	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
3884	as per bug
3885
3886	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
3887
38882005-03-03  Andrey Kiselev  <[email protected]>
3889
3890	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
3891	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3892
3893	* tools/fax2ps.c: Replace insecure mktemp() function with the
3894	tmpfile() as per bug
3895
3896	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
3897
38982005-02-04  Andrey Kiselev  <[email protected]>
3899
3900	* libtiff/tiff.h: Changed the int8 definition to be always signed char
3901	as per bug
3902
3903	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3904
3905	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
3906	block as per bug
3907
3908	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
3909
39102005-02-03  Bob Friesenhahn  <[email protected]>
3911
3912	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
3913	display more correctly.  Images display brighter than they should
3914	on a Sun workstation.
3915
39162005-02-03  Andrey Kiselev  <[email protected]>
3917
3918	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
3919	suspicious values in the tags. As per bugs
3920
3921	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3922
3923	and
3924
3925	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
3926
3927	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
3928
3929	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
3930
39312005-01-31  Bob Friesenhahn  <[email protected]>
3932
3933	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
3934	(TIFFTAG_TILELENGTH): Corrected description.
3935
39362005-01-30  Andrey Kiselev  <[email protected]>
3937
3938	* configure.ac: Fixes for --with-docdir option as per bug
3939
3940	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
3941
3942	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
3943	bug
3944
3945	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
3946
3947	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
3948	Michael Rinne and Edward Lam.
3949
39502005-01-15  Andrey Kiselev  <[email protected]>
3951
3952	* configure.ac: Make the documentation directory location configurable
3953	via the --with-docdir option (as suggested by Jeremy C. Reed).
3954
3955	* libtiff/tif_color.c: Use double as the second argument of pow()
3956	function in TIFFCIELabToRGBInit(). As per bug
3957
3958	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
3959
3960	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
3961	integer as per bug
3962
3963	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
3964
3965	* libtiff/tif_getimage.c: Always fill the error message buffer in
3966	TIFFRGBAImageBegin() as per bug
3967
3968	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
3969
39702005-01-12  Andrey Kiselev  <[email protected]>
3971
3972	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
3973	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
3974	tags as per bug
3975
3976	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
3977
3978	* libtiff/tif_win32.c: Fixed message formatting in functions
3979	Win32WarningHandler() and Win32ErrorHandler() as per bug
3980
3981	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
3982
3983	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
3984	per bug
3985
3986	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
3987
39882005-01-11  Andrey Kiselev  <[email protected]>
3989
3990	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
3991	"C"' section as per bug
3992
3993	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3994
3995	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
3996	compiler to avoid double definition of BSD types as per bug
3997
3998	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3999
4000	* libtiff/Makefile.am: Place the C++ stream API in the separate
4001	library called libtiffxx to avoid unneeded dependencies. Probably
4002	there will be more C++ API in the future. As per bugs
4003
4004	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
4005
4006	and
4007
4008	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
4009
40102005-01-05  Andrey Kiselev  <[email protected]>
4011
4012	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
4013	wrong tag counts (Dmitry V. Levin, Martin Pitt).
4014
4015	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
4016	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
4017
40182004-12-25  Andrey Kiselev  <[email protected]>
4019
4020	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
4021	RGB-images as per bug
4022
4023	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
4024
4025
4026	* tools/tiffset.c: Convert character option to integer value as per
4027	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
4028
40292004-12-20  Andrey Kiselev  <[email protected]>
4030
4031	* libtiff 3.7.1 released.
4032
4033	* html/tiffset.1.html: Add missed manual page as per bug
4034
4035	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
4036
4037	* libtiff/tiff.h: Revert back libtiff data type definitions as per
4038	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
4039
40402004-12-19  Andrey Kiselev  <[email protected]>
4041
4042	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
4043	checking for tag count in TIFFReadDirectory() function. As per bug
4044
4045	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
4046
4047	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
4048	CheckMallock() function.
4049
4050	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
4051	RGB-images as per bug
4052
4053	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
4054
40552004-12-15  Frank Warmerdam  <[email protected]>
4056
4057	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
4058	SunPro compiler.
4059
40602004-12-11  Bob Friesenhahn  <[email protected]>
4061
4062	* autogen.sh: aclocal and autoheader should be executed after
4063	libtoolize.  Also add '-I .' to aclocal invocation to check
4064	current directory for macros.
4065
40662004-12-10  Andrey Kiselev  <[email protected]>
4067
4068	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
4069	as per bugs
4070
4071	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
4072
4073	and
4074
4075	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
4076
40772004-12-04  Andrey Kiselev  <[email protected]>
4078
4079	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
4080
4081	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
4082
4083	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
4084	mode as per bug
4085
4086	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
4087
4088	* libtiff/tif_config.in.vc: Removed unneded definitions for
4089	read/open/close/lseek functions to fix the
4090
4091	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
4092
40932004-12-03  Andrey Kiselev  <[email protected]>
4094
4095	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
4096	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
4097	must be removed in the future, as it was never used properly. As per
4098	bug
4099
4100	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
4101
41022004-11-30  Bob Friesenhahn  <[email protected]>
4103
4104	* libtiff/tif_jpeg.c: Added a work-around in order to allow
4105	compilation with the heavily modified version of libjpeg delivered
4106	with Cygwin.
4107
41082004-11-29  Andrey Kiselev  <[email protected]>
4109
4110	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
4111	counts. As per bug
4112
4113	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
4114
4115	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
4116
4117	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
4118
41192004-11-28  Andrey Kiselev  <[email protected]>
4120
4121	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
4122	on Windows.
4123
4124	* nmake.opt: Add missed DLLNAME variable.
4125
41262004-11-26  Frank Warmerdam  <[email protected]>
4127
4128	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
4129
41302004-11-24  Andrey Kiselev  <[email protected]>
4131
4132	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
4133	per bug
4134
4135	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
4136
4137	* man/tiffset.1: Added manual page for tiffset tool written by Jay
4138	Berkenbilt. As per bug
4139
4140	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
4141
41422004-11-23  Frank Warmerdam  <[email protected]>
4143
4144	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
4145
41462004-11-21  Frank Warmerdam  <[email protected]>
4147
4148	* html/document.html: Updated Adobe web links as per email from Joris.
4149
41502004-11-21  Andrey Kiselev  <[email protected]>
4151
4152	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
4153	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
4154	use C++ streams should #include <tiffio.hxx>.
4155
41562004-11-13  Andrey Kiselev  <[email protected]>
4157
4158	* libtiff/tiff.h: Added Adobe DNG tags.
4159
4160	* libtiff/tif_win32.c: Typo fixed.
4161
4162	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
4163	be compliant with the latest standard. Appropriate additions in
4164	makefiles now completed.
4165
41662004-11-11  Andrey Kiselev  <[email protected]>
4167
4168	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
4169	different tag types. As per bug
4170
4171	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
4172
41732004-11-10  Andrey Kiselev  <[email protected]>
4174
4175	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
4176	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
4177
41782004-11-09  Andrey Kiselev  <[email protected]>
4179
4180	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
4181
41822004-11-07  Andrey Kiselev  <[email protected]>
4183
4184	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
4185	contributed by Edward Lam (see
4186	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
4187	Though no changes in any makefiles yet.
4188
41892004-11-05  Frank Warmerdam  <[email protected]>
4190
4191	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
4192	is bad. This is the callers responsibility.
4193	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
4194
41952004-11-05  Andrey Kiselev  <[email protected]>
4196
4197	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
4198	function to work with the double byte strings (used to represent
4199	filenames in some locales). As per bug
4200
4201	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
4202
4203	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
4204	Compression tags of type LONG from broken TIFFS as per bug
4205
4206	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
4207
4208	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
4209	the writecount should have uint32 type. As per bug
4210
4211	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
4212
4213	* libtiff/tif_write.c: Fixed wrong if() statement in
4214	TIFFAppendToStrip() function as per bug
4215
4216	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
4217
42182004-11-04  Andrey Kiselev  <[email protected]>
4219
4220	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
4221	field. The caller should supply a count when setting this field. As
4222	per bug
4223
4224	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
4225
4226	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
4227	uint32 count. Use this type everywhere.
4228
42292004-11-03  Frank Warmerdam  <[email protected]>
4230
4231	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
4232
42332004-11-02  Frank Warmerdam  <[email protected]>
4234
4235	* tools/tiff2rgba.c: removed extra newlines in usage message.
4236
42372004-10-30  Andrey Kiselev  <[email protected]>
4238
4239	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
4240
4241	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
4242	tags (Tristan Hill).
4243
42442004-10-30  Frank Warmerdam  <[email protected]>
4245
4246	* libtiff/tiffiop.h: added fallback definition of assert() if we
4247	don't have assert.h.
4248
42492004-10-29  Andrey Kiselev  <[email protected]>
4250
4251	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
4252	choosing when the incorrect Group4Options tag set. As per bug
4253
4254	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
4255
4256	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
4257	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
4258	TIFFWriteNormalTag().
4259
42602004-10-28  Andrey Kiselev  <[email protected]>
4261
4262	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
4263	tags (Peter Fales).
4264
4265	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
4266
42672004-10-28  Frank Warmerdam  <[email protected]>
4268
4269	* tools/tiff2pdf.c: added casts to avoid warnings.
4270
4271	* libtiff/libtiff.def: Added several more entry points required
4272	to link fax2tiff.c against the DLL on windows.
4273
42742004-10-27  Andrey Kiselev  <[email protected]>
4275
4276	* configure, configure.ac: Added --enable-rpath option to embed linker
4277	paths into library binary.
4278
42792004-10-26  Andrey Kiselev  <[email protected]>
4280
4281	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
4282
4283	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
4284	(Vladimir Nadvornik, Dmitry V. Levin).
4285
42862004-10-16  Andrey Kiselev  <[email protected]>
4287
4288	* libtiff 3.7.0 released.
4289
42902004-10-15  Bob Friesenhahn  <[email protected]>
4291
4292	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
4293	in this file so its inclusion is removed.  Including stdio.h
4294	sometimes incurs an INT32 typedef conflict between MinGW's
4295	basetsd.h and libjpeg's jmorecfg.h.
4296
42972004-10-15  Andrey Kiselev  <[email protected]>
4298
4299	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
4300
43012004-10-13  Bob Friesenhahn  <[email protected]>
4302
4303	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
4304	conflict noticed under MinGW.
4305	* ltmain.sh: Fix for MinGW compilation.
4306
43072004-10-13  Frank Warmerdam  <[email protected]>
4308
4309	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
4310	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
4311
43122004-10-12  Andrey Kiselev  <[email protected]>
4313
4314	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
4315	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
4316	properly (Dmitry V. Levin, Marcus Meissner).
4317
43182004-10-11  Andrey Kiselev  <[email protected]>
4319
4320	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
4321	to TIFF_IFD.
4322
43232004-10-10  Andrey Kiselev  <[email protected]>
4324
4325	* tools/bmp2tif.c: Check the space allocation results.
4326
43272004-10-09  Andrey Kiselev  <[email protected]>
4328
4329	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
4330	of the TIFFDirectory structure with the 0 instead of -1 to avoid
4331	confusing integer overflows in TIFFTileRowSize() for striped images.
4332
4333	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
4334	by Ross A. Finlayson.
4335
4336	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
4337
4338	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
4339
43402004-10-08  Frank Warmerdam  <[email protected]>
4341
4342	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
4343	of tif_fieldinfo.
4344
4345	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
4346
43472004-10-04  Bob Friesenhahn  <[email protected]>
4348
4349	* contrib/iptcutil/README: Added the missing README which goes
4350	along with iptcutil.
4351
43522004-10-03  Andrey Kiselev  <[email protected]>
4353
4354	* libtiff/tif_compress.c: Improved error reporting in
4355	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
4356
43572004-10-02  Andrey Kiselev  <[email protected]>
4358
4359	* libtiff 3.7.0beta2 released.
4360
4361	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
4362	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
4363	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
4364	allocations and	integer overflows (Dmitry V. Levin).
4365
4366	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
4367
43682004-10-01  Frank Warmerdam  <[email protected]>
4369
4370	* libtiff/tif_open.c: added a more informative message if a BigTIFF
4371	file is opened.
4372
43732004-09-30  Frank Warmerdam  <[email protected]>
4374
4375	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
4376	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
4377	in the Adobe XMP Specification.
4378
43792004-09-29  Andrey Kiselev  <[email protected]>
4380
4381	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
4382	memset().
4383
4384	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
4385	from Dmitry V. Levin to fix possible integer overflow problems.
4386
43872004-09-28  Andrey Kiselev  <[email protected]>
4388
4389	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
4390	(Dmitry V. Levin).
4391
43922004-09-26  Andrey Kiselev  <[email protected]>
4393
4394	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
4395	Optimize checking for the strip bounds.
4396
4397	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
4398	TIFFRasterScanlineSize() functions report zero in the case of integer
4399	overflow now. Properly handle this case in TIFFReadDirectory()
4400	(patches from Dmitry V. Levin).
4401
44022004-09-25  Andrey Kiselev  <[email protected]>
4403
4404	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
4405	macro where appropriate.
4406
4407	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
4408	noted by Gennady Khokhorin.
4409
4410	* libtiff/tif_dirread.c: Always check the return values, returned
4411	by the _TIFFmalloc() (Dmitry V. Levin).
4412
4413	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
4414	functions (Dmitry V. Levin).
4415
4416	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
4417	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
4418	TIFFGrowStrips() (found by Dmitry V. Levin).
4419
44202004-09-24  Andrey Kiselev  <[email protected]>
4421
4422	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
4423	to get the list of configured codecs.
4424
4425	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
4426	Dmitry V. Levin.
4427
44282004-09-23  Andrey Kiselev  <[email protected]>
4429
4430	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
4431	possible integer overflow in CheckMalloc() function.
4432
44332004-09-22  Andrey Kiselev  <[email protected]>
4434
4435	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
4436	of plain TIFFhowmany() where appropriate.
4437
44382004-09-21  Andrey Kiselev  <[email protected]>
4439
4440	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
4441
44422004-09-19  Andrey Kiselev  <[email protected]>
4443
4444	* libtiff 3.7.0beta released.
4445
4446	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
4447	overruns fixed, as noted by Chris Evans.
4448
44492004-09-14  Bob Friesenhahn  <[email protected]>
4450
4451	* commit: Added a script to make it more convenient to commit
4452	updates.  The CVS commit message is extracted from this ChangeLog
4453	file.
4454
44552004-09-14  Andrey Kiselev  <[email protected]>
4456
4457	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
4458	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
4459	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
4460	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
4461	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
4462	tif_config.h.in, tiffiop.h}:
4463	Get rid of BSD data types (u_char, u_short, u_int, u_long).
4464
44652004-09-13  Bob Friesenhahn  <[email protected]>
4466
4467	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
4468	specification. Reference libtiff bug tracking system to submit
4469	private tag additions.
4470
44712004-09-12  Bob Friesenhahn  <[email protected]>
4472
4473	* tools/tiffgt.c: Include "tif_config.h".
4474
4475	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
4476	tiffgt.  This results in the 'compile' script being added to the
4477	project.
4478
4479	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
4480	required to find OpenGL headers necessary to build tiffgt.  Also
4481	ensure that the libtiff that we built is used rather than some other
4482	libtiff installed on the system.
4483
44842004-09-12  Andrey Kiselev  <[email protected]>
4485
4486	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
4487	libraries.
4488
44892004-09-11  Bob Friesenhahn  <[email protected]>
4490
4491	* configure.ac: Pass library configuration defines via
4492	tif_config.h rather than extending CPPFLAGS. Configure a
4493	libtiff/tiffconf.h in order to satisfy application requirements
4494	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
4495	this causes failure to build on systems which properly respect
4496	this request.
4497
4498	* libtiff/tiffconf.h.in: New file to act as the template for the
4499	configured tiffconf.h
4500
4501	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
4502
45032004-09-10  Frank Warmerdam  <[email protected]>
4504
4505	* html/internals.html: Split off a discussion of adding new tags
4506	into addingtags.html.
4507
45082004-09-10  Andrey Kiselev  <[email protected]>
4509
4510	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
4511
4512	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
4513
4514	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4515
4516	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
4517
4518	* libtiff/tif_dirread.c: Don't reject to read tags of the
4519	SamplesPerPixel size when the tag count is greater than number of
4520	samples as per bug
4521
4522	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
4523
4524	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
4525	defining int8/uint8/... etc. types. As per bug
4526
4527	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
4528
45292004-09-09  Frank Warmerdam  <[email protected]>
4530
4531	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
4532	to avoid compile warnings about getopt() and a few other things.
4533
45342004-09-02  Andrey Kiselev  <[email protected]>
4535
4536	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
4537	assigning magic in TIFFFetchFloat().
4538
45392004-09-01  Andrey Kiselev  <[email protected]>
4540
4541	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
4542	to avoid requirement for tiffiop.h inclusion in some applications. See
4543	here
4544
4545	http://www.asmail.be/msg0054799560.html
4546
4547	for details.
4548
4549	* tools/fax2tiff.c: Use the new functions in the code.
4550
45512004-08-25  Andrey Kiselev  <[email protected]>
4552
4553	* tools/tiff2pdf.c: Initialize arrays properly.
4554
4555	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
4556	properly initialize array in PSDataBW().
4557
45582004-08-24  Andrey Kiselev  <[email protected]>
4559
4560	* tools/tiff2pdf.c: More fixes for bug
4561
4562	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4563
4564	from Ross Finlayson.
4565
45662004-08-23  Andrey Kiselev  <[email protected]>
4567
4568	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4569
4570	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4571	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4572
4573	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4574
4575	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4576
45772004-08-20  Andrey Kiselev  <[email protected]>
4578
4579	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4580	that the input file has compression, photometric interpretation,
4581	etcetra, tags or if not than a more descriptive error is returned.
4582
4583	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4584	code, responsible for tag data type checking.
4585
45862004-08-19  Andrey Kiselev  <[email protected]>
4587
4588	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4589	variable as per bug
4590
4591	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4592
45932004-08-16  Andrey Kiselev  <[email protected]>
4594
4595	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4596	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4597
45982004-08-01  Andrey Kiselev  <[email protected]>
4599
4600	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4601	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4602
46032004-07-24  Andrey Kiselev  <[email protected]>
4604
4605	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4606	separate package. All libtiff tools are updated to not advertise an
4607	abcence of LZW support.
4608
46092004-07-12  Andrey Kiselev  <[email protected]>
4610
4611	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4612
46132004-07-11  Andrey Kiselev  <[email protected]>
4614
4615	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4616	messages, as suggested by Bernd Herd.
4617
46182004-07-03  Andrey Kiselev  <[email protected]>
4619
4620	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4621	when setting custom tags by value. Reported by Eric Fieleke.
4622
46232004-06-14  Andrey Kiselev  <[email protected]>
4624
4625	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4626
46272004-06-08  Andrey Kiselev  <[email protected]>
4628
4629	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4630	into TIFFs.
4631
46322004-06-07  Andrey Kiselev  <[email protected]>
4633
4634	* libtiff 3.7.0alpha released.
4635
46362004-06-06  Andrey Kiselev  <[email protected]>
4637
4638	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4639	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4640	ones :-).
4641
4642	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4643	problems in 64-bit environment).
4644
46452004-06-05  Andrey Kiselev  <[email protected]>
4646
4647	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4648	Tags can be supplied by the mnemonic name or number.
4649
4650	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4651	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4652
46532004-05-27  Andrey Kiselev  <[email protected]>
4654
4655	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4656	markers as per bug
4657
4658	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4659
46602004-05-24  Andrey Kiselev  <[email protected]>
4661
4662	* tools/tiffsplit.c: Don't forget to copy Photometric
4663	Interpretation tag.
4664
46652004-05-20  Andrey Kiselev  <[email protected]>
4666
4667	* libtiff/{tif_open.c, tiffio.h}: New function added:
4668	TIFFIsBigEndian(). Function returns nonzero if given was file written
4669	in big-endian order.
4670
4671	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4672	files. Now output files will be written using the same byte order
4673	flag as	in the input image. See
4674
4675	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4676
4677	for details.
4678
46792004-05-19  Frank Warmerdam  <[email protected]>
4680
4681	* libtiff/tif_print.c: added (untested) support for printing
4682	SSHORT, SLONG and SRATIONAL fields.
4683
4684	* tools/tiffcp.c: close output file on normal exit.
4685
46862004-05-17  Andrey Kiselev  <[email protected]>
4687
4688	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4689	if compression type mismatches. See
4690
4691	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4692
46932004-04-30  Andrey Kiselev  <[email protected]>
4694
4695	* libtiff/tif_strip.c: Never return 0 from the
4696	TIFFNumberOfStrips().
4697
46982004-04-29  Andrey Kiselev  <[email protected]>
4699
4700	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4701	store single SampleFormat value for multisampled images. See
4702
4703	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4704
47052004-04-25  Andrey Kiselev  <[email protected]>
4706
4707	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4708	int16 and int32 types to avoid complains on some compilers. Details at
4709
4710	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4711
47122004-04-20  Andrey Kiselev  <[email protected]>
4713
4714	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4715
4716	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4717
47182004-04-14  Andrey Kiselev  <[email protected]>
4719
4720	* libtiff/tif_write.c: Allow in-place updating of the compressed
4721	images (don't work properly with all codecs). For details see GDAL bug
4722
4723	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4724
47252004-04-06  Andrey Kiselev  <[email protected]>
4726
4727	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4728	in the Intergarph JPEG compressed TIFF images as per bug:
4729
4730	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4731
47322004-04-04  Frank Warmerdam  <[email protected]>
4733
4734	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4735	via bad2.
4736
47372004-03-26  Andrey Kiselev  <[email protected]>
4738
4739	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4740	JPEG compression of grayscale images.
4741
4742	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
4743	present in the input image.
4744
47452004-03-19  Andrey Kiselev  <[email protected]>
4746
4747	* {many}: The first attempt to switch to autotools.
4748
47492004-03-03  Andrey Kiselev  <[email protected]>
4750
4751	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
4752	TIFFClientOpen() when the appropriate client functions was not
4753	supplied by user.
4754
47552004-03-02  Frank Warmerdam  <[email protected]>
4756
4757	* tools/ycbcr.c: fixed main() declaration as per:
4758	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
4759
47602004-02-26  Andrey Kiselev  <[email protected]>
4761
4762	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
4763	images. Reported by Artem Mirolubov.
4764
4765	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
4766	tag type in TIFFFetchNormalTag() as per bug
4767
4768	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
4769
47702004-02-17  Frank Warmerdam  <[email protected]>
4771
4772	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
4773	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
4774
47752004-02-05  Andrey Kiselev  <[email protected]>
4776
4777	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
4778	bug
4779
4780	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
4781
4782	But we need more work on fax codec to support update mode.
4783
47842004-01-30  Frank Warmerdam  <[email protected]>
4785
4786	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
4787	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
4788	Scott Reynolds.
4789
47902004-01-29  Andrey Kiselev  <[email protected]>
4791
4792	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
4793	and TIFFTAG_INDEXED as per bug
4794
4795	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
4796
4797	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
4798	NULL before proceeding further as per bug
4799
4800	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
4801
4802	Check results, returned by the TIFFFdOpen() before returning and close
4803	file if TIFFFdOpen() failed as per bug
4804
4805	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4806
4807	* libtiff/tif_open.c: More fixes for
4808
4809	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4810
48112004-01-28  Andrey Kiselev  <[email protected]>
4812
4813	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
4814	TIFFCleanup() from the TIFFClose() in order to fix the bug
4815
4816	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4817
4818	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
4819	InkNames tag as per bug
4820
4821	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
4822
4823	Memory leak fixed.
4824
48252004-01-21  Frank Warmerdam  <[email protected]>
4826
4827	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
4828	are field_passcount=TRUE properly.  Arguably anonymous custom tags
4829	should be declared as passcount=FALSE, but I don't want to change
4830	that without a careful review.
4831
48322004-01-20  Andrey Kiselev  <[email protected]>
4833
4834	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
4835	stripped image in TIFFWriteBufferSetup(). As per bug
4836
4837	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
4838
48392004-01-11  Andrey Kiselev  <[email protected]>
4840
4841	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
4842	patch from Gerben Koopmans.
4843
4844	* libtiff/tif_dirread.c: Check field_passcount value before setting
4845	the value of undefined type, patch from Gerben Koopmans.
4846
48472004-01-02  Andrey Kiselev  <[email protected]>
4848
4849	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
4850	non-RGB images.
4851
48522003-12-31  Andrey Kiselev  <[email protected]>
4853
4854	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
4855	pointer passed. Patch supplied by Larry Grill.
4856
4857	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
4858	suggested by Jeremy C. Reed.
4859
48602003-12-26  Andrey Kiselev  <[email protected]>
4861
4862	* libtiff 3.6.1 released.
4863
48642003-12-24  Andrey Kiselev  <[email protected]>
4865
4866	* config.guess, config.sub: Updated from the recent upstream.
4867
48682003-12-22  Andrey Kiselev  <[email protected]>
4869
4870	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
4871	More cleanups in color conversion interface, added appropriate manual
4872	page.
4873
48742003-12-19  Andrey Kiselev  <[email protected]>
4875
4876	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
4877	per bug
4878
4879	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4880
4881	* tools/tiff2ps.c: Added support for alpha channel. Fixes
4882
4883	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
4884
4885	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
4886	Interface for Lab->RGB color conversion is finally cleaned up.
4887	Added support for ReferenceBlackWhite tag handling when converted from
4888	YCbCr color space. The latter closes
4889
4890	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
4891
48922003-12-07  Andrey Kiselev  <[email protected]>
4893
4894	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
4895
4896	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
4897	library.
4898
48992003-12-06  Andrey Kiselev  <[email protected]>
4900
4901	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
4902	file and properly use it for CIE Lab->RGB transform.
4903
49042003-12-04  Andrey Kiselev  <[email protected]>
4905
4906	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
4907	conversion routines now in the tif_color.c module. New function
4908	TIFFYCbCrtoRGB() available in TIFF API.
4909
4910	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
4911
49122003-12-03  Andrey Kiselev  <[email protected]>
4913
4914	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
4915	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
4916	module.
4917
4918	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
4919	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
4920	Finally resolved problems with orientation handling. TIFFRGBAImage
4921	interface now properly supports all possible orientations, i.e. images
4922	will be flipped both in horizontal and vertical directions if
4923	required. 'Known bugs' section now removed from the appropriate manual
4924	pages. Closed bug entry:
4925
4926	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4927
49282003-12-02  Andrey Kiselev  <[email protected]>
4929
4930	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
4931	function calls as per bug
4932
4933	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
4934
49352003-11-28 Ross Finlayson  <[email protected]>
4936
4937	* tools/tiff2pdf.c:  Some bugs fixed.
4938
49392003-11-27  Andrey Kiselev  <[email protected]>
4940
4941	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
4942	reported by Antonio Scuri.
4943
4944	* man/tiff2pdf.1: Few improvements in page layout.
4945
4946	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
4947	 Added support fpr tiff2pdf manual page.
4948
49492003-11-26 Ross Finlayson  <[email protected]>
4950
4951	* /man/tiff2pdf.1:  File added to repository.
4952
49532003-11-26  Andrey Kiselev  <[email protected]>
4954
4955	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
4956	 Added support fpr tiff2pdf utility.
4957
49582003-11-25  Ross Finlayson  <[email protected]>
4959
4960	* /tools/tiff2pdf.c:  File added to repository.
4961
49622003-11-22  Andrey Kiselev  <[email protected]>
4963
4964	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
4965
49662003-11-21  Andrey Kiselev  <[email protected]>
4967
4968	* /tools/raw2tiff.c: #include <getopt.h> removed.
4969
4970	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
4971	sgigt utility removed and replaced with the completely rewritten
4972	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
4973	there is a lot of things to improve.
4974
4975	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
4976	extract the fields from the OJPEG files. Patch supplied by Ross
4977	Finlayson.
4978
4979	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
4980	Added new function TIFFIsCODECConfigured(), suggested by Ross
4981	Finlayson.
4982
49832003-11-18  Andrey Kiselev  <[email protected]>
4984
4985	* libtiff/tif_dirinfo.c: Implemented binary search in
4986	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
4987
4988	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
4989	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
4990
49912003-11-17  Frank Warmerdam  <[email protected]>
4992
4993	* tif_dirread.c: do not mark all anonymously defined tags to be
4994	IGNOREd.
4995
49962003-11-17  Andrey Kiselev  <[email protected]>
4997
4998	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
4999	TIFFDataWidth() function insted of tiffDataWidth array.
5000
50012003-11-16  Andrey Kiselev  <[email protected]>
5002
5003	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
5004	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
5005
50062003-11-15  Frank Warmerdam  <[email protected]>
5007
5008	* Makefile.in: fixed missing backslash for tif_color.c in list.
5009
50102003-11-13  Andrey Kiselev  <[email protected]>
5011
5012	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
5013	New color space conversion code: CIE L*a*b* 1976 images now supported
5014	by the TIFFRGBAImage interface. All introduced routines go to new
5015	module tif_color.c. Eventually all color conversion functions should
5016	be moved there.
5017
50182003-11-12  Andrey Kiselev  <[email protected]>
5019
5020	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
5021	with the reverse byte order (it is reported by the magic header
5022	field). Problem reported by Andreas Wiesmann.
5023
5024	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
5025	calculation function. Guessing mechanics now documented in manual page.
5026
50272003-11-11  Andrey Kiselev  <[email protected]>
5028
5029	* tools/raw2tiff.c: Implemented image size guessing using
5030	correlation coefficient calculation between two neighbour lines.
5031
50322003-11-09  Frank Warmerdam  <[email protected]>
5033
5034	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
5035	planarconfig_contig case in TIFFComputeTile().
5036
5037	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
5038
50392003-11-09  Andrey Kiselev  <[email protected]>
5040
5041	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
5042
50432003-11-07  Andrey Kiselev  <[email protected]>
5044
5045	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
5046	Added TIFFRawStripSize() function as suggested by Chris Hanson.
5047
50482003-11-03  Andrey Kiselev  <[email protected]>
5049
5050	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
5051	per bug
5052
5053	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
5054
50552003-10-29  Andrey Kiselev  <[email protected]>
5056
5057	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
5058
5059	* html/build.html: Added note about GNU make requirement.
5060
50612003-10-25  Andrey Kiselev  <[email protected]>
5062
5063	* Makefile.in: Fixes in using MAKEFLAGS as per bug
5064
5065	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
5066
5067	* port/install.sh.in: Option -p added to the mkdir command to create
5068	all directory tree structure before installing.
5069
50702003-10-18  Andrey Kiselev  <[email protected]>
5071
5072	* /tools/tiff2ps.c: #include <strings.h> replaced with the
5073	#include <string.h>.
5074
50752003-10-16  Andrey Kiselev  <[email protected]>
5076
5077	* Makefile.in: Add an absolute path to the test_pics.sh call.
5078
50792003-10-12  Andrey Kiselev  <[email protected]>
5080
5081	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
5082	typedefs.
5083
50842003-10-09  Andrey Kiselev  <[email protected]>
5085
5086	* configure, libtiff/{Makefile.in, mkversion.c}:
5087	Relative buildings fixed.
5088
5089	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
5090	rule.
5091
50922003-10-07  Andrey Kiselev  <[email protected]>
5093
5094	* Makefile.in: Added missed v3.6.0.html.
5095
5096	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
5097	ORIENTATION_BOTLEFT.
5098
50992003-10-04  Andrey Kiselev  <[email protected]>
5100
5101	* 3.6.0 final release.
5102
51032003-10-03  Andrey Kiselev  <[email protected]>
5104
5105	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
5106	function TIFFReadRGBAImageOriented() implemented to retrieve raster
5107	array with user-specified origin position as suggested by Jason Frank.
5108	See
5109
5110	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
5111
5112	for details.
5113
5114	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
5115	instead of TIFFReadRGBAImage().
5116
5117	* tools/tiff2ps.c: Fixed possible endless loop as per bug
5118
5119	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
5120
51212003-09-30  Andrey Kiselev  <[email protected]>
5122
5123	* libtiff/tif_dirread.c: Check field counter against number of fields
5124	in order to fix
5125
5126	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
5127
5128	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
5129
5130	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
5131
51322003-09-25  Andrey Kiselev  <[email protected]>
5133
5134	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
5135	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
5136
5137	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
5138
51392003-09-23  Andrey Kiselev  <[email protected]>
5140
5141	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
5142
5143	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
5144
51452003-08-21  Andrey Kiselev  <[email protected]>
5146
5147	* tools/tiffmedian.c: int declaration replaced with the uint32 to
5148	support large images as per bug
5149
5150	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
5151
51522003-08-12  Andrey Kiselev  <[email protected]>
5153
5154 	* libtiff/Makefile.in: Fixed problem with building in different
5155	directory.
5156
5157	* tools/tiff2ps.c: Added missing #include <strings.h>.
5158
5159	* libtiff/tif_dirwrite.c: More fixes for custom tags code
5160	from Ashley Dreier.
5161
51622003-08-07  Andrey Kiselev  <[email protected]>
5163
5164	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
5165	Patch submitted by Balatoni Denes (with corrections from Tom
5166	Kacvinsky).
5167
5168	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
5169	being used. Reported by Tom Kacvinsky.
5170
5171	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
5172	reported by Ashley Dreier.
5173
5174	* libtiff/tif_print.c: Fixed problem with float tags reading, support
5175	for printing RATIONAL and BYTE tags added.
5176
51772003-08-05  Andrey Kiselev  <[email protected]>
5178
5179	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
5180	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
5181	problems with predictor initialization. Remove O_RDONLY check during
5182	state block allocation to be able open LZW compressed files in update
5183	mode.
5184
5185	Problem exist for libtiff version of the tif_lzw.c module. One from
5186	lzw-compression-kit hasn't such troubles.
5187
51882003-08-04  Frank Warmerdam  <[email protected]>
5189
5190	* libtiff/tif_write.c: modified tif_write.c so that the various
5191	encoded write functions use tif_postdecode() to apply byte order
5192	swapping (swab) to the application passed data buffer if the same
5193	would be done when reading.  This allows us to write pixel data with
5194	more than 8 bits per sample to existing files of a non-native byte
5195	order.  One side effect of this change is the applications buffer
5196	itself is altered in this case by the act of writing.
5197
5198	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
5199
52002003-07-25  Frank Warmerdam  <[email protected]>
5201
5202	* libtiff/tif_open.c: avoid signed/unsigned casting warning
5203	initializing typemask as per patch from J.A. Strother.
5204
5205	* tools/tiffcp.c: fixed signed/unsigned casting warning.
5206
5207	* libtiff/tif_print.c: dos2unix conversion.
5208
5209	* tools/tiffsplit.c: increased the maximum number of pages that
5210	can be split.  Patch provided by Andrew J. Montalenti.
5211
52122003-07-11  Andrey Kiselev  <[email protected]>
5213
5214	* tools/raw2tiff.c: Added option `-p' to explicitly select color
5215	space of input image data. Closes
5216
5217	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
5218
52192003-07-08  Frank Warmerdam  <[email protected]>
5220
5221	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
5222	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
5223	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
5224	avoid casting warning at /W4.
5225
52262003-07-03  Andrey Kiselev  <[email protected]>
5227
5228	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
5229
52302003-06-30  Andrey Kiselev  <[email protected]>
5231
5232	* libtiff/tif_pixarlog.c: Unused variables removed.
5233
5234	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
5235	EstimateStripByteCounts() as per bug
5236
5237	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
5238
5239	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
5240	64-bit architectures as per bug
5241
5242	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
5243
5244	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
5245	unknown data type.
5246
52472003-06-19  Frank Warmerdam  <[email protected]>
5248
5249	* libtiff/tif_print.c: fixed some serious bugs when printing
5250	custom tags ... almost certain to crash.
5251
5252	* libtiff/tif_dirread.c: Don't ignore custom fields that are
5253	autodefined.  Not sure how this got to be like this.
5254
52552003-06-18  Andrey Kiselev  <[email protected]>
5256
5257	* 3.6.0 Beta2 released.
5258
5259	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
5260	comparing as per bug
5261
5262	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
5263
5264	`-z' option now can be used to set the number of reported different
5265	bytes.
5266
52672003-06-09  Andrey Kiselev  <[email protected]>
5268
5269	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
5270	to -r option to get the entire image as one strip. See
5271
5272	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5273
5274	for details.
5275
52762003-06-04  Andrey Kiselev  <[email protected]>
5277
5278	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
5279	values as per bug
5280
5281	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5282
52832003-05-27  Frank Warmerdam  <[email protected]>
5284
5285	* libtiff/tif_jpeg.c: modified segment_height calculation to always
5286	be a full height tile for tiled images.  Also changed error to just
5287	be a warning.
5288
52892003-05-25  Andrey Kiselev  <[email protected]>
5290
5291	* tools/fax2tiff.c: Page numbering fixed, as per bug
5292
5293	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
5294
52952003-05-20  Andrey Kiselev  <[email protected]>
5296
5297	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5298	configure, Makefile.in:	Switched back to the old behaviour. Likely
5299	better solution should be found for OJPEG support.
5300
53012003-05-11  Andrey Kiselev  <[email protected]>
5302
5303	* libtiff/mkversion.c: Fixed problem with wrong string size when
5304	reading RELEASE-DATE file.
5305
53062003-05-07  Andrey Kiselev  <[email protected]>
5307
5308	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
5309	index was out of range.
5310
53112003-05-06  Andrey Kiselev  <[email protected]>
5312
5313	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5314	configure, Makefile.in:	Improved libtiff compilation with OJPEG
5315	support. Now no need for patching IJG JPEG library, hack requred by
5316	libtiff will be compiled and used in-place. Implemented with
5317	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
5318
5319	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
5320	TIFFVGetFieldDefaulted() function.
5321
53222003-05-05  Andrey Kiselev  <[email protected]>
5323
5324	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
5325	comments.
5326
5327	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
5328	was not copied from source image.
5329
5330	* libtiff/getimage.c: Workaround for some images without correct
5331	info about alpha channel as per bug
5332
5333	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
5334
53352003-04-29  Andrey Kiselev  <[email protected]>
5336
5337	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
5338	It basically allows one to use the /flateDecode filter for ZIP
5339	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
5340
5341	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
5342
5343	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
5344	as per bug
5345
5346	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
5347
53482003-04-17  Andrey Kiselev  <[email protected]>
5349
5350	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
5351	due to problems with multidirectory images. Quality of error messages
5352	improved.
5353
53542003-04-16  Andrey Kiselev  <[email protected]>
5355
5356	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
5357	encoded images. See bug entries
5358
5359	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
5360
5361	and
5362
5363	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5364
5365	* libtiff/tif_dirread.c: Additional check for StripByteCounts
5366	correctness. Fixes
5367
5368	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
5369
53702003-03-12  Andrey Kiselev  <[email protected]>
5371
5372	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
5373	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
5374	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
5375	tiffmedian.c}: Added library version reporting facility to all tools.
5376
53772003-03-06  Frank Warmerdam  <[email protected]>
5378
5379	* port/install.sh.in: Fixed problems with install producing paths
5380	like ///usr/local/lib on cygwin.
5381
53822003-02-27  Andrey Kiselev  <[email protected]>
5383
5384	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
5385	raw input page. Patch supplied by Julien Gaulmin. See
5386
5387	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
5388
5389	for details.
5390
53912003-02-26  Frank Warmerdam  <[email protected]>
5392
5393	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
5394	responsible for byte swapping complex image data.
5395
5396	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
5397	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
5398
53992003-02-07  Andrey Kiselev  <[email protected]>
5400
5401	* tools/ppm2tiff.c: Fixed problem with too many arguments.
5402
54032003-02-04  Andrey Kiselev  <[email protected]>
5404
5405	* tools/raw2tiff.c: Memory leak fixed.
5406
54072003-02-03  Andrey Kiselev  <[email protected]>
5408
5409	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
5410	(thanks, Julien!). More switches for fax2tiff tool for better control
5411	of input and output. Details at
5412
5413	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
5414
54152003-02-03  Frank Warmerdam  <[email protected]>
5416
5417	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
5418	library so that we can check if there is already any tile/strip data
5419	before deciding between creating a compressor or a decompressor.
5420
54212003-01-31  Frank Warmerdam  <[email protected]>
5422
5423	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
5424	a pre-existing compressed image.  That is, image writing to
5425	pre-existing compressed images is not allowed.
5426
5427	* libtiff/tif_open.c: Removed error if opening a compressed file
5428	in update mode.
5429
5430	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
5431
54322003-01-31  Andrey Kiselev  <[email protected]>
5433
5434	* config.guess, config.sub: Updated to recent upstream versions.
5435
54362003-01-15  Frank Warmerdam  <[email protected]>
5437
5438	* cut 3.6.0 Beta release.
5439
54402002-12-20  Andrey Kiselev  <[email protected]>
5441
5442	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
5443	in wrong way as per bug
5444
5445	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
5446
54472002-12-17  Frank Warmerdam  <[email protected]>
5448
5449	* libtiff/tif_dirread.c: Allow wrong sized arrays in
5450	TIFFFetchStripThing().
5451
5452	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
5453
54542002-12-02  Frank Warmerdam  <[email protected]>
5455
5456	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
5457	Was using realloc even first time.  Fix by Igor Venevtsev.
5458
54592002-11-30  Frank Warmerdam  <[email protected]>
5460
5461	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
5462	field value.
5463
5464	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
5465	tags in TIFFVGetField() ... added missing break.
5466
54672002-10-14  Frank Warmerdam  <[email protected]>
5468
5469	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
5470	the scanline buffer long enough when writing rgb triplets.
5471	The scanline needs to be 3 X the number of dots or else it will
5472	contain	an incomplete triplet and programs that try to separate
5473	the eps by redefining the colorimage operator will get messed up.
5474	Patch supplied by William Bader.
5475
5476	* Makefile.in: added tif_extension.c to file list as per
5477	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
5478
54792002-10-11  Andrey Kiselev  <[email protected]>
5480
5481	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
5482	large files (>2GiB) supporting. New option in the config.site:
5483	LARGEFILE="yes". Should be enough for I/O of the large files.
5484
54852002-10-10  Frank Warmerdam  <[email protected]>
5486
5487	* libtiff/html/v3.6.0.html: new release notes.
5488
5489	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
5490	link for Andrey.  Pointer to v3.6.0.html.
5491
5492	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
5493
54942002-10-07  Andrey Kiselev  <[email protected]>
5495	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
5496	(thanks, Sebastian!). New switches:
5497	-b # for a bottom margin of # inches
5498	-c   center image
5499	-l # for a left margin of # inches
5500	-r   rotate the image by 180 degrees
5501	New features merged with code for shrinking/overlapping.
5502	Previously added -c and -n switches (for overriding PS units) renamed
5503	in -x and -y respectively.
5504
5505	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
5506
5507	* html/man/*.html: Updated from actual manual pages.
5508
55092002-10-06  Frank Warmerdam  <[email protected]>
5510
5511	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
5512	size on windows.  Use #define boolean hack.
5513
5514	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
5515
5516	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
5517	USING_VISUALAGE is defined.
5518
5519	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5520
55212002-10-03  Frank Warmerdam  <[email protected]>
5522
5523	* libtiff/tiff.h: added COMPRESSION_JP2000.
5524
55252002-10-02  Andrey Kiselev  <[email protected]>
5526
5527	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
5528	by the TIFFFetchByteArray() function. Should finally resolve
5529
5530	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5531
5532	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
5533
5534	* html/Makefile.in: New targets added: html and groffhtml for
5535	producing HTML representations of the manual pages automatically.
5536	html target uses man2html tool, groffhtml uses groff tool.
5537
55382002-09-29  Frank Warmerdam  <[email protected]>
5539
5540	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
5541	from John H. DuBois III.
5542
55432002-09-15  Andrey Kiselev  <[email protected]>
5544
5545	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
5546	manual page for raw2tiff(1) tool.
5547
55482002-09-12  Andrey Kiselev  <[email protected]>
5549
5550	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
5551	the tiffio.h header file.
5552
5553	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
5554	manual page for TIFFDataWidth() function
5555
55562002-09-08  Frank Warmerdam  <[email protected]>
5557
5558	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
5559	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
5560
5561	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
5562	since we are unable to properly include the amount to skip.
5563
5564	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
5565
55662002-09-02  Andrey Kiselev  <[email protected]>
5567
5568	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5569	in TIFFFetchByteArray(). Problem described at
5570	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5571
55722002-08-22  Andrey Kiselev  <[email protected]>
5573
5574	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5575	in _TIFFSetupFieldInfo() function.
5576	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5577
5578	* /libtiff/tif_lzw.c: Additional consistency checking added in
5579	LZWDecode() and LZWDecodeCompat().
5580	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5581	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5582
5583	* /libtiff/tif_lzw.c:
5584	Added check for valid code lengths in LZWDecode() and
5585	LZWDecodeCompat(). Fixes
5586	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5587
55882002-08-16  Andrey Kiselev  <[email protected]>
5589
5590	* /libtiff/{Makefile.vc, libtiff.def}:
5591	Missed declarations added.
5592
55932002-08-15  Frank Warmerdam  <[email protected]>
5594
5595	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5596	return code from the underlying pick function.
5597
5598	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5599
5600	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5601	with FIELD_CUSTOM as mentioned in bug 169.
5602
5603	* tif_close.c: added logic to free dynamically created anonymous
5604	field definitions to correct a small memory leak.
5605
5606	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5607
56082002-08-10  Andrey Kiselev  <[email protected]>
5609
5610	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5611	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5612
56132002-07-31  Frank Warmerdam  <[email protected]>
5614
5615	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5616	JPEGDecode() as per bugzilla bug (issue 1):
5617
5618	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5619
5620	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5621	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5622	present in the tiff tags.
5623
5624	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5625
5626	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5627	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5628	fooled with the value.
5629
5630	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5631
56322002-06-22  Andrey Kiselev  <[email protected]>
5633
5634	* /tools/tiff2ps.c: Added workaround for some software that may crash
5635	when last strip of image contains fewer number of scanlines than
5636	specified by the `/Height' variable. See
5637	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5638	for explanation.
5639
56402002-06-21  Andrey Kiselev  <[email protected]>
5641
5642	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5643	splitting long images in several pages. See
5644	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5645	Patch granted by John Williams <[email protected]>.
5646
56472002-06-11  Frank Warmerdam  <[email protected]>
5648
5649	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5650	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5651	This one is described in:
5652
5653	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5654
5655	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5656
5657	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5658
56592002-05-10  Andrey Kiselev  <[email protected]>
5660
5661	* tools/tiff2ps: New commandline switches to override resolution
5662	units obtained from the input file. Closes
5663	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5664
56652002-04-26  Andrey Kiselev  <[email protected]>
5666
5667	* libtiff/libtiff.def: Added missed declaration.
5668
56692002-04-22  Andrey Kiselev  <[email protected]>
5670
5671	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5672	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5673
56742002-04-20  Andrey Kiselev  <[email protected]>
5675
5676	* libtiff/tif_open.c: Pointers to custom procedures
5677	in TIFFClientOpen() are checked to be not NULL-pointers.
5678
56792002-04-18  Andrey Kiselev  <[email protected]>
5680
5681	* libtiff/libtiff.def: Added missed declarations.
5682
5683	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5684
56852002-04-16  Andrey Kiselev  <[email protected]>
5686
5687	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5688	Should finally close
5689	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5690
56912002-04-10  Andrey Kiselev  <[email protected]>
5692
5693	* tools/tiff2ps: Division by zero fixed.
5694	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5695
56962002-04-09  Andrey Kiselev  <[email protected]>
5697
5698	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5699	TIFFCheckpointDirectory() routine added.
5700	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5701
5702	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5703	for the new function.
5704
57052002-04-08  Andrey Kiselev  <[email protected]>
5706
5707	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5708	additional members tif->tif_decodestatus and tif->tif_encodestatus
5709	for correct handling of unconfigured codecs (we should not try to read
5710	data or to define data size without correct codecs).
5711
5712	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5713	changed. Now it has used tif->tif_decodestatus and
5714	tif->tif_encodestatus.
5715	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5716	case of __cvs_8.tif test image).
5717
5718	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5719	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5720	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5721	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5722
57232002-04-04  Andrey Kiselev  <[email protected]>
5724
5725	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5726	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5727	files by skipping bad strips.
5728	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5729
57302002-04-03  Frank Warmerdam  <[email protected]>
5731
5732	* libtiff/tif_dirwrite.c: Removed some dead code.
5733
5734	* libtiff/*: Cleanup some warnings.
5735
5736	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5737	for variable length FIELD_CUSTOM values.  Was int * but should be
5738	u_short *.
5739
57402002-04-01  Andrey Kiselev  <[email protected]>
5741
5742	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
5743	utility (at cpStripToTile routine).
5744
57452002-03-27  Frank Warmerdam  <[email protected]>
5746
5747	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
5748
5749	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
5750
5751	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
5752	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
5753
5754	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
5755	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
5756
57572002-03-26  Dwight Kelly  <[email protected]>
5758
5759	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5760	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
5761	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
5762	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
5763	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
5764	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
5765
57662002-03-26  Andrey Kiselev  <[email protected]>
5767
5768	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
5769	now also uses TIFFRGBAImageOK before reading. This is additional fix
5770	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5771
57722002-03-25  Andrey Kiselev  <[email protected]>
5773
5774	* libtiff/: tif_getimage.c: Additional check for supported
5775	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
5776	TIFFRGBAImageOK before reading.
5777	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5778
57792002-03-15  Andrey Kiselev  <[email protected]>
5780
5781	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5782	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
5783	TIFFDataType sizes instead of working with tiffDataWidth array
5784	directly. Should prevent out-of-borders bugs in case of unknown or
5785	broken data types.  EstimateStripByteCounts routine modified, so it
5786	won't work when tags with uknown sizes founded.
5787	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
5788
57892002-03-13  Andrey Kiselev  <[email protected]>
5790
5791	* libtiff/tif_getimage.c: Added support for correct handling
5792	`Orientation' tag in gtTileContig. Should be added in other gt*
5793	functions as well, but I have not images for testing yet. Partially
5794	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5795
57962002-03-10  Andrey Kiselev  <[email protected]>
5797
5798	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
5799	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
5800	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
5801	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
5802
58032002-03-08  Andrey Kiselev  <[email protected]>
5804
5805	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
5806	be stripped when installing, utility binaries will do.	Closes
5807	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5808
58092002-02-28  Frank Warmerdam  <[email protected]>
5810
5811	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
5812
5813	* man/libtiff.3t: added copyright tag info.
5814
58152002-02-11  Frank Warmerdam  <[email protected]>
5816
5817	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
5818
5819	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5820
5821	* man/Makefile.in: Patch DESTDIR handling
5822
5823	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
5824
5825	* configure: OpenBSD changes for Sparc64 and DSO version.
5826
5827	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
5828
58292002-02-05  Frank Warmerdam  <[email protected]>
5830
5831	* config.site/configure: added support for OJPEG=yes option to enable
5832	OJPEG support from config.site.
5833
58342002-01-27  Frank Warmerdam  <[email protected]>
5835
5836	* html/document.html: fixed links for TIFf 6 docs.
5837
58382002-01-18  Frank Warmerdam  <[email protected]>
5839
5840	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
5841
5842	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
5843	decodestrip function returns anything not greater than zero as per
5844	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
5845
5846	* configure: Modify CheckForBigEndian so it can work in a cross
5847	compiled situation.
5848
58492002-01-16  Frank Warmerdam  <[email protected]>
5850
5851	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
5852
5853	* tools/tiffset.c: fix bug in error reporting.
5854
5855	* tools/tiffcp.c: fix several warnings that show up with -Wall.
5856
58572002-01-04  Frank Warmerdam  <[email protected]>
5858
5859	* libtiff/tif_jpeg.c: fixed computation of segment_width for
5860	tiles files to avoid error about it not matching the
5861	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
5862	size.") for ITIFF files.  Apparently the problem was incorporated since
5863	3.5.5, presumably during the OJPEG/JPEG work recently.
5864
58652001-12-15  Frank Warmerdam  <[email protected]>
5866
5867	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
5868
5869	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5870
5871	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
5872	(defined in tiffconf.h - 1 by default) then the RGBA interface
5873	will assume that a fourth extra sample is ASSOCALPHA if the
5874	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
5875	the library, but makes it work better with RGBA files produced by
5876	lots of applications that don't mark the alpha values properly.
5877
5878	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5879	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
5880
58812001-12-12  Frank Warmerdam  <[email protected]>
5882
5883	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
5884	override those from tiff directory.  This makes this work with
5885	ImageGear generated files.
5886
58872001-12-07  Frank Warmerdam  <[email protected]>
5888
5889	* html/Makefile.in: added missing images per bug 92.
5890
5891	* port/Makefile.in: fixed clean target per bug 92.
5892
58932001-11-28  Frank Warmerdam  <[email protected]>
5894
5895	* Reissue 3.5.7 release.
5896
5897	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
5898	YYYYMMDD so that it is increasing over time.
5899
5900	* Makefile.in: Ensure that tiffvers.h is regenerated in the
5901	make release target.
5902
5903	* Makefile.in: added libtiff/tiffvers.h to the release file list.
5904
59052001-11-23  Frank Warmerdam  <[email protected]>
5906
5907	* added html/v3.5.7.html, updated html/index.html.
5908
5909	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
5910
59112001-11-15  Frank Warmerdam  <[email protected]>
5912
5913	* configure: fixed test for -lm.
5914
59152001-11-02  Frank Warmerdam  <[email protected]>
5916
5917	* Added PHOTOMETRIC_ITULAB as per bug 90.
5918
5919	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
5920
59212001-10-10  Frank Warmerdam  <[email protected]>
5922
5923	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
5924	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
5925	in keeping with TIFF 6.0 standard in tiff.h
5926
5927	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
5928
59292001-09-26  Frank Warmerdam  <[email protected]>
5930
5931	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
5932	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
5933
59342001-09-24  Frank Warmerdam  <[email protected]>
5935
5936	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
5937
5938	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
5939
5940	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
5941	error about LZW not being available.
5942
5943	* libtiff/tif_dir.c: propagate failure to initialize compression
5944	back from TIFFSetField() as an error status, so applications can
5945	detect failure.
5946
5947	* libtiff/tif_dir.c: removed the auto replacement of
5948	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
5949
5950	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
5951	from CVS as they are all supposed to be auto-generated by configure.
5952
59532001-09-22  Frank Warmerdam  <[email protected]>
5954
5955	* libtiff/tif_ojpeg.c: new update from Scott.
5956
59572001-09-09  Frank Warmerdam  <[email protected]>
5958
5959	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
5960	always use the "safe" version, even if there is a very slight
5961	cost in performance.
5962
5963	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
5964
5965	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
5966	in two places.
5967
5968	* libtiff/tif_getimage.c: Fixed problem with reading strips or
5969	tiles that don't start on a tile boundary.  Fix contributed by
5970	Josep Vallverdu (from HP), and further described in bug 47.
5971
5972	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
5973
5974	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
5975
5976	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
5977
59782001-09-06  Frank Warmerdam  <[email protected]>
5979
5980	* libtiff/tif_packbits.c: fixed memory overrun error.
5981
5982	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
5983
59842001-08-31  Frank Warmerdam  <[email protected]>
5985
5986	* libtiff/tif_getimage.c: relax handling of contig case where
5987	there are extra samples that are supposed to be ignored.  This
5988	should now work for 8bit greyscale or palletted images.
5989
5990	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
5991
59922001-08-28  Frank Warmerdam  <[email protected]>
5993
5994	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
5995	images with more than four samples per pixel.  See:
5996
5997	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
5998
59992001-08-10  Frank Warmerdam  <[email protected]>
6000
6001	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
6002	in TIFFReadRGBATile() to avoid issues in cases of overlapping
6003	buffers.  See Bug 69 in Bugzilla.
6004
6005	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
6006
6007	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
6008
60092001-08-09  Frank Warmerdam  <[email protected]>
6010
6011	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
6012	when checking for 64 bit architectures as per bugzilla bug 67.
6013
60142001-07-27  Frank Warmerdam  <[email protected]>
6015
6016	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
6017	bug 66.
6018
60192001-07-20  Frank Warmerdam  <[email protected]>
6020
6021	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
6022	has been included.
6023
60242001-07-19  Frank Warmerdam  <[email protected]>
6025
6026	* libtiff/tif_open.c: Seek back to zero after failed read,
6027	before writing header.
6028
60292001-07-18  Frank Warmerdam  <[email protected]>
6030
6031	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
6032	much better.  Now depends on having patched libjpeg as per
6033	patch in contrib/ojpeg/*.
6034
60352001-07-17  Frank Warmerdam  <[email protected]>
6036
6037	* */Makefile.in: added DESTDIR support.
6038
6039	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
6040
60412001-07-16  Frank Warmerdam  <[email protected]>
6042
6043	* configure, libtiff/Makefile.in: applied OpenBSD patches
6044	as per:
6045
6046	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
6047
60482001-06-28  Frank Warmerdam  <[email protected]>
6049
6050	* libtiff/tif_getimage.c: Fixed so that failure is properly
6051	reported by gtTileContig, gtStripContig, gtTileSeparate and
6052	gtStripSeparate.
6053
6054	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
6055
6056	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
6057	Updated bug section of tiffcmp.1 to note tiled file issues.
6058
6059	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
6060
60612001-06-22  Frank Warmerdam  <[email protected]>
6062
6063	* configure: Changes for DSO generation on AIX provided by
6064	John Marquart <[email protected]>.
6065
6066	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
6067	on Darwin thanks to Robert Krajewski ([email protected]) and
6068	Keisuke Fujii ([email protected]).
6069
60702001-06-13  Frank Warmerdam  <[email protected]>
6071
6072	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
6073
6074	* man/tiff2rgba.1: new
6075
60762001-05-22  Frank Warmerdam  <[email protected]>
6077
6078	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
6079
60802001-05-13  Frank Warmerdam  <[email protected]>
6081
6082	* libtiff/tools/thumbnail.c: changed default output compression
6083	to packbits from LZW since LZW isn't generally available.
6084
60852001-05-12  Frank Warmerdam  <[email protected]>
6086
6087	* libtiff/tif_ojpeg.c: New.
6088	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
6089	to OJPEG support.
6090
6091	Scott Marovich <[email protected]> supplied OJPEG support.
6092
60932001-05-11  Frank Warmerdam  <[email protected]>
6094
6095	* tiff.h: removed, it duplicates libtiff/tiff.h.
6096
60972001-05-08  Frank Warmerdam  <[email protected]>
6098
6099	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
6100	ensure everything is in order.
6101
6102	* libtiff/libtiff.def: added TIFFCreateDirectory and
6103	TIFFDefaultStripSize as per:
6104
6105	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
6106
61072001-05-02  Frank Warmerdam  <[email protected]>
6108
6109	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
6110	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
6111	force use of uint32 counts instead of short counts.
6112
6113	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
6114	case of writing TIFF_BYTE/TIFF_SBYTE fields.
6115
6116	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
6117
61182001-05-01  Frank Warmerdam  <[email protected]>
6119
6120	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
6121	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
6122
61232001-04-05  Frank Warmerdam  <[email protected]>
6124
6125	* tiffio.h: removed C++ style comment.
6126
6127	* configure: fixed up SCRIPT_SH/SHELL handling.
6128
6129	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
6130
6131	* config.guess: documented more variables as per bug 40.
6132
61332001-04-03  Frank Warmerdam  <[email protected]>
6134
6135	* configure, *Makefile.in: Various changes to improve configuration
6136	for HP/UX specifically, and also in general.  They include:
6137	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
6138	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
6139	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
6140	 - Use -${MAKEFLAGS} in sub makes from makefiles.
6141
6142	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
6143
61442001-04-02  Frank Warmerdam  <[email protected]>
6145
6146	* libtiff/tiff.h: Applied hac to try and resolve the problem
6147	with the inttypes.h include file on AIX.
6148
6149	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
6150
6151	* VERSION: update to 3.5.7 beta in preparation for release.
6152
6153	* configure/config.site: modified to check if -lm is needed for
6154	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
6155
6156	* config.guess: updated wholesale to an FSF version apparently
6157	from 1998 (as opposed to 1994).  This is mainly inspired by
6158	providing for MacOS X support.
6159
61602001-03-29  Frank Warmerdam  <[email protected]>
6161
6162	* configure, Makefile.in, etc: added support for OPTIMIZER being
6163	set from config.site.
6164
61652001-03-28  Frank Warmerdam  <[email protected]>
6166
6167	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
6168
6169	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
6170	sizes. It fixes two problems:
6171
6172	Without	scaling (-S) the fax is now centered on the page size specified
6173	with -H	and/or -W. Before, fax2ps was using an obscure and practially
6174	useless algorithm to allocate the image relative to Letter sized paper
6175	which sometime sled to useless whitespace on the paper, while at the
6176	same time cutting of the faxes printable area at the opposite border.
6177
6178	Second, scaling now preserves aspect ratio, which makes unusual faxes
6179	(in particular short ones) print properly.
6180
6181	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
6182
6183	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
6184	Bruce A. Mallett.  See check message for detailed information
6185	on all the changes, including a faster encoder, fixes for level
6186	2 PostScript, and support for the imagemask operator.
6187
61882001-03-27  Frank Warmerdam  <[email protected]>
6189
6190	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
6191	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
6192
6193	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
6194
61952001-03-16  Frank Warmerdam  <[email protected]>
6196
6197	* tif_dirinfo.c: moved definition of copyright tag in field list.
6198	Apparently they have to be in sorted order by tag id.
6199
62002001-03-13  Frank Warmerdam  <[email protected]>
6201
6202	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
6203	images in RGBA interface.
6204
62052001-03-02  Frank Warmerdam  <[email protected]>
6206
6207	* Added TIFFTAG_COPYRIGHT support.
6208
62092001-02-19  Frank Warmerdam  <[email protected]>
6210
6211	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
6212	with support for extracting subimages with the ,n syntax, and also
6213	adding the -b bias removal flag.
6214
62152001-02-16  Frank Warmerdam  <[email protected]>
6216
6217	* libtiff/libtiff.def: Brent Roman submitted new version adding
6218	serveral missing entry points.
6219
6220	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
6221	Some sort of weird VMS thing.
6222
6223	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
6224
6225	* tif_luv.c/tiff.h/tiffio.h:
6226	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
6227	([email protected]).  He writes:
6228
6229	1) I improved the gamut-mapping function in tif_luv.c for imaginary
6230	colors, because some images were being super-saturated on the input
6231	side and this resulted in some strange color shifts in the output.
6232
6233	2) I added a psuedotag in tiff.h to control random dithering during
6234	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
6235	on for 24-bit LogLuv output.  Dithering improves the average color
6236	accuracy over the image.
6237
6238	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
6239	tiffio.h, to expose internal routines for converting between LogLuv and
6240	XYZ coordinates.  This is helpful for writing more efficient,
6241	specialized conversion routines, especially for reading LogLuv files.
6242
6243	Changes applied with minor edits.
6244
62452001-01-23  Frank Warmerdam  <[email protected]>
6246
6247	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
6248	whether we are encoding or decoding.  This is to ensure graceful
6249	recovery if TIFFClientOpen() discovers an attempt to open a compressed
6250	file for "r+" access, and subsequently close it, as it resets the
6251	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
6252	compressor's concept of whether it is in encode or decode mode.
6253
62542001-01-08  Mike Welles <[email protected]>
6255
6256	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
6257
62582001-01-07  Frank Warmerdam  <[email protected]>
6259
6260	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
6261	as per bug report by Patrick Connor.
6262
62632000-12-28  Frank Warmerdam  <[email protected]>
6264
6265	* Added RELEASE-DATE file to release file list.
6266
6267	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
6268
62692000-12-22  Mike Welles <[email protected]>
6270        * added link to CVS mirror from index.html
6271
6272	* updated html/internals.html to note that LZW compression is
6273	  not supported by default.
6274
62752000-12-22  Frank Warmerdam  <[email protected]>
6276
6277	* updated html/libtiff.html to not point at Niles' old JPL web site
6278	for the man pages, point at www.libtiff.org.
6279
62802000-12-21  Frank Warmerdam  <[email protected]>
6281
6282	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
6283	Leonard Rosenthol <[email protected]>.  May interfere
6284	with correct building on older systems.  If so, please let me know.
6285
62862000-12-19 Mike Welles <[email protected]>
6287
6288	* Took out LZW Encoding from tif_lzw.c
6289
6290	* Created HOWTO-RELEASE
6291
6292	* Created html/v3.5.6.html
6293
6294	* updated index.html
6295
62962000-12-01  Frank Warmerdam  <[email protected]>
6297
6298	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
6299	Patches supplied by Frank Cringle <[email protected]>
6300	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
6301
63022000-11-24  Frank Warmerdam  <[email protected]>
6303
6304	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
6305	target so that the private headers required by libgeotiff can be
6306	installed with the others.  They are not installed by default.
6307
6308	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
6309	targets so libtiff.so will be built with an explicit dependency
6310	on libm.so.
6311
6312	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
6313	libtiff.so.3.5.5.
6314
6315	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
6316	file, or ALPHA version logic.  Added stuff about DIST_POINT in
6317	place of DIST_TYPE and the alpha release number stuff.
6318
63192000-11-22  Frank Warmerdam  <[email protected]>
6320
6321	* I have applied a patch from Steffen Moeller <[email protected]> to
6322	the configure script so that it now accepts the --prefix, and
6323	--exec-prefix directives.
6324
63252000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
6326
6327	* I have made a variety of modifications in an effort to ensure the
6328	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
6329	file which seems to be updated regularly.
6330
6331	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
6332	   version include file.
6333	 o renamed version.h to tiffvers.h because we now have to install it
6334	   with the public libtiff include files.
6335	 o include tiffvers.h in tiffio.h.
6336	 o updated tif_version.c to use tiffvers.h.
6337	 o Updated Makefile.in accordingly.
6338
6339	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
6340	I have updated the win32 detection rules in tiffcomp.h.
6341
63422000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
6343
6344	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
6345	the strip/tile width and height aren't multiples of the sampling size.
6346	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
6347	Some patches from Rick LaMont of Dot C Software.
6348
6349	* Modified tif_packbits.c encoder to avoid compressing more
6350	data than provided if rowsize doesn't factor into provided data
6351	(such as occurs for YCbCr).
6352
63532000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
6354
6355	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
6356	roundup if rows_per_strip not a multiple of vertical sample size.
6357
63582000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
6359
6360	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
6361	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6362	from [email protected].
6363
6364	* Modified tif_packbits.c decoding to avoid overrunning the
6365	output buffer, and to issue a warning if data needs to be
6366	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6367
63682000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
6369
6370	* Modified tiff2bw to ensure portions add to 100%, and that
6371	white is properly recovered.
6372
6373	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
6374	Patch c/o Stanislav Brabec <[email protected]>
6375
63762000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
6377
6378	* Modified TIFFClientOpen() to emit an error on an attempt to
6379	open a comperessed file for update (O_RDWR/r+) access.  This is
6380	because the compressor/decompressor code gets very confused when
6381	the mode is O_RDWR, assuming this means writing only.  See
6382	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
6383
63842000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
6385
6386	* Added GNULDdso target an`d switched linux and freebsd to use it.
6387
63882000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
6389
6390	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
6391	of EXPAND1D() as per bug 11 (from Roman).
6392
63932000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
6394	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
6395	cygwin compatibility.
6396
6397	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
6398	be a proper fix to the buffer sizing problem.  See
6399	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
6400
6401	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
6402	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
6403	Thanks to Nick Lamb <[email protected]> for reporting the
6404	bug and proving the patch.
6405
64062000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
6407
6408	* Fixed tif_jpeg.c so avoid destroying the decompressor before
6409	we are done access data thanks to bug report from:
6410	Michael Eckstein <[email protected]>.
6411
6412	* Reverted tif_flush change.
6413
64142000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
6415
6416	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
6417	error when TIFF_BEENWRITING is not set.  This ensures that the
6418	directory contents can still be flushed by TIFFFlush().
6419
64202000-08-14  Frank Warmerdam  <[email protected]>
6421
6422	* tif_open.c: Don't set MMAP for O_RDWR files.
6423
6424	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
6425	so that files opened for update can be strip chopped too.
6426
6427	* tif_read.c: fixed up bug with files missing rowsperstrip and
6428	the strips per separation fix done a few weeks ago.
6429
64302000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
6431
6432	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
6433	SAMPLEFORMAT_COMPLEXINT.
6434
64352000-07-13  Mike Welles <[email protected]>
6436
6437	* index.html, bugs.html: added bugzilla info.
6438
64392000-07-12  Frank Warmerdam  <[email protected]>
6440
6441	* tif_read.c: fix subtle bug with determining the number of
6442	rows for strips that are the last strip in a separation but
6443	not the last strip of all in TIFFReadEncodedStrip().
6444
6445	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
6446	Peter Skarpetis <[email protected]>
6447
64482000-06-15  Frank Warmerdam  <[email protected]>
6449
6450	* Modified tiffio.h logic with regard to including windows.h.  It
6451	won't include it when building with __CYGWIN__.
6452
64532000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
6454
6455	* README: update to mention www.libtiff.org, don't list Sam's old
6456	email address.
6457
6458	* configure: Fixed DSO test for Linux as per patch from
6459	  Jan Van Buggenhout <[email protected]>.
6460
64612000-04-21  Frank Warmerdam  <[email protected]>
6462
6463	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
6464	one tile/strip images with an offset, and byte count of zero. These
6465	could be "unpopulated" images.
6466
64672000-04-18  Frank Warmerdam  <[email protected]>
6468
6469	* contrib/addtiffo: Added "averaging" resampling option.
6470
6471	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
6472
6473Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
6474
6475	* tools/Makefile.in: Modified to install properly on SGI.
6476
64772000-04-12  Mike Welles	     <[email protected]>
6478	* configure:  Fixed stupid mistake in libc6 test on Linux
6479
64802000-04-04  Mike Welles	     <[email protected]>
6481	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
6482	  caught by BoundsChecker.  From Arvan Pritchard
6483	  <[email protected]>  (untested).
6484
6485	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
6486	  Arvan Pritchard <[email protected]>
6487
6488	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
6489	  Arvan Pritchard <[email protected]>
6490
64912000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
6492
6493	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
6494
64952000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
6496
6497	* fax2ps: Fixed mixup of width and height in bounding box statement
6498	as per submission by Nalin Dahyabhai <[email protected]>.
6499
65002000-03-27  Mike Welles	     <[email protected]>
6501
6502	* fax2ps:  Modified printruns to take uint32 instead of uint16.
6503	Patch courtesy of Bernt Herd <[email protected]>
6504
65052000-03-20  Mike Welles	     <[email protected]>
6506
6507	* configure: added test for libc6 for linux targets.  Bug reported by
6508        Stanislav Brabec <[email protected]>
6509
6510	* Added 3.5 docs to html/Makefile.in.
6511	Thanks to  Stanislav Brabec <[email protected]>
6512
6513	* configure: fixed bugs in sed scripts
6514	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
6515	fix submitted to Stanislav Brabec <[email protected]>
6516
6517	* tools/iptcutil was not in files list, and wasn't being
6518	added to tar archive.  Updated Makefile.in.
6519
65202000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
6521
6522	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
6523	conversion for the run arrays.
6524
65252000-03-03  Frank Warmerdam  <[email protected]>
6526
6527	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
6528	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
6529
65302000-03-02  Frank Warmerdam  <[email protected]>
6531
6532	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
6533
6534	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
6535	to avoid overruns encountered with frle_bug.tif.
6536
6537Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
6538
6539	* Fixed tools/tiffcmp so that stopondiff testing works.
6540	  Patch care of Joseph Orost <[email protected]>.
6541
65422000-01-28    <warmerda@CS46980-B>
6543
6544	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
6545	  set to 1, and added default (off) setting in tiffconf.h.  This
6546	  should eventually be set by the configure script somehow.
6547
6548	  The original work on all these 2-4GB changes was done by
6549	  Peter Smith ([email protected]).
6550
6551	* Modified tif_win32.c to support 2-4GB seeks.
6552
6553	* tentatively changed toff_t to be unsigned instead of signed to
6554	  facilitate support for 2-4GB files.
6555
6556	* Updated a variety of files to use toff_t.  Fixed some mixups
6557	  between toff_t and tsize_t.
6558
6559Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
6560
6561	* Largely reimplemented contrib/addtiffo to avoid temp files,
6562	updating the TIFF file in place.  Fixed a few other bugs to.
6563
6564	* Set tif_rawdatasize to zero when freeing raw data buffer in
6565	TIFFWriteDirectory().
6566
6567	* Enabled "REWRITE_HACK" in tif_write.c by default.
6568
6569	* Fix bug in tif_write.c when switching between reading one directory
6570	and writing to another.
6571
6572	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6573
6574Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6575
6576	* Added TIFFmemory(3t) functions to libtiff.def.
6577
6578Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6579
6580	* Added libtiff/libtiff.def to TIFFILES distribution list.
6581
6582Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6583
6584	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6585
6586	* Altered descriptions in tools to reflect "by default" lzw not supported
6587
6588	* Updated index.html to note lzw compression kit.
6589
6590Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6591
6592	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6593
6594Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6595
6596	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6597
6598	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6599	  when LZW compression invoked.
6600
6601	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6602	  in tools to reflect removal of LZW compression
6603
6604Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6605
6606        * Fixed bug that caused LZW (non) compression to segfault. Added
6607	  warning about LZW compression removed being removed, and why.
6608
6609	* Added nostrip to install in tools/Makefile.in so that debugging
6610	  symbols are kept.
6611
6612Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6613
6614	* Added patch from Ivo Penzar <[email protected]>,
6615	  supporting Adobe ZIP deflate.  Untested.
6616
6617Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6618
6619	* Made Packbits the default compression in tools/tiff2rgba.c instead
6620	of LZW.
6621
6622Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6623
6624	* Added tif_luv to contrib/djgpp/Makefile.lib.
6625
6626Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6627
6628        * Added zip creation to relase makefile target
6629
6630	* Added html for TIFFWriteTile.3t man page.
6631
6632Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6633
6634	* Added some changes to tif_write.c to support rewriting existing
6635	fixed sized tiles and strips.  Code mods disabled by default, only
6636	enabled if REWRITE_HACK is defined for now.
6637
6638Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6639
6640	* Added TIFFWriteTile.3t man page.
6641
6642Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6643
6644	* Added notes on use of makefile.vc in build.html, and fixed
6645	email subscription address.
6646
6647199-11-28  Mike Welles <[email protected]>
6648
6649	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6650
6651	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6652	   from Bruce Carmeron <[email protected]> -- modifications of
6653	   changes made by Frank (sun cc still complained on cast).
6654
6655	*  Added tiffconf.h to install target per request from Bill
6656	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6657 	   know features have been compiled into the TIFF library in order to
6658	   handle things properly".
6659
6660Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6661
6662	* fixed various VC++ warnings as suggested by Gilles Vollant
6663	<[email protected]>.
6664
6665Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6666
6667	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6668	not imply applications are responsible for image data swapping.
6669
66701999-11-22  Mike Welles <[email protected]>
6671	*  HTML-ized the man pages, added to html/man
6672
6673	*  Removed LZW Compression to comply with Unisys patent extortion.
6674
66751999-09-29  Mike Welles		<[email protected]>
6676	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6677	   From Ivo Penzar <[email protected].
6678
6679	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6680	   memory mapped files. <[email protected]>
6681
66821999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6683	* Corrected alpha versioning.
6684
6685	* Removed distinction between  alpha and release targets in Makefile.in.
6686
6687	* added release.stamp target, which tags cvs tree, and updates
6688	  "RELEASE-DATE"
6689
6690	* added releasediff target, which diffs tree with source as of
6691	  date in "RELEASE-DATE"
6692
6693	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6694	  away from alpha/non-alpha distinctions).
6695
6696	* updated html to reflect release
6697
66981999-09-23    <warmerda@CS46980-B>
6699
6700	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6701
6702	* Added CYGWIN case in configure.
6703
6704Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6705
6706	* Applied Francois Dagand's patch to handle fax decompression bug.
6707	  (sizes >= 65536 were failing)
6708
6709Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6710
6711	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6712	  by Christopher Lawton <[email protected]>
6713
6714Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6715
6716	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6717	  Albert Chin-A-Young <[email protected]>
6718
6719	* Added TIFFReassignTagToIgnore() API on behalf of
6720	  Bruce Cameron <[email protected]>.  Man page still pending.
6721
6722Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6723
6724	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6725	files to provide for a rudimentary testsuite.
6726
6727	* Added contrib/tags back from old distribution ... fixed up a bit.
6728
67291999-08-16    <warmerda@CS46980-B>
6730
6731	* Added simple makefile.vc makefiles for building with MS VC++
6732	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6733	better solutions for some users.
6734
6735Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6736
6737	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6738	put it in tools since part of it is in C++.
6739
67401999-08-16  Michael L. Welles  <[email protected]>
6741
6742	* Updated html/index.html with anon CVS instructions.
6743
6744Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
6745
6746	* pre-remove so link before softlink in LINUXdso action in
6747	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
6748	the first.
6749
6750	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
6751	colormaps owned by the TIFF handle itself when trying to fixup wrong
6752	(eight bit) colormaps.  Corrected by maintaining a private copy of
6753	the colormap.
6754
6755	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
6756	tif_getimage.c.
6757
6758	* CVS Repository placed at remotesensing.org.  ChangeLog added.
6759