xref: /libtiff-4.0.7/ChangeLog (revision 0319952d)
12015-06-21  Bob Friesenhahn  <[email protected]>
2
3	* test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG
4	library so only execute if JPEG is available.
5
6	* libtiff 4.0.4 released.
7
8	* configure.ac: Add a HAVE_FOO Automake conditional for each
9	add-on library.
10
11	* test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode
12	requires JPEG support to compile.  Use Automake conditional to
13	only include it when JPEG support is available.
14
15	* html/build.html: Try to improve the nmake-based VC++ build
16	description.
17
18	* libtiff/tiffconf.vc.h: Build fixes based on testing.
19
20	* libtiff/tif_config.vc.h: Build fixes based on testing.
21
22	* libtiff/libtiff.def: TIFFRasterScanline does not exist so remove
23	export for it.
24
252015-06-20  Bob Friesenhahn  <[email protected]>
26
27	* libtiff/tif_config.vc.h: Make adjustments to match the new
28	definitions that configure produces, including for WIN64.  Still
29	needs to be tested.
30
31	* configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting
32	specifier.  64-bit MinGW supports 'long long' but support for
33	'lld' is not assured by the run-time DLLs and so GCC warns.
34	Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition
35	and printf format specifier to deal with printing values of
36	'size_t' type.  In particular, this was necessary for WIN64.
37	Added a configure test for if the system headers provide 'optarg'
38	(normal case) and block out the many explicit 'extern' statements
39	in the utilities.  This was found to be necessary under Windows
40	when getopt is in a DLL and the symbols are already imported with
41	dllimport via standard header files.
42
43	* test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32
44	and boolean in MinGW build due to including jpeglib.h.
45
46	* test/rewrite_tag.c (main): Fix problem with location of variable
47	declaration.
48
49	* libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs,
50	TIFFReadRGBAImageOriented, TIFFSetCompressionScheme,
51	TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc,
52	TIFFRasterScanline, TIFFSetErrorHandlerExt,
53	TIFFSetWarningHandlerExt, TIFFNumberOfDirectories,
54	TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory,
55	TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by
56	Roger Leigh and justified by use in libtiff tests, documentation,
57	and changelog notes.  Also sorted symbol list and removed
58	duplicate entries.
59
602015-06-16  Bob Friesenhahn  <[email protected]>
61
62	* libtiff/tif_getimage.c: Fix four Coverity issues related to
63	unintended sign extension.
64
652015-06-16  Even Rouault <even.rouault at spatialys.com>
66
67	* libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna)
68
692015-06-14  Lee Howard  <[email protected]>
70
71	* libtiff/tif_unix.c: contribution from Vadim Zeitlin on
72	Bugzilla Bug #2510 fixes several harmless but still annoying
73	warnings
74
75	* configure: contribution from Ludolf Holzheid on Bugzilla
76	Bug #2498.  Adds an option to select the file I/O style on
77	Windows hosts.
78
79	* libtiff/tif_getimage.c: contribution from Gary Cramblitt
80	on Bugzilla Bug #2409.  Correct reading of certain tiled TIFFs.
81
82	* configure, configure.ac: contribution from Marcos H. Woehrmann
83	on Bugzilla Bug #2405.  Correct shell equality operator.
84
85	* tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt
86	on Bugzilla Bug #2401.  Appropriately call glFlush().
87
88	* tools/tiff2pdf.c: change ColorTransform from "0" to "1"
89	following Bugzilla Bug #2150.
90
912015-06-13  Lee Howard  <[email protected]>
92
93	* libtiff/tif_lzw.c: contribution from Andy Cave - decode
94	files that contain consecutive CODE_CLEAR codes.
95
96	* tools/tiff2pdf.c: contribution from Antti S. Lankila on
97	Bugzilla Bug #2078. Suppress initial output of the header.
98
99	* tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy -
100	Take care in using the return value from snprintf().
101
102	* tools/tiffcrop.c: contribution from Eduardo Robles Elvira -
103	correctly copy the compression tag from the source TIFF.
104
105	* tools/tiff2ps.c: contribution from Eduardo Robles Elvira -
106	correct sizing and scaling problems with output document.
107
1082015-06-10  Bob Friesenhahn  <[email protected]>
109
110	* libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two
111	clean implementations in order to avoid pre-processor hell.  Only
112	one of the implementations is used in a given build.
113
1142015-06-08  Even Rouault <even.rouault at spatialys.com>
115
116	* libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12
117	case
118
1192015-06-07  Bob Friesenhahn  <[email protected]>
120
121	* libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975
122	"Division or modulo by zero".
123	(TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division
124	or modulo by zero".
125	(TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by
126	zero".
127	(TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by
128	zero".
129
130	* libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and
131	715974 "Division or modulo by zero".
132
1332015-05-31  Bob Friesenhahn  <[email protected]>
134
135	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity
136	1134470 "Logically dead code" by making the roll-over check
137	explicit.
138
139	* libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227
140	"Division or modulo by zero".
141	(LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by
142	zero".
143	(LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by
144	zero".
145	(LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by
146	zero".
147
148	* libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix
149	Coverity 298626 "Logically dead code".
150	(TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead
151	code".
152	(TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead
153	code".
154	(TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead
155	code"
156
157	* libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++
158	operator precedenc in evaluation.  Might quench Coverity 1134470
159	"Logically dead code".
160
161	* libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands
162	don't affect result".  This change uses ifdefs to include
163	applicable code based on properties of libjpeg.  Still needs to be
164	re-tested with 12-bit "6b" and "MK1".
165
1662015-05-30  Bob Friesenhahn  <[email protected]>
167
168	* libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310
169	"Resource leak".
170
171	* libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix
172	Coverity 601720 "Resource leak".
173
174	* libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624
175	"Dereference before null check".
176
177	* libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400
178	"Missing break in switch".
179
180	* contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer
181	size calculation for overflow.
182
183	* contrib/addtiffo/addtiffo.c (main): Possibly address Coverity
184	1024226 "Untrusted value as argument".
185
186	* tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted
187	value as argument".
188	(checksignature): Fix Coverity 1024894 "Ignoring number of bytes
189	read".
190	(readextension): Fix Coverity 1024893 "Ignoring number of bytes
191	read".
192	(readgifimage): Fix Coverity 1024890 "Ignoring number of bytes
193	read".
194	(readraster): Fix Coverity 1024891 "Ignoring number of bytes
195	read".
196	(readgifimage): Fix Coverity 1024892 "Ignoring number of bytes
197	read".
198
199	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181
200	"Structurally dead code".
201
202	* tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return
203	value from library".
204	(guessSize): Fix Coverity 1024888 "Unchecked return value from
205	library".
206	(guessSize): Fix Coverity 1214162 "Ignoring number of bytes read".
207	(guessSize): Fix Coverity 1024889 "Unchecked return value from
208	library".
209
210	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621
211	"Resource leak".
212	(t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead
213	code".
214	(t2p_write_pdf): Fix Coverity 1227690 "Unused value".
215
2162015-05-29  Bob Friesenhahn  <[email protected]>
217
218	* contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468
219	"Infinite loop".
220	(formatIPTC): Fix Coverity 1024727 "Truncated stdio return value".
221	(formatIPTC): Fix Coverity 1214240 "Untrusted loop bound".
222
2232015-05-28  Bob Friesenhahn  <[email protected]>
224
225	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
226	Coverity 298615 "Resource leak".
227	(TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign
228	extension".
229
230	* tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value
231	as argument".
232	(main): Fix Coverity 1024678 "Unchecked return value from
233	library".
234	(main): Fix Coverity 1024679 "Unchecked return value from
235	library".
236	(main): Fix Coverity 1214160 "Ignoring number of bytes read".
237
238	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
239	Coverity 298615 "Resource leak".
240
241	* tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309
242	"Resource leak".
243
244	* tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource
245	leak".
246	(cpStrips): Fix Coverity 1024305 "Resource leak".
247
2482015-05-27  Bob Friesenhahn  <[email protected]>
249
250	* tools/ras2tiff.c: Fix Sun Raster header definition to be safe
251	for 64-bit systems.  Add some header validations.  Should fix many
252	Coverity issues.
253	(main): Fix Coverity 1301206: "Integer handling issues  (BAD_SHIFT)".
254	(main): Quiet Coverity 1024223 "Untrusted value as argument".
255
256	* tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting
257	level does not match indentation".
258	(get_histogram): Quiet Coverity 1024386 "Out-of-bounds read".
259	This was a benign mis-diagnosis but added code to enforce against
260	buffer overflow.
261
262	* tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical
263	vs. bitwise operator".
264	(readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or
265	modulo by zero".
266	(readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead
267	code".
268	(writeSingleSection): Fix Coverity 1024796 "Nesting level does not
269	match indentation".
270	(writeCroppedImage): Fix Coverity 1024797 "Nesting level does not
271	match indentation".
272	(loadImage): Fix Coverity 1299741 "Dereference before null check".
273	(loadImage): Fix Coverity 1299740 "Out-of-bounds write".
274
2752015-03-02  Even Rouault  <[email protected]>
276
277	* tools/tiffdither.c: check memory allocations to avoid writing to
278	NULL pointer. Also check multiplication overflow. Fixes #2501,
279	CVE-2014-8128. Derived from patch by Petr Gajdos.
280
2812015-01-26  Even Rouault  <[email protected]>
282
283	* add html/v4.0.4beta.html under version control
284	* HOWTO-RELEASE: write that cvs add html/vX.X.html must be used
285
2862015-01-26  Even Rouault  <[email protected]>
287
288	* libtiff 4.0.4beta released
289
2902015-01-26  Even Rouault  <[email protected]>
291
292	* automake: updated to 1.15
293	* libtool: updated to 2.4.5
294
2952015-01-22  Even Rouault  <[email protected]>
296
297	* tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
298
2992015-01-05  Frank Warmerdam  <[email protected]>
300
301	* html/bugs.html: remove note about needing to email the tiff mailing
302	list administrator about being approved for membership, this appears
303	not to be true.
304
3052015-01-05  Olivier Paquet  <[email protected]>
306
307	* tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
308
3092015-01-03  Even Rouault  <[email protected]>
310
311	* libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
312	when reading more than 65535 directories, and effectively error out when
313	reaching that limit.
314
3152014-12-29  Even Rouault  <[email protected]>
316
317	* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
318	markers to avoid emitting a warning (even if, according to the TechNote,
319	there are admitedly unusual/not recommended or even forbidden variants, but
320	they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
321	SOF9 and SOF10).
322	Define in_color_space and input_components to the right values in
323	JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
324	libjpeg API documentation, so as to be compatible with mozjpeg library.
325	Note: the default settings of mozjpeg will produce progressive scans, which
326	is forbidden by the TechNote.
327
3282014-12-29  Even Rouault  <[email protected]>
329
330	* libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
331	to avoid buffer leak (fix previous fix, found by Coverity scan)
332
3332014-12-29  Even Rouault  <[email protected]>
334
335	* libtiff/tif_next.c: add new tests to check that we don't read outside of
336	the compressed input stream buffer.
337
338	* libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
339    in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
340    putcontig8bitYCbCr21tile cases.
341
3422014-12-27  Even Rouault  <[email protected]>
343
344	* libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
345	extented tags installed by user code through the extender mechaninm before
346	calling the extender callback (GDAL #5054)
347
3482014-12-26  Bob Friesenhahn  <[email protected]>
349
350	* tools/tiffcrop.c: Fix warnings about variables set but not used.
351
352	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
353	but not used.
354
355	* tools/tiffgt.c: Fix warnings about unused parameters.
356
357	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
358
3592014-12-25  Even Rouault  <[email protected]>
360
361	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
362	various typos found by Debian lintian tool (GDAL #5756)
363
3642014-12-24  Even Rouault  <[email protected]>
365
366	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
367	http://bugzilla.maptools.org/show_bug.cgi?id=2235
368
3692014-12-24  Even Rouault  <[email protected]>
370
371	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
372	http://bugzilla.maptools.org/show_bug.cgi?id=2445
373
3742014-12-24  Even Rouault  <[email protected]>
375
376	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
377	Derived from patch by Petr Gajdos,
378	http://bugzilla.maptools.org/show_bug.cgi?id=2443
379
3802014-12-23  Even Rouault  <[email protected]>
381
382	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
383	of _TIFFFillStriles(). This solves crashing bug on corrupted
384	images generated by afl.
385
3862014-12-23  Even Rouault  <[email protected]>
387
388	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
389	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
390	images generated by afl.
391
3922014-12-21  Bob Friesenhahn  <[email protected]>
393
394	* tools/tiffdump.c: Guard against arithmetic overflow when
395	calculating allocation buffer sizes.
396
3972014-12-21  Even Rouault  <[email protected]>
398
399	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
400	SamplesPerPixel = 3. Enforce that
401	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
402
4032014-12-21  Even Rouault  <[email protected]>
404
405	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
406	copying. The right fix would be to properly copy it, but not worth the burden
407	for those esoteric utilities.
408	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
409
4102014-12-21  Even Rouault  <[email protected]>
411
412	* tools/thumbnail.c: fix out-of-buffer write
413	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
414
4152014-12-21  Even Rouault  <[email protected]>
416
417	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
418	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
419	COMPRESSION_CCITTFAX4
420	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
421
4222014-12-21  Even Rouault  <[email protected]>
423
424	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
425	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
426
4272014-12-21  Even Rouault  <[email protected]>
428
429	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
430	TIFFTAG_SAMPLESPERPIXEL
431
4322014-12-21  Even Rouault  <[email protected]>
433
434	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
435	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
436	Description: fix for Debian bug #741451
437	tiffcp crashes when converting JPEG-encoded TIFF to a different
438	encoding (like none or lzw). For example this will probably fail:
439	tiffcp -c none jpeg_encoded_file.tif output.tif
440	The reason is that when the input file contains JPEG data,
441	the tiffcp code forces conversion to RGB space. However,
442	the output normally inherits YCbCr subsampling parameters
443	from the input, which leads to a smaller working buffer
444	than necessary. The buffer is subsequently overrun inside
445	cpStripToTile() (called from writeBufferToContigTiles).
446	Note that the resulting TIFF file would be scrambled even
447	if tiffcp wouldn't crash, since the output file would contain
448	RGB data intepreted as subsampled YCbCr values.
449	This patch fixes the problem by forcing RGB space on the output
450	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
451	Author: Tomasz Buchert <[email protected]>
452
4532014-12-21  Even Rouault  <[email protected]>
454
455	Fix various crasher bugs on fuzzed images.
456	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
457	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
458	the directory
459	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
460	TransferFunction if BitsPerSample has not yet been read, otherwise reading
461	it later will cause user code to crash if BitsPerSample > 1
462	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
463	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
464	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
465	instead of imagewidth to avoid crash
466	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
467	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
468	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
469	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
470	* tools/tiffdump.c: fix crash due to overflow of entry count.
471
4722014-12-15  Even Rouault  <[email protected]>
473
474	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
475	all tiles/strips to include quantization tables even when the jpegtablesmode
476	had the JPEGTABLESMODE_QUANT bit set.
477	Also add explicit removal of Huffman tables when jpegtablesmode has the
478	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
479	first tile/strip (only useful in update scenarios. create-only was
480	fine)
481
4822014-12-09  Bob Friesenhahn  <[email protected]>
483
484	* tools/tiff2pdf.c: Assure that memory size calculations for
485	_TIFFmalloc() do not overflow the range of tmsize_t.
486
4872014-12-07  Even Rouault  <[email protected]>
488
489	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
490	Valgrind and Address Sanitizer on test suite
491
4922014-12-07  Bob Friesenhahn  <[email protected]>
493
494	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
495	tag can return one channel, with the other two channels set to
496	NULL.  The tiff2pdf code was expecting that other two channels
497	were duplicate pointers in the case where there is only one
498	channel.  Detect this condition in order to avoid a crash, and
499	presumably perform correctly with just one channel.
500
5012014-12-06  Bob Friesenhahn  <[email protected]>
502
503	* tools/tiffdump.c: Fix double-free bug.
504
5052014-11-27  Even Rouault  <[email protected]>
506
507	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
508	Visual Studio 2015 aka VC 14 aka MSVC 1900
509
5102014-11-20  Even Rouault  <[email protected]>
511
512	* libtiff/tif_lzw.c: prevent potential null dereference of
513	sp->dec_codetab in LZWPreDecode (bug #2459)
514
515	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
516	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
517
518	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
519
520	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
521	Coverity happier (not a bug, #2459)
522
523	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
524	(not a bug, #2459)
525
526	* tools/tiff2pdf.c: close PDF file (bug #2479)
527
528	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
529
530	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
531	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
532
533	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
534	(bug #2459) and add missing va_end in dump_info (#2459)
535
536	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
537
5382014-11-20  Even Rouault  <[email protected]>
539	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
540	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
541
5422014-11-20  Even Rouault  <[email protected]>
543	* automake: updated to 1.14.1
544	* libtool: updated to 2.4.3
545	* HOWTO-RELEASE: small update about autotools building order
546
5472014-10-20  Olivier Paquet  <[email protected]>
548	* tools/tiff2pdf.c: Preserve input file directory order when pages
549	are tagged with the same page number.
550
5512014-08-31  Bob Friesenhahn  <[email protected]>
552
553	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
554	count for tag should be a warning rather than an error since
555	errors terminate processing.
556
5572014-06-07  Bob Friesenhahn  <[email protected]>
558
559	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
560	was wrongly described.  Fix suggested by Miguel Medalha.
561
5622014-05-06  Bob Friesenhahn  <[email protected]>
563
564	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
565	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
566	Reviewed and forwarded by Lee Howard.
567
5682013-11-30  Frank Warmerdam  <[email protected]>
569
570	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
571
5722013-10-21  Frank Warmerdam  <[email protected]>
573
574	* libtiff/tif_dir.c: generate error in case of directory count
575	overflow.
576
5772013-10-01  Frank Warmerdam  <[email protected]>
578
579	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
580	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
581
5822013-09-12  Bob Friesenhahn  <[email protected]>
583
584	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
585	be defective, then set it to zero before returning error in order
586	to terminate processing of truncated TIFF.  Issue found and fix
587	suggested by Richard Nolde.
588
5892013-08-14  Frank Warmerdam  <[email protected]>
590
591	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
592
5932013-08-13  Frank Warmerdam  <[email protected]>
594
595	* tools/gif2tiff.c: Be more careful about corrupt or
596	hostile input files (#2450, CVE-2013-4231)
597
598	* tools/tiff2pdf.c: terminate after failure of allocating
599	ycbcr buffer (bug #2449, CVE-2013-4232)
600
6012013-07-09  Frank Warmerdam  <[email protected]>
602
603	* tools/tiffinfo.c: Default various values fetched with
604	TIFFGetField() to avoid being uninitialized.
605
6062013-05-02  Tom Lane  <[email protected]>
607
608	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
609	t2p_process_jpeg_strip to be at least marginally competent.  The
610	approach is still fundamentally flawed, but at least now it won't
611	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
612
6132013-05-02  Tom Lane  <[email protected]>
614
615	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
616 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
617 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
618 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
619 	large enough, and eliminate substantially all uses of sprintf(buf,
620 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
621 	protect against overflow of fixed-size buffers.  This responds in
622 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
623 	t2p_write_pdf_page(), but in general it seems like a good idea to
624 	deprecate use of sprintf().
625
6262013-03-29  Bob Friesenhahn  <[email protected]>
627
628	* configure.ac: Applied patch by Brad Smith to improve pkg-config
629	static linking by adding -lm to Libs.private when needed.
630
6312013-03-05  Tom Lane  <[email protected]>
632
633	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
634 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
635 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
636 	tools/tiffdither.c: Sync tool usage printouts and man pages with
637 	reality (quite a few options had escaped being documented in one
638 	or both places).  Per an old report from Miroslav Vadkerti.
639
6402013-01-25  Bob Friesenhahn  <[email protected]>
641
642	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
643	rotation angle was set by the auto rotate check, it was retained
644	for all pages that followed instead ofa being retested for each
645	page.  Patch by Richard Nolde.
646
6472013-01-18  Frank Warmerdam  <[email protected]>
648
649	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
650	64bit linux.
651
652	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
653	http://bugzilla.maptools.org/show_bug.cgi?id=2427
654
6552012-12-20  Tom Lane  <[email protected]>
656
657	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
658	it will pass with more versions of libjpeg.  (There are at least
659	three in active use now, and JPEG_LIB_VERSION doesn't tell us
660	enough to uniquely identify expected results.)
661
6622012-12-12  Tom Lane  <[email protected]>
663
664	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
665	field_passcount fields: it had the TIFF_VARIABLE and
666	TIFF_VARIABLE2 cases backwards.
667
6682012-12-10  Tom Lane  <[email protected]>
669
670	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
671 	check the linebytes calculation too, get the max() calculation
672 	straight, avoid redundant error messages, check for malloc
673 	failure.
674
6752012-12-10  Tom Lane  <[email protected]>
676
677	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
678 	(to enlarge tbuf for possible partial stride at end) so that
679 	overflow in the integer addition is detected.  Per gripe from
680 	Huzaifa Sidhpurwala.
681
6822012-12-03  Bob Friesenhahn  <[email protected]>
683
684	* tools/tiffset.c: tiffset now supports a -u option to unset a
685	tag.  Patch by Zach Baker. See
686	http://bugzilla.maptools.org/show_bug.cgi?id=2419
687
6882012-11-18  Bob Friesenhahn  <[email protected]>
689
690	* automake: Update Automake to 1.12.5 release.
691
692	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
693	require malloc() to return NULL pointer if requested allocation
694	size is zero.  Assure that _TIFFmalloc does.
695
6962012-11-01  Frank Warmerdam  <[email protected]>
697
698	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
699	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
700	Red Hat Security Response team for the fix.
701
7022012-10-18  Frank Warmerdam  <[email protected]>
703
704	* tif_zip.c: Avoid crash on NULL error messages.
705
7062012-09-22  Bob Friesenhahn  <[email protected]>
707
708	* libtiff 4.0.3 released.
709
7102012-09-20  Bob Friesenhahn  <[email protected]>
711
712	* Makefile.am: Update to Automake 1.12.4
713
7142012-08-19  Bob Friesenhahn  <[email protected]>
715
716	* Makefile.in: Update to Automake 1.12.3
717
718	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
719	some TIFF/FX support in libtiff.  Add the tag definitions to
720	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
721	and also fixes an error in a comment.  Adds the photometric values
722	to tif_print.c, and fixes a bug.  These changes are by Steve
723	Underwood.
724
7252012-08-13  Frank Warmerdam  <[email protected]>
726
727	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
728	compressed file: http://trac.osgeo.org/gdal/ticket/4771
729
7302012-08-02  Frank Warmerdam  <[email protected]>
731
732	* libtiff/tif_dirread.c: report error in case of mismatch value
733	counts for tags (ie. DotRange).
734
7352012-07-26  Tom Lane  <[email protected]>
736
737	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
738 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
739	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
740	as external accessors for the opaque type TIFFField.
741
742	* tools/tiffset.c: Make tiffset use the above functions instead of
743	relying on library private headers.
744
7452012-07-19  Tom Lane  <[email protected]>
746
747	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
748	after a malloc failure.  No crash risk AFAICS, but the program
749	might not report exit code 1 as desired.  h/t [email protected]
750
7512012-07-18  Tom Lane  <[email protected]>
752
753	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
754	prevents core dumps or perhaps even arbitrary code execution when
755	processing a corrupt input file (CVE-2012-3401).
756
7572012-07-06  Bob Friesenhahn  <[email protected]>
758
759	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
760	IJG JPEG 7+ uses a different upsampling algorithm which produces
761	different numeric results.
762
763	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
764	work with IJG JPEG 7+.
765
7662012-07-04  Bob Friesenhahn  <[email protected]>
767
768	* test/raw_decode.c: Add changes so that test can run with build
769	directory outside of source directory.
770
7712012-07-02  Frank Warmerdam  <[email protected]>
772
773	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
774	imagery (http://trac.osgeo.org/gdal/ticket/4732)
775
7762012-06-20  Frank Warmerdam  <[email protected]>
777
778	* libtiff/tif_fax3.c: fix memory initialization of runs, only
779	partly done.
780
781	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
782	full "stride" past the end.
783
7842012-06-19  Frank Warmerdam  <[email protected]>
785
786	* libtiff/tif_packbits.c: fix read past end of data buffer.
787
7882012-06-15  Frank Warmerdam  <[email protected]>
789
790	*  libtiff 4.0.2 released.
791
792	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
793	warnings with clang.
794
7952012-06-15  Tom Lane  <[email protected]>
796
797	* tools/tiff2pdf.c: Defend against integer overflows while
798	calculating required buffer sizes (CVE-2012-2113).
799
8002012-06-12  Frank Warmerdam  <[email protected]>
801
802	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
803
804	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
805
8062012-06-07  Frank Warmerdam  <[email protected]>
807
808	* libtiff/tif_print.c: avoid pretty printing other fields when
809	we don't have the proper amount and type of data or if the field
810	is actually autodefined.
811
8122012-06-05  Frank Warmerdam  <[email protected]>
813
814	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
815	ycbcrsubsampling values result in a runtime error, not just an
816	assertion.
817
818	* tests/custom_dir.c: Add testing of EXIF and custom directory
819	reading and writing.
820
821	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
822	and TIFFCreateEXIFDirectory() functions.
823
824	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
825	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
826	differently.  This is to avoid using special TIFFGetField/TIFFSetField
827	rules for these fields in non-image directories (like EXIF).
828
8292012-06-04  Frank Warmerdam  <[email protected]>
830
831	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
832	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
833	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
834
8352012-06-01  Frank Warmerdam  <[email protected]>
836
837	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
838
839	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
840	http://bugzilla.maptools.org/show_bug.cgi?id=2379
841
842	* libtiff/tif_unix.c: use strerror() to return a more specific error message
843	on failed open.
844	http://bugzilla.maptools.org/show_bug.cgi?id=2341
845
846	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
847	http://bugzilla.maptools.org/show_bug.cgi?id=2386
848
849	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
850	for testing jpeg in tiff image decoding including the "raw" decode interface.
851
8522012-05-31  Frank Warmerdam  <[email protected]>
853
854	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
855	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
856	sampling values.
857
858	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
859
860	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
861	http://bugzilla.maptools.org/show_bug.cgi?id=2398
862
8632012-05-29  Frank Warmerdam  <[email protected]>
864
865	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
866	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
867	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
868	to get/set functions for different tags!
869
870	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
871	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
872
8732012-05-24  Frank Warmerdam  <[email protected]>
874
875	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
876	accumulate" and overwrite the end by one word in at least some cases.
877
8782012-05-23  Frank Warmerdam  <[email protected]>
879
880	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
881
882	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
883
884	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
885	the same image.
886
887	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
888	stripbytecounts or stripoffsets or where loading these fails.
889
890	* libtiff/tif_print.c: be careful about whether min/max values are singular
891	or one per sample.
892
893	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
894	May affect things like ISOSpeedRatings.
895
896	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
897	in some cases.
898
8992012-05-19  Bob Friesenhahn  <[email protected]>
900
901	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
902	example for how to retreive the value of unsupported tags.
903
9042012-03-30  Frank Warmerdam  <[email protected]>
905
906	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
907	care of Tom Lane @ Red Hat.
908
9092012-02-18  Bob Friesenhahn  <[email protected]>
910
911	* libtiff 4.0.1 released.
912
913	* Update automake used to 1.11.3.
914
915	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
916	attribute specification to lessen the risk of accidental macro
917	substitution.  Patch from Vincent Torri.
918
9192012-01-31  Frank Warmerdam  <[email protected]>
920
921	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
922	assumption tag fetching is always successful.
923
924	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
925
9262012-01-22  Bob Friesenhahn  <[email protected]>
927
928	* configure.ac: Add support for using library symbol versioning on
929	ELF systems with the GNU linker.  Support is enabled via
930	--enable-ld-version-script.  Disabled by default for now until
931	there is a decision for how to deploy a libtiff with versioned
932	symbols after libtiff 4.0.0 was already released.
933
9342011-12-22  Bob Friesenhahn  <[email protected]>
935
936	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
937
938	tif_win32.c.  Patch by Edward Lam.
939
940	* configure.ac: Add libtiff private dependency on -llzma for
941	pkg-config.  Patch by Mark Brand.
942	Updated Automake to 1.11.2.
943
9442011-12-21  Bob Friesenhahn  <[email protected]>
945
946	* libtiff 4.0.0 released.
947
9482011-12-08  Frank Warmerdam  <[email protected]>
949
950	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
951	of _TIFFFillStriles() results (#gdal 4372)
952
9532011-12-07  Frank Warmerdam  <[email protected]>
954
955	* libtiff/tif_dirread.c: fixes to deal with invalid files where
956	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
957
958	* libtiff/tif_dirread.c: fix error reporting when there is no
959	tag information struct and name (gdal #4373)
960
9612011-10-22  Bob Friesenhahn  <[email protected]>
962
963	* Update GNU libtool to 2.4.2.
964
965	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
966	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
967	Deroulers.
968
9692011-06-21  Frank Warmerdam  <[email protected]>
970
971	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
972
9732011-05-31  Jim Meyering  <[email protected]>
974
975	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
976	upon failure to allocate "resizeddata".
977	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
978	allocation failure, not before.
979	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
980	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
981	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
982	NULL-deref and possible overflow
983	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
984	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
985	and set of otherwise unused local, data_is_empty.
986	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
987	Diagnose out-of-memory failure and return 0 rather than
988	dereferencing NULL.
989
9902011-05-24  Frank Warmerdam  <[email protected]>
991
992	* libtiff/tif_dirread.c: produce special error message for zero tag
993	directories instead of error out on the malloc(0) failure.
994
9952011-05-16  Frank Warmerdam  <[email protected]>
996
997	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
998	related declarations as they are in active use by libraries
999	such as libgeotiff, and work just fine.  (#2315)
1000
10012011-04-20  Frank Warmerdam  <[email protected]>
1002
1003	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
1004	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
1005	http://bugzilla.maptools.org/show_bug.cgi?id=2315
1006
1007	* libtiff/libtiff.def: add some missing (64bit) APIs.
1008	http://bugzilla.maptools.org/show_bug.cgi?id=2316
1009
10102011-04-09  Bob Friesenhahn  <[email protected]>
1011
1012	* libtiff 4.0.0beta7 released.
1013
10142011-04-09  Bob Friesenhahn  <[email protected]>
1015
1016	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
1017	the run-time target whereas target is used to specify the final
1018	output target if the package is a build tool (like a compiler),
1019	which libtiff is not.  Resolves libtiff bug 2307 "Use
1020	AC_CANONICAL_HOST macro".
1021
10222011-04-02  Bob Friesenhahn  <[email protected]>
1023
1024	* configure.ac: Support configuring TIFF_INT64_FORMAT and
1025	TIFF_UINT64_FORMAT appropriately for MinGW32.
1026
1027	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
1028	printf conventions for 64-bit types because it uses the WIN32 CRT.
1029
1030	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
1031	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
1032	printf conventions for 64-bit types because it uses the WIN32 CRT.
1033
1034	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
1035	understood by WIN32 CRT.
1036
1037	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
1038
1039	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
1040	it is much more portable.  Tmpfile is included in ISO/IEC
1041	9899:1990 and the WIN32 CRT.
1042
10432011-03-26  Frank Warmerdam  <[email protected]>
1044
1045	* tools/tiffset.c: add -d and -sd switches to allow operation on
1046	a particular directory, not just the first (jef).
1047
10482011-03-21  Frank Warmerdam  <[email protected]>
1049
1050	* libtiff/tif_thunder.c: Correct potential buffer overflow with
1051	thunder encoded files with wrong bitspersample set.  The libtiff
1052	development team would like to thank Marin Barbella and TippingPoint's
1053	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
1054	CVE-2011-1167).
1055	http://bugzilla.maptools.org/show_bug.cgi?id=2300
1056
10572011-03-10  Frank Warmerdam  <[email protected]>
1058
1059	* libtiff/tif_fax3.h: Fix to last change allowing zero length
1060	runs at the start of a scanline - needed for legal cases.
1061
10622011-03-02  Frank Warmerdam  <[email protected]>
1063
1064	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
1065	a move left.  Without this, a malicious input file can generate an
1066	indefinitely large series of runs without a0 ever reaching the right
1067	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
1068	This is a modified version of a patch proposed by Drew Yao of Apple
1069	Product Security.  It adds an unexpected() report, and disallows the
1070	equality case, since emitting a run without increasing a0 still allows
1071	buffer overrun.
1072
10732011-02-23  Frank Warmerdam  <[email protected]>
1074
1075	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
1076
1077	* tools/tiff2rgba.c: close source file on error to make leak
1078	detection easier.
1079
1080	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
1081
1082	http://bugzilla.maptools.org/show_bug.cgi?id=2295
1083
10842011-02-22  Frank Warmerdam  <[email protected]>
1085
1086	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
1087	_SUPPORT)
1088
10892011-02-18  Frank Warmerdam  <[email protected]>
1090
1091	* configure.ac, configure: Added support for --enable-chunky-strip-read
1092	configure option to enable the experimental feature from a couple
1093	months ago for reading big strips in chunks.
1094
1095	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
1096	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
1097	Implement optional support for deferring the load of strip/tile
1098	offset and size tags for optimized scanning of directories.  Enabled
1099	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
1100	#define in tif_config.h).
1101
11022011-02-11  Frank Warmerdam  <[email protected]>
1103
1104	* libtiff/tif_print.c: remove unused variable.
1105
11062011-02-09  Frank Warmerdam  <[email protected]>
1107
1108	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
1109	with non-console (popup message) builds on win32.
1110
1111	http://bugzilla.maptools.org/show_bug.cgi?id=2293
1112
11132011-01-24  Olivier Paquet  <[email protected]>
1114
1115	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
1116	tif_print.c, tiff.h, tiffiop.h} : Added support for
1117	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
1118	values for each sample. Presents the min/max of all samples by default for
1119	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
1120	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
1121	http://www.asmail.be/msg0055458208.html
1122
11232011-01-06  Frank Warmerdam  <[email protected]>
1124
1125	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
1126	maintained.
1127
1128	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
1129	for CHUNKY_STRIP_READ_SUPPORT.
1130
1131	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
1132	during JPEGPreDecode and JPEGDecode calls.
1133	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
1134	as compression formats like JPEG keep 16 lines interleaved in a sense
1135	and might need to touch	quite a bit of data.
1136
1137	http://trac.osgeo.org/gdal/ticket/3894
1138
11392011-01-03  Lee Howard <[email protected]>
1140
1141	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
1142	caused by commit on 2010-12-14.  Submitted by e-mail from
1143	Even Rouault <[email protected]>
1144
11452010-12-31  Olivier Paquet  <[email protected]>
1146
1147	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
1148	http://bugzilla.maptools.org/show_bug.cgi?id=2266
1149
11502010-12-23  Andrey Kiselev  <[email protected]>
1151
1152	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
1153	compression level parameter (preset) for Deflate and LZMA encoders,
1154	e.g "-c lzma:p1" or "-c zip:p9".
1155
1156	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
1157	(preset) in LZMAVSetField().
1158
11592010-12-18  Bob Friesenhahn  <[email protected]>
1160
1161	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
1162	Makefile.
1163
11642010-12-14  Andrey Kiselev  <[email protected]>
1165
1166	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
1167	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
1168	TIFF compression scheme LZMA reserving a new value 34925 for
1169	Compression tag. As per
1170	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
1171
11722010-12-14  Lee Howard <[email protected]>
1173
1174	* libtiff/tif_dirread.c: tolerate some cases where
1175	FIELD_COLORMAP is missing
1176	http://bugzilla.maptools.org/show_bug.cgi?id=2189
1177
11782010-12-14  Lee Howard <[email protected]>
1179
1180	* libtiff/tif_read.c: change read_ahead to tmsize_t
1181	http://bugzilla.maptools.org/show_bug.cgi?id=2222
1182
11832010-12-14  Lee Howard <[email protected]>
1184
1185	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
1186	Windows except on Cygwin
1187	http://bugzilla.maptools.org/show_bug.cgi?id=2224
1188
11892010-12-14  Lee Howard <[email protected]>
1190
1191	* tools/gif2tiff.c: fix buffer overrun
1192	http://bugzilla.maptools.org/show_bug.cgi?id=2270
1193
11942010-12-14  Lee Howard <[email protected]>
1195
1196	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
1197	to improve compatibility with various viewers
1198	submitted by e-mail from Dwight Kelly <[email protected]>
1199
12002010-12-13  Lee Howard <[email protected]>
1201
1202	* tools/fax2ps.c: be consistent with page-numbering
1203	http://bugzilla.maptools.org/show_bug.cgi?id=2225
1204
12052010-12-13  Lee Howard <[email protected]>
1206
1207	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
1208	resolves CVE-2010-2595
1209	http://bugzilla.maptools.org/show_bug.cgi?id=2208
1210
12112010-12-13  Lee Howard <[email protected]>
1212
1213	* tools/tiffcrop.c: new release by Richard Nolde
1214	http://bugzilla.maptools.org/show_bug.cgi?id=2004
1215
12162010-12-12  Lee Howard <[email protected]>
1217
1218	* tools/tiff2pdf.c: fix colors for images with RGBA
1219	interleaved data
1220	http://bugzilla.maptools.org/show_bug.cgi?id=2250
1221
12222010-12-12  Lee Howard <[email protected]>
1223
1224	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
1225	http://bugzilla.maptools.org/show_bug.cgi?id=2164
1226
12272010-12-11  Lee Howard <[email protected]>
1228
1229	* tools/tiff2pdf.c: remove invalid duplication for Lab
1230	http://bugzilla.maptools.org/show_bug.cgi?id=2162
1231
12322010-12-11  Lee Howard <[email protected]>
1233
1234	* libtiff/tif_jpeg.c: fix use of clumplines calculation
1235	http://bugzilla.maptools.org/show_bug.cgi?id=2149
1236
12372010-12-11  Lee Howard <[email protected]>
1238
1239	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
1240	http://bugzilla.maptools.org/show_bug.cgi?id=2118
1241
12422010-12-11  Lee Howard <[email protected]>
1243
1244	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
1245	  libtiff/tif_zip.c: fix build errors for VC6
1246	http://bugzilla.maptools.org/show_bug.cgi?id=2105
1247
12482010-12-11  Lee Howard <[email protected]>
1249
1250	* libtiff/tif_stream.cxx: warnings cleanup
1251	http://bugzilla.maptools.org/show_bug.cgi?id=2091
1252	* libtiff/tif_dirread.c: warnings cleanup
1253	http://bugzilla.maptools.org/show_bug.cgi?id=2092
1254
12552010-12-11  Lee Howard <[email protected]>
1256
1257	* tools/tiff2pdf.c: add fill-page option
1258	http://bugzilla.maptools.org/show_bug.cgi?id=2051
1259
12602010-12-11  Lee Howard <[email protected]>
1261
1262	* libtiff/tif_dirread.c: modify warnings
1263	http://bugzilla.maptools.org/show_bug.cgi?id=2016
1264
12652010-12-11  Lee Howard <[email protected]>
1266
1267	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
1268        http://bugzilla.maptools.org/show_bug.cgi?id=1999
1269
12702010-12-11  Lee Howard <[email protected]>
1271
1272	* tools/tiffinfoce.c: strip byte counts are uint64* now
1273
12742010-12-11  Lee Howard <[email protected]>
1275
1276        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
1277        or missing byte-count tag
1278        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
1279        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
1280
12812010-12-08  Lee Howard <[email protected]>
1282
1283        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
1284        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
1285
12862010-12-06  Lee Howard <[email protected]>
1287
1288        * libtiff/tif_open.c: Fix mode check before opening a file.
1289        http://bugzilla.maptools.org/show_bug.cgi?id=1906
1290
12912010-11-27  Bob Friesenhahn  <[email protected]>
1292
1293	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
1294	Patch by Vincent Torri.
1295
12962010-10-21  Frank Warmerdam  <[email protected]>
1297
1298	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
1299
1300	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
1301
1302	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
1303
13042010-09-25  Lee Howard <[email protected]>
1305
1306	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
1307	with additional command line options for Document Title,
1308	Document Creator, and Page Orientation
1309
13102010-07-13  Bob Friesenhahn  <[email protected]>
1311
1312	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
1313	potentially unterminated buffer due to using an exceptionally long
1314	file name.
1315
13162010-07-08  Andrey Kiselev  <[email protected]>
1317
1318	* tools/tiff2pdf.c: Fixed ID buffer filling in
1319	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
1320
13212010-07-07  Andrey Kiselev  <[email protected]>
1322
1323	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
1324	to expected value as the warning message suggests. As per bug
1325	http://bugzilla.maptools.org/show_bug.cgi?id=1963
1326
13272010-07-06  Andrey Kiselev  <[email protected]>
1328
1329	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
1330	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
1331	which should be set by value.
1332
1333	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
1334	and _TIFFFieldWithName() if the tag is not found in the tag table.
1335	This should be normal situation and returned NULL value should be
1336	properly handled by the caller.
1337
13382010-07-02  Andrey Kiselev  <[email protected]>
1339
1340	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
1341	integer type conversions. As per bug
1342	http://bugzilla.maptools.org/show_bug.cgi?id=2207
1343
1344	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
1345	WhitePoint tag as per bug
1346	http://bugzilla.maptools.org/show_bug.cgi?id=2042
1347
1348	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1349	working with YCbCr image in PickContigCase(). As per bug
1350	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1351
1352	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1353	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1354	we don't need any post-processing. That helps to reset the hook if we
1355	previously set this field to some other value and the hook was
1356	initialized accordingly. As per bug
1357	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1358
13592010-07-01  Andrey Kiselev  <[email protected]>
1360
1361	* tools/tiffgt.c: Properly check the raster buffer allocations for
1362	integer overflows. As per bug
1363	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1364
1365	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1366	upstream.
1367
1368	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1369	multiply_32() and multiply_64() functions into tif_aux.c file and
1370	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1371
13722010-06-30  Andrey Kiselev  <[email protected]>
1373
1374	* tools/tiff2pdf.c: Better generation of ID field in
1375	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1376
1377	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1378	converting JPEG encoded tiles.
1379
1380	* tools/tiff2pdf.c: Better handling of string fields, use static
1381	string buffers instead of dynamically allocated, use strncpy() instead
1382	of strcpy(), control the string lengths.
1383
13842010-06-25  Andrey Kiselev  <[email protected]>
1385
1386	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1387	referencing to uninitialized memory in some cases (e.g. when tile size
1388	set bigger than the image size).
1389
13902010-06-15  Bob Friesenhahn  <[email protected]>
1391
1392	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1393	subsampled data since tiffcrop currently doesn't support it.  Fix
1394	JPEG support.
1395
13962010-06-13  Frank Warmerdam  <[email protected]>
1397
1398	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1399
1400	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1401	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1402	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1403	size is larger.  Also, there are a bunch of places that try to
1404	memset() a malloc'd buffer before checking for malloc failure, which
1405	would result in core dump if there actually were a failure. (#2211)
1406
14072010-06-11  Bob Friesenhahn  <[email protected]>
1408
1409	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1410	avoid compiler warnings if parameter types are not sign
1411	consistent.
1412
1413	* libtiff 4.0.0alpha6 released.
1414
1415	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1416	European page size dimensions.  Added an option to allow the user
1417	to specify a custom page size on the command line.  Fix the case
1418	where a page size specified with a fractional part was being
1419	coerced to an integer by retyping the variables that define the
1420	paper size.
1421
1422	* html/index.html: Update for the 3.9.3 release.
1423
1424	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1425	YCbCr subsampled data since tiffcp currently doesn't support it.
1426	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1427
1428	* Update libtool to version 2.2.10.
1429
14302010-06-10  Bob Friesenhahn  <[email protected]>
1431
1432	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1433	multiplier is zero.
1434
14352010-06-09  Bob Friesenhahn  <[email protected]>
1436
1437	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1438	CVE-2010-1411 was not complete.
1439
1440	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1441	multiply two integers.  Returns zero if there is an integer
1442	overflow.
1443
1444	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1445	is reported when reading the input file.
1446
14472010-06-08  Bob Friesenhahn  <[email protected]>
1448
1449	* Update libtool to version 2.2.8.
1450
1451	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1452	buffer due to integer overflow in TIFFroundup() and several other
1453	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1454	fixes CVE-2010-1411.
1455
1456	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1457	result in an integer overflow. This causes TIFFroundup() to also
1458	return zero if there would be an integer overflow.
1459
1460	* contrib: Add an emacs formatting mode footer to all source files
1461	so that emacs can be effectively used.
1462
14632010-06-03  Oliver Chen Feng <[email protected]>
1464
1465	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1466	file PAGENUMBER value in sequence for users who care the page
1467	sequence, this will also prevent tiff2pdf from creating pdf file from
1468	the merged tiff file with wrong page sequence.
1469
14702010-05-08  Olivier Paquet  <[email protected]>
1471
1472	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1473	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1474	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1475	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1476	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1477
14782010-05-07  Frank Warmerdam  <[email protected]>
1479
1480	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1481	JPEGPreEncode(), not just when we want to output local tables.
1482	Otherwise the quality used during compression may not be right and
1483	might not match the tables in the tables tag.   This bug only occurs
1484	when seeking between directories in the midst of writing blocks.
1485	http://trac.osgeo.org/gdal/ticket/3539
1486
14872010-05-06  Andrey Kiselev  <[email protected]>
1488
1489	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1490	Regenerated from the source.
1491
14922010-05-05  Olivier Paquet  <[email protected]>
1493
1494	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1495	had stopped working. Also made it always print 6 floats instead of
1496	2*SamplesPerPixel.
1497	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1498	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1499	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1500	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1501
15022010-05-05  Frank Warmerdam  <[email protected]>
1503
1504	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1505	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1506
15072010-04-21  Frank Warmerdam  <[email protected]>
1508
1509	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1510	JPEGSetupEncode() is called if the tables already seem to be
1511	established.  This prevents spurious updates and rewriting of
1512	directories with jpegtables when doing updates to existing images.
1513	http://trac.osgeo.org/gdal/ticket/3539
1514
15152010-04-20  Olivier Paquet  <[email protected]>
1516
1517	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1518	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1519	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1520	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1521	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1522
15232010-04-10  Bob Friesenhahn  <[email protected]>
1524
1525	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
1526	when the tag count value is zero.  Error handling is still a
1527	regression since in 3.9.2, empty tags are skipped (with a warning)
1528	rather than returning a hard error and refusing to read the file.
1529
1530	* tools/ppm2tiff.c (main): While case for parsing comment line
1531	requires extra parenthesis to work as expected.  Reported by
1532	Thomas Sinclair.
1533
15342010-04-02  Frank Warmerdam  <[email protected]>
1535
1536	* libtiff/tif_read.c (primarily): Add support for
1537	CHUNKY_STRIP_READ_SUPPORT where large strips are
1538	read in chunks for applications using TIFFReadScanline().
1539	This is intended to make it more practical work with very
1540	large compressed one-strip files.   Feature is off by default.
1541	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
1542	http://trac.osgeo.org/gdal/ticket/3514
1543
15442010-03-31  Frank Warmerdam  <[email protected]>
1545
1546	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
1547	directories so previously placed directories will be migrated to
1548	the end of file if needed.
1549
15502010-03-30  Frank Warmerdam  <[email protected]>
1551
1552	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
1553	to support operating on strips/tiles of more than 256MB.
1554	http://trac.osgeo.org/gdal/ticket/3512
1555
15562010-03-10  Bob Friesenhahn  <[email protected]>
1557
1558	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
1559	that it is clearly a memory allocation error message, and also
1560	includes the size of the allocation request.
1561
15622010-02-22  Lee Howard  <[email protected]>
1563
1564	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
1565	the JPEG TIFF as is is not required in order to prevent it from
1566	being unused and filled with invalid data.  (Leave it to be
1567	generated by later activity.)
1568	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1569	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
1570	data rather than skipping them.  This fixes the ability to view in
1571	Acrobat Reader, Evince, and Ghostscript.
1572	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1573	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
1574	strips.
1575	http://bugzilla.maptools.org/show_bug.cgi?id=2029
1576
15772009-12-03  Frank Warmerdam  <[email protected]>
1578
1579	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
1580	Made so that when working with downsampled images a stub function
1581	reporting an error is used for tif_decoderow.  We cannot meaningfully
1582	support reading scanlines in this situation.  (#1936)
1583
1584	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
1585	resetting of the upsampling values (gdal:#3259).
1586	http://bugzilla.maptools.org/show_bug.cgi?id=1936
1587
15882009-11-30  Frank Warmerdam  <[email protected]>
1589
1590	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
1591	tools/ras2tiff.c: Fix resource leaks on error.
1592	http://bugzilla.maptools.org/show_bug.cgi?id=2121
1593
1594	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
1595	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
1596	of as a custom(generic) field to avoid a potential reentrancy problem.
1597	http://bugzilla.maptools.org/show_bug.cgi?id=2125
1598
1599	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
1600	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
1601	const, and display_sRGB static and const.
1602	http://bugzilla.maptools.org/show_bug.cgi?id=2124
1603
16042009-11-04  Bob Friesenhahn  <[email protected]>
1605
1606	* libtiff 4.0.0alpha5 released.
1607
16082009-11-03  Bob Friesenhahn  <[email protected]>
1609
1610	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
1611	version has undergone substantial testing with arbitrary sample
1612	bit depths.  Also eliminates GCC compilation warnings.
1613
16142009-11-02  Bob Friesenhahn  <[email protected]>
1615
1616	* port/libport.h: Add extern declarations for getopt standard
1617	globals.
1618
16192009-10-31  Bob Friesenhahn  <[email protected]>
1620
1621	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
1622	noticed in 64-bit build of libtiff with Visual Studio 2005.
1623	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
1624	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
1625
1626	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
1627	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
1628	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
1629	http://bugzilla.maptools.org/show_bug.cgi?id=2068
1630
16312009-10-29  Bob Friesenhahn  <[email protected]>
1632
1633	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
1634	pointer" warnings.
1635
16362009-10-28  Bob Friesenhahn  <[email protected]>
1637
1638	* html/tools.html: Add manual page links, and a summary
1639	description of tiffcrop.
1640
16412009-10-07  Bob Friesenhahn  <[email protected]>
1642
1643	* configure.ac: x86_64 should use the same fill order as i386.
1644
16452009-09-24  Bob Friesenhahn  <[email protected]>
1646
1647	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
1648	Nolde.  Major updates to add significant functionality for reading
1649	and writing tile based images with bit depths not a multiple of 8
1650	which cannot be handled by tiffcp.
1651
16522009-09-03  Bob Friesenhahn  <[email protected]>
1653
1654	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
1655	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
1656	"Bug 2090 - OJPEG crash with libjpeg v7".
1657	http://bugzilla.maptools.org/show_bug.cgi?id=2090
1658
16592009-09-03  Frank Warmerdam  <[email protected]>
1660
1661	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
1662	interface when stoponerror is set.
1663	http://bugzilla.maptools.org/show_bug.cgi?id=2071
1664
16652009-08-30  Bob Friesenhahn  <[email protected]>
1666
1667	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
1668	fix build with gcc when using the "-Wformat
1669	-Werror=format-security" flags.
1670
16712009-08-29  Bob Friesenhahn  <[email protected]>
1672
1673	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
1674	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
1675	utilities tests.
1676
16772009-08-28  Bob Friesenhahn  <[email protected]>
1678
1679	* tools/tiffinfo.c: tiffinfo should return error status to the
1680	caller.  Register a private error callback to accomplish that.
1681
1682	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
1683	PNM formats so that we will be able to test more of the tools.
1684	While adding these test images I notice that bmp2tiff and gif2tiff
1685	only support ancient versions of their respective formats.
1686
16872009-08-27  Bob Friesenhahn  <[email protected]>
1688
1689	* libtiff 4.0.0alpha4 released.
1690
1691	* HOWTO-RELEASE: Improved release instructions.
1692
16932009-08-24  Bob Friesenhahn  <[email protected]>
1694
1695	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
1696	fixes for "Bug 2023 - nroff errors in manual pages".
1697	http://bugzilla.maptools.org/show_bug.cgi?id=2023
1698
1699	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
1700	CVE-2009-2347 libtiff: integer overflows in various inter-color
1701	space conversion tools".
1702	http://bugzilla.maptools.org/show_bug.cgi?id=2079
1703
1704	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
1705	Berkenbilt for "Bug 2024 - possible null pointer dereference with
1706	one-line fix".
1707	http://bugzilla.maptools.org/show_bug.cgi?id=2024
1708
1709	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
1710	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
1711	segfault after setting tdir_tag = IGNORE".
1712	http://bugzilla.maptools.org/show_bug.cgi?id=1895
1713
17142009-08-23  Bob Friesenhahn  <[email protected]>
1715
1716	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
1717	tiffcrop.sh into a collection of many specific tests.  Re-wrote
1718	all of the existing tests to be based on some simple shell
1719	functions.  Make distcheck works again.
1720
1721	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
1722	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
1723	tests under valgrind.
1724
17252009-08-21  Bob Friesenhahn  <[email protected]>
1726
1727	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
1728	build.
1729
1730	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
1731	actually activated since it needed to be enabled in this
1732	Makefile.am.  Also activated parallel-tests mode since it offers
1733	useful features such as per-test .log files and a summary test
1734	report .log file.
1735
17362009-08-20  Bob Friesenhahn  <[email protected]>
1737
1738	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
1739	libtool 2.2.6.  Enabled support for silent build rules
1740	(--enable-silent-rules or 'make V=0') and colorized tests.
1741
1742	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
1743
17442009-06-30  Frank Warmerdam  <[email protected]>
1745
1746	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
1747
1748	* tools/tiffcp.c: add -c sgilog support.
1749
1750	* libtiff/tif_luv.c: correct return codes from encoderow to be
1751	1 on success instead of zero.
1752	http://bugzilla.maptools.org/show_bug.cgi?id=2069
1753
1754	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
1755	#1085 for a better underflow fix that errors properly.
1756	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1757	http://bugzilla.maptools.org/show_bug.cgi?id=1985
1758
17592009-06-26  Frank Warmerdam  <[email protected]>
1760
1761	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
1762	fails on oddly sized 12bit jpeg compressed ycbcr images.
1763
17642009-06-22  Frank Warmerdam  <[email protected]>
1765
1766	* libtiff/tif_lzw.c: Fix buffer underflow bug.
1767	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1768
17692009-06-21  Frank Warmerdam  <[email protected]>
1770
1771	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
1772	for dual mode 8/12 bit jpeg support.
1773
17742009-06-03  Frank Warmerdam  <[email protected]>
1775
1776	* libtiff/tif_write.c: do not override the planar configuration to be
1777	contig for one sample files if planar configuration is already set.
1778	http://bugzilla.maptools.org/show_bug.cgi?id=2057
1779
17802009-06-02  Frank Warmerdam  <[email protected]>
1781
1782	* libtiff/libtiff.def: Add TIFFUnsetField.
1783
17842009-05-03  Frank Warmerdam  <[email protected]>
1785
1786	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
1787	error reports to use "%s" as format string.
1788	http://trac.osgeo.org/gdal/ticket/2976
1789
17902009-03-12  Frank Warmerdam  <[email protected]>
1791
1792	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
1793	for some codecs (#2020).
1794
17952009-02-12  Frank Warmerdam  <[email protected]>
1796
1797	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
1798	http://bugzilla.maptools.org/show_bug.cgi?id=2005
1799
18002009-02-09  Frank Warmerdam  <[email protected]>
1801
1802	* libtiff/tif_dirread.c: Improve allocation safety when allocated
1803	buffer for large tags.  (#1998)  Related to (#1993)
1804
18052009-02-06  Frank Warmerdam  <[email protected]>
1806
1807	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
1808	test suite should pass.
1809
18102009-02-05  Frank Warmerdam  <[email protected]>
1811
1812	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
1813	but at the 2GB boundary to avoid overflow on 32bit systems.
1814	http://bugzilla.maptools.org/show_bug.cgi?id=1993
1815
1816	* libtiff/tif_dirread.c: Remove some assertions that blow due to
1817	corrupt files rather than in response to library internal
1818	inconsistencies.
1819	http://bugzilla.maptools.org/show_bug.cgi?id=1995
1820	http://bugzilla.maptools.org/show_bug.cgi?id=1991
1821
1822	* libtiff/tif_dirread.c: Fixed testing for failed result from
1823	TIFFReadDirectoryFindFieldInfo().
1824	http://bugzilla.maptools.org/show_bug.cgi?id=1992
1825
18262009-01-23  Frank Warmerdam  <[email protected]>
1827
1828	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
1829	http://bugzilla.maptools.org/show_bug.cgi?id=1911
1830
1831	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
1832
1833	http://bugzilla.maptools.org/show_bug.cgi?id=1924
1834
1835	* tools/tiffcrop.c: initialize xres/yres values.
1836
1837	* test/*.sh - default ${srcdir} to local directory.
1838
1839	* test/common.sh - start verbose mode after common settings.
1840
1841	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
1842	avoid type mismatches on different platforms.
1843	http://bugzilla.maptools.org/show_bug.cgi?id=1889
1844
18452009-01-22  Frank Warmerdam  <[email protected]>
1846
1847	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
1848	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
1849
1850	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
1851	defined, primarily to reduce prototype warnings on windows.
1852
1853	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
1854	about unused parameters, and uninitialized variables.
1855
18562009-01-21  Bob Friesenhahn  <[email protected]>
1857
1858	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
1859	order to trace full execution detail while executing the test suite.
1860
18612009-01-20  Frank Warmerdam  <[email protected]>
1862
1863	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
1864
18652009-01-20  Bob Friesenhahn  <[email protected]>
1866
1867	* test/Makefile.am (CLEANFILES): Make sure that test output files
1868	are removed by 'make clean'
1869
1870	* Update autotools for 4.0.0 beta3
1871
1872	* 4.0.0 beta3 produced.
1873
18742009-01-12  Bob Friesenhahn  <[email protected]>
1875
1876	* test/tiffcrop.sh: New test script for tiffcrop from Richard
1877	Nolde.
1878
1879	* tools/tiff2ps.c: Remove spurious message to stderr.
1880
18812009-01-11  Bob Friesenhahn  <[email protected]>
1882
1883	* tools/tiff2ps.c: Incorporated significant functionality update
1884	from Richard Nolde.  In particular, support for rotating the image
1885	by 90, 180, 270, and 'auto' has been added.
1886
1887	* man/tiffcrop.1: Incorporated documentation updates from Richard
1888	Nolde.
1889
1890	* tools/tiffcrop.c: Incorporated significant functionality update
1891	from Richard Nolde.
1892
18932008-12-31  Bob Friesenhahn  <[email protected]>
1894
1895	* libtiff/tiffio.h: GCC will now validate format specifications
1896	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
1897	TIFFWarningExt() in order to reveal bugs.
1898
1899	* Many fixes throughout to work better as a 64-bit build.
1900
19012008-12-30  Bob Friesenhahn  <[email protected]>
1902
1903	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
1904	tags now require 64-bit parameter rather than 32-bit.
1905
1906	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
1907	64-bit values.
1908
1909	* tools/thumbnail.c: Eliminate crash noticed while running test
1910	suite.
1911
19122008-12-29  Bob Friesenhahn  <[email protected]>
1913
1914	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
1915	Initialize stack variables to avoid compiler warning.
1916
1917	* tools/tiffinfoce.c (main): Use toff_t for offset type when
1918	retrieving offset of EXIF IFD.
1919
1920	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
1921	TIFFClientOpen() callback and other external function definitions.
1922
1923	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
1924	type now.  Fixes crash when dumping files containing an EXIF IFD.
1925
1926	* m4/libtool.m4: Update to libtool 2.2.6.
1927
19282008-12-21  Frank Warmerdam  <[email protected]>
1929
1930	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
1931
1932	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
1933	strip for the last partial strip in a jpeg compressed file.
1934	http://bugzilla.maptools.org/show_bug.cgi?id=1981
1935
19362008-10-29  Frank Warmerdam  <[email protected]>
1937
1938	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
1939	we take the shortcut to only update the strip/tile offsets in place.
1940	http://trac.osgeo.org/gdal/ticket/2621
1941
19422008-10-21  Andrey Kiselev  <[email protected]>
1943
1944	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
1945	the older versions retained).
1946
19472008-10-09  Frank Warmerdam  <[email protected]>
1948
1949	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
1950	IPP enabled version of libjpeg from Intel.
1951	http://bugzilla.maptools.org/show_bug.cgi?id=1951
1952
19532008-09-05  Andrey Kiselev  <[email protected]>
1954
1955	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
1956	Required for libtiff 4.0.
1957
1958	* tools/tiffsplit.c: Use dynamically allocated array instead of static
1959	when constructing output file names.
1960
19612008-09-03  Andrey Kiselev  <[email protected]>
1962
1963	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
1964	doing the filename/path construction.
1965
1966	* tools/tiff2pdf.c: More appropriate format string in
1967	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
1968
1969	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
1970
1971	http://bugzilla.maptools.org/show_bug.cgi?id=1929
1972
1973	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
1974	CVE-2008-2327 security issue.
1975
19762008-09-01  Frank Warmerdam  <[email protected]>
1977
1978	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
1979
1980	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
1981	depending on whether the file is bigtiff or classic tiff.
1982	http://bugzilla.maptools.org/show_bug.cgi?id=1917
1983
19842008-08-12  Edward Lam  <[email protected]>
1985
1986	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
1987	consistent (__int64) casting when testing if _lseeki64 has
1988	successfully seeked as requested.  This is necessary for large
1989	file support to work since off_t is only 32-bit.
1990
19912008-07-29  Frank Warmerdam  <[email protected]>
1992
1993	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
1994	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
1995	with control logic to return runtime errors (c/o Even Rouault) (#1927).
1996
19972008-06-17  Frank Warmerdam  <[email protected]>
1998
1999	* tools/tiffcrop.c: Fix some portability problems.
2000
2001	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
2002	used in tif_jpeg.c.
2003
2004	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
2005	as TIFFOpen().
2006
20072008-06-01  Frank Warmerdam  <[email protected]>
2008
2009	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
2010	like Sparc/Solaris.
2011	http://bugzilla.maptools.org/show_bug.cgi?id=1892
2012
20132008-05-27  Frank Warmerdam  <[email protected]>
2014
2015	* libtiff.def: Add TIFFFindField
2016	http://bugzilla.maptools.org/show_bug.cgi?id=1891
2017
20182008-05-26  Frank Warmerdam  <[email protected]>
2019
2020	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
2021
2022	* li2008-04-15  Andrey Kiselev  <[email protected]>
2023
2024btiff/tif_win32.c: Replace custom Win32 memory api with generic
2025	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
2026	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
2027
2028	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
2029	in windows version (care of Edward Lam).
2030
20312008-05-24  Frank Warmerdam  <[email protected]>
2032
2033	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
2034	compression codec codes.
2035
2036	* tif_dirwrite.c: fix potential memory leak.
2037
2038	* tif_dirread.c: Fix unchecked malloc result.
2039
20402008-05-24  Bob Friesenhahn  <[email protected]>
2041
2042	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
2043	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
2044	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
2045	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
2046	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
2047	suggestions from Lee Howard posted to the tiff list on 13 Sep
2048	2007.
2049
20502008-05-23  Frank Warmerdam  <[email protected]>
2051
2052	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
2053	possible runtime problem reported by coverity.
2054
2055	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
2056
2057	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
2058	http://bugzilla.maptools.org/show_bug.cgi?id=1888
2059
2060	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
2061
2062	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
2063
2064	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
2065	Cleanup scanline allocation to avoid coverity warning.
2066
2067	* tools/thumbnail.c: Check for TIFFOpen() failure.
2068
20692008-05-18  Frank Warmerdam  <[email protected]>
2070
2071	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
2072	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
2073	why this is needed.
2074
20752008-05-09  Bob Friesenhahn  <[email protected]>
2076
2077	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
2078	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
2079
20802008-04-15  Andrey Kiselev  <[email protected]>
2081
2082	* test/: Test suite updated. Everything is passed now.
2083
2084	* libtiff/tif_dirinfo.c: Fixed description of the
2085	TIFFTAG_NUMBEROFINKS tag.
2086
20872008-04-14  Andrey Kiselev  <[email protected]>
2088
2089	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
2090	Get rid of some of "dereferencing type-punned" warnings by converting
2091	tdir_offset field of TIFFDirEntry structure into union.
2092
20932008-04-10  Andrey Kiselev  <[email protected]>
2094
2095	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
2096	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
2097	from the public interface. Type of its 'count' parameter changed
2098	from uint32 to tmsize_t.
2099
2100	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
2101	of the tiff structure have the size_t type instead of uint32.
2102
21032008-04-09  Andrey Kiselev  <[email protected]>
2104
2105	* tools/tiffdump.c: Added support for MSVS 6.0.
2106
2107	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
2108	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
2109	point values on MSVS 6.0 platform.
2110
21112008-03-14  Frank Warmerdam  <[email protected]>
2112
2113	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
2114	TIFFReadDirEntryArray() since they are interfering with seemingly
2115	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
2116
21172008-02-09  Joris Van Damme  <[email protected]>
2118
2119	* tif_dirread.c: Added handling for the case of number of values for
2120	PageNumber tag different from 2 (previously resulted in an assert
2121	indicating lack of handling and was forgotten about)
2122
21232008-02-01  Frank Warmerdam  <[email protected]>
2124
2125	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
2126	the actual jpeg data stream if the first strip/tile has zero size.
2127	This is the case when GDAL creates a new file with zero sizes, closes
2128	and reopens it.
2129
21302008-01-07  Frank Warmerdam  <[email protected]>
2131
2132	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
2133
21342008-01-01  Frank Warmerdam  <[email protected]>
2135
2136	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
2137
2138	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
2139	targets.
2140
2141	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
2142	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
2143	(x64).
2144
2145	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
2146	and TIFFFieldWithName() now return TIFFField pointers instead of
2147	TIFFFieldInfo pointers.
2148
2149	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
2150	exist. This makes it compile again on Windows
2151
2152	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
2153	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
2154
2155	* test/rewrite_tag.c: New test for TIFFRewriteField().
2156
21572007-12-31  Frank Warmerdam  <[email protected]>
2158
2159	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
2160	rewrites one field "on disk" updating an existing directory
2161	entry.  Lots of limitations still...
2162
2163	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
2164	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
2165	the strip offset/size values are dirty but nothing else about the
2166	directory is dirty.  In flush handle "just stripmaps dirty" as a
2167	special case that just rewrites these values without otherwise
2168	modifying the directory on disk using TIFFRewriteField().
2169
2170	We also modify logic so that in update mode the directory is not
2171	marked dirty on read, but only when something is changed.  This
2172	means we need to keep track of updates to the stripmap stuff in
2173	TIFFAppendToStrip().
2174
21752007-12-10  Frank Warmerdam  <[email protected]>
2176
2177	* tif_jpeg.c: Improve ability to switch between encoding and decoding
2178	in the jpeg code (gdal bug #2033).
2179
21802007-11-23  Frank Warmerdam  <[email protected]>
2181
2182	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
2183	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
2184	rawcp/rawcc buffer are for writing and thus may require flushing.
2185	Necessary to distinguish whether they need to be written to disk when
2186	in mixed read/write mode and doing a mixture of writing followed by
2187	reading.  http://trac.osgeo.org/gdal/ticket/1758
2188
21892007-11-23  Andrey Kiselev  <[email protected]>
2190
2191	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
2192	from Alexey Chupahin.
2193
21942007-11-02  Frank Warmerdam  <[email protected]>
2195
2196	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
2197	establishing if an existing tile can be rewritten to the same location
2198	by comparing the current size to all the other blocks in the same
2199	directory.  This is dangerous in many situations and can easily
2200	corrupt a file.  (observed in esoteric GDAL situation that's hard to
2201	document).  This change involves leaving the stripbytecount[] values
2202	unaltered till TIFFAppendToStrip().  Now we only write a block back
2203	to the same location it used to be at if the new data is the same
2204	size or smaller - otherwise we move it to the end of file.
2205
2206	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
2207	data when writing the directory just because we have BEENWRITING at
2208	some point in the past.  This was causing odd junk to be written out
2209	in a tile of data when a single tile had an interleaving of reading
2210	and writing with reading last.  (highlighted by gdal
2211	autotest/gcore/tif_write.py test 7.
2212
2213	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
2214	modifying callers buffer.
2215	http://trac.osgeo.org/gdal/ticket/1965
2216
2217	* tif_predict.c/h: more fixes related to last item, keeping a
2218	distinct pfunc for encode and decode cases as these were getting
2219	mixed up sometimes.
2220	http://trac.osgeo.org/gdal/ticket/1948
2221
22222007-11-01  Frank Warmerdam  <[email protected]>
2223
2224	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
2225	predictor based encoding and decoding works in read-write update
2226	mode properly.
2227	http://trac.osgeo.org/gdal/ticket/1948
2228
22292007-10-24  Joris Van Damme  <[email protected]>
2230
2231	* tif_dirread.c: Fixed problem with bogus file triggering
2232	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
2233	ChopUpSingleUncompressedStrip
2234
22352007-10-22  Joris Van Damme  <[email protected]>
2236
2237	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
2238	at best, access violation at worst, when subsampled JPEG compressed imagery
2239	is decoded without the JPEG_COLORMODE feature
2240
22412007-10-11  Frank Warmerdam  <[email protected]>
2242
2243	* html/index.html: Update "people responsible" section.
2244
22452007-10-05  Frank Warmerdam  <[email protected]>
2246
2247	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
2248	as reported on the mailing list.
2249
22502007-10-01  Joris Van Damme  <[email protected]>
2251
2252	* changed some more incorrect %lud printf flags to %lu
2253
22542007-09-29  Joris Van Damme  <[email protected]>
2255
2256	* tif_dirread.c: Strip chopping interfered badly with uncompressed
2257	subsampled images because it tried to divide subsampled rowblocks,
2258	leading to all sorts of errors throughout the library for these
2259	images. Fixed by making strip chopping divide in row counts that
2260	are a multiple of vertical subsampling value.
2261
22622007-09-28  Joris Van Damme  <[email protected]>
2263
2264	* tif_dirread.c: Logical cast working around compiler warning
2265
2266	* tif_read.c: Correction of some error flags and parameter lists
2267
22682007-09-27  Joris Van Damme  <[email protected]>
2269
2270	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
2271	when dealing with large bitspersample values, shutting up purification
2272	tools that warn about truncation, though it remains incorrect and
2273	indicates a conceptual problem there.
2274
2275	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
2276	of first IFD) to proper place because it badly interfered with memory
2277	mapping, resulting in mapping flag even with dummy mapping functions
2278	that returned 0 whilst at the same time the mapping tif_size wasn't
2279	set, thus resulting in continuous incorrect beyond-eof errors.
2280
22812007-09-24  Joris Van Damme  <[email protected]>
2282
2283	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
2284	inconsistent use of const in tiffFields and exifFields definition
2285
22862007-09-20  Frank Warmerdam  <[email protected]>
2287
2288	* tif_dirwrite.c: Always write tile/strip offsets and sizes
2289	using LONG8 type when output format is BigTIFF.  The
2290	TIFFWriteDirectoryTagLongLong8Array() function was restructured
2291	accordingly.
2292
2293	* tif_dirread.c: Improvements to error reporting text in
2294	TIFFFetchDirectory().
2295
22962007-09-19  Bob Friesenhahn  <[email protected]>
2297
2298	* test/images: Added a small collection of test images for use by
2299	test programs and scripts.
2300	* test/tiffinfo.sh: A trivial example test script.
2301	* test/common.sh: Added small script for setting the environment
2302	used by script-based tests.
2303
23042007-08-24  Frank Warmerdam  <[email protected]>
2305
2306	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
2307	zero when writing directory contents to preserve the ability to
2308	rewrite directories in place, even in the middle of a directory
2309	chain.
2310
2311	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
2312	definitions that are missing.  Existing definitions are silently
2313	ignored.
2314
2315	* tif_dirread.c: Add runtime error for fields for which no definition
2316	is found (in addition to an assert for developers) in
2317	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
2318	prudent.
2319
23202007-08-10  Joris Van Damme  <[email protected]>
2321
2322	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
2323	from _TIFFRGBAImage structure to revert unwanted ABI change.
2324
23252007-08-10  Joris Van Damme  <[email protected]>
2326
2327	* libtiff/tif_win32.c: use SetFilePointer instead of
2328	SetFilePointerEx, as per bug
2329
2330	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
2331
23322007-07-19  Andrey Kiselev  <[email protected]>
2333
2334	* libtiff/tif_stream.cxx: Put all callback functions declarations
2335	inside extern "C" block.
2336
2337	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
2338	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
2339	formatter instead of "%lld" with MSVC compiler.
2340
2341	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
2342	_TIFFUInt64ToDouble() functions.
2343
23442007-07-18  Andrey Kiselev  <[email protected]>
2345
2346	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
2347	integer constants.
2348
2349	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2350	remove tif_config.h/tiffconf.h during cleaning. As per bug
2351
2352	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2353
2354	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2355
2356	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2357
23582007-07-13  Andrey Kiselev  <[email protected]>
2359
2360	* libtiff 4.0.0alpha released.
2361
23622007-07-12  Andrey Kiselev  <[email protected]>
2363
2364	* tools/tiff2pdf.c: Added missed extern optind as per bug
2365
2366	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2367
2368	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2369	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2370	extending scheme completed.
2371
23722007-07-11  Bob Friesenhahn  <[email protected]>
2373
2374	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2375	use standard C++ library size types and attempt to detect overflow
2376	cases.
2377
23782007-07-08  Andrey Kiselev  <[email protected]>
2379
2380	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2381	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2382	tag extending scheme. Use the new scheme everywhere.
2383
2384	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2385	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2386	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2387	TIFFFIeldInfo structure replaced with TIFFField structure.
2388	TIFFFieldInfo retained for the backward compatibility.
2389
23902007-07-05  Bob Friesenhahn  <[email protected]>
2391
2392	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2393	defined.
2394
23952007-07-04  Andrey Kiselev  <[email protected]>
2396
2397	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2398	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2399	removed.
2400
2401	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2402	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2403	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2404	These tags are not codec-specific and relate to image content, so
2405	process them as other normal tags.
2406
2407	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2408	public tiffio.h to private tif_dir.h.
2409
2410	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2411	outdated.
2412
24132007-07-03  Andrey Kiselev  <[email protected]>
2414
2415	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2416	tif_win3.c}: Obsoleted portability stuff removed.
2417
2418	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2419
2420	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2421
2422	Patch from William Bader.
2423
2424	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2425	significant upgrade of the whole utility as per bug
2426
2427	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2428
2429	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2430	PDF file using TIFFClientOpen() machinery as it is implemented
2431	by Leon Bottou.
2432
24332007-06-26  Bob Friesenhahn  <[email protected]>
2434
2435	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2436	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2437	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2438	allow returning -1 for errors.
2439	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2440
24412007-06-25  Bob Friesenhahn  <[email protected]>
2442
2443	* port/strtoull.c: New porting function in case strtoull() is not
2444	available on the target system.
2445	* configure.ac: Add configure support for determining sized types
2446	in a portable way and performing necessary substitutions in
2447	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2448	definitions.
2449
24502007-04-27  Andrey Kiselev  <[email protected]>
2451
2452	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2453
2454	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2455
24562007-04-07  Andrey Kiselev  <[email protected]>
2457
2458	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2459	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2460	tif_predict.c, tif_zip.c}: Finally fix bug
2461
2462	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2463
2464	by introducing _TIFFMergeFieldInfo() returning integer error status
2465	instead of void in case of problems with field merging (e.g., if the
2466	field with such a tag already registered). TIFFMergeFieldInfo() in
2467	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2468	check returned value.
2469
24702007-04-07  Frank Warmerdam  <[email protected]>
2471
2472	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2473	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2474
24752007-04-06  Frank Warmerdam  <[email protected]>
2476
2477	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2478	will convert from decompressor to compressor or compress to decompress
2479	if required by the force arguments.  This works around a problem in
2480	where the JPEGFixupTestSubsampling() may cause a decompressor to
2481	be setup on a directory when later a compressor is required with the
2482	force flag set.  Occurs with the addtiffo program for instance.
2483
24842007-04-06  Andrey Kiselev  <[email protected]>
2485
2486	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2487	functionality from Richard Nolde. As per bug
2488
2489	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2490
24912007-03-28  Frank Warmerdam  <[email protected]>
2492
2493	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2494
24952007-03-17  Joris Van Damme  <[email protected]>
2496
2497	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2498
24992007-03-07  Joris Van Damme  <[email protected]>
2500
2501	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2502	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2503	factor. This bug is mentioned in:
2504	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2505	http://www.asmail.be/msg0054766825.html
2506
25072007-03-07  Joris Van Damme  <[email protected]>
2508
2509	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2510
2511	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2512	unused arguments by standard C indication for the same
2513
25142007-02-27  Andrey Kiselev  <[email protected]>
2515
2516	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2517	counters in TIFFFetchData(). Should finally fix the issue
2518
2519	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2520
25212007-02-24  Andrey Kiselev  <[email protected]>
2522
2523	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
2524	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2525
2526	* libtiff/tif_dirread.c: Added special function to handle
2527	SubjectDistance EXIF tag as per bug
2528
2529	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
2530
2531	* tools/tiff2pdf.c: Do not assume inches when the resolution units
2532	do not specified. As per bug
2533
2534	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2535
2536	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
2537	it was set as infinite. As per bug
2538
2539	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2540
2541	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
2542	by Richard Nolde. As per bug
2543
2544	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
2545
25462007-02-22  Andrey Kiselev  <[email protected]>
2547
2548	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
2549	ExtraSamples == 999 produced by Corel Draw. As per bug
2550
2551	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
2552
2553	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
2554	changed from tsize_t to uint32 to be able to work with data arrays
2555	larger than 2GB. Fixes bug
2556
2557	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2558
2559	Idea submitted by Matt Hancher.
2560
25612007-01-31  Andrey Kiselev  <[email protected]>
2562
2563	* tools/tif2rgba.c: This utility does not work properly on big-endian
2564	architectures. It was fixed including the bug
2565
2566	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
2567
25682007-01-15  Mateusz Loskot <[email protected]>
2569
2570	* Submitted libtiff port for Windows CE platform
2571	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
2572	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
2573	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
2574	functons from tif_win32.c.
2575	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
2576	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
2577	standard header files for Windows CE build.
2578	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
2579
25802006-11-19  Frank Warmerdam  <[email protected]>
2581
2582	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
2583	we move a strip.
2584	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
2585
25862006-10-13  Andrey Kiselev  <[email protected]>
2587
2588	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
2589	in Gentoo bug ():
2590
2591	http://bugs.gentoo.org/show_bug.cgi?id=142383
2592
2593	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
2594	Though it is still far from the state of being working and useful.
2595
25962006-10-12  Andrey Kiselev  <[email protected]>
2597
2598	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
2599	method.
2600
2601	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
2602	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
2603
2604	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
2605	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
2606
2607	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
2608	vulnerabilities, reported in Gentoo bug ():
2609
2610	http://bugs.gentoo.org/show_bug.cgi?id=142383
2611
26122006-09-28  Andrey Kiselev  <[email protected]>
2613
2614	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
2615	vulnerabilities, as per	Gentoo bug ():
2616
2617	http://bugs.gentoo.org/show_bug.cgi?id=142383
2618
26192006-09-27  Frank Warmerdam  <[email protected]>
2620
2621	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
2622	encoding and decoding on the same read-write TIFF handle.  The LZW
2623	code can now maintain encode and decode state at the same time. The
2624	ZIP code will switch back and forth as needed.
2625	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
2626
26272006-09-20  Frank Warmerdam  <[email protected]>
2628
2629	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
2630	tif_config.vc.h for easier identification by folks using an IDE.
2631
26322006-07-25  Frank Warmerdam  <[email protected]>
2633
2634	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
2635
26362006-07-19  Frank Warmerdam  <[email protected]>
2637
2638	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
2639	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
2640	to bug report by Peng Gao with black strip at bottom of images.
2641
26422006-07-12  Frank Warmerdam  <[email protected]>
2643
2644	* tif_dirwrite.c: make sure to use uint32 for wordcount in
2645	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
2646	It already seems to have been done for other field types.  Needed
2647	for "tiffset" on files with geotiff ascii text.
2648
26492006-07-04  Bob Friesenhahn  <[email protected]>
2650
2651	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
2652	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
2653	its use does not appear to be required, so use it only when it is
2654	available.
2655
26562006-06-24  Andrey Kiselev  <[email protected]>
2657
2658	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
2659
2660	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
2661	function TIFFFetchDirectory() avoiding code duplication in
2662	TIFFReadDirectory() and TIFFReadCustomDirectory().
2663
26642006-06-19  Frank Warmerdam  <[email protected]>
2665
2666	* tools/tiff2pdf.c: Fix handling of -q values.
2667	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
2668
26692006-06-17  Frank Warmerdam  <[email protected]>
2670
2671	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
2672	files.  Modified TIFFReadDirectory() to not invoke
2673	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
2674	but one of them is zero.
2675	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
2676
26772006-06-08  Andrey Kiselev  <[email protected]>
2678
2679	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
2680	checking code in the separate function TIFFCheckDirOffset().
2681
2682	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
2683
2684	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
2685
2686	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
2687
2688	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
2689
2690	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
2691
2692	* tools/tiff2pdf.c: Fixed buffer overflow condition in
2693	t2p_write_pdf_string() as per bug
2694
2695	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
2696
26972006-06-07  Andrey Kiselev  <[email protected]>
2698
2699	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
2700	support for JBIG compression scheme (34661 code) contributed by Lee
2701	Howard. As per bug
2702
2703	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
2704
2705	* configure, configure.ac: OJPEG support enabled by default.
2706
2707	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
2708
27092006-06-03  Bob Friesenhahn  <[email protected]>
2710
2711	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
2712	TIFFPrintDirectory().  Joris Van Damme authored the fix.
2713
27142006-04-21  Andrey Kiselev  <[email protected]>
2715
2716	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
2717	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
2718
2719	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
2720	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
2721	Added support for OpenVMS by Alexey Chupahin, [email protected].
2722
27232006-04-20  Andrey Kiselev  <[email protected]>
2724
2725	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
2726	Properly set the binary mode for stdin stream as per bug
2727	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
2728
2729	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
2730	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
2731	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
2732	tiffset.1}: Improvements in page formatting as per bug
2733	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
2734
2735	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
2736	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
2737
27382006-04-18  Frank Warmerdam  <[email protected]>
2739
2740	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
2741	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
2742
27432006-04-12  Joris Van Damme  <[email protected]>
2744
2745	* libtiff/tif_getimage.c: Added support for planarconfig separate
2746	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
2747
27482006-04-11  Joris Van Damme  <[email protected]>
2749
2750	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
2751	- Conversion of unassociated alpha to associated alpha now done with
2752	  more performant LUT, and calculation more correct
2753	- Conversion of 16bit data to 8bit data now done with
2754	  more performant LUT, and calculation more correct
2755	- Bugfix of handling of 16bit RGB with unassociated alpha
2756
27572006-04-11  Joris Van Damme  <[email protected]>
2758
2759	* libtiff/tif_getimage.c:
2760	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
2761	  buffer for alpha strile and filled it, only to never read it back.
2762	  Removed allocation and fill.
2763	- Minor rename of vars in gtTileSeparate and gtStripSeparate
2764	  anticipating planned functionality extension
2765
27662006-04-08  Joris Van Damme  <[email protected]>
2767
2768	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
2769	and pickTileSeparateCase to PickSeparateCase as both work on strips as
2770	well
2771
2772	* libtiff/tif_getimage.c: moved img->get selection from
2773	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
2774	logical hook for planned functionality extension
2775
27762006-04-08  Joris Van Damme  <[email protected]>
2777
2778	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
2779	of inappropriate use of jpeg_abort instead of jpeg_destroy
2780
27812006-04-07  Joris Van Damme  <[email protected]>
2782
2783	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
2784	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
2785	on subsampled images - this ought to get sorted when we feel brave
2786	enough to replace TIFFScanlineSize alltogether
2787
2788	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
2789
27902006-04-04  Joris Van Damme  <[email protected]>
2791
2792	* libtiff/tiffio.h: added new type tstrile_t
2793
2794	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
2795	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
2796	toff_t*
2797
2798	* libtiff/tif_ojpeg.c: totally new implementation
2799
2800	* libtiff/tif_dirread.c: added several hacks to suit new support of
2801	OJPEG
2802
2803	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
2804	of OJPEG images in favor of tif_getimage.c native handling of
2805	YCbCr and desubsampling
2806
28072006-03-29  Frank Warmerdam  <[email protected]>
2808
2809	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
2810	interpretation causes the "upsampled" flag to be recomputed.  Fixes
2811	peculiar bug where photometric flag had to be set before jpegcolormode
2812	flag.
2813
28142006-03-25  Joris Van Damme  <[email protected]>
2815
2816	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
2817
2818	* libtiff/tif_strip.c: temporarilly added two new versions of
2819	TIFFScanlineSize
2820	  - TIFFNewScanlineSize: proposed new version, after all related
2821	    issues and side-effects are sorted out
2822	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
2823	This needs further sorting out.
2824
28252006-03-25  Joris Van Damme  <[email protected]>
2826
2827	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
2828	of last truncated strip data to TIFFWriteEncodedStrip
2829
28302006-03-25  Joris Van Damme  <[email protected]>
2831
2832	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
2833
28342006-03-25  Joris Van Damme  <[email protected]>
2835
2836	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
2837
2838	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
2839
2840	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
2841	prepare	the path for new tif_ojpeg.c
2842
28432006-03-23  Andrey Kiselev  <[email protected]>
2844
2845	* libtiff 3.8.2 released.
2846
2847	* tools/Makefile.am: Use runtime paths linker flags when rpath
2848	option enabled.
2849
28502006-03-21  Andrey Kiselev  <[email protected]>
2851
2852	* libtiff/libtiff.def: Added missed exports as per bug
2853	http://bugzilla.remotesensing.org/attachment.cgi?id=337
2854
2855	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
2856	tools/Makefile.vc: Makefiles improvements as per bug
2857	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
2858
2859	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
2860	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
2861	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
2862
2863	* libtiff/tif_strip.c: Take subsampling in account when calculating
2864	TIFFScanlineSize().
2865
2866	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
2867
28682006-03-17  Andrey Kiselev  <[email protected]>
2869
2870	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
2871	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
2872
2873	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
2874	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
2875
28762006-03-16  Andrey Kiselev  <[email protected]>
2877
2878	* libtiff/tiffiop.h: Added decalration for
2879	_TIFFSetDefaultCompressionState().
2880
2881	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
2882	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
2883	codec cleanup methods. As per bug
2884
2885	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
2886
28872006-03-15  Andrey Kiselev  <[email protected]>
2888
2889	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
2890	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
2891
2892	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
2893	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
2894
2895	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
2896	removed; move here the STRIP_SIZE_DEFAULT macro definition.
2897
2898	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
2899	macro definition.
2900
2901	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
2902
29032006-03-14  Andrey Kiselev  <[email protected]>
2904
2905	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
2906	in TIFFReadDirectory, because it is always set at the start of
2907	function and we allow TIFFs without that tag set.
2908
29092005-03-13  Andrey Kiselev  <[email protected]>
2910
2911	* libtiff 3.8.1 released.
2912
29132006-03-07  Andrey Kiselev  <[email protected]>
2914
2915	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
2916	function as per bug
2917	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2918
2919	* libtiff/tif_dirread.c: More wise check for integer overflow
2920	condition as per bug
2921	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2922
2923	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
2924	Properly restore setfield/getfield methods in cleanup functions. As
2925	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2926
29272006-03-03  Andrey Kiselev  <[email protected]>
2928
2929	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
2930	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
2931
2932	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
2933	TIFFPredictorCleanup() in codec cleanup methods. As per bug
2934
2935	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2936
2937	* libtiff/tif_dirread.c: Fixed integer overflow condition in
2938	TIFFFetchData() function. As per bug
2939
2940	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2941
29422006-03-01  Andrey Kiselev  <[email protected]>
2943
2944	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
2945	TIFFSetField() method, not directly. As per bug
2946
2947	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
2948
2949	* tools/ppm2tiff.c: Added support for PBM files as per bug
2950	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
2951
29522006-02-27  Andrey Kiselev  <[email protected]>
2953
2954	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
2955	to avoid crash as per bug
2956
2957	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
2958
29592006-02-26  Andrey Kiselev  <[email protected]>
2960
2961	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
2962	t2p_sample_rgba_to_rgb() was used in place of each other, that was
2963	resulted in problems with RGBA images with associated alpha.
2964	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
2965
29662006-02-23  Andrey Kiselev  <[email protected]>
2967
2968	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
2969	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2970
2971	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
2972	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
2973	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2974
2975	* tools/tiff2ps.c: Properly scale all the pages when converting
2976	multipage TIFF with /width/height/center options set. As per bug
2977
2978	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
2979
29802006-02-15  Andrey Kiselev  <[email protected]>
2981
2982	* tools/tiff2pdf.c: Do not create output file until all option checks
2983	will be done. As per bug
2984
2985	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
2986
2987	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
2988	list of input files as per bug:
2989
2990	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
2991
29922006-02-09  Andrey Kiselev  <[email protected]>
2993
2994	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
2995	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
2996
2997	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
2998	TIFFRGBAImage interface.
2999
3000	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
3001	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
3002
30032006-02-07  Frank Warmerdam  <[email protected]>
3004
3005	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
3006	compressed TIFF files, per submission from Dan Cobra.
3007
30082006-02-07  Andrey Kiselev  <[email protected]>
3009
3010	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
3011	cast values to avoid warnings. As per bug
3012	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3013
3014	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
3015	appropriate. As per bug
3016	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3017
3018	* libtiff/tif_aux.c: Fixed type of temporary variable in
3019	_TIFFCheckMalloc() as per bug
3020	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
3021
30222006-02-06  Andrey Kiselev  <[email protected]>
3023
3024	* libtiff/tif_aux.c: Return static array when fetching default
3025	YCbCrCoefficients (another problem, reported a the
3026	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
3027
30282006-02-03  Andrey Kiselev  <[email protected]>
3029
3030	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
3031	YCbCrSubsampling and DotRange tags as per bugs
3032
3033	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
3034	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
3035
3036	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
3037	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
3038
3039	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
3040
30412006-01-23  Andrey Kiselev  <[email protected]>
3042
3043	* libtool related stuff updated from the 2.1a branch.
3044
30452006-01-11  Frank Warmerdam  <[email protected]>
3046
3047	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
3048	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
3049	properly as per bug:
3050	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
3051
30522006-01-09  Bob Friesenhahn  <[email protected]>
3053
3054	* configure.ac: Fix with_default_strip_size comparison as reported
3055	by Norihiko Murase.
3056
30572006-01-08  Bob Friesenhahn  <[email protected]>
3058
3059	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
3060	incorrectly, tests were not actually testing the uninstalled
3061	libtiff.  Now they are.
3062
30632006-01-04  Andrey Kiselev  <[email protected]>
3064
3065	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
3066	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
3067	should be uint32 value.
3068
30692006-01-02  Bob Friesenhahn  <[email protected]>
3070
3071	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
3072	be used if build directory is not the same as source directory.
3073	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
3074	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
3075	and re-sorted tag names in alphabetical order.
3076
30772005-12-29  Andrey Kiselev  <[email protected]>
3078
3079	* libtiff 3.8.0 released.
3080
30812005-12-28  Bob Friesenhahn  <[email protected]>
3082
3083	* tools/bmp2tiff.c (main): Fixed warning regarding returning
3084	inconsistent types from a condition.
3085	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
3086	format.
3087	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
3088
30892005-12-28  Joris Van Damme  <[email protected]>
3090
3091	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
3092
30932005-12-27  Andrey Kiselev  <[email protected]>
3094
3095	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
3096	windows.h, to reduce the compile time.
3097
30982005-12-26  Bob Friesenhahn  <[email protected]>
3099
3100	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
3101
31022005-12-26  Andrey Kiselev  <[email protected]>
3103
3104	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
3105	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
3106	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
3107	private functions to retrieve FieldInfo arrays.
3108
31092005-12-24  Bob Friesenhahn  <[email protected]>
3110
3111	* html/build.html: Added some additional instructions for when
3112	building using MSVC under Windows.  Also fixed two HTML syntax
3113	errors and used HTML Tidy to tidy up the HTML syntax and
3114	formatting.
3115
31162005-12-24  Andrey Kiselev  <[email protected]>
3117
3118	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
3119	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
3120	StoNits tags custom.
3121
31222005-12-23  Andrey Kiselev  <[email protected]>
3123
3124	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
3125	WhitePoint tag custom.
3126
3127	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
3128
31292005-12-23  Joris Van Damme  <[email protected]>
3130
3131	* libtiff/tiffio.h: fixed typo that potentially resulted in
3132	redefininition of USE_WIN32_FILEIO
3133
3134	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
3135	calls in core LibTiff.
3136
31372005-12-21  Andrey Kiselev  <[email protected]>
3138
3139	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
3140	Photoshop and ICCProfile tags custom.
3141
31422005-12-21  Joris Van Damme  <[email protected]>
3143
3144	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
3145	newer code to get context indicator in error handler and still
3146	remain compatible with older code: Done TIFFError calls everywhere
3147	except in tools
3148
31492005-12-20  Andrey Kiselev  <[email protected]>
3150
3151	* tools/tiffcp.c: Added many error reporting messages; fixed integer
3152	overflow as per bug
3153
3154	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
3155
31562005-12-16  Frank Warmerdam  <[email protected]>
3157
3158	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
3159	YCbCr images in jpeg compressed TIFF files.
3160
31612005-12-14  Andrey Kiselev  <[email protected]>
3162
3163	* tools/tiffcp.c: Return non-zero status when reading fails (again).
3164
31652005-12-13  Andrey Kiselev  <[email protected]>
3166
3167	* tools/tiffcp.c: Return non-zero status when reading fails.
3168
31692005-12-12  Andrey Kiselev  <[email protected]>
3170
3171	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
3172
31732005-12-09  Andrey Kiselev  <[email protected]>
3174
3175	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
3176	custom.
3177
3178	* tools/tiffinfo.c: Print EXIF directory contents if exist.
3179
3180	* libtiff/tiff.h: Few EXIF tag numbers added.
3181
3182	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
3183	tiffio.h}: Preliminary support to read custom directories. New
3184	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
3185
31862005-12-07  Andrey Kiselev  <[email protected]>
3187
3188	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
3189	More work to implement custom directory read support.
3190
3191	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
3192	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
3193	tags custom.
3194
31952005-12-05  Andrey Kiselev  <[email protected]>
3196
3197	* libtiff/tif_dirread.c: One more workaround for broken
3198	StripByteCounts tag. Handle the case when StripByteCounts array filled
3199	with completely wrong values.
3200
32012005-11-30  Andrey Kiselev  <[email protected]>
3202
3203	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
3204	in the TIFFOpenW() function as per bug
3205
3206	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
3207
3208	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
3209	functions as per bug
3210
3211	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
3212
32132005-11-20  Frank Warmerdam  <[email protected]>
3214
3215	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
3216	for MS MDI format.
3217	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
3218
3219	* .cvsignore: many files added, and a few update according
3220	to suggestion of Brad HArds on tiff mailing list.
3221
32222005-11-03  Frank Warmerdam  <[email protected]>
3223
3224	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
3225	public.
3226
32272005-10-31  Andrey Kiselev  <[email protected]>
3228
3229	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
3230	as per bug
3231
3232	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
3233
3234	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
3235	as per bug
3236
3237	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
3238
3239	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
3240	problem as per bug
3241
3242	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
3243
3244	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
3245
3246	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
3247
3248	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
3249	ResolutionUnit tags modifiable during write process. As per bug
3250
3251	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
3252
3253	* tools/tiffsplit.c: Copy fax related fields over splitted parts
3254	as per bug
3255
3256	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
3257
32582005-10-21  Frank Warmerdam  <[email protected]>
3259
3260	* tif_dirread.c: Don't try and split single strips into "0" strips
3261	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
3262	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
3263
32642005-10-20  Joris Van Damme  <[email protected]>
3265
3266	* tif_fax3.c: changed 'at scanline ...' style warning/errors
3267	with incorrect use of tif_row, to 'at line ... of
3268	strip/tile ...' style
3269
32702005-10-15  Frank Warmerdam  <[email protected]>
3271
3272	* tif_write.c: fixed setting of planarconfig as per bug report
3273	on the mailing list from Joris.
3274
32752005-10-07  Andrey Kiselev  <[email protected]>
3276
3277	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
3278	tif_dirread.c}: Make the default strip size configurable via the
3279	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
3280
32812005-09-30  Bob Friesenhahn  <[email protected]>
3282
3283	* html/support.html: Fixed link to documentation on Greg Ward's
3284	LogLuv TIFF format.
3285
32862005-09-28  Andrey Kiselev  <[email protected]>
3287
3288	* tools/tiffdump.c: Fixed crash when reading malformed tags.
3289
32902005-09-20  Andrey Kiselev  <[email protected]>
3291
3292	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
3293	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
3294
32952005-09-12  Andrey Kiselev  <[email protected]>
3296
3297	* libtiff 3.7.4 released.
3298
3299	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
3300	from Patrick Welche (all scripts moved in the 'config' and 'm4'
3301	directories).
3302
33032005-09-12  Frank Warmerdam  <[email protected]>
3304
3305	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
3306
33072005-09-05  Frank Warmerdam  <[email protected]>
3308
3309	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
3310	also set it to NULL to avoid double free when re-setting custom
3311	string fields as per:
3312
3313	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
3314
33152005-08-12  Frank Warmerdam  <[email protected]>
3316
3317	* libtiff/tif_print.c: avoid signed/unsigned warning.
3318
3319	* libtiff/tif_dirread.c: removed unused variable.
3320
33212005-07-30  Frank Warmerdam  <[email protected]>
3322
3323	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
3324	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
3325	pass on bigendian (macosx) system.
3326
33272005-07-28  Andrey Kiselev  <[email protected]>
3328
3329	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
3330	CheckMalloc() function to _TIFFCheckMalloc() and make it available
3331	globally as an internal helper routine.
3332
33332005-07-27  Andrey Kiselev  <[email protected]>
3334
3335	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
3336	the custom tags handling code.
3337
33382005-07-26  Andrey Kiselev  <[email protected]>
3339
3340	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
3341	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
3342	function, use TIFFFetchNormalTag() instead as per bug
3343
3344	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3345
3346	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
3347	instead.
3348
3349	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3350
3351	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3352
33532005-07-25  Andrey Kiselev  <[email protected]>
3354
3355	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3356
3357	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3358
33592005-07-21  Andrey Kiselev  <[email protected]>
3360
3361	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3362	the TIFFWriteCheck() function in case of single band images (as per
3363	TIFF spec).
3364
33652005-07-12  Andrey Kiselev  <[email protected]>
3366
3367	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3368	support for SCons software building tool (http://www.scons.org/).
3369	This is experimental infrastructure and it will exist along with the
3370	autotools mechanics.
3371
33722005-07-07  Andrey Kiselev  <[email protected]>
3373
3374	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3375	the NetBSD source tree (the old	4-clause BSD license changed to
3376	the new 3-clause one).
3377
3378	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3379	replacement module.
3380
3381	* port/dummy.c: Make the dummy function static.
3382
33832005-07-06  Andrey Kiselev  <[email protected]>
3384
3385	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3386
3387	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3388	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3389	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3390
33912005-07-04  Andrey Kiselev  <[email protected]>
3392
3393	* libtiff 3.7.3 released.
3394
3395	* configure, configure.ac: Do not use empty -R option when linking
3396	with --enable-rpath.
3397
33982005-07-01  Andrey Kiselev  <[email protected]>
3399
3400	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3401	reading the first IFD when needed. As per bug
3402
3403	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3404
3405	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3406	effects.
3407
34082005-06-23  Andrey Kiselev  <[email protected]>
3409
3410	* tools/tiff2pdf.c: Print two characters per loop in the
3411	t2p_write_pdf_trailer(). As per bug
3412
3413	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3414
3415	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3416	per bug
3417
3418	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3419
3420	* acinclude.m4: Updated to latest OpenGL test macros versions.
3421
3422	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3423	platform. As per bug
3424
3425	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3426
34272005-06-14  Andrey Kiselev  <[email protected]>
3428
3429	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3430	and YClipPathUnits tags.
3431
34322005-06-07  Andrey Kiselev  <[email protected]>
3433
3434	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3435	use pixel sized shift in contigous case.
3436
34372005-06-06  Andrey Kiselev  <[email protected]>
3438
3439	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3440	Make overviews working for contiguos images.
3441
34422005-06-03  Andrey Kiselev  <[email protected]>
3443
3444	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3445	time one.
3446
3447	* libtiff/tif_predict.c: Floating point predictor now works on
3448	big-endian hosts.
3449
34502005-06-01  Andrey Kiselev  <[email protected]>
3451
3452	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3453	ASCII values.
3454
3455	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3456	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3457	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3458	TargetPrinter tags custom.
3459
3460	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3461	TIFF_CODERSETUP flag (to fix memry leaks).
3462
3463	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3464	allocating.
3465
34662005-05-26  Andrey Kiselev  <[email protected]>
3467
3468	* configure.ac, libtiff/Makefile.am: Added workaround for
3469	OpenBSD/MirOS soname problem as per bug
3470
3471	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3472
3473	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3474	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3475	per bug
3476
3477	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3478
34792005-05-25  Andrey Kiselev  <[email protected]>
3480
3481	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3482	the fscanf() function. As per bug
3483
3484	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3485
3486	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3487	uint16 array when fetching the BYTE and SBYTE filds, so we should
3488	consider result as pointer to uint16 array and not as array of chars.
3489	As per bug
3490
3491	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3492
3493	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3494
3495	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3496
3497	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3498	mode in CreateFile() call as per bug
3499
3500	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3501
3502	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3503	libtiffxx libraries as per bug
3504
3505	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3506
3507	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3508	GDAL.
3509
35102005-05-23  Frank Warmerdam  <[email protected]>
3511
3512	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3513	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3514	in directory.
3515
35162005-05-22  Frank Warmerdam  <[email protected]>
3517
3518	* libtiff/tif_dirread.c: Changed the code that computes
3519	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3520	zero. This is a common case with GDAL indicating a "null" tile/strip.
3521
35222005-05-17  Andrey Kiselev  <[email protected]>
3523
3524	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
3525
35262005-05-06  Frank Warmerdam  <[email protected]>
3527
3528	* libtiff/tif_dirread.c: Applied similar change to
3529	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
3530
3531	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3532
3533	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
3534
35352005-05-06  Andrey Kiselev  <[email protected]>
3536	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
3537	added new option '-b' to use interpolation in output PDF files (Bruno
3538	Ledoux).
3539
35402005-05-05  Frank Warmerdam  <[email protected]>
3541
3542	* libtiff/tif_dirread.c: Ensure that broken files with too many
3543	values in PerSampleShorts work ok instead of crashing.
3544
3545	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3546
35472005-04-27  Andrey Kiselev  <[email protected]>
3548
3549	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
3550	input file.
3551
35522005-04-15  Andrey Kiselev  <[email protected]>
3553
3554	* libtiff/tif_predict.c: Added ability to encode floating point
3555	predictor, as per TIFF Technical Note 3.
3556
35572005-04-14  Andrey Kiselev  <[email protected]>
3558
3559	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
3560	floating point predictor, as per TIFF Technical Note 3.
3561
35622005-04-13  Andrey Kiselev  <[email protected]>
3563
3564	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
3565	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
3566	swap 24-bit floating point values.
3567
3568	* libtiff/tiff.h: Added predictor constants.
3569
35702005-04-08  Andrey Kiselev  <[email protected]>
3571
3572	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
3573	values in _TIFFVSetField() function. Inspired by the bug
3574
3575	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3576
3577	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
3578	as per bug
3579
3580	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3581
35822005-03-30  Andrey Kiselev  <[email protected]>
3583
3584	* libtiff/tif_open.c: Do not read header in case the output file
3585	should be truncated (Ron).
3586
3587	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
3588	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
3589
3590	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
3591
35922005-03-22  Andrey Kiselev  <[email protected]>
3593
3594	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
3595	rpath option.
3596
35972005-03-21  Andrey Kiselev  <[email protected]>
3598
3599	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
3600	tags.
3601
36022005-03-18  Andrey Kiselev  <[email protected]>
3603
3604	* libtiff/dirinfo.c: Added DNG tags.
3605
3606	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
3607	handling code.
3608
3609	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
3610	added DNG 1.1.0.0 tags.
3611
3612	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
3613	bug
3614
3615	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
3616
3617	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
3618
36192005-03-17  Andrey Kiselev  <[email protected]>
3620
3621	* nmake.opt: Build with Win32 CRT library by default.
3622
3623	* tools/tiff2ps.c: Fixed typo in page size handling code.
3624
3625	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
3626	by value.
3627
3628	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
3629
36302005-03-15  Andrey Kiselev  <[email protected]>
3631
3632	* libtiff 3.7.2 released.
3633
36342005-03-09  Andrey Kiselev  <[email protected]>
3635
3636	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
3637	floating point data; complain on unsupported bit depths.
3638
36392005-03-05  Andrey Kiselev  <[email protected]>
3640
3641	* tif_stream.cxx: Use ios namespace instead of ios_base to support
3642	GCC 2.95.
3643
3644	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
3645	Lee Howard for HylaFax DCS tag
3646	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
3647
36482005-03-04  Andrey Kiselev  <[email protected]>
3649
3650	* configure, configure.ac: Use -rpath option instead of -R as per bug
3651
3652	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
3653
3654	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
3655	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
3656	software. As per bug
3657
3658	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
3659
3660	* nmake.opt, html/build.html: Add more comments, change the config
3661	file organization a bit as per bug
3662
3663	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
3664
3665	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
3666	as per bug
3667
3668	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
3669
36702005-03-03  Andrey Kiselev  <[email protected]>
3671
3672	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
3673	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3674
3675	* tools/fax2ps.c: Replace insecure mktemp() function with the
3676	tmpfile() as per bug
3677
3678	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
3679
36802005-02-04  Andrey Kiselev  <[email protected]>
3681
3682	* libtiff/tiff.h: Changed the int8 definition to be always signed char
3683	as per bug
3684
3685	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3686
3687	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
3688	block as per bug
3689
3690	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
3691
36922005-02-03  Bob Friesenhahn  <[email protected]>
3693
3694	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
3695	display more correctly.  Images display brighter than they should
3696	on a Sun workstation.
3697
36982005-02-03  Andrey Kiselev  <[email protected]>
3699
3700	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
3701	suspicious values in the tags. As per bugs
3702
3703	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3704
3705	and
3706
3707	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
3708
3709	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
3710
3711	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
3712
37132005-01-31  Bob Friesenhahn  <[email protected]>
3714
3715	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
3716	(TIFFTAG_TILELENGTH): Corrected description.
3717
37182005-01-30  Andrey Kiselev  <[email protected]>
3719
3720	* configure.ac: Fixes for --with-docdir option as per bug
3721
3722	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
3723
3724	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
3725	bug
3726
3727	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
3728
3729	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
3730	Michael Rinne and Edward Lam.
3731
37322005-01-15  Andrey Kiselev  <[email protected]>
3733
3734	* configure.ac: Make the documentation directory location configurable
3735	via the --with-docdir option (as suggested by Jeremy C. Reed).
3736
3737	* libtiff/tif_color.c: Use double as the second argument of pow()
3738	function in TIFFCIELabToRGBInit(). As per bug
3739
3740	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
3741
3742	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
3743	integer as per bug
3744
3745	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
3746
3747	* libtiff/tif_getimage.c: Always fill the error message buffer in
3748	TIFFRGBAImageBegin() as per bug
3749
3750	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
3751
37522005-01-12  Andrey Kiselev  <[email protected]>
3753
3754	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
3755	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
3756	tags as per bug
3757
3758	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
3759
3760	* libtiff/tif_win32.c: Fixed message formatting in functions
3761	Win32WarningHandler() and Win32ErrorHandler() as per bug
3762
3763	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
3764
3765	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
3766	per bug
3767
3768	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
3769
37702005-01-11  Andrey Kiselev  <[email protected]>
3771
3772	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
3773	"C"' section as per bug
3774
3775	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3776
3777	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
3778	compiler to avoid double definition of BSD types as per bug
3779
3780	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3781
3782	* libtiff/Makefile.am: Place the C++ stream API in the separate
3783	library called libtiffxx to avoid unneeded dependencies. Probably
3784	there will be more C++ API in the future. As per bugs
3785
3786	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
3787
3788	and
3789
3790	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3791
37922005-01-05  Andrey Kiselev  <[email protected]>
3793
3794	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
3795	wrong tag counts (Dmitry V. Levin, Martin Pitt).
3796
3797	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
3798	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3799
38002004-12-25  Andrey Kiselev  <[email protected]>
3801
3802	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
3803	RGB-images as per bug
3804
3805	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3806
3807
3808	* tools/tiffset.c: Convert character option to integer value as per
3809	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
3810
38112004-12-20  Andrey Kiselev  <[email protected]>
3812
3813	* libtiff 3.7.1 released.
3814
3815	* html/tiffset.1.html: Add missed manual page as per bug
3816
3817	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3818
3819	* libtiff/tiff.h: Revert back libtiff data type definitions as per
3820	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
3821
38222004-12-19  Andrey Kiselev  <[email protected]>
3823
3824	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
3825	checking for tag count in TIFFReadDirectory() function. As per bug
3826
3827	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3828
3829	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
3830	CheckMallock() function.
3831
3832	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
3833	RGB-images as per bug
3834
3835	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
3836
38372004-12-15  Frank Warmerdam  <[email protected]>
3838
3839	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
3840	SunPro compiler.
3841
38422004-12-11  Bob Friesenhahn  <[email protected]>
3843
3844	* autogen.sh: aclocal and autoheader should be executed after
3845	libtoolize.  Also add '-I .' to aclocal invocation to check
3846	current directory for macros.
3847
38482004-12-10  Andrey Kiselev  <[email protected]>
3849
3850	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
3851	as per bugs
3852
3853	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
3854
3855	and
3856
3857	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
3858
38592004-12-04  Andrey Kiselev  <[email protected]>
3860
3861	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
3862
3863	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3864
3865	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
3866	mode as per bug
3867
3868	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3869
3870	* libtiff/tif_config.in.vc: Removed unneded definitions for
3871	read/open/close/lseek functions to fix the
3872
3873	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
3874
38752004-12-03  Andrey Kiselev  <[email protected]>
3876
3877	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
3878	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
3879	must be removed in the future, as it was never used properly. As per
3880	bug
3881
3882	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
3883
38842004-11-30  Bob Friesenhahn  <[email protected]>
3885
3886	* libtiff/tif_jpeg.c: Added a work-around in order to allow
3887	compilation with the heavily modified version of libjpeg delivered
3888	with Cygwin.
3889
38902004-11-29  Andrey Kiselev  <[email protected]>
3891
3892	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
3893	counts. As per bug
3894
3895	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
3896
3897	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
3898
3899	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
3900
39012004-11-28  Andrey Kiselev  <[email protected]>
3902
3903	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
3904	on Windows.
3905
3906	* nmake.opt: Add missed DLLNAME variable.
3907
39082004-11-26  Frank Warmerdam  <[email protected]>
3909
3910	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
3911
39122004-11-24  Andrey Kiselev  <[email protected]>
3913
3914	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
3915	per bug
3916
3917	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
3918
3919	* man/tiffset.1: Added manual page for tiffset tool written by Jay
3920	Berkenbilt. As per bug
3921
3922	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3923
39242004-11-23  Frank Warmerdam  <[email protected]>
3925
3926	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
3927
39282004-11-21  Frank Warmerdam  <[email protected]>
3929
3930	* html/document.html: Updated Adobe web links as per email from Joris.
3931
39322004-11-21  Andrey Kiselev  <[email protected]>
3933
3934	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
3935	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
3936	use C++ streams should #include <tiffio.hxx>.
3937
39382004-11-13  Andrey Kiselev  <[email protected]>
3939
3940	* libtiff/tiff.h: Added Adobe DNG tags.
3941
3942	* libtiff/tif_win32.c: Typo fixed.
3943
3944	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
3945	be compliant with the latest standard. Appropriate additions in
3946	makefiles now completed.
3947
39482004-11-11  Andrey Kiselev  <[email protected]>
3949
3950	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
3951	different tag types. As per bug
3952
3953	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
3954
39552004-11-10  Andrey Kiselev  <[email protected]>
3956
3957	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
3958	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
3959
39602004-11-09  Andrey Kiselev  <[email protected]>
3961
3962	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
3963
39642004-11-07  Andrey Kiselev  <[email protected]>
3965
3966	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
3967	contributed by Edward Lam (see
3968	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
3969	Though no changes in any makefiles yet.
3970
39712004-11-05  Frank Warmerdam  <[email protected]>
3972
3973	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
3974	is bad. This is the callers responsibility.
3975	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
3976
39772004-11-05  Andrey Kiselev  <[email protected]>
3978
3979	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
3980	function to work with the double byte strings (used to represent
3981	filenames in some locales). As per bug
3982
3983	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
3984
3985	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
3986	Compression tags of type LONG from broken TIFFS as per bug
3987
3988	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3989
3990	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
3991	the writecount should have uint32 type. As per bug
3992
3993	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3994
3995	* libtiff/tif_write.c: Fixed wrong if() statement in
3996	TIFFAppendToStrip() function as per bug
3997
3998	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
3999
40002004-11-04  Andrey Kiselev  <[email protected]>
4001
4002	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
4003	field. The caller should supply a count when setting this field. As
4004	per bug
4005
4006	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
4007
4008	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
4009	uint32 count. Use this type everywhere.
4010
40112004-11-03  Frank Warmerdam  <[email protected]>
4012
4013	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
4014
40152004-11-02  Frank Warmerdam  <[email protected]>
4016
4017	* tools/tiff2rgba.c: removed extra newlines in usage message.
4018
40192004-10-30  Andrey Kiselev  <[email protected]>
4020
4021	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
4022
4023	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
4024	tags (Tristan Hill).
4025
40262004-10-30  Frank Warmerdam  <[email protected]>
4027
4028	* libtiff/tiffiop.h: added fallback definition of assert() if we
4029	don't have assert.h.
4030
40312004-10-29  Andrey Kiselev  <[email protected]>
4032
4033	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
4034	choosing when the incorrect Group4Options tag set. As per bug
4035
4036	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
4037
4038	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
4039	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
4040	TIFFWriteNormalTag().
4041
40422004-10-28  Andrey Kiselev  <[email protected]>
4043
4044	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
4045	tags (Peter Fales).
4046
4047	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
4048
40492004-10-28  Frank Warmerdam  <[email protected]>
4050
4051	* tools/tiff2pdf.c: added casts to avoid warnings.
4052
4053	* libtiff/libtiff.def: Added several more entry points required
4054	to link fax2tiff.c against the DLL on windows.
4055
40562004-10-27  Andrey Kiselev  <[email protected]>
4057
4058	* configure, configure.ac: Added --enable-rpath option to embed linker
4059	paths into library binary.
4060
40612004-10-26  Andrey Kiselev  <[email protected]>
4062
4063	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
4064
4065	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
4066	(Vladimir Nadvornik, Dmitry V. Levin).
4067
40682004-10-16  Andrey Kiselev  <[email protected]>
4069
4070	* libtiff 3.7.0 released.
4071
40722004-10-15  Bob Friesenhahn  <[email protected]>
4073
4074	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
4075	in this file so its inclusion is removed.  Including stdio.h
4076	sometimes incurs an INT32 typedef conflict between MinGW's
4077	basetsd.h and libjpeg's jmorecfg.h.
4078
40792004-10-15  Andrey Kiselev  <[email protected]>
4080
4081	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
4082
40832004-10-13  Bob Friesenhahn  <[email protected]>
4084
4085	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
4086	conflict noticed under MinGW.
4087	* ltmain.sh: Fix for MinGW compilation.
4088
40892004-10-13  Frank Warmerdam  <[email protected]>
4090
4091	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
4092	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
4093
40942004-10-12  Andrey Kiselev  <[email protected]>
4095
4096	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
4097	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
4098	properly (Dmitry V. Levin, Marcus Meissner).
4099
41002004-10-11  Andrey Kiselev  <[email protected]>
4101
4102	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
4103	to TIFF_IFD.
4104
41052004-10-10  Andrey Kiselev  <[email protected]>
4106
4107	* tools/bmp2tif.c: Check the space allocation results.
4108
41092004-10-09  Andrey Kiselev  <[email protected]>
4110
4111	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
4112	of the TIFFDirectory structure with the 0 instead of -1 to avoid
4113	confusing integer overflows in TIFFTileRowSize() for striped images.
4114
4115	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
4116	by Ross A. Finlayson.
4117
4118	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
4119
4120	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
4121
41222004-10-08  Frank Warmerdam  <[email protected]>
4123
4124	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
4125	of tif_fieldinfo.
4126
4127	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
4128
41292004-10-04  Bob Friesenhahn  <[email protected]>
4130
4131	* contrib/iptcutil/README: Added the missing README which goes
4132	along with iptcutil.
4133
41342004-10-03  Andrey Kiselev  <[email protected]>
4135
4136	* libtiff/tif_compress.c: Improved error reporting in
4137	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
4138
41392004-10-02  Andrey Kiselev  <[email protected]>
4140
4141	* libtiff 3.7.0beta2 released.
4142
4143	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
4144	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
4145	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
4146	allocations and	integer overflows (Dmitry V. Levin).
4147
4148	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
4149
41502004-10-01  Frank Warmerdam  <[email protected]>
4151
4152	* libtiff/tif_open.c: added a more informative message if a BigTIFF
4153	file is opened.
4154
41552004-09-30  Frank Warmerdam  <[email protected]>
4156
4157	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
4158	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
4159	in the Adobe XMP Specification.
4160
41612004-09-29  Andrey Kiselev  <[email protected]>
4162
4163	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
4164	memset().
4165
4166	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
4167	from Dmitry V. Levin to fix possible integer overflow problems.
4168
41692004-09-28  Andrey Kiselev  <[email protected]>
4170
4171	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
4172	(Dmitry V. Levin).
4173
41742004-09-26  Andrey Kiselev  <[email protected]>
4175
4176	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
4177	Optimize checking for the strip bounds.
4178
4179	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
4180	TIFFRasterScanlineSize() functions report zero in the case of integer
4181	overflow now. Properly handle this case in TIFFReadDirectory()
4182	(patches from Dmitry V. Levin).
4183
41842004-09-25  Andrey Kiselev  <[email protected]>
4185
4186	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
4187	macro where appropriate.
4188
4189	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
4190	noted by Gennady Khokhorin.
4191
4192	* libtiff/tif_dirread.c: Always check the return values, returned
4193	by the _TIFFmalloc() (Dmitry V. Levin).
4194
4195	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
4196	functions (Dmitry V. Levin).
4197
4198	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
4199	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
4200	TIFFGrowStrips() (found by Dmitry V. Levin).
4201
42022004-09-24  Andrey Kiselev  <[email protected]>
4203
4204	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
4205	to get the list of configured codecs.
4206
4207	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
4208	Dmitry V. Levin.
4209
42102004-09-23  Andrey Kiselev  <[email protected]>
4211
4212	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
4213	possible integer overflow in CheckMalloc() function.
4214
42152004-09-22  Andrey Kiselev  <[email protected]>
4216
4217	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
4218	of plain TIFFhowmany() where appropriate.
4219
42202004-09-21  Andrey Kiselev  <[email protected]>
4221
4222	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
4223
42242004-09-19  Andrey Kiselev  <[email protected]>
4225
4226	* libtiff 3.7.0beta released.
4227
4228	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
4229	overruns fixed, as noted by Chris Evans.
4230
42312004-09-14  Bob Friesenhahn  <[email protected]>
4232
4233	* commit: Added a script to make it more convenient to commit
4234	updates.  The CVS commit message is extracted from this ChangeLog
4235	file.
4236
42372004-09-14  Andrey Kiselev  <[email protected]>
4238
4239	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
4240	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
4241	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
4242	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
4243	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
4244	tif_config.h.in, tiffiop.h}:
4245	Get rid of BSD data types (u_char, u_short, u_int, u_long).
4246
42472004-09-13  Bob Friesenhahn  <[email protected]>
4248
4249	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
4250	specification. Reference libtiff bug tracking system to submit
4251	private tag additions.
4252
42532004-09-12  Bob Friesenhahn  <[email protected]>
4254
4255	* tools/tiffgt.c: Include "tif_config.h".
4256
4257	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
4258	tiffgt.  This results in the 'compile' script being added to the
4259	project.
4260
4261	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
4262	required to find OpenGL headers necessary to build tiffgt.  Also
4263	ensure that the libtiff that we built is used rather than some other
4264	libtiff installed on the system.
4265
42662004-09-12  Andrey Kiselev  <[email protected]>
4267
4268	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
4269	libraries.
4270
42712004-09-11  Bob Friesenhahn  <[email protected]>
4272
4273	* configure.ac: Pass library configuration defines via
4274	tif_config.h rather than extending CPPFLAGS. Configure a
4275	libtiff/tiffconf.h in order to satisfy application requirements
4276	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
4277	this causes failure to build on systems which properly respect
4278	this request.
4279
4280	* libtiff/tiffconf.h.in: New file to act as the template for the
4281	configured tiffconf.h
4282
4283	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
4284
42852004-09-10  Frank Warmerdam  <[email protected]>
4286
4287	* html/internals.html: Split off a discussion of adding new tags
4288	into addingtags.html.
4289
42902004-09-10  Andrey Kiselev  <[email protected]>
4291
4292	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
4293
4294	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
4295
4296	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4297
4298	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
4299
4300	* libtiff/tif_dirread.c: Don't reject to read tags of the
4301	SamplesPerPixel size when the tag count is greater than number of
4302	samples as per bug
4303
4304	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
4305
4306	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
4307	defining int8/uint8/... etc. types. As per bug
4308
4309	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
4310
43112004-09-09  Frank Warmerdam  <[email protected]>
4312
4313	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
4314	to avoid compile warnings about getopt() and a few other things.
4315
43162004-09-02  Andrey Kiselev  <[email protected]>
4317
4318	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
4319	assigning magic in TIFFFetchFloat().
4320
43212004-09-01  Andrey Kiselev  <[email protected]>
4322
4323	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
4324	to avoid requirement for tiffiop.h inclusion in some applications. See
4325	here
4326
4327	http://www.asmail.be/msg0054799560.html
4328
4329	for details.
4330
4331	* tools/fax2tiff.c: Use the new functions in the code.
4332
43332004-08-25  Andrey Kiselev  <[email protected]>
4334
4335	* tools/tiff2pdf.c: Initialize arrays properly.
4336
4337	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
4338	properly initialize array in PSDataBW().
4339
43402004-08-24  Andrey Kiselev  <[email protected]>
4341
4342	* tools/tiff2pdf.c: More fixes for bug
4343
4344	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4345
4346	from Ross Finlayson.
4347
43482004-08-23  Andrey Kiselev  <[email protected]>
4349
4350	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4351
4352	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4353	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4354
4355	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4356
4357	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4358
43592004-08-20  Andrey Kiselev  <[email protected]>
4360
4361	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4362	that the input file has compression, photometric interpretation,
4363	etcetra, tags or if not than a more descriptive error is returned.
4364
4365	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4366	code, responsible for tag data type checking.
4367
43682004-08-19  Andrey Kiselev  <[email protected]>
4369
4370	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4371	variable as per bug
4372
4373	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4374
43752004-08-16  Andrey Kiselev  <[email protected]>
4376
4377	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4378	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4379
43802004-08-01  Andrey Kiselev  <[email protected]>
4381
4382	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4383	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4384
43852004-07-24  Andrey Kiselev  <[email protected]>
4386
4387	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4388	separate package. All libtiff tools are updated to not advertise an
4389	abcence of LZW support.
4390
43912004-07-12  Andrey Kiselev  <[email protected]>
4392
4393	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4394
43952004-07-11  Andrey Kiselev  <[email protected]>
4396
4397	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4398	messages, as suggested by Bernd Herd.
4399
44002004-07-03  Andrey Kiselev  <[email protected]>
4401
4402	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4403	when setting custom tags by value. Reported by Eric Fieleke.
4404
44052004-06-14  Andrey Kiselev  <[email protected]>
4406
4407	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4408
44092004-06-08  Andrey Kiselev  <[email protected]>
4410
4411	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4412	into TIFFs.
4413
44142004-06-07  Andrey Kiselev  <[email protected]>
4415
4416	* libtiff 3.7.0alpha released.
4417
44182004-06-06  Andrey Kiselev  <[email protected]>
4419
4420	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4421	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4422	ones :-).
4423
4424	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4425	problems in 64-bit environment).
4426
44272004-06-05  Andrey Kiselev  <[email protected]>
4428
4429	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4430	Tags can be supplied by the mnemonic name or number.
4431
4432	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4433	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4434
44352004-05-27  Andrey Kiselev  <[email protected]>
4436
4437	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4438	markers as per bug
4439
4440	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4441
44422004-05-24  Andrey Kiselev  <[email protected]>
4443
4444	* tools/tiffsplit.c: Don't forget to copy Photometric
4445	Interpretation tag.
4446
44472004-05-20  Andrey Kiselev  <[email protected]>
4448
4449	* libtiff/{tif_open.c, tiffio.h}: New function added:
4450	TIFFIsBigEndian(). Function returns nonzero if given was file written
4451	in big-endian order.
4452
4453	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4454	files. Now output files will be written using the same byte order
4455	flag as	in the input image. See
4456
4457	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4458
4459	for details.
4460
44612004-05-19  Frank Warmerdam  <[email protected]>
4462
4463	* libtiff/tif_print.c: added (untested) support for printing
4464	SSHORT, SLONG and SRATIONAL fields.
4465
4466	* tools/tiffcp.c: close output file on normal exit.
4467
44682004-05-17  Andrey Kiselev  <[email protected]>
4469
4470	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4471	if compression type mismatches. See
4472
4473	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4474
44752004-04-30  Andrey Kiselev  <[email protected]>
4476
4477	* libtiff/tif_strip.c: Never return 0 from the
4478	TIFFNumberOfStrips().
4479
44802004-04-29  Andrey Kiselev  <[email protected]>
4481
4482	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4483	store single SampleFormat value for multisampled images. See
4484
4485	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4486
44872004-04-25  Andrey Kiselev  <[email protected]>
4488
4489	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4490	int16 and int32 types to avoid complains on some compilers. Details at
4491
4492	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4493
44942004-04-20  Andrey Kiselev  <[email protected]>
4495
4496	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4497
4498	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4499
45002004-04-14  Andrey Kiselev  <[email protected]>
4501
4502	* libtiff/tif_write.c: Allow in-place updating of the compressed
4503	images (don't work properly with all codecs). For details see GDAL bug
4504
4505	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4506
45072004-04-06  Andrey Kiselev  <[email protected]>
4508
4509	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4510	in the Intergarph JPEG compressed TIFF images as per bug:
4511
4512	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4513
45142004-04-04  Frank Warmerdam  <[email protected]>
4515
4516	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4517	via bad2.
4518
45192004-03-26  Andrey Kiselev  <[email protected]>
4520
4521	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4522	JPEG compression of grayscale images.
4523
4524	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
4525	present in the input image.
4526
45272004-03-19  Andrey Kiselev  <[email protected]>
4528
4529	* {many}: The first attempt to switch to autotools.
4530
45312004-03-03  Andrey Kiselev  <[email protected]>
4532
4533	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
4534	TIFFClientOpen() when the appropriate client functions was not
4535	supplied by user.
4536
45372004-03-02  Frank Warmerdam  <[email protected]>
4538
4539	* tools/ycbcr.c: fixed main() declaration as per:
4540	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
4541
45422004-02-26  Andrey Kiselev  <[email protected]>
4543
4544	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
4545	images. Reported by Artem Mirolubov.
4546
4547	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
4548	tag type in TIFFFetchNormalTag() as per bug
4549
4550	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
4551
45522004-02-17  Frank Warmerdam  <[email protected]>
4553
4554	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
4555	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
4556
45572004-02-05  Andrey Kiselev  <[email protected]>
4558
4559	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
4560	bug
4561
4562	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
4563
4564	But we need more work on fax codec to support update mode.
4565
45662004-01-30  Frank Warmerdam  <[email protected]>
4567
4568	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
4569	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
4570	Scott Reynolds.
4571
45722004-01-29  Andrey Kiselev  <[email protected]>
4573
4574	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
4575	and TIFFTAG_INDEXED as per bug
4576
4577	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
4578
4579	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
4580	NULL before proceeding further as per bug
4581
4582	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
4583
4584	Check results, returned by the TIFFFdOpen() before returning and close
4585	file if TIFFFdOpen() failed as per bug
4586
4587	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4588
4589	* libtiff/tif_open.c: More fixes for
4590
4591	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4592
45932004-01-28  Andrey Kiselev  <[email protected]>
4594
4595	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
4596	TIFFCleanup() from the TIFFClose() in order to fix the bug
4597
4598	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4599
4600	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
4601	InkNames tag as per bug
4602
4603	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
4604
4605	Memory leak fixed.
4606
46072004-01-21  Frank Warmerdam  <[email protected]>
4608
4609	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
4610	are field_passcount=TRUE properly.  Arguably anonymous custom tags
4611	should be declared as passcount=FALSE, but I don't want to change
4612	that without a careful review.
4613
46142004-01-20  Andrey Kiselev  <[email protected]>
4615
4616	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
4617	stripped image in TIFFWriteBufferSetup(). As per bug
4618
4619	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
4620
46212004-01-11  Andrey Kiselev  <[email protected]>
4622
4623	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
4624	patch from Gerben Koopmans.
4625
4626	* libtiff/tif_dirread.c: Check field_passcount value before setting
4627	the value of undefined type, patch from Gerben Koopmans.
4628
46292004-01-02  Andrey Kiselev  <[email protected]>
4630
4631	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
4632	non-RGB images.
4633
46342003-12-31  Andrey Kiselev  <[email protected]>
4635
4636	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
4637	pointer passed. Patch supplied by Larry Grill.
4638
4639	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
4640	suggested by Jeremy C. Reed.
4641
46422003-12-26  Andrey Kiselev  <[email protected]>
4643
4644	* libtiff 3.6.1 released.
4645
46462003-12-24  Andrey Kiselev  <[email protected]>
4647
4648	* config.guess, config.sub: Updated from the recent upstream.
4649
46502003-12-22  Andrey Kiselev  <[email protected]>
4651
4652	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
4653	More cleanups in color conversion interface, added appropriate manual
4654	page.
4655
46562003-12-19  Andrey Kiselev  <[email protected]>
4657
4658	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
4659	per bug
4660
4661	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4662
4663	* tools/tiff2ps.c: Added support for alpha channel. Fixes
4664
4665	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
4666
4667	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
4668	Interface for Lab->RGB color conversion is finally cleaned up.
4669	Added support for ReferenceBlackWhite tag handling when converted from
4670	YCbCr color space. The latter closes
4671
4672	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
4673
46742003-12-07  Andrey Kiselev  <[email protected]>
4675
4676	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
4677
4678	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
4679	library.
4680
46812003-12-06  Andrey Kiselev  <[email protected]>
4682
4683	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
4684	file and properly use it for CIE Lab->RGB transform.
4685
46862003-12-04  Andrey Kiselev  <[email protected]>
4687
4688	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
4689	conversion routines now in the tif_color.c module. New function
4690	TIFFYCbCrtoRGB() available in TIFF API.
4691
4692	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
4693
46942003-12-03  Andrey Kiselev  <[email protected]>
4695
4696	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
4697	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
4698	module.
4699
4700	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
4701	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
4702	Finally resolved problems with orientation handling. TIFFRGBAImage
4703	interface now properly supports all possible orientations, i.e. images
4704	will be flipped both in horizontal and vertical directions if
4705	required. 'Known bugs' section now removed from the appropriate manual
4706	pages. Closed bug entry:
4707
4708	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4709
47102003-12-02  Andrey Kiselev  <[email protected]>
4711
4712	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
4713	function calls as per bug
4714
4715	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
4716
47172003-11-28 Ross Finlayson  <[email protected]>
4718
4719	* tools/tiff2pdf.c:  Some bugs fixed.
4720
47212003-11-27  Andrey Kiselev  <[email protected]>
4722
4723	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
4724	reported by Antonio Scuri.
4725
4726	* man/tiff2pdf.1: Few improvements in page layout.
4727
4728	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
4729	 Added support fpr tiff2pdf manual page.
4730
47312003-11-26 Ross Finlayson  <[email protected]>
4732
4733	* /man/tiff2pdf.1:  File added to repository.
4734
47352003-11-26  Andrey Kiselev  <[email protected]>
4736
4737	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
4738	 Added support fpr tiff2pdf utility.
4739
47402003-11-25  Ross Finlayson  <[email protected]>
4741
4742	* /tools/tiff2pdf.c:  File added to repository.
4743
47442003-11-22  Andrey Kiselev  <[email protected]>
4745
4746	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
4747
47482003-11-21  Andrey Kiselev  <[email protected]>
4749
4750	* /tools/raw2tiff.c: #include <getopt.h> removed.
4751
4752	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
4753	sgigt utility removed and replaced with the completely rewritten
4754	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
4755	there is a lot of things to improve.
4756
4757	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
4758	extract the fields from the OJPEG files. Patch supplied by Ross
4759	Finlayson.
4760
4761	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
4762	Added new function TIFFIsCODECConfigured(), suggested by Ross
4763	Finlayson.
4764
47652003-11-18  Andrey Kiselev  <[email protected]>
4766
4767	* libtiff/tif_dirinfo.c: Implemented binary search in
4768	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
4769
4770	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
4771	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
4772
47732003-11-17  Frank Warmerdam  <[email protected]>
4774
4775	* tif_dirread.c: do not mark all anonymously defined tags to be
4776	IGNOREd.
4777
47782003-11-17  Andrey Kiselev  <[email protected]>
4779
4780	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
4781	TIFFDataWidth() function insted of tiffDataWidth array.
4782
47832003-11-16  Andrey Kiselev  <[email protected]>
4784
4785	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
4786	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
4787
47882003-11-15  Frank Warmerdam  <[email protected]>
4789
4790	* Makefile.in: fixed missing backslash for tif_color.c in list.
4791
47922003-11-13  Andrey Kiselev  <[email protected]>
4793
4794	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
4795	New color space conversion code: CIE L*a*b* 1976 images now supported
4796	by the TIFFRGBAImage interface. All introduced routines go to new
4797	module tif_color.c. Eventually all color conversion functions should
4798	be moved there.
4799
48002003-11-12  Andrey Kiselev  <[email protected]>
4801
4802	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
4803	with the reverse byte order (it is reported by the magic header
4804	field). Problem reported by Andreas Wiesmann.
4805
4806	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
4807	calculation function. Guessing mechanics now documented in manual page.
4808
48092003-11-11  Andrey Kiselev  <[email protected]>
4810
4811	* tools/raw2tiff.c: Implemented image size guessing using
4812	correlation coefficient calculation between two neighbour lines.
4813
48142003-11-09  Frank Warmerdam  <[email protected]>
4815
4816	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
4817	planarconfig_contig case in TIFFComputeTile().
4818
4819	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
4820
48212003-11-09  Andrey Kiselev  <[email protected]>
4822
4823	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
4824
48252003-11-07  Andrey Kiselev  <[email protected]>
4826
4827	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
4828	Added TIFFRawStripSize() function as suggested by Chris Hanson.
4829
48302003-11-03  Andrey Kiselev  <[email protected]>
4831
4832	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
4833	per bug
4834
4835	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
4836
48372003-10-29  Andrey Kiselev  <[email protected]>
4838
4839	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
4840
4841	* html/build.html: Added note about GNU make requirement.
4842
48432003-10-25  Andrey Kiselev  <[email protected]>
4844
4845	* Makefile.in: Fixes in using MAKEFLAGS as per bug
4846
4847	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
4848
4849	* port/install.sh.in: Option -p added to the mkdir command to create
4850	all directory tree structure before installing.
4851
48522003-10-18  Andrey Kiselev  <[email protected]>
4853
4854	* /tools/tiff2ps.c: #include <strings.h> replaced with the
4855	#include <string.h>.
4856
48572003-10-16  Andrey Kiselev  <[email protected]>
4858
4859	* Makefile.in: Add an absolute path to the test_pics.sh call.
4860
48612003-10-12  Andrey Kiselev  <[email protected]>
4862
4863	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
4864	typedefs.
4865
48662003-10-09  Andrey Kiselev  <[email protected]>
4867
4868	* configure, libtiff/{Makefile.in, mkversion.c}:
4869	Relative buildings fixed.
4870
4871	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
4872	rule.
4873
48742003-10-07  Andrey Kiselev  <[email protected]>
4875
4876	* Makefile.in: Added missed v3.6.0.html.
4877
4878	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
4879	ORIENTATION_BOTLEFT.
4880
48812003-10-04  Andrey Kiselev  <[email protected]>
4882
4883	* 3.6.0 final release.
4884
48852003-10-03  Andrey Kiselev  <[email protected]>
4886
4887	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
4888	function TIFFReadRGBAImageOriented() implemented to retrieve raster
4889	array with user-specified origin position as suggested by Jason Frank.
4890	See
4891
4892	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4893
4894	for details.
4895
4896	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
4897	instead of TIFFReadRGBAImage().
4898
4899	* tools/tiff2ps.c: Fixed possible endless loop as per bug
4900
4901	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
4902
49032003-09-30  Andrey Kiselev  <[email protected]>
4904
4905	* libtiff/tif_dirread.c: Check field counter against number of fields
4906	in order to fix
4907
4908	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
4909
4910	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
4911
4912	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
4913
49142003-09-25  Andrey Kiselev  <[email protected]>
4915
4916	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
4917	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
4918
4919	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
4920
49212003-09-23  Andrey Kiselev  <[email protected]>
4922
4923	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
4924
4925	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4926
49272003-08-21  Andrey Kiselev  <[email protected]>
4928
4929	* tools/tiffmedian.c: int declaration replaced with the uint32 to
4930	support large images as per bug
4931
4932	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
4933
49342003-08-12  Andrey Kiselev  <[email protected]>
4935
4936 	* libtiff/Makefile.in: Fixed problem with building in different
4937	directory.
4938
4939	* tools/tiff2ps.c: Added missing #include <strings.h>.
4940
4941	* libtiff/tif_dirwrite.c: More fixes for custom tags code
4942	from Ashley Dreier.
4943
49442003-08-07  Andrey Kiselev  <[email protected]>
4945
4946	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
4947	Patch submitted by Balatoni Denes (with corrections from Tom
4948	Kacvinsky).
4949
4950	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
4951	being used. Reported by Tom Kacvinsky.
4952
4953	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
4954	reported by Ashley Dreier.
4955
4956	* libtiff/tif_print.c: Fixed problem with float tags reading, support
4957	for printing RATIONAL and BYTE tags added.
4958
49592003-08-05  Andrey Kiselev  <[email protected]>
4960
4961	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
4962	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
4963	problems with predictor initialization. Remove O_RDONLY check during
4964	state block allocation to be able open LZW compressed files in update
4965	mode.
4966
4967	Problem exist for libtiff version of the tif_lzw.c module. One from
4968	lzw-compression-kit hasn't such troubles.
4969
49702003-08-04  Frank Warmerdam  <[email protected]>
4971
4972	* libtiff/tif_write.c: modified tif_write.c so that the various
4973	encoded write functions use tif_postdecode() to apply byte order
4974	swapping (swab) to the application passed data buffer if the same
4975	would be done when reading.  This allows us to write pixel data with
4976	more than 8 bits per sample to existing files of a non-native byte
4977	order.  One side effect of this change is the applications buffer
4978	itself is altered in this case by the act of writing.
4979
4980	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
4981
49822003-07-25  Frank Warmerdam  <[email protected]>
4983
4984	* libtiff/tif_open.c: avoid signed/unsigned casting warning
4985	initializing typemask as per patch from J.A. Strother.
4986
4987	* tools/tiffcp.c: fixed signed/unsigned casting warning.
4988
4989	* libtiff/tif_print.c: dos2unix conversion.
4990
4991	* tools/tiffsplit.c: increased the maximum number of pages that
4992	can be split.  Patch provided by Andrew J. Montalenti.
4993
49942003-07-11  Andrey Kiselev  <[email protected]>
4995
4996	* tools/raw2tiff.c: Added option `-p' to explicitly select color
4997	space of input image data. Closes
4998
4999	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
5000
50012003-07-08  Frank Warmerdam  <[email protected]>
5002
5003	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
5004	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
5005	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
5006	avoid casting warning at /W4.
5007
50082003-07-03  Andrey Kiselev  <[email protected]>
5009
5010	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
5011
50122003-06-30  Andrey Kiselev  <[email protected]>
5013
5014	* libtiff/tif_pixarlog.c: Unused variables removed.
5015
5016	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
5017	EstimateStripByteCounts() as per bug
5018
5019	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
5020
5021	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
5022	64-bit architectures as per bug
5023
5024	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
5025
5026	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
5027	unknown data type.
5028
50292003-06-19  Frank Warmerdam  <[email protected]>
5030
5031	* libtiff/tif_print.c: fixed some serious bugs when printing
5032	custom tags ... almost certain to crash.
5033
5034	* libtiff/tif_dirread.c: Don't ignore custom fields that are
5035	autodefined.  Not sure how this got to be like this.
5036
50372003-06-18  Andrey Kiselev  <[email protected]>
5038
5039	* 3.6.0 Beta2 released.
5040
5041	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
5042	comparing as per bug
5043
5044	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
5045
5046	`-z' option now can be used to set the number of reported different
5047	bytes.
5048
50492003-06-09  Andrey Kiselev  <[email protected]>
5050
5051	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
5052	to -r option to get the entire image as one strip. See
5053
5054	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5055
5056	for details.
5057
50582003-06-04  Andrey Kiselev  <[email protected]>
5059
5060	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
5061	values as per bug
5062
5063	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
5064
50652003-05-27  Frank Warmerdam  <[email protected]>
5066
5067	* libtiff/tif_jpeg.c: modified segment_height calculation to always
5068	be a full height tile for tiled images.  Also changed error to just
5069	be a warning.
5070
50712003-05-25  Andrey Kiselev  <[email protected]>
5072
5073	* tools/fax2tiff.c: Page numbering fixed, as per bug
5074
5075	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
5076
50772003-05-20  Andrey Kiselev  <[email protected]>
5078
5079	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5080	configure, Makefile.in:	Switched back to the old behaviour. Likely
5081	better solution should be found for OJPEG support.
5082
50832003-05-11  Andrey Kiselev  <[email protected]>
5084
5085	* libtiff/mkversion.c: Fixed problem with wrong string size when
5086	reading RELEASE-DATE file.
5087
50882003-05-07  Andrey Kiselev  <[email protected]>
5089
5090	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
5091	index was out of range.
5092
50932003-05-06  Andrey Kiselev  <[email protected]>
5094
5095	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
5096	configure, Makefile.in:	Improved libtiff compilation with OJPEG
5097	support. Now no need for patching IJG JPEG library, hack requred by
5098	libtiff will be compiled and used in-place. Implemented with
5099	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
5100
5101	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
5102	TIFFVGetFieldDefaulted() function.
5103
51042003-05-05  Andrey Kiselev  <[email protected]>
5105
5106	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
5107	comments.
5108
5109	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
5110	was not copied from source image.
5111
5112	* libtiff/getimage.c: Workaround for some images without correct
5113	info about alpha channel as per bug
5114
5115	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
5116
51172003-04-29  Andrey Kiselev  <[email protected]>
5118
5119	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
5120	It basically allows one to use the /flateDecode filter for ZIP
5121	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
5122
5123	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
5124
5125	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
5126	as per bug
5127
5128	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
5129
51302003-04-17  Andrey Kiselev  <[email protected]>
5131
5132	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
5133	due to problems with multidirectory images. Quality of error messages
5134	improved.
5135
51362003-04-16  Andrey Kiselev  <[email protected]>
5137
5138	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
5139	encoded images. See bug entries
5140
5141	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
5142
5143	and
5144
5145	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5146
5147	* libtiff/tif_dirread.c: Additional check for StripByteCounts
5148	correctness. Fixes
5149
5150	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
5151
51522003-03-12  Andrey Kiselev  <[email protected]>
5153
5154	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
5155	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
5156	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
5157	tiffmedian.c}: Added library version reporting facility to all tools.
5158
51592003-03-06  Frank Warmerdam  <[email protected]>
5160
5161	* port/install.sh.in: Fixed problems with install producing paths
5162	like ///usr/local/lib on cygwin.
5163
51642003-02-27  Andrey Kiselev  <[email protected]>
5165
5166	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
5167	raw input page. Patch supplied by Julien Gaulmin. See
5168
5169	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
5170
5171	for details.
5172
51732003-02-26  Frank Warmerdam  <[email protected]>
5174
5175	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
5176	responsible for byte swapping complex image data.
5177
5178	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
5179	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
5180
51812003-02-07  Andrey Kiselev  <[email protected]>
5182
5183	* tools/ppm2tiff.c: Fixed problem with too many arguments.
5184
51852003-02-04  Andrey Kiselev  <[email protected]>
5186
5187	* tools/raw2tiff.c: Memory leak fixed.
5188
51892003-02-03  Andrey Kiselev  <[email protected]>
5190
5191	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
5192	(thanks, Julien!). More switches for fax2tiff tool for better control
5193	of input and output. Details at
5194
5195	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
5196
51972003-02-03  Frank Warmerdam  <[email protected]>
5198
5199	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
5200	library so that we can check if there is already any tile/strip data
5201	before deciding between creating a compressor or a decompressor.
5202
52032003-01-31  Frank Warmerdam  <[email protected]>
5204
5205	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
5206	a pre-existing compressed image.  That is, image writing to
5207	pre-existing compressed images is not allowed.
5208
5209	* libtiff/tif_open.c: Removed error if opening a compressed file
5210	in update mode.
5211
5212	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
5213
52142003-01-31  Andrey Kiselev  <[email protected]>
5215
5216	* config.guess, config.sub: Updated to recent upstream versions.
5217
52182003-01-15  Frank Warmerdam  <[email protected]>
5219
5220	* cut 3.6.0 Beta release.
5221
52222002-12-20  Andrey Kiselev  <[email protected]>
5223
5224	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
5225	in wrong way as per bug
5226
5227	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
5228
52292002-12-17  Frank Warmerdam  <[email protected]>
5230
5231	* libtiff/tif_dirread.c: Allow wrong sized arrays in
5232	TIFFFetchStripThing().
5233
5234	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
5235
52362002-12-02  Frank Warmerdam  <[email protected]>
5237
5238	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
5239	Was using realloc even first time.  Fix by Igor Venevtsev.
5240
52412002-11-30  Frank Warmerdam  <[email protected]>
5242
5243	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
5244	field value.
5245
5246	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
5247	tags in TIFFVGetField() ... added missing break.
5248
52492002-10-14  Frank Warmerdam  <[email protected]>
5250
5251	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
5252	the scanline buffer long enough when writing rgb triplets.
5253	The scanline needs to be 3 X the number of dots or else it will
5254	contain	an incomplete triplet and programs that try to separate
5255	the eps by redefining the colorimage operator will get messed up.
5256	Patch supplied by William Bader.
5257
5258	* Makefile.in: added tif_extension.c to file list as per
5259	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
5260
52612002-10-11  Andrey Kiselev  <[email protected]>
5262
5263	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
5264	large files (>2GiB) supporting. New option in the config.site:
5265	LARGEFILE="yes". Should be enough for I/O of the large files.
5266
52672002-10-10  Frank Warmerdam  <[email protected]>
5268
5269	* libtiff/html/v3.6.0.html: new release notes.
5270
5271	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
5272	link for Andrey.  Pointer to v3.6.0.html.
5273
5274	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
5275
52762002-10-07  Andrey Kiselev  <[email protected]>
5277	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
5278	(thanks, Sebastian!). New switches:
5279	-b # for a bottom margin of # inches
5280	-c   center image
5281	-l # for a left margin of # inches
5282	-r   rotate the image by 180 degrees
5283	New features merged with code for shrinking/overlapping.
5284	Previously added -c and -n switches (for overriding PS units) renamed
5285	in -x and -y respectively.
5286
5287	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
5288
5289	* html/man/*.html: Updated from actual manual pages.
5290
52912002-10-06  Frank Warmerdam  <[email protected]>
5292
5293	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
5294	size on windows.  Use #define boolean hack.
5295
5296	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
5297
5298	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
5299	USING_VISUALAGE is defined.
5300
5301	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5302
53032002-10-03  Frank Warmerdam  <[email protected]>
5304
5305	* libtiff/tiff.h: added COMPRESSION_JP2000.
5306
53072002-10-02  Andrey Kiselev  <[email protected]>
5308
5309	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
5310	by the TIFFFetchByteArray() function. Should finally resolve
5311
5312	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5313
5314	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
5315
5316	* html/Makefile.in: New targets added: html and groffhtml for
5317	producing HTML representations of the manual pages automatically.
5318	html target uses man2html tool, groffhtml uses groff tool.
5319
53202002-09-29  Frank Warmerdam  <[email protected]>
5321
5322	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
5323	from John H. DuBois III.
5324
53252002-09-15  Andrey Kiselev  <[email protected]>
5326
5327	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
5328	manual page for raw2tiff(1) tool.
5329
53302002-09-12  Andrey Kiselev  <[email protected]>
5331
5332	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
5333	the tiffio.h header file.
5334
5335	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
5336	manual page for TIFFDataWidth() function
5337
53382002-09-08  Frank Warmerdam  <[email protected]>
5339
5340	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
5341	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
5342
5343	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
5344	since we are unable to properly include the amount to skip.
5345
5346	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
5347
53482002-09-02  Andrey Kiselev  <[email protected]>
5349
5350	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5351	in TIFFFetchByteArray(). Problem described at
5352	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5353
53542002-08-22  Andrey Kiselev  <[email protected]>
5355
5356	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5357	in _TIFFSetupFieldInfo() function.
5358	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5359
5360	* /libtiff/tif_lzw.c: Additional consistency checking added in
5361	LZWDecode() and LZWDecodeCompat().
5362	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5363	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5364
5365	* /libtiff/tif_lzw.c:
5366	Added check for valid code lengths in LZWDecode() and
5367	LZWDecodeCompat(). Fixes
5368	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5369
53702002-08-16  Andrey Kiselev  <[email protected]>
5371
5372	* /libtiff/{Makefile.vc, libtiff.def}:
5373	Missed declarations added.
5374
53752002-08-15  Frank Warmerdam  <[email protected]>
5376
5377	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5378	return code from the underlying pick function.
5379
5380	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5381
5382	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5383	with FIELD_CUSTOM as mentioned in bug 169.
5384
5385	* tif_close.c: added logic to free dynamically created anonymous
5386	field definitions to correct a small memory leak.
5387
5388	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5389
53902002-08-10  Andrey Kiselev  <[email protected]>
5391
5392	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5393	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5394
53952002-07-31  Frank Warmerdam  <[email protected]>
5396
5397	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5398	JPEGDecode() as per bugzilla bug (issue 1):
5399
5400	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5401
5402	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5403	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5404	present in the tiff tags.
5405
5406	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5407
5408	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5409	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5410	fooled with the value.
5411
5412	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5413
54142002-06-22  Andrey Kiselev  <[email protected]>
5415
5416	* /tools/tiff2ps.c: Added workaround for some software that may crash
5417	when last strip of image contains fewer number of scanlines than
5418	specified by the `/Height' variable. See
5419	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5420	for explanation.
5421
54222002-06-21  Andrey Kiselev  <[email protected]>
5423
5424	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5425	splitting long images in several pages. See
5426	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5427	Patch granted by John Williams <[email protected]>.
5428
54292002-06-11  Frank Warmerdam  <[email protected]>
5430
5431	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5432	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5433	This one is described in:
5434
5435	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5436
5437	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5438
5439	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5440
54412002-05-10  Andrey Kiselev  <[email protected]>
5442
5443	* tools/tiff2ps: New commandline switches to override resolution
5444	units obtained from the input file. Closes
5445	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5446
54472002-04-26  Andrey Kiselev  <[email protected]>
5448
5449	* libtiff/libtiff.def: Added missed declaration.
5450
54512002-04-22  Andrey Kiselev  <[email protected]>
5452
5453	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5454	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5455
54562002-04-20  Andrey Kiselev  <[email protected]>
5457
5458	* libtiff/tif_open.c: Pointers to custom procedures
5459	in TIFFClientOpen() are checked to be not NULL-pointers.
5460
54612002-04-18  Andrey Kiselev  <[email protected]>
5462
5463	* libtiff/libtiff.def: Added missed declarations.
5464
5465	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5466
54672002-04-16  Andrey Kiselev  <[email protected]>
5468
5469	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5470	Should finally close
5471	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5472
54732002-04-10  Andrey Kiselev  <[email protected]>
5474
5475	* tools/tiff2ps: Division by zero fixed.
5476	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5477
54782002-04-09  Andrey Kiselev  <[email protected]>
5479
5480	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5481	TIFFCheckpointDirectory() routine added.
5482	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5483
5484	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5485	for the new function.
5486
54872002-04-08  Andrey Kiselev  <[email protected]>
5488
5489	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5490	additional members tif->tif_decodestatus and tif->tif_encodestatus
5491	for correct handling of unconfigured codecs (we should not try to read
5492	data or to define data size without correct codecs).
5493
5494	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5495	changed. Now it has used tif->tif_decodestatus and
5496	tif->tif_encodestatus.
5497	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5498	case of __cvs_8.tif test image).
5499
5500	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5501	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5502	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5503	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5504
55052002-04-04  Andrey Kiselev  <[email protected]>
5506
5507	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5508	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5509	files by skipping bad strips.
5510	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5511
55122002-04-03  Frank Warmerdam  <[email protected]>
5513
5514	* libtiff/tif_dirwrite.c: Removed some dead code.
5515
5516	* libtiff/*: Cleanup some warnings.
5517
5518	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5519	for variable length FIELD_CUSTOM values.  Was int * but should be
5520	u_short *.
5521
55222002-04-01  Andrey Kiselev  <[email protected]>
5523
5524	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
5525	utility (at cpStripToTile routine).
5526
55272002-03-27  Frank Warmerdam  <[email protected]>
5528
5529	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
5530
5531	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
5532
5533	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
5534	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
5535
5536	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
5537	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
5538
55392002-03-26  Dwight Kelly  <[email protected]>
5540
5541	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5542	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
5543	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
5544	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
5545	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
5546	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
5547
55482002-03-26  Andrey Kiselev  <[email protected]>
5549
5550	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
5551	now also uses TIFFRGBAImageOK before reading. This is additional fix
5552	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5553
55542002-03-25  Andrey Kiselev  <[email protected]>
5555
5556	* libtiff/: tif_getimage.c: Additional check for supported
5557	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
5558	TIFFRGBAImageOK before reading.
5559	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5560
55612002-03-15  Andrey Kiselev  <[email protected]>
5562
5563	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5564	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
5565	TIFFDataType sizes instead of working with tiffDataWidth array
5566	directly. Should prevent out-of-borders bugs in case of unknown or
5567	broken data types.  EstimateStripByteCounts routine modified, so it
5568	won't work when tags with uknown sizes founded.
5569	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
5570
55712002-03-13  Andrey Kiselev  <[email protected]>
5572
5573	* libtiff/tif_getimage.c: Added support for correct handling
5574	`Orientation' tag in gtTileContig. Should be added in other gt*
5575	functions as well, but I have not images for testing yet. Partially
5576	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5577
55782002-03-10  Andrey Kiselev  <[email protected]>
5579
5580	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
5581	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
5582	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
5583	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
5584
55852002-03-08  Andrey Kiselev  <[email protected]>
5586
5587	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
5588	be stripped when installing, utility binaries will do.	Closes
5589	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5590
55912002-02-28  Frank Warmerdam  <[email protected]>
5592
5593	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
5594
5595	* man/libtiff.3t: added copyright tag info.
5596
55972002-02-11  Frank Warmerdam  <[email protected]>
5598
5599	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
5600
5601	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5602
5603	* man/Makefile.in: Patch DESTDIR handling
5604
5605	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
5606
5607	* configure: OpenBSD changes for Sparc64 and DSO version.
5608
5609	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
5610
56112002-02-05  Frank Warmerdam  <[email protected]>
5612
5613	* config.site/configure: added support for OJPEG=yes option to enable
5614	OJPEG support from config.site.
5615
56162002-01-27  Frank Warmerdam  <[email protected]>
5617
5618	* html/document.html: fixed links for TIFf 6 docs.
5619
56202002-01-18  Frank Warmerdam  <[email protected]>
5621
5622	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
5623
5624	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
5625	decodestrip function returns anything not greater than zero as per
5626	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
5627
5628	* configure: Modify CheckForBigEndian so it can work in a cross
5629	compiled situation.
5630
56312002-01-16  Frank Warmerdam  <[email protected]>
5632
5633	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
5634
5635	* tools/tiffset.c: fix bug in error reporting.
5636
5637	* tools/tiffcp.c: fix several warnings that show up with -Wall.
5638
56392002-01-04  Frank Warmerdam  <[email protected]>
5640
5641	* libtiff/tif_jpeg.c: fixed computation of segment_width for
5642	tiles files to avoid error about it not matching the
5643	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
5644	size.") for ITIFF files.  Apparently the problem was incorporated since
5645	3.5.5, presumably during the OJPEG/JPEG work recently.
5646
56472001-12-15  Frank Warmerdam  <[email protected]>
5648
5649	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
5650
5651	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5652
5653	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
5654	(defined in tiffconf.h - 1 by default) then the RGBA interface
5655	will assume that a fourth extra sample is ASSOCALPHA if the
5656	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
5657	the library, but makes it work better with RGBA files produced by
5658	lots of applications that don't mark the alpha values properly.
5659
5660	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5661	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
5662
56632001-12-12  Frank Warmerdam  <[email protected]>
5664
5665	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
5666	override those from tiff directory.  This makes this work with
5667	ImageGear generated files.
5668
56692001-12-07  Frank Warmerdam  <[email protected]>
5670
5671	* html/Makefile.in: added missing images per bug 92.
5672
5673	* port/Makefile.in: fixed clean target per bug 92.
5674
56752001-11-28  Frank Warmerdam  <[email protected]>
5676
5677	* Reissue 3.5.7 release.
5678
5679	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
5680	YYYYMMDD so that it is increasing over time.
5681
5682	* Makefile.in: Ensure that tiffvers.h is regenerated in the
5683	make release target.
5684
5685	* Makefile.in: added libtiff/tiffvers.h to the release file list.
5686
56872001-11-23  Frank Warmerdam  <[email protected]>
5688
5689	* added html/v3.5.7.html, updated html/index.html.
5690
5691	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
5692
56932001-11-15  Frank Warmerdam  <[email protected]>
5694
5695	* configure: fixed test for -lm.
5696
56972001-11-02  Frank Warmerdam  <[email protected]>
5698
5699	* Added PHOTOMETRIC_ITULAB as per bug 90.
5700
5701	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
5702
57032001-10-10  Frank Warmerdam  <[email protected]>
5704
5705	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
5706	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
5707	in keeping with TIFF 6.0 standard in tiff.h
5708
5709	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
5710
57112001-09-26  Frank Warmerdam  <[email protected]>
5712
5713	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
5714	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
5715
57162001-09-24  Frank Warmerdam  <[email protected]>
5717
5718	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
5719
5720	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
5721
5722	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
5723	error about LZW not being available.
5724
5725	* libtiff/tif_dir.c: propagate failure to initialize compression
5726	back from TIFFSetField() as an error status, so applications can
5727	detect failure.
5728
5729	* libtiff/tif_dir.c: removed the auto replacement of
5730	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
5731
5732	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
5733	from CVS as they are all supposed to be auto-generated by configure.
5734
57352001-09-22  Frank Warmerdam  <[email protected]>
5736
5737	* libtiff/tif_ojpeg.c: new update from Scott.
5738
57392001-09-09  Frank Warmerdam  <[email protected]>
5740
5741	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
5742	always use the "safe" version, even if there is a very slight
5743	cost in performance.
5744
5745	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
5746
5747	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
5748	in two places.
5749
5750	* libtiff/tif_getimage.c: Fixed problem with reading strips or
5751	tiles that don't start on a tile boundary.  Fix contributed by
5752	Josep Vallverdu (from HP), and further described in bug 47.
5753
5754	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
5755
5756	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
5757
5758	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
5759
57602001-09-06  Frank Warmerdam  <[email protected]>
5761
5762	* libtiff/tif_packbits.c: fixed memory overrun error.
5763
5764	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
5765
57662001-08-31  Frank Warmerdam  <[email protected]>
5767
5768	* libtiff/tif_getimage.c: relax handling of contig case where
5769	there are extra samples that are supposed to be ignored.  This
5770	should now work for 8bit greyscale or palletted images.
5771
5772	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
5773
57742001-08-28  Frank Warmerdam  <[email protected]>
5775
5776	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
5777	images with more than four samples per pixel.  See:
5778
5779	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
5780
57812001-08-10  Frank Warmerdam  <[email protected]>
5782
5783	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
5784	in TIFFReadRGBATile() to avoid issues in cases of overlapping
5785	buffers.  See Bug 69 in Bugzilla.
5786
5787	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
5788
5789	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
5790
57912001-08-09  Frank Warmerdam  <[email protected]>
5792
5793	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
5794	when checking for 64 bit architectures as per bugzilla bug 67.
5795
57962001-07-27  Frank Warmerdam  <[email protected]>
5797
5798	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
5799	bug 66.
5800
58012001-07-20  Frank Warmerdam  <[email protected]>
5802
5803	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
5804	has been included.
5805
58062001-07-19  Frank Warmerdam  <[email protected]>
5807
5808	* libtiff/tif_open.c: Seek back to zero after failed read,
5809	before writing header.
5810
58112001-07-18  Frank Warmerdam  <[email protected]>
5812
5813	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
5814	much better.  Now depends on having patched libjpeg as per
5815	patch in contrib/ojpeg/*.
5816
58172001-07-17  Frank Warmerdam  <[email protected]>
5818
5819	* */Makefile.in: added DESTDIR support.
5820
5821	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
5822
58232001-07-16  Frank Warmerdam  <[email protected]>
5824
5825	* configure, libtiff/Makefile.in: applied OpenBSD patches
5826	as per:
5827
5828	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
5829
58302001-06-28  Frank Warmerdam  <[email protected]>
5831
5832	* libtiff/tif_getimage.c: Fixed so that failure is properly
5833	reported by gtTileContig, gtStripContig, gtTileSeparate and
5834	gtStripSeparate.
5835
5836	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
5837
5838	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
5839	Updated bug section of tiffcmp.1 to note tiled file issues.
5840
5841	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
5842
58432001-06-22  Frank Warmerdam  <[email protected]>
5844
5845	* configure: Changes for DSO generation on AIX provided by
5846	John Marquart <[email protected]>.
5847
5848	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
5849	on Darwin thanks to Robert Krajewski ([email protected]) and
5850	Keisuke Fujii ([email protected]).
5851
58522001-06-13  Frank Warmerdam  <[email protected]>
5853
5854	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
5855
5856	* man/tiff2rgba.1: new
5857
58582001-05-22  Frank Warmerdam  <[email protected]>
5859
5860	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
5861
58622001-05-13  Frank Warmerdam  <[email protected]>
5863
5864	* libtiff/tools/thumbnail.c: changed default output compression
5865	to packbits from LZW since LZW isn't generally available.
5866
58672001-05-12  Frank Warmerdam  <[email protected]>
5868
5869	* libtiff/tif_ojpeg.c: New.
5870	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
5871	to OJPEG support.
5872
5873	Scott Marovich <[email protected]> supplied OJPEG support.
5874
58752001-05-11  Frank Warmerdam  <[email protected]>
5876
5877	* tiff.h: removed, it duplicates libtiff/tiff.h.
5878
58792001-05-08  Frank Warmerdam  <[email protected]>
5880
5881	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
5882	ensure everything is in order.
5883
5884	* libtiff/libtiff.def: added TIFFCreateDirectory and
5885	TIFFDefaultStripSize as per:
5886
5887	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
5888
58892001-05-02  Frank Warmerdam  <[email protected]>
5890
5891	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
5892	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
5893	force use of uint32 counts instead of short counts.
5894
5895	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
5896	case of writing TIFF_BYTE/TIFF_SBYTE fields.
5897
5898	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
5899
59002001-05-01  Frank Warmerdam  <[email protected]>
5901
5902	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
5903	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
5904
59052001-04-05  Frank Warmerdam  <[email protected]>
5906
5907	* tiffio.h: removed C++ style comment.
5908
5909	* configure: fixed up SCRIPT_SH/SHELL handling.
5910
5911	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
5912
5913	* config.guess: documented more variables as per bug 40.
5914
59152001-04-03  Frank Warmerdam  <[email protected]>
5916
5917	* configure, *Makefile.in: Various changes to improve configuration
5918	for HP/UX specifically, and also in general.  They include:
5919	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
5920	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
5921	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
5922	 - Use -${MAKEFLAGS} in sub makes from makefiles.
5923
5924	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
5925
59262001-04-02  Frank Warmerdam  <[email protected]>
5927
5928	* libtiff/tiff.h: Applied hac to try and resolve the problem
5929	with the inttypes.h include file on AIX.
5930
5931	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5932
5933	* VERSION: update to 3.5.7 beta in preparation for release.
5934
5935	* configure/config.site: modified to check if -lm is needed for
5936	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
5937
5938	* config.guess: updated wholesale to an FSF version apparently
5939	from 1998 (as opposed to 1994).  This is mainly inspired by
5940	providing for MacOS X support.
5941
59422001-03-29  Frank Warmerdam  <[email protected]>
5943
5944	* configure, Makefile.in, etc: added support for OPTIMIZER being
5945	set from config.site.
5946
59472001-03-28  Frank Warmerdam  <[email protected]>
5948
5949	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
5950
5951	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
5952	sizes. It fixes two problems:
5953
5954	Without	scaling (-S) the fax is now centered on the page size specified
5955	with -H	and/or -W. Before, fax2ps was using an obscure and practially
5956	useless algorithm to allocate the image relative to Letter sized paper
5957	which sometime sled to useless whitespace on the paper, while at the
5958	same time cutting of the faxes printable area at the opposite border.
5959
5960	Second, scaling now preserves aspect ratio, which makes unusual faxes
5961	(in particular short ones) print properly.
5962
5963	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
5964
5965	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
5966	Bruce A. Mallett.  See check message for detailed information
5967	on all the changes, including a faster encoder, fixes for level
5968	2 PostScript, and support for the imagemask operator.
5969
59702001-03-27  Frank Warmerdam  <[email protected]>
5971
5972	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
5973	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
5974
5975	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5976
59772001-03-16  Frank Warmerdam  <[email protected]>
5978
5979	* tif_dirinfo.c: moved definition of copyright tag in field list.
5980	Apparently they have to be in sorted order by tag id.
5981
59822001-03-13  Frank Warmerdam  <[email protected]>
5983
5984	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
5985	images in RGBA interface.
5986
59872001-03-02  Frank Warmerdam  <[email protected]>
5988
5989	* Added TIFFTAG_COPYRIGHT support.
5990
59912001-02-19  Frank Warmerdam  <[email protected]>
5992
5993	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
5994	with support for extracting subimages with the ,n syntax, and also
5995	adding the -b bias removal flag.
5996
59972001-02-16  Frank Warmerdam  <[email protected]>
5998
5999	* libtiff/libtiff.def: Brent Roman submitted new version adding
6000	serveral missing entry points.
6001
6002	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
6003	Some sort of weird VMS thing.
6004
6005	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
6006
6007	* tif_luv.c/tiff.h/tiffio.h:
6008	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
6009	([email protected]).  He writes:
6010
6011	1) I improved the gamut-mapping function in tif_luv.c for imaginary
6012	colors, because some images were being super-saturated on the input
6013	side and this resulted in some strange color shifts in the output.
6014
6015	2) I added a psuedotag in tiff.h to control random dithering during
6016	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
6017	on for 24-bit LogLuv output.  Dithering improves the average color
6018	accuracy over the image.
6019
6020	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
6021	tiffio.h, to expose internal routines for converting between LogLuv and
6022	XYZ coordinates.  This is helpful for writing more efficient,
6023	specialized conversion routines, especially for reading LogLuv files.
6024
6025	Changes applied with minor edits.
6026
60272001-01-23  Frank Warmerdam  <[email protected]>
6028
6029	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
6030	whether we are encoding or decoding.  This is to ensure graceful
6031	recovery if TIFFClientOpen() discovers an attempt to open a compressed
6032	file for "r+" access, and subsequently close it, as it resets the
6033	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
6034	compressor's concept of whether it is in encode or decode mode.
6035
60362001-01-08  Mike Welles <[email protected]>
6037
6038	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
6039
60402001-01-07  Frank Warmerdam  <[email protected]>
6041
6042	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
6043	as per bug report by Patrick Connor.
6044
60452000-12-28  Frank Warmerdam  <[email protected]>
6046
6047	* Added RELEASE-DATE file to release file list.
6048
6049	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
6050
60512000-12-22  Mike Welles <[email protected]>
6052        * added link to CVS mirror from index.html
6053
6054	* updated html/internals.html to note that LZW compression is
6055	  not supported by default.
6056
60572000-12-22  Frank Warmerdam  <[email protected]>
6058
6059	* updated html/libtiff.html to not point at Niles' old JPL web site
6060	for the man pages, point at www.libtiff.org.
6061
60622000-12-21  Frank Warmerdam  <[email protected]>
6063
6064	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
6065	Leonard Rosenthol <[email protected]>.  May interfere
6066	with correct building on older systems.  If so, please let me know.
6067
60682000-12-19 Mike Welles <[email protected]>
6069
6070	* Took out LZW Encoding from tif_lzw.c
6071
6072	* Created HOWTO-RELEASE
6073
6074	* Created html/v3.5.6.html
6075
6076	* updated index.html
6077
60782000-12-01  Frank Warmerdam  <[email protected]>
6079
6080	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
6081	Patches supplied by Frank Cringle <[email protected]>
6082	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
6083
60842000-11-24  Frank Warmerdam  <[email protected]>
6085
6086	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
6087	target so that the private headers required by libgeotiff can be
6088	installed with the others.  They are not installed by default.
6089
6090	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
6091	targets so libtiff.so will be built with an explicit dependency
6092	on libm.so.
6093
6094	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
6095	libtiff.so.3.5.5.
6096
6097	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
6098	file, or ALPHA version logic.  Added stuff about DIST_POINT in
6099	place of DIST_TYPE and the alpha release number stuff.
6100
61012000-11-22  Frank Warmerdam  <[email protected]>
6102
6103	* I have applied a patch from Steffen Moeller <[email protected]> to
6104	the configure script so that it now accepts the --prefix, and
6105	--exec-prefix directives.
6106
61072000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
6108
6109	* I have made a variety of modifications in an effort to ensure the
6110	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
6111	file which seems to be updated regularly.
6112
6113	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
6114	   version include file.
6115	 o renamed version.h to tiffvers.h because we now have to install it
6116	   with the public libtiff include files.
6117	 o include tiffvers.h in tiffio.h.
6118	 o updated tif_version.c to use tiffvers.h.
6119	 o Updated Makefile.in accordingly.
6120
6121	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
6122	I have updated the win32 detection rules in tiffcomp.h.
6123
61242000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
6125
6126	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
6127	the strip/tile width and height aren't multiples of the sampling size.
6128	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
6129	Some patches from Rick LaMont of Dot C Software.
6130
6131	* Modified tif_packbits.c encoder to avoid compressing more
6132	data than provided if rowsize doesn't factor into provided data
6133	(such as occurs for YCbCr).
6134
61352000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
6136
6137	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
6138	roundup if rows_per_strip not a multiple of vertical sample size.
6139
61402000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
6141
6142	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
6143	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6144	from [email protected].
6145
6146	* Modified tif_packbits.c decoding to avoid overrunning the
6147	output buffer, and to issue a warning if data needs to be
6148	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
6149
61502000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
6151
6152	* Modified tiff2bw to ensure portions add to 100%, and that
6153	white is properly recovered.
6154
6155	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
6156	Patch c/o Stanislav Brabec <[email protected]>
6157
61582000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
6159
6160	* Modified TIFFClientOpen() to emit an error on an attempt to
6161	open a comperessed file for update (O_RDWR/r+) access.  This is
6162	because the compressor/decompressor code gets very confused when
6163	the mode is O_RDWR, assuming this means writing only.  See
6164	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
6165
61662000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
6167
6168	* Added GNULDdso target an`d switched linux and freebsd to use it.
6169
61702000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
6171
6172	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
6173	of EXPAND1D() as per bug 11 (from Roman).
6174
61752000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
6176	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
6177	cygwin compatibility.
6178
6179	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
6180	be a proper fix to the buffer sizing problem.  See
6181	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
6182
6183	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
6184	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
6185	Thanks to Nick Lamb <[email protected]> for reporting the
6186	bug and proving the patch.
6187
61882000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
6189
6190	* Fixed tif_jpeg.c so avoid destroying the decompressor before
6191	we are done access data thanks to bug report from:
6192	Michael Eckstein <[email protected]>.
6193
6194	* Reverted tif_flush change.
6195
61962000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
6197
6198	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
6199	error when TIFF_BEENWRITING is not set.  This ensures that the
6200	directory contents can still be flushed by TIFFFlush().
6201
62022000-08-14  Frank Warmerdam  <[email protected]>
6203
6204	* tif_open.c: Don't set MMAP for O_RDWR files.
6205
6206	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
6207	so that files opened for update can be strip chopped too.
6208
6209	* tif_read.c: fixed up bug with files missing rowsperstrip and
6210	the strips per separation fix done a few weeks ago.
6211
62122000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
6213
6214	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
6215	SAMPLEFORMAT_COMPLEXINT.
6216
62172000-07-13  Mike Welles <[email protected]>
6218
6219	* index.html, bugs.html: added bugzilla info.
6220
62212000-07-12  Frank Warmerdam  <[email protected]>
6222
6223	* tif_read.c: fix subtle bug with determining the number of
6224	rows for strips that are the last strip in a separation but
6225	not the last strip of all in TIFFReadEncodedStrip().
6226
6227	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
6228	Peter Skarpetis <[email protected]>
6229
62302000-06-15  Frank Warmerdam  <[email protected]>
6231
6232	* Modified tiffio.h logic with regard to including windows.h.  It
6233	won't include it when building with __CYGWIN__.
6234
62352000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
6236
6237	* README: update to mention www.libtiff.org, don't list Sam's old
6238	email address.
6239
6240	* configure: Fixed DSO test for Linux as per patch from
6241	  Jan Van Buggenhout <[email protected]>.
6242
62432000-04-21  Frank Warmerdam  <[email protected]>
6244
6245	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
6246	one tile/strip images with an offset, and byte count of zero. These
6247	could be "unpopulated" images.
6248
62492000-04-18  Frank Warmerdam  <[email protected]>
6250
6251	* contrib/addtiffo: Added "averaging" resampling option.
6252
6253	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
6254
6255Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
6256
6257	* tools/Makefile.in: Modified to install properly on SGI.
6258
62592000-04-12  Mike Welles	     <[email protected]>
6260	* configure:  Fixed stupid mistake in libc6 test on Linux
6261
62622000-04-04  Mike Welles	     <[email protected]>
6263	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
6264	  caught by BoundsChecker.  From Arvan Pritchard
6265	  <[email protected]>  (untested).
6266
6267	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
6268	  Arvan Pritchard <[email protected]>
6269
6270	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
6271	  Arvan Pritchard <[email protected]>
6272
62732000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
6274
6275	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
6276
62772000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
6278
6279	* fax2ps: Fixed mixup of width and height in bounding box statement
6280	as per submission by Nalin Dahyabhai <[email protected]>.
6281
62822000-03-27  Mike Welles	     <[email protected]>
6283
6284	* fax2ps:  Modified printruns to take uint32 instead of uint16.
6285	Patch courtesy of Bernt Herd <[email protected]>
6286
62872000-03-20  Mike Welles	     <[email protected]>
6288
6289	* configure: added test for libc6 for linux targets.  Bug reported by
6290        Stanislav Brabec <[email protected]>
6291
6292	* Added 3.5 docs to html/Makefile.in.
6293	Thanks to  Stanislav Brabec <[email protected]>
6294
6295	* configure: fixed bugs in sed scripts
6296	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
6297	fix submitted to Stanislav Brabec <[email protected]>
6298
6299	* tools/iptcutil was not in files list, and wasn't being
6300	added to tar archive.  Updated Makefile.in.
6301
63022000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
6303
6304	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
6305	conversion for the run arrays.
6306
63072000-03-03  Frank Warmerdam  <[email protected]>
6308
6309	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
6310	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
6311
63122000-03-02  Frank Warmerdam  <[email protected]>
6313
6314	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
6315
6316	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
6317	to avoid overruns encountered with frle_bug.tif.
6318
6319Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
6320
6321	* Fixed tools/tiffcmp so that stopondiff testing works.
6322	  Patch care of Joseph Orost <[email protected]>.
6323
63242000-01-28    <warmerda@CS46980-B>
6325
6326	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
6327	  set to 1, and added default (off) setting in tiffconf.h.  This
6328	  should eventually be set by the configure script somehow.
6329
6330	  The original work on all these 2-4GB changes was done by
6331	  Peter Smith ([email protected]).
6332
6333	* Modified tif_win32.c to support 2-4GB seeks.
6334
6335	* tentatively changed toff_t to be unsigned instead of signed to
6336	  facilitate support for 2-4GB files.
6337
6338	* Updated a variety of files to use toff_t.  Fixed some mixups
6339	  between toff_t and tsize_t.
6340
6341Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
6342
6343	* Largely reimplemented contrib/addtiffo to avoid temp files,
6344	updating the TIFF file in place.  Fixed a few other bugs to.
6345
6346	* Set tif_rawdatasize to zero when freeing raw data buffer in
6347	TIFFWriteDirectory().
6348
6349	* Enabled "REWRITE_HACK" in tif_write.c by default.
6350
6351	* Fix bug in tif_write.c when switching between reading one directory
6352	and writing to another.
6353
6354	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6355
6356Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6357
6358	* Added TIFFmemory(3t) functions to libtiff.def.
6359
6360Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6361
6362	* Added libtiff/libtiff.def to TIFFILES distribution list.
6363
6364Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6365
6366	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6367
6368	* Altered descriptions in tools to reflect "by default" lzw not supported
6369
6370	* Updated index.html to note lzw compression kit.
6371
6372Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6373
6374	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6375
6376Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6377
6378	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6379
6380	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6381	  when LZW compression invoked.
6382
6383	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6384	  in tools to reflect removal of LZW compression
6385
6386Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6387
6388        * Fixed bug that caused LZW (non) compression to segfault. Added
6389	  warning about LZW compression removed being removed, and why.
6390
6391	* Added nostrip to install in tools/Makefile.in so that debugging
6392	  symbols are kept.
6393
6394Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6395
6396	* Added patch from Ivo Penzar <[email protected]>,
6397	  supporting Adobe ZIP deflate.  Untested.
6398
6399Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6400
6401	* Made Packbits the default compression in tools/tiff2rgba.c instead
6402	of LZW.
6403
6404Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6405
6406	* Added tif_luv to contrib/djgpp/Makefile.lib.
6407
6408Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6409
6410        * Added zip creation to relase makefile target
6411
6412	* Added html for TIFFWriteTile.3t man page.
6413
6414Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6415
6416	* Added some changes to tif_write.c to support rewriting existing
6417	fixed sized tiles and strips.  Code mods disabled by default, only
6418	enabled if REWRITE_HACK is defined for now.
6419
6420Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6421
6422	* Added TIFFWriteTile.3t man page.
6423
6424Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6425
6426	* Added notes on use of makefile.vc in build.html, and fixed
6427	email subscription address.
6428
6429199-11-28  Mike Welles <[email protected]>
6430
6431	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6432
6433	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6434	   from Bruce Carmeron <[email protected]> -- modifications of
6435	   changes made by Frank (sun cc still complained on cast).
6436
6437	*  Added tiffconf.h to install target per request from Bill
6438	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6439 	   know features have been compiled into the TIFF library in order to
6440	   handle things properly".
6441
6442Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6443
6444	* fixed various VC++ warnings as suggested by Gilles Vollant
6445	<[email protected]>.
6446
6447Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6448
6449	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6450	not imply applications are responsible for image data swapping.
6451
64521999-11-22  Mike Welles <[email protected]>
6453	*  HTML-ized the man pages, added to html/man
6454
6455	*  Removed LZW Compression to comply with Unisys patent extortion.
6456
64571999-09-29  Mike Welles		<[email protected]>
6458	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6459	   From Ivo Penzar <[email protected].
6460
6461	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6462	   memory mapped files. <[email protected]>
6463
64641999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6465	* Corrected alpha versioning.
6466
6467	* Removed distinction between  alpha and release targets in Makefile.in.
6468
6469	* added release.stamp target, which tags cvs tree, and updates
6470	  "RELEASE-DATE"
6471
6472	* added releasediff target, which diffs tree with source as of
6473	  date in "RELEASE-DATE"
6474
6475	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6476	  away from alpha/non-alpha distinctions).
6477
6478	* updated html to reflect release
6479
64801999-09-23    <warmerda@CS46980-B>
6481
6482	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6483
6484	* Added CYGWIN case in configure.
6485
6486Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6487
6488	* Applied Francois Dagand's patch to handle fax decompression bug.
6489	  (sizes >= 65536 were failing)
6490
6491Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6492
6493	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6494	  by Christopher Lawton <[email protected]>
6495
6496Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6497
6498	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6499	  Albert Chin-A-Young <[email protected]>
6500
6501	* Added TIFFReassignTagToIgnore() API on behalf of
6502	  Bruce Cameron <[email protected]>.  Man page still pending.
6503
6504Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6505
6506	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6507	files to provide for a rudimentary testsuite.
6508
6509	* Added contrib/tags back from old distribution ... fixed up a bit.
6510
65111999-08-16    <warmerda@CS46980-B>
6512
6513	* Added simple makefile.vc makefiles for building with MS VC++
6514	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6515	better solutions for some users.
6516
6517Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6518
6519	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6520	put it in tools since part of it is in C++.
6521
65221999-08-16  Michael L. Welles  <[email protected]>
6523
6524	* Updated html/index.html with anon CVS instructions.
6525
6526Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
6527
6528	* pre-remove so link before softlink in LINUXdso action in
6529	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
6530	the first.
6531
6532	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
6533	colormaps owned by the TIFF handle itself when trying to fixup wrong
6534	(eight bit) colormaps.  Corrected by maintaining a private copy of
6535	the colormap.
6536
6537	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
6538	tif_getimage.c.
6539
6540	* CVS Repository placed at remotesensing.org.  ChangeLog added.
6541