xref: /libtiff-4.0.7/ChangeLog (revision 9626bb6d)
12015-05-30  Bob Friesenhahn  <[email protected]>
2
3	* contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer
4	size calculation for overflow.
5
6	* contrib/addtiffo/addtiffo.c (main): Possibly address Coverity
7	1024226 "Untrusted value as argument".
8
9	* tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted
10	value as argument".
11	(checksignature): Fix Coverity 1024894 "Ignoring number of bytes
12	read".
13	(readextension): Fix Coverity 1024893 "Ignoring number of bytes
14	read".
15	(readgifimage): Fix Coverity 1024890 "Ignoring number of bytes
16	read".
17	(readraster): Fix Coverity 1024891 "Ignoring number of bytes
18	read".
19	(readgifimage): Fix Coverity 1024892 "Ignoring number of bytes
20	read".
21
22	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181
23	"Structurally dead code".
24
25	* tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return
26	value from library".
27	(guessSize): Fix Coverity 1024888 "Unchecked return value from
28	library".
29	(guessSize): Fix Coverity 1214162 "Ignoring number of bytes read".
30	(guessSize): Fix Coverity 1024889 "Unchecked return value from
31	library".
32
33	* tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621
34	"Resource leak".
35	(t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead
36	code".
37	(t2p_write_pdf): Fix Coverity 1227690 "Unused value".
38
392015-05-29  Bob Friesenhahn  <[email protected]>
40
41	* contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468
42	"Infinite loop".
43	(formatIPTC): Fix Coverity 1024727 "Truncated stdio return value".
44	(formatIPTC): Fix Coverity 1214240 "Untrusted loop bound".
45
462015-05-28  Bob Friesenhahn  <[email protected]>
47
48	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
49	Coverity 298615 "Resource leak".
50	(TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign
51	extension".
52
53	* tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value
54	as argument".
55	(main): Fix Coverity 1024678 "Unchecked return value from
56	library".
57	(main): Fix Coverity 1024679 "Unchecked return value from
58	library".
59	(main): Fix Coverity 1214160 "Ignoring number of bytes read".
60
61	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
62	Coverity 298615 "Resource leak".
63
64	* tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309
65	"Resource leak".
66
67	* tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource
68	leak".
69	(cpStrips): Fix Coverity 1024305 "Resource leak".
70
712015-05-27  Bob Friesenhahn  <[email protected]>
72
73	* tools/ras2tiff.c: Fix Sun Raster header definition to be safe
74	for 64-bit systems.  Add some header validations.  Should fix many
75	Coverity issues.
76	(main): Fix Coverity 1301206: "Integer handling issues  (BAD_SHIFT)".
77	(main): Quiet Coverity 1024223 "Untrusted value as argument".
78
79	* tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting
80	level does not match indentation".
81	(get_histogram): Quiet Coverity 1024386 "Out-of-bounds read".
82	This was a benign mis-diagnosis but added code to enforce against
83	buffer overflow.
84
85	* tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical
86	vs. bitwise operator".
87	(readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or
88	modulo by zero".
89	(readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead
90	code".
91	(writeSingleSection): Fix Coverity 1024796 "Nesting level does not
92	match indentation".
93	(writeCroppedImage): Fix Coverity 1024797 "Nesting level does not
94	match indentation".
95	(loadImage): Fix Coverity 1299741 "Dereference before null check".
96	(loadImage): Fix Coverity 1299740 "Out-of-bounds write".
97
982015-03-02  Even Rouault  <[email protected]>
99
100	* tools/tiffdither.c: check memory allocations to avoid writing to
101	NULL pointer. Also check multiplication overflow. Fixes #2501,
102	CVE-2014-8128. Derived from patch by Petr Gajdos.
103
1042015-01-26  Even Rouault  <[email protected]>
105
106	* add html/v4.0.4beta.html under version control
107	* HOWTO-RELEASE: write that cvs add html/vX.X.html must be used
108
1092015-01-26  Even Rouault  <[email protected]>
110
111	* libtiff 4.0.4beta released
112
1132015-01-26  Even Rouault  <[email protected]>
114
115	* automake: updated to 1.15
116	* libtool: updated to 2.4.5
117
1182015-01-22  Even Rouault  <[email protected]>
119
120	* tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
121
1222015-01-05  Frank Warmerdam  <[email protected]>
123
124	* html/bugs.html: remove note about needing to email the tiff mailing
125	list administrator about being approved for membership, this appears
126	not to be true.
127
1282015-01-05  Olivier Paquet  <[email protected]>
129
130	* tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
131
1322015-01-03  Even Rouault  <[email protected]>
133
134	* libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
135	when reading more than 65535 directories, and effectively error out when
136	reaching that limit.
137
1382014-12-29  Even Rouault  <[email protected]>
139
140	* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
141	markers to avoid emitting a warning (even if, according to the TechNote,
142	there are admitedly unusual/not recommended or even forbidden variants, but
143	they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
144	SOF9 and SOF10).
145	Define in_color_space and input_components to the right values in
146	JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
147	libjpeg API documentation, so as to be compatible with mozjpeg library.
148	Note: the default settings of mozjpeg will produce progressive scans, which
149	is forbidden by the TechNote.
150
1512014-12-29  Even Rouault  <[email protected]>
152
153	* libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
154	to avoid buffer leak (fix previous fix, found by Coverity scan)
155
1562014-12-29  Even Rouault  <[email protected]>
157
158	* libtiff/tif_next.c: add new tests to check that we don't read outside of
159	the compressed input stream buffer.
160
161	* libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
162    in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
163    putcontig8bitYCbCr21tile cases.
164
1652014-12-27  Even Rouault  <[email protected]>
166
167	* libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
168	extented tags installed by user code through the extender mechaninm before
169	calling the extender callback (GDAL #5054)
170
1712014-12-26  Bob Friesenhahn  <[email protected]>
172
173	* tools/tiffcrop.c: Fix warnings about variables set but not used.
174
175	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
176	but not used.
177
178	* tools/tiffgt.c: Fix warnings about unused parameters.
179
180	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
181
1822014-12-25  Even Rouault  <[email protected]>
183
184	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
185	various typos found by Debian lintian tool (GDAL #5756)
186
1872014-12-24  Even Rouault  <[email protected]>
188
189	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
190	http://bugzilla.maptools.org/show_bug.cgi?id=2235
191
1922014-12-24  Even Rouault  <[email protected]>
193
194	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
195	http://bugzilla.maptools.org/show_bug.cgi?id=2445
196
1972014-12-24  Even Rouault  <[email protected]>
198
199	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
200	Derived from patch by Petr Gajdos,
201	http://bugzilla.maptools.org/show_bug.cgi?id=2443
202
2032014-12-23  Even Rouault  <[email protected]>
204
205	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
206	of _TIFFFillStriles(). This solves crashing bug on corrupted
207	images generated by afl.
208
2092014-12-23  Even Rouault  <[email protected]>
210
211	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
212	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
213	images generated by afl.
214
2152014-12-21  Bob Friesenhahn  <[email protected]>
216
217	* tools/tiffdump.c: Guard against arithmetic overflow when
218	calculating allocation buffer sizes.
219
2202014-12-21  Even Rouault  <[email protected]>
221
222	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
223	SamplesPerPixel = 3. Enforce that
224	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
225
2262014-12-21  Even Rouault  <[email protected]>
227
228	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
229	copying. The right fix would be to properly copy it, but not worth the burden
230	for those esoteric utilities.
231	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
232
2332014-12-21  Even Rouault  <[email protected]>
234
235	* tools/thumbnail.c: fix out-of-buffer write
236	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
237
2382014-12-21  Even Rouault  <[email protected]>
239
240	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
241	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
242	COMPRESSION_CCITTFAX4
243	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
244
2452014-12-21  Even Rouault  <[email protected]>
246
247	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
248	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
249
2502014-12-21  Even Rouault  <[email protected]>
251
252	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
253	TIFFTAG_SAMPLESPERPIXEL
254
2552014-12-21  Even Rouault  <[email protected]>
256
257	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
258	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
259	Description: fix for Debian bug #741451
260	tiffcp crashes when converting JPEG-encoded TIFF to a different
261	encoding (like none or lzw). For example this will probably fail:
262	tiffcp -c none jpeg_encoded_file.tif output.tif
263	The reason is that when the input file contains JPEG data,
264	the tiffcp code forces conversion to RGB space. However,
265	the output normally inherits YCbCr subsampling parameters
266	from the input, which leads to a smaller working buffer
267	than necessary. The buffer is subsequently overrun inside
268	cpStripToTile() (called from writeBufferToContigTiles).
269	Note that the resulting TIFF file would be scrambled even
270	if tiffcp wouldn't crash, since the output file would contain
271	RGB data intepreted as subsampled YCbCr values.
272	This patch fixes the problem by forcing RGB space on the output
273	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
274	Author: Tomasz Buchert <[email protected]>
275
2762014-12-21  Even Rouault  <[email protected]>
277
278	Fix various crasher bugs on fuzzed images.
279	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
280	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
281	the directory
282	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
283	TransferFunction if BitsPerSample has not yet been read, otherwise reading
284	it later will cause user code to crash if BitsPerSample > 1
285	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
286	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
287	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
288	instead of imagewidth to avoid crash
289	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
290	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
291	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
292	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
293	* tools/tiffdump.c: fix crash due to overflow of entry count.
294
2952014-12-15  Even Rouault  <[email protected]>
296
297	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
298	all tiles/strips to include quantization tables even when the jpegtablesmode
299	had the JPEGTABLESMODE_QUANT bit set.
300	Also add explicit removal of Huffman tables when jpegtablesmode has the
301	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
302	first tile/strip (only useful in update scenarios. create-only was
303	fine)
304
3052014-12-09  Bob Friesenhahn  <[email protected]>
306
307	* tools/tiff2pdf.c: Assure that memory size calculations for
308	_TIFFmalloc() do not overflow the range of tmsize_t.
309
3102014-12-07  Even Rouault  <[email protected]>
311
312	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
313	Valgrind and Address Sanitizer on test suite
314
3152014-12-07  Bob Friesenhahn  <[email protected]>
316
317	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
318	tag can return one channel, with the other two channels set to
319	NULL.  The tiff2pdf code was expecting that other two channels
320	were duplicate pointers in the case where there is only one
321	channel.  Detect this condition in order to avoid a crash, and
322	presumably perform correctly with just one channel.
323
3242014-12-06  Bob Friesenhahn  <[email protected]>
325
326	* tools/tiffdump.c: Fix double-free bug.
327
3282014-11-27  Even Rouault  <[email protected]>
329
330	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
331	Visual Studio 2015 aka VC 14 aka MSVC 1900
332
3332014-11-20  Even Rouault  <[email protected]>
334
335	* libtiff/tif_lzw.c: prevent potential null dereference of
336	sp->dec_codetab in LZWPreDecode (bug #2459)
337
338	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
339	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
340
341	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
342
343	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
344	Coverity happier (not a bug, #2459)
345
346	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
347	(not a bug, #2459)
348
349	* tools/tiff2pdf.c: close PDF file (bug #2479)
350
351	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
352
353	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
354	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
355
356	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
357	(bug #2459) and add missing va_end in dump_info (#2459)
358
359	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
360
3612014-11-20  Even Rouault  <[email protected]>
362	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
363	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
364
3652014-11-20  Even Rouault  <[email protected]>
366	* automake: updated to 1.14.1
367	* libtool: updated to 2.4.3
368	* HOWTO-RELEASE: small update about autotools building order
369
3702014-10-20  Olivier Paquet  <[email protected]>
371	* tools/tiff2pdf.c: Preserve input file directory order when pages
372	are tagged with the same page number.
373
3742014-08-31  Bob Friesenhahn  <[email protected]>
375
376	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
377	count for tag should be a warning rather than an error since
378	errors terminate processing.
379
3802014-06-07  Bob Friesenhahn  <[email protected]>
381
382	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
383	was wrongly described.  Fix suggested by Miguel Medalha.
384
3852014-05-06  Bob Friesenhahn  <[email protected]>
386
387	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
388	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
389	Reviewed and forwarded by Lee Howard.
390
3912013-11-30  Frank Warmerdam  <[email protected]>
392
393	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
394
3952013-10-21  Frank Warmerdam  <[email protected]>
396
397	* libtiff/tif_dir.c: generate error in case of directory count
398	overflow.
399
4002013-10-01  Frank Warmerdam  <[email protected]>
401
402	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
403	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
404
4052013-09-12  Bob Friesenhahn  <[email protected]>
406
407	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
408	be defective, then set it to zero before returning error in order
409	to terminate processing of truncated TIFF.  Issue found and fix
410	suggested by Richard Nolde.
411
4122013-08-14  Frank Warmerdam  <[email protected]>
413
414	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
415
4162013-08-13  Frank Warmerdam  <[email protected]>
417
418	* tools/gif2tiff.c: Be more careful about corrupt or
419	hostile input files (#2450, CVE-2013-4231)
420
421	* tools/tiff2pdf.c: terminate after failure of allocating
422	ycbcr buffer (bug #2449, CVE-2013-4232)
423
4242013-07-09  Frank Warmerdam  <[email protected]>
425
426	* tools/tiffinfo.c: Default various values fetched with
427	TIFFGetField() to avoid being uninitialized.
428
4292013-05-02  Tom Lane  <[email protected]>
430
431	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
432	t2p_process_jpeg_strip to be at least marginally competent.  The
433	approach is still fundamentally flawed, but at least now it won't
434	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
435
4362013-05-02  Tom Lane  <[email protected]>
437
438	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
439 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
440 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
441 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
442 	large enough, and eliminate substantially all uses of sprintf(buf,
443 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
444 	protect against overflow of fixed-size buffers.  This responds in
445 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
446 	t2p_write_pdf_page(), but in general it seems like a good idea to
447 	deprecate use of sprintf().
448
4492013-03-29  Bob Friesenhahn  <[email protected]>
450
451	* configure.ac: Applied patch by Brad Smith to improve pkg-config
452	static linking by adding -lm to Libs.private when needed.
453
4542013-03-05  Tom Lane  <[email protected]>
455
456	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
457 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
458 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
459 	tools/tiffdither.c: Sync tool usage printouts and man pages with
460 	reality (quite a few options had escaped being documented in one
461 	or both places).  Per an old report from Miroslav Vadkerti.
462
4632013-01-25  Bob Friesenhahn  <[email protected]>
464
465	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
466	rotation angle was set by the auto rotate check, it was retained
467	for all pages that followed instead ofa being retested for each
468	page.  Patch by Richard Nolde.
469
4702013-01-18  Frank Warmerdam  <[email protected]>
471
472	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
473	64bit linux.
474
475	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
476	http://bugzilla.maptools.org/show_bug.cgi?id=2427
477
4782012-12-20  Tom Lane  <[email protected]>
479
480	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
481	it will pass with more versions of libjpeg.  (There are at least
482	three in active use now, and JPEG_LIB_VERSION doesn't tell us
483	enough to uniquely identify expected results.)
484
4852012-12-12  Tom Lane  <[email protected]>
486
487	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
488	field_passcount fields: it had the TIFF_VARIABLE and
489	TIFF_VARIABLE2 cases backwards.
490
4912012-12-10  Tom Lane  <[email protected]>
492
493	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
494 	check the linebytes calculation too, get the max() calculation
495 	straight, avoid redundant error messages, check for malloc
496 	failure.
497
4982012-12-10  Tom Lane  <[email protected]>
499
500	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
501 	(to enlarge tbuf for possible partial stride at end) so that
502 	overflow in the integer addition is detected.  Per gripe from
503 	Huzaifa Sidhpurwala.
504
5052012-12-03  Bob Friesenhahn  <[email protected]>
506
507	* tools/tiffset.c: tiffset now supports a -u option to unset a
508	tag.  Patch by Zach Baker. See
509	http://bugzilla.maptools.org/show_bug.cgi?id=2419
510
5112012-11-18  Bob Friesenhahn  <[email protected]>
512
513	* automake: Update Automake to 1.12.5 release.
514
515	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
516	require malloc() to return NULL pointer if requested allocation
517	size is zero.  Assure that _TIFFmalloc does.
518
5192012-11-01  Frank Warmerdam  <[email protected]>
520
521	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
522	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
523	Red Hat Security Response team for the fix.
524
5252012-10-18  Frank Warmerdam  <[email protected]>
526
527	* tif_zip.c: Avoid crash on NULL error messages.
528
5292012-09-22  Bob Friesenhahn  <[email protected]>
530
531	* libtiff 4.0.3 released.
532
5332012-09-20  Bob Friesenhahn  <[email protected]>
534
535	* Makefile.am: Update to Automake 1.12.4
536
5372012-08-19  Bob Friesenhahn  <[email protected]>
538
539	* Makefile.in: Update to Automake 1.12.3
540
541	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
542	some TIFF/FX support in libtiff.  Add the tag definitions to
543	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
544	and also fixes an error in a comment.  Adds the photometric values
545	to tif_print.c, and fixes a bug.  These changes are by Steve
546	Underwood.
547
5482012-08-13  Frank Warmerdam  <[email protected]>
549
550	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
551	compressed file: http://trac.osgeo.org/gdal/ticket/4771
552
5532012-08-02  Frank Warmerdam  <[email protected]>
554
555	* libtiff/tif_dirread.c: report error in case of mismatch value
556	counts for tags (ie. DotRange).
557
5582012-07-26  Tom Lane  <[email protected]>
559
560	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
561 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
562	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
563	as external accessors for the opaque type TIFFField.
564
565	* tools/tiffset.c: Make tiffset use the above functions instead of
566	relying on library private headers.
567
5682012-07-19  Tom Lane  <[email protected]>
569
570	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
571	after a malloc failure.  No crash risk AFAICS, but the program
572	might not report exit code 1 as desired.  h/t [email protected]
573
5742012-07-18  Tom Lane  <[email protected]>
575
576	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
577	prevents core dumps or perhaps even arbitrary code execution when
578	processing a corrupt input file (CVE-2012-3401).
579
5802012-07-06  Bob Friesenhahn  <[email protected]>
581
582	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
583	IJG JPEG 7+ uses a different upsampling algorithm which produces
584	different numeric results.
585
586	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
587	work with IJG JPEG 7+.
588
5892012-07-04  Bob Friesenhahn  <[email protected]>
590
591	* test/raw_decode.c: Add changes so that test can run with build
592	directory outside of source directory.
593
5942012-07-02  Frank Warmerdam  <[email protected]>
595
596	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
597	imagery (http://trac.osgeo.org/gdal/ticket/4732)
598
5992012-06-20  Frank Warmerdam  <[email protected]>
600
601	* libtiff/tif_fax3.c: fix memory initialization of runs, only
602	partly done.
603
604	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
605	full "stride" past the end.
606
6072012-06-19  Frank Warmerdam  <[email protected]>
608
609	* libtiff/tif_packbits.c: fix read past end of data buffer.
610
6112012-06-15  Frank Warmerdam  <[email protected]>
612
613	*  libtiff 4.0.2 released.
614
615	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
616	warnings with clang.
617
6182012-06-15  Tom Lane  <[email protected]>
619
620	* tools/tiff2pdf.c: Defend against integer overflows while
621	calculating required buffer sizes (CVE-2012-2113).
622
6232012-06-12  Frank Warmerdam  <[email protected]>
624
625	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
626
627	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
628
6292012-06-07  Frank Warmerdam  <[email protected]>
630
631	* libtiff/tif_print.c: avoid pretty printing other fields when
632	we don't have the proper amount and type of data or if the field
633	is actually autodefined.
634
6352012-06-05  Frank Warmerdam  <[email protected]>
636
637	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
638	ycbcrsubsampling values result in a runtime error, not just an
639	assertion.
640
641	* tests/custom_dir.c: Add testing of EXIF and custom directory
642	reading and writing.
643
644	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
645	and TIFFCreateEXIFDirectory() functions.
646
647	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
648	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
649	differently.  This is to avoid using special TIFFGetField/TIFFSetField
650	rules for these fields in non-image directories (like EXIF).
651
6522012-06-04  Frank Warmerdam  <[email protected]>
653
654	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
655	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
656	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
657
6582012-06-01  Frank Warmerdam  <[email protected]>
659
660	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
661
662	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
663	http://bugzilla.maptools.org/show_bug.cgi?id=2379
664
665	* libtiff/tif_unix.c: use strerror() to return a more specific error message
666	on failed open.
667	http://bugzilla.maptools.org/show_bug.cgi?id=2341
668
669	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
670	http://bugzilla.maptools.org/show_bug.cgi?id=2386
671
672	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
673	for testing jpeg in tiff image decoding including the "raw" decode interface.
674
6752012-05-31  Frank Warmerdam  <[email protected]>
676
677	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
678	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
679	sampling values.
680
681	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
682
683	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
684	http://bugzilla.maptools.org/show_bug.cgi?id=2398
685
6862012-05-29  Frank Warmerdam  <[email protected]>
687
688	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
689	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
690	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
691	to get/set functions for different tags!
692
693	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
694	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
695
6962012-05-24  Frank Warmerdam  <[email protected]>
697
698	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
699	accumulate" and overwrite the end by one word in at least some cases.
700
7012012-05-23  Frank Warmerdam  <[email protected]>
702
703	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
704
705	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
706
707	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
708	the same image.
709
710	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
711	stripbytecounts or stripoffsets or where loading these fails.
712
713	* libtiff/tif_print.c: be careful about whether min/max values are singular
714	or one per sample.
715
716	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
717	May affect things like ISOSpeedRatings.
718
719	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
720	in some cases.
721
7222012-05-19  Bob Friesenhahn  <[email protected]>
723
724	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
725	example for how to retreive the value of unsupported tags.
726
7272012-03-30  Frank Warmerdam  <[email protected]>
728
729	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
730	care of Tom Lane @ Red Hat.
731
7322012-02-18  Bob Friesenhahn  <[email protected]>
733
734	* libtiff 4.0.1 released.
735
736	* Update automake used to 1.11.3.
737
738	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
739	attribute specification to lessen the risk of accidental macro
740	substitution.  Patch from Vincent Torri.
741
7422012-01-31  Frank Warmerdam  <[email protected]>
743
744	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
745	assumption tag fetching is always successful.
746
747	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
748
7492012-01-22  Bob Friesenhahn  <[email protected]>
750
751	* configure.ac: Add support for using library symbol versioning on
752	ELF systems with the GNU linker.  Support is enabled via
753	--enable-ld-version-script.  Disabled by default for now until
754	there is a decision for how to deploy a libtiff with versioned
755	symbols after libtiff 4.0.0 was already released.
756
7572011-12-22  Bob Friesenhahn  <[email protected]>
758
759	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
760
761	tif_win32.c.  Patch by Edward Lam.
762
763	* configure.ac: Add libtiff private dependency on -llzma for
764	pkg-config.  Patch by Mark Brand.
765	Updated Automake to 1.11.2.
766
7672011-12-21  Bob Friesenhahn  <[email protected]>
768
769	* libtiff 4.0.0 released.
770
7712011-12-08  Frank Warmerdam  <[email protected]>
772
773	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
774	of _TIFFFillStriles() results (#gdal 4372)
775
7762011-12-07  Frank Warmerdam  <[email protected]>
777
778	* libtiff/tif_dirread.c: fixes to deal with invalid files where
779	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
780
781	* libtiff/tif_dirread.c: fix error reporting when there is no
782	tag information struct and name (gdal #4373)
783
7842011-10-22  Bob Friesenhahn  <[email protected]>
785
786	* Update GNU libtool to 2.4.2.
787
788	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
789	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
790	Deroulers.
791
7922011-06-21  Frank Warmerdam  <[email protected]>
793
794	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
795
7962011-05-31  Jim Meyering  <[email protected]>
797
798	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
799	upon failure to allocate "resizeddata".
800	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
801	allocation failure, not before.
802	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
803	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
804	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
805	NULL-deref and possible overflow
806	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
807	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
808	and set of otherwise unused local, data_is_empty.
809	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
810	Diagnose out-of-memory failure and return 0 rather than
811	dereferencing NULL.
812
8132011-05-24  Frank Warmerdam  <[email protected]>
814
815	* libtiff/tif_dirread.c: produce special error message for zero tag
816	directories instead of error out on the malloc(0) failure.
817
8182011-05-16  Frank Warmerdam  <[email protected]>
819
820	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
821	related declarations as they are in active use by libraries
822	such as libgeotiff, and work just fine.  (#2315)
823
8242011-04-20  Frank Warmerdam  <[email protected]>
825
826	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
827	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
828	http://bugzilla.maptools.org/show_bug.cgi?id=2315
829
830	* libtiff/libtiff.def: add some missing (64bit) APIs.
831	http://bugzilla.maptools.org/show_bug.cgi?id=2316
832
8332011-04-09  Bob Friesenhahn  <[email protected]>
834
835	* libtiff 4.0.0beta7 released.
836
8372011-04-09  Bob Friesenhahn  <[email protected]>
838
839	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
840	the run-time target whereas target is used to specify the final
841	output target if the package is a build tool (like a compiler),
842	which libtiff is not.  Resolves libtiff bug 2307 "Use
843	AC_CANONICAL_HOST macro".
844
8452011-04-02  Bob Friesenhahn  <[email protected]>
846
847	* configure.ac: Support configuring TIFF_INT64_FORMAT and
848	TIFF_UINT64_FORMAT appropriately for MinGW32.
849
850	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
851	printf conventions for 64-bit types because it uses the WIN32 CRT.
852
853	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
854	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
855	printf conventions for 64-bit types because it uses the WIN32 CRT.
856
857	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
858	understood by WIN32 CRT.
859
860	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
861
862	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
863	it is much more portable.  Tmpfile is included in ISO/IEC
864	9899:1990 and the WIN32 CRT.
865
8662011-03-26  Frank Warmerdam  <[email protected]>
867
868	* tools/tiffset.c: add -d and -sd switches to allow operation on
869	a particular directory, not just the first (jef).
870
8712011-03-21  Frank Warmerdam  <[email protected]>
872
873	* libtiff/tif_thunder.c: Correct potential buffer overflow with
874	thunder encoded files with wrong bitspersample set.  The libtiff
875	development team would like to thank Marin Barbella and TippingPoint's
876	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
877	CVE-2011-1167).
878	http://bugzilla.maptools.org/show_bug.cgi?id=2300
879
8802011-03-10  Frank Warmerdam  <[email protected]>
881
882	* libtiff/tif_fax3.h: Fix to last change allowing zero length
883	runs at the start of a scanline - needed for legal cases.
884
8852011-03-02  Frank Warmerdam  <[email protected]>
886
887	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
888	a move left.  Without this, a malicious input file can generate an
889	indefinitely large series of runs without a0 ever reaching the right
890	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
891	This is a modified version of a patch proposed by Drew Yao of Apple
892	Product Security.  It adds an unexpected() report, and disallows the
893	equality case, since emitting a run without increasing a0 still allows
894	buffer overrun.
895
8962011-02-23  Frank Warmerdam  <[email protected]>
897
898	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
899
900	* tools/tiff2rgba.c: close source file on error to make leak
901	detection easier.
902
903	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
904
905	http://bugzilla.maptools.org/show_bug.cgi?id=2295
906
9072011-02-22  Frank Warmerdam  <[email protected]>
908
909	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
910	_SUPPORT)
911
9122011-02-18  Frank Warmerdam  <[email protected]>
913
914	* configure.ac, configure: Added support for --enable-chunky-strip-read
915	configure option to enable the experimental feature from a couple
916	months ago for reading big strips in chunks.
917
918	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
919	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
920	Implement optional support for deferring the load of strip/tile
921	offset and size tags for optimized scanning of directories.  Enabled
922	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
923	#define in tif_config.h).
924
9252011-02-11  Frank Warmerdam  <[email protected]>
926
927	* libtiff/tif_print.c: remove unused variable.
928
9292011-02-09  Frank Warmerdam  <[email protected]>
930
931	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
932	with non-console (popup message) builds on win32.
933
934	http://bugzilla.maptools.org/show_bug.cgi?id=2293
935
9362011-01-24  Olivier Paquet  <[email protected]>
937
938	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
939	tif_print.c, tiff.h, tiffiop.h} : Added support for
940	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
941	values for each sample. Presents the min/max of all samples by default for
942	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
943	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
944	http://www.asmail.be/msg0055458208.html
945
9462011-01-06  Frank Warmerdam  <[email protected]>
947
948	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
949	maintained.
950
951	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
952	for CHUNKY_STRIP_READ_SUPPORT.
953
954	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
955	during JPEGPreDecode and JPEGDecode calls.
956	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
957	as compression formats like JPEG keep 16 lines interleaved in a sense
958	and might need to touch	quite a bit of data.
959
960	http://trac.osgeo.org/gdal/ticket/3894
961
9622011-01-03  Lee Howard <[email protected]>
963
964	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
965	caused by commit on 2010-12-14.  Submitted by e-mail from
966	Even Rouault <[email protected]>
967
9682010-12-31  Olivier Paquet  <[email protected]>
969
970	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
971	http://bugzilla.maptools.org/show_bug.cgi?id=2266
972
9732010-12-23  Andrey Kiselev  <[email protected]>
974
975	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
976	compression level parameter (preset) for Deflate and LZMA encoders,
977	e.g "-c lzma:p1" or "-c zip:p9".
978
979	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
980	(preset) in LZMAVSetField().
981
9822010-12-18  Bob Friesenhahn  <[email protected]>
983
984	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
985	Makefile.
986
9872010-12-14  Andrey Kiselev  <[email protected]>
988
989	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
990	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
991	TIFF compression scheme LZMA reserving a new value 34925 for
992	Compression tag. As per
993	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
994
9952010-12-14  Lee Howard <[email protected]>
996
997	* libtiff/tif_dirread.c: tolerate some cases where
998	FIELD_COLORMAP is missing
999	http://bugzilla.maptools.org/show_bug.cgi?id=2189
1000
10012010-12-14  Lee Howard <[email protected]>
1002
1003	* libtiff/tif_read.c: change read_ahead to tmsize_t
1004	http://bugzilla.maptools.org/show_bug.cgi?id=2222
1005
10062010-12-14  Lee Howard <[email protected]>
1007
1008	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
1009	Windows except on Cygwin
1010	http://bugzilla.maptools.org/show_bug.cgi?id=2224
1011
10122010-12-14  Lee Howard <[email protected]>
1013
1014	* tools/gif2tiff.c: fix buffer overrun
1015	http://bugzilla.maptools.org/show_bug.cgi?id=2270
1016
10172010-12-14  Lee Howard <[email protected]>
1018
1019	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
1020	to improve compatibility with various viewers
1021	submitted by e-mail from Dwight Kelly <[email protected]>
1022
10232010-12-13  Lee Howard <[email protected]>
1024
1025	* tools/fax2ps.c: be consistent with page-numbering
1026	http://bugzilla.maptools.org/show_bug.cgi?id=2225
1027
10282010-12-13  Lee Howard <[email protected]>
1029
1030	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
1031	resolves CVE-2010-2595
1032	http://bugzilla.maptools.org/show_bug.cgi?id=2208
1033
10342010-12-13  Lee Howard <[email protected]>
1035
1036	* tools/tiffcrop.c: new release by Richard Nolde
1037	http://bugzilla.maptools.org/show_bug.cgi?id=2004
1038
10392010-12-12  Lee Howard <[email protected]>
1040
1041	* tools/tiff2pdf.c: fix colors for images with RGBA
1042	interleaved data
1043	http://bugzilla.maptools.org/show_bug.cgi?id=2250
1044
10452010-12-12  Lee Howard <[email protected]>
1046
1047	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
1048	http://bugzilla.maptools.org/show_bug.cgi?id=2164
1049
10502010-12-11  Lee Howard <[email protected]>
1051
1052	* tools/tiff2pdf.c: remove invalid duplication for Lab
1053	http://bugzilla.maptools.org/show_bug.cgi?id=2162
1054
10552010-12-11  Lee Howard <[email protected]>
1056
1057	* libtiff/tif_jpeg.c: fix use of clumplines calculation
1058	http://bugzilla.maptools.org/show_bug.cgi?id=2149
1059
10602010-12-11  Lee Howard <[email protected]>
1061
1062	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
1063	http://bugzilla.maptools.org/show_bug.cgi?id=2118
1064
10652010-12-11  Lee Howard <[email protected]>
1066
1067	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
1068	  libtiff/tif_zip.c: fix build errors for VC6
1069	http://bugzilla.maptools.org/show_bug.cgi?id=2105
1070
10712010-12-11  Lee Howard <[email protected]>
1072
1073	* libtiff/tif_stream.cxx: warnings cleanup
1074	http://bugzilla.maptools.org/show_bug.cgi?id=2091
1075	* libtiff/tif_dirread.c: warnings cleanup
1076	http://bugzilla.maptools.org/show_bug.cgi?id=2092
1077
10782010-12-11  Lee Howard <[email protected]>
1079
1080	* tools/tiff2pdf.c: add fill-page option
1081	http://bugzilla.maptools.org/show_bug.cgi?id=2051
1082
10832010-12-11  Lee Howard <[email protected]>
1084
1085	* libtiff/tif_dirread.c: modify warnings
1086	http://bugzilla.maptools.org/show_bug.cgi?id=2016
1087
10882010-12-11  Lee Howard <[email protected]>
1089
1090	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
1091        http://bugzilla.maptools.org/show_bug.cgi?id=1999
1092
10932010-12-11  Lee Howard <[email protected]>
1094
1095	* tools/tiffinfoce.c: strip byte counts are uint64* now
1096
10972010-12-11  Lee Howard <[email protected]>
1098
1099        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
1100        or missing byte-count tag
1101        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
1102        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
1103
11042010-12-08  Lee Howard <[email protected]>
1105
1106        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
1107        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
1108
11092010-12-06  Lee Howard <[email protected]>
1110
1111        * libtiff/tif_open.c: Fix mode check before opening a file.
1112        http://bugzilla.maptools.org/show_bug.cgi?id=1906
1113
11142010-11-27  Bob Friesenhahn  <[email protected]>
1115
1116	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
1117	Patch by Vincent Torri.
1118
11192010-10-21  Frank Warmerdam  <[email protected]>
1120
1121	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
1122
1123	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
1124
1125	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
1126
11272010-09-25  Lee Howard <[email protected]>
1128
1129	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
1130	with additional command line options for Document Title,
1131	Document Creator, and Page Orientation
1132
11332010-07-13  Bob Friesenhahn  <[email protected]>
1134
1135	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
1136	potentially unterminated buffer due to using an exceptionally long
1137	file name.
1138
11392010-07-08  Andrey Kiselev  <[email protected]>
1140
1141	* tools/tiff2pdf.c: Fixed ID buffer filling in
1142	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
1143
11442010-07-07  Andrey Kiselev  <[email protected]>
1145
1146	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
1147	to expected value as the warning message suggests. As per bug
1148	http://bugzilla.maptools.org/show_bug.cgi?id=1963
1149
11502010-07-06  Andrey Kiselev  <[email protected]>
1151
1152	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
1153	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
1154	which should be set by value.
1155
1156	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
1157	and _TIFFFieldWithName() if the tag is not found in the tag table.
1158	This should be normal situation and returned NULL value should be
1159	properly handled by the caller.
1160
11612010-07-02  Andrey Kiselev  <[email protected]>
1162
1163	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
1164	integer type conversions. As per bug
1165	http://bugzilla.maptools.org/show_bug.cgi?id=2207
1166
1167	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
1168	WhitePoint tag as per bug
1169	http://bugzilla.maptools.org/show_bug.cgi?id=2042
1170
1171	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1172	working with YCbCr image in PickContigCase(). As per bug
1173	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1174
1175	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1176	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1177	we don't need any post-processing. That helps to reset the hook if we
1178	previously set this field to some other value and the hook was
1179	initialized accordingly. As per bug
1180	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1181
11822010-07-01  Andrey Kiselev  <[email protected]>
1183
1184	* tools/tiffgt.c: Properly check the raster buffer allocations for
1185	integer overflows. As per bug
1186	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1187
1188	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1189	upstream.
1190
1191	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1192	multiply_32() and multiply_64() functions into tif_aux.c file and
1193	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1194
11952010-06-30  Andrey Kiselev  <[email protected]>
1196
1197	* tools/tiff2pdf.c: Better generation of ID field in
1198	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1199
1200	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1201	converting JPEG encoded tiles.
1202
1203	* tools/tiff2pdf.c: Better handling of string fields, use static
1204	string buffers instead of dynamically allocated, use strncpy() instead
1205	of strcpy(), control the string lengths.
1206
12072010-06-25  Andrey Kiselev  <[email protected]>
1208
1209	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1210	referencing to uninitialized memory in some cases (e.g. when tile size
1211	set bigger than the image size).
1212
12132010-06-15  Bob Friesenhahn  <[email protected]>
1214
1215	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1216	subsampled data since tiffcrop currently doesn't support it.  Fix
1217	JPEG support.
1218
12192010-06-13  Frank Warmerdam  <[email protected]>
1220
1221	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1222
1223	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1224	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1225	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1226	size is larger.  Also, there are a bunch of places that try to
1227	memset() a malloc'd buffer before checking for malloc failure, which
1228	would result in core dump if there actually were a failure. (#2211)
1229
12302010-06-11  Bob Friesenhahn  <[email protected]>
1231
1232	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1233	avoid compiler warnings if parameter types are not sign
1234	consistent.
1235
1236	* libtiff 4.0.0alpha6 released.
1237
1238	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1239	European page size dimensions.  Added an option to allow the user
1240	to specify a custom page size on the command line.  Fix the case
1241	where a page size specified with a fractional part was being
1242	coerced to an integer by retyping the variables that define the
1243	paper size.
1244
1245	* html/index.html: Update for the 3.9.3 release.
1246
1247	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1248	YCbCr subsampled data since tiffcp currently doesn't support it.
1249	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1250
1251	* Update libtool to version 2.2.10.
1252
12532010-06-10  Bob Friesenhahn  <[email protected]>
1254
1255	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1256	multiplier is zero.
1257
12582010-06-09  Bob Friesenhahn  <[email protected]>
1259
1260	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1261	CVE-2010-1411 was not complete.
1262
1263	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1264	multiply two integers.  Returns zero if there is an integer
1265	overflow.
1266
1267	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1268	is reported when reading the input file.
1269
12702010-06-08  Bob Friesenhahn  <[email protected]>
1271
1272	* Update libtool to version 2.2.8.
1273
1274	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1275	buffer due to integer overflow in TIFFroundup() and several other
1276	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1277	fixes CVE-2010-1411.
1278
1279	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1280	result in an integer overflow. This causes TIFFroundup() to also
1281	return zero if there would be an integer overflow.
1282
1283	* contrib: Add an emacs formatting mode footer to all source files
1284	so that emacs can be effectively used.
1285
12862010-06-03  Oliver Chen Feng <[email protected]>
1287
1288	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1289	file PAGENUMBER value in sequence for users who care the page
1290	sequence, this will also prevent tiff2pdf from creating pdf file from
1291	the merged tiff file with wrong page sequence.
1292
12932010-05-08  Olivier Paquet  <[email protected]>
1294
1295	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1296	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1297	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1298	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1299	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1300
13012010-05-07  Frank Warmerdam  <[email protected]>
1302
1303	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1304	JPEGPreEncode(), not just when we want to output local tables.
1305	Otherwise the quality used during compression may not be right and
1306	might not match the tables in the tables tag.   This bug only occurs
1307	when seeking between directories in the midst of writing blocks.
1308	http://trac.osgeo.org/gdal/ticket/3539
1309
13102010-05-06  Andrey Kiselev  <[email protected]>
1311
1312	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1313	Regenerated from the source.
1314
13152010-05-05  Olivier Paquet  <[email protected]>
1316
1317	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1318	had stopped working. Also made it always print 6 floats instead of
1319	2*SamplesPerPixel.
1320	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1321	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1322	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1323	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1324
13252010-05-05  Frank Warmerdam  <[email protected]>
1326
1327	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1328	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1329
13302010-04-21  Frank Warmerdam  <[email protected]>
1331
1332	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1333	JPEGSetupEncode() is called if the tables already seem to be
1334	established.  This prevents spurious updates and rewriting of
1335	directories with jpegtables when doing updates to existing images.
1336	http://trac.osgeo.org/gdal/ticket/3539
1337
13382010-04-20  Olivier Paquet  <[email protected]>
1339
1340	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1341	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1342	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1343	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1344	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1345
13462010-04-10  Bob Friesenhahn  <[email protected]>
1347
1348	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
1349	when the tag count value is zero.  Error handling is still a
1350	regression since in 3.9.2, empty tags are skipped (with a warning)
1351	rather than returning a hard error and refusing to read the file.
1352
1353	* tools/ppm2tiff.c (main): While case for parsing comment line
1354	requires extra parenthesis to work as expected.  Reported by
1355	Thomas Sinclair.
1356
13572010-04-02  Frank Warmerdam  <[email protected]>
1358
1359	* libtiff/tif_read.c (primarily): Add support for
1360	CHUNKY_STRIP_READ_SUPPORT where large strips are
1361	read in chunks for applications using TIFFReadScanline().
1362	This is intended to make it more practical work with very
1363	large compressed one-strip files.   Feature is off by default.
1364	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
1365	http://trac.osgeo.org/gdal/ticket/3514
1366
13672010-03-31  Frank Warmerdam  <[email protected]>
1368
1369	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
1370	directories so previously placed directories will be migrated to
1371	the end of file if needed.
1372
13732010-03-30  Frank Warmerdam  <[email protected]>
1374
1375	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
1376	to support operating on strips/tiles of more than 256MB.
1377	http://trac.osgeo.org/gdal/ticket/3512
1378
13792010-03-10  Bob Friesenhahn  <[email protected]>
1380
1381	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
1382	that it is clearly a memory allocation error message, and also
1383	includes the size of the allocation request.
1384
13852010-02-22  Lee Howard  <[email protected]>
1386
1387	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
1388	the JPEG TIFF as is is not required in order to prevent it from
1389	being unused and filled with invalid data.  (Leave it to be
1390	generated by later activity.)
1391	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1392	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
1393	data rather than skipping them.  This fixes the ability to view in
1394	Acrobat Reader, Evince, and Ghostscript.
1395	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1396	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
1397	strips.
1398	http://bugzilla.maptools.org/show_bug.cgi?id=2029
1399
14002009-12-03  Frank Warmerdam  <[email protected]>
1401
1402	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
1403	Made so that when working with downsampled images a stub function
1404	reporting an error is used for tif_decoderow.  We cannot meaningfully
1405	support reading scanlines in this situation.  (#1936)
1406
1407	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
1408	resetting of the upsampling values (gdal:#3259).
1409	http://bugzilla.maptools.org/show_bug.cgi?id=1936
1410
14112009-11-30  Frank Warmerdam  <[email protected]>
1412
1413	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
1414	tools/ras2tiff.c: Fix resource leaks on error.
1415	http://bugzilla.maptools.org/show_bug.cgi?id=2121
1416
1417	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
1418	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
1419	of as a custom(generic) field to avoid a potential reentrancy problem.
1420	http://bugzilla.maptools.org/show_bug.cgi?id=2125
1421
1422	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
1423	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
1424	const, and display_sRGB static and const.
1425	http://bugzilla.maptools.org/show_bug.cgi?id=2124
1426
14272009-11-04  Bob Friesenhahn  <[email protected]>
1428
1429	* libtiff 4.0.0alpha5 released.
1430
14312009-11-03  Bob Friesenhahn  <[email protected]>
1432
1433	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
1434	version has undergone substantial testing with arbitrary sample
1435	bit depths.  Also eliminates GCC compilation warnings.
1436
14372009-11-02  Bob Friesenhahn  <[email protected]>
1438
1439	* port/libport.h: Add extern declarations for getopt standard
1440	globals.
1441
14422009-10-31  Bob Friesenhahn  <[email protected]>
1443
1444	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
1445	noticed in 64-bit build of libtiff with Visual Studio 2005.
1446	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
1447	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
1448
1449	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
1450	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
1451	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
1452	http://bugzilla.maptools.org/show_bug.cgi?id=2068
1453
14542009-10-29  Bob Friesenhahn  <[email protected]>
1455
1456	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
1457	pointer" warnings.
1458
14592009-10-28  Bob Friesenhahn  <[email protected]>
1460
1461	* html/tools.html: Add manual page links, and a summary
1462	description of tiffcrop.
1463
14642009-10-07  Bob Friesenhahn  <[email protected]>
1465
1466	* configure.ac: x86_64 should use the same fill order as i386.
1467
14682009-09-24  Bob Friesenhahn  <[email protected]>
1469
1470	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
1471	Nolde.  Major updates to add significant functionality for reading
1472	and writing tile based images with bit depths not a multiple of 8
1473	which cannot be handled by tiffcp.
1474
14752009-09-03  Bob Friesenhahn  <[email protected]>
1476
1477	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
1478	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
1479	"Bug 2090 - OJPEG crash with libjpeg v7".
1480	http://bugzilla.maptools.org/show_bug.cgi?id=2090
1481
14822009-09-03  Frank Warmerdam  <[email protected]>
1483
1484	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
1485	interface when stoponerror is set.
1486	http://bugzilla.maptools.org/show_bug.cgi?id=2071
1487
14882009-08-30  Bob Friesenhahn  <[email protected]>
1489
1490	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
1491	fix build with gcc when using the "-Wformat
1492	-Werror=format-security" flags.
1493
14942009-08-29  Bob Friesenhahn  <[email protected]>
1495
1496	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
1497	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
1498	utilities tests.
1499
15002009-08-28  Bob Friesenhahn  <[email protected]>
1501
1502	* tools/tiffinfo.c: tiffinfo should return error status to the
1503	caller.  Register a private error callback to accomplish that.
1504
1505	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
1506	PNM formats so that we will be able to test more of the tools.
1507	While adding these test images I notice that bmp2tiff and gif2tiff
1508	only support ancient versions of their respective formats.
1509
15102009-08-27  Bob Friesenhahn  <[email protected]>
1511
1512	* libtiff 4.0.0alpha4 released.
1513
1514	* HOWTO-RELEASE: Improved release instructions.
1515
15162009-08-24  Bob Friesenhahn  <[email protected]>
1517
1518	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
1519	fixes for "Bug 2023 - nroff errors in manual pages".
1520	http://bugzilla.maptools.org/show_bug.cgi?id=2023
1521
1522	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
1523	CVE-2009-2347 libtiff: integer overflows in various inter-color
1524	space conversion tools".
1525	http://bugzilla.maptools.org/show_bug.cgi?id=2079
1526
1527	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
1528	Berkenbilt for "Bug 2024 - possible null pointer dereference with
1529	one-line fix".
1530	http://bugzilla.maptools.org/show_bug.cgi?id=2024
1531
1532	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
1533	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
1534	segfault after setting tdir_tag = IGNORE".
1535	http://bugzilla.maptools.org/show_bug.cgi?id=1895
1536
15372009-08-23  Bob Friesenhahn  <[email protected]>
1538
1539	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
1540	tiffcrop.sh into a collection of many specific tests.  Re-wrote
1541	all of the existing tests to be based on some simple shell
1542	functions.  Make distcheck works again.
1543
1544	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
1545	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
1546	tests under valgrind.
1547
15482009-08-21  Bob Friesenhahn  <[email protected]>
1549
1550	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
1551	build.
1552
1553	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
1554	actually activated since it needed to be enabled in this
1555	Makefile.am.  Also activated parallel-tests mode since it offers
1556	useful features such as per-test .log files and a summary test
1557	report .log file.
1558
15592009-08-20  Bob Friesenhahn  <[email protected]>
1560
1561	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
1562	libtool 2.2.6.  Enabled support for silent build rules
1563	(--enable-silent-rules or 'make V=0') and colorized tests.
1564
1565	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
1566
15672009-06-30  Frank Warmerdam  <[email protected]>
1568
1569	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
1570
1571	* tools/tiffcp.c: add -c sgilog support.
1572
1573	* libtiff/tif_luv.c: correct return codes from encoderow to be
1574	1 on success instead of zero.
1575	http://bugzilla.maptools.org/show_bug.cgi?id=2069
1576
1577	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
1578	#1085 for a better underflow fix that errors properly.
1579	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1580	http://bugzilla.maptools.org/show_bug.cgi?id=1985
1581
15822009-06-26  Frank Warmerdam  <[email protected]>
1583
1584	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
1585	fails on oddly sized 12bit jpeg compressed ycbcr images.
1586
15872009-06-22  Frank Warmerdam  <[email protected]>
1588
1589	* libtiff/tif_lzw.c: Fix buffer underflow bug.
1590	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1591
15922009-06-21  Frank Warmerdam  <[email protected]>
1593
1594	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
1595	for dual mode 8/12 bit jpeg support.
1596
15972009-06-03  Frank Warmerdam  <[email protected]>
1598
1599	* libtiff/tif_write.c: do not override the planar configuration to be
1600	contig for one sample files if planar configuration is already set.
1601	http://bugzilla.maptools.org/show_bug.cgi?id=2057
1602
16032009-06-02  Frank Warmerdam  <[email protected]>
1604
1605	* libtiff/libtiff.def: Add TIFFUnsetField.
1606
16072009-05-03  Frank Warmerdam  <[email protected]>
1608
1609	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
1610	error reports to use "%s" as format string.
1611	http://trac.osgeo.org/gdal/ticket/2976
1612
16132009-03-12  Frank Warmerdam  <[email protected]>
1614
1615	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
1616	for some codecs (#2020).
1617
16182009-02-12  Frank Warmerdam  <[email protected]>
1619
1620	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
1621	http://bugzilla.maptools.org/show_bug.cgi?id=2005
1622
16232009-02-09  Frank Warmerdam  <[email protected]>
1624
1625	* libtiff/tif_dirread.c: Improve allocation safety when allocated
1626	buffer for large tags.  (#1998)  Related to (#1993)
1627
16282009-02-06  Frank Warmerdam  <[email protected]>
1629
1630	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
1631	test suite should pass.
1632
16332009-02-05  Frank Warmerdam  <[email protected]>
1634
1635	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
1636	but at the 2GB boundary to avoid overflow on 32bit systems.
1637	http://bugzilla.maptools.org/show_bug.cgi?id=1993
1638
1639	* libtiff/tif_dirread.c: Remove some assertions that blow due to
1640	corrupt files rather than in response to library internal
1641	inconsistencies.
1642	http://bugzilla.maptools.org/show_bug.cgi?id=1995
1643	http://bugzilla.maptools.org/show_bug.cgi?id=1991
1644
1645	* libtiff/tif_dirread.c: Fixed testing for failed result from
1646	TIFFReadDirectoryFindFieldInfo().
1647	http://bugzilla.maptools.org/show_bug.cgi?id=1992
1648
16492009-01-23  Frank Warmerdam  <[email protected]>
1650
1651	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
1652	http://bugzilla.maptools.org/show_bug.cgi?id=1911
1653
1654	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
1655
1656	http://bugzilla.maptools.org/show_bug.cgi?id=1924
1657
1658	* tools/tiffcrop.c: initialize xres/yres values.
1659
1660	* test/*.sh - default ${srcdir} to local directory.
1661
1662	* test/common.sh - start verbose mode after common settings.
1663
1664	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
1665	avoid type mismatches on different platforms.
1666	http://bugzilla.maptools.org/show_bug.cgi?id=1889
1667
16682009-01-22  Frank Warmerdam  <[email protected]>
1669
1670	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
1671	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
1672
1673	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
1674	defined, primarily to reduce prototype warnings on windows.
1675
1676	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
1677	about unused parameters, and uninitialized variables.
1678
16792009-01-21  Bob Friesenhahn  <[email protected]>
1680
1681	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
1682	order to trace full execution detail while executing the test suite.
1683
16842009-01-20  Frank Warmerdam  <[email protected]>
1685
1686	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
1687
16882009-01-20  Bob Friesenhahn  <[email protected]>
1689
1690	* test/Makefile.am (CLEANFILES): Make sure that test output files
1691	are removed by 'make clean'
1692
1693	* Update autotools for 4.0.0 beta3
1694
1695	* 4.0.0 beta3 produced.
1696
16972009-01-12  Bob Friesenhahn  <[email protected]>
1698
1699	* test/tiffcrop.sh: New test script for tiffcrop from Richard
1700	Nolde.
1701
1702	* tools/tiff2ps.c: Remove spurious message to stderr.
1703
17042009-01-11  Bob Friesenhahn  <[email protected]>
1705
1706	* tools/tiff2ps.c: Incorporated significant functionality update
1707	from Richard Nolde.  In particular, support for rotating the image
1708	by 90, 180, 270, and 'auto' has been added.
1709
1710	* man/tiffcrop.1: Incorporated documentation updates from Richard
1711	Nolde.
1712
1713	* tools/tiffcrop.c: Incorporated significant functionality update
1714	from Richard Nolde.
1715
17162008-12-31  Bob Friesenhahn  <[email protected]>
1717
1718	* libtiff/tiffio.h: GCC will now validate format specifications
1719	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
1720	TIFFWarningExt() in order to reveal bugs.
1721
1722	* Many fixes throughout to work better as a 64-bit build.
1723
17242008-12-30  Bob Friesenhahn  <[email protected]>
1725
1726	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
1727	tags now require 64-bit parameter rather than 32-bit.
1728
1729	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
1730	64-bit values.
1731
1732	* tools/thumbnail.c: Eliminate crash noticed while running test
1733	suite.
1734
17352008-12-29  Bob Friesenhahn  <[email protected]>
1736
1737	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
1738	Initialize stack variables to avoid compiler warning.
1739
1740	* tools/tiffinfoce.c (main): Use toff_t for offset type when
1741	retrieving offset of EXIF IFD.
1742
1743	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
1744	TIFFClientOpen() callback and other external function definitions.
1745
1746	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
1747	type now.  Fixes crash when dumping files containing an EXIF IFD.
1748
1749	* m4/libtool.m4: Update to libtool 2.2.6.
1750
17512008-12-21  Frank Warmerdam  <[email protected]>
1752
1753	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
1754
1755	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
1756	strip for the last partial strip in a jpeg compressed file.
1757	http://bugzilla.maptools.org/show_bug.cgi?id=1981
1758
17592008-10-29  Frank Warmerdam  <[email protected]>
1760
1761	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
1762	we take the shortcut to only update the strip/tile offsets in place.
1763	http://trac.osgeo.org/gdal/ticket/2621
1764
17652008-10-21  Andrey Kiselev  <[email protected]>
1766
1767	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
1768	the older versions retained).
1769
17702008-10-09  Frank Warmerdam  <[email protected]>
1771
1772	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
1773	IPP enabled version of libjpeg from Intel.
1774	http://bugzilla.maptools.org/show_bug.cgi?id=1951
1775
17762008-09-05  Andrey Kiselev  <[email protected]>
1777
1778	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
1779	Required for libtiff 4.0.
1780
1781	* tools/tiffsplit.c: Use dynamically allocated array instead of static
1782	when constructing output file names.
1783
17842008-09-03  Andrey Kiselev  <[email protected]>
1785
1786	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
1787	doing the filename/path construction.
1788
1789	* tools/tiff2pdf.c: More appropriate format string in
1790	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
1791
1792	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
1793
1794	http://bugzilla.maptools.org/show_bug.cgi?id=1929
1795
1796	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
1797	CVE-2008-2327 security issue.
1798
17992008-09-01  Frank Warmerdam  <[email protected]>
1800
1801	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
1802
1803	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
1804	depending on whether the file is bigtiff or classic tiff.
1805	http://bugzilla.maptools.org/show_bug.cgi?id=1917
1806
18072008-08-12  Edward Lam  <[email protected]>
1808
1809	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
1810	consistent (__int64) casting when testing if _lseeki64 has
1811	successfully seeked as requested.  This is necessary for large
1812	file support to work since off_t is only 32-bit.
1813
18142008-07-29  Frank Warmerdam  <[email protected]>
1815
1816	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
1817	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
1818	with control logic to return runtime errors (c/o Even Rouault) (#1927).
1819
18202008-06-17  Frank Warmerdam  <[email protected]>
1821
1822	* tools/tiffcrop.c: Fix some portability problems.
1823
1824	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
1825	used in tif_jpeg.c.
1826
1827	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
1828	as TIFFOpen().
1829
18302008-06-01  Frank Warmerdam  <[email protected]>
1831
1832	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
1833	like Sparc/Solaris.
1834	http://bugzilla.maptools.org/show_bug.cgi?id=1892
1835
18362008-05-27  Frank Warmerdam  <[email protected]>
1837
1838	* libtiff.def: Add TIFFFindField
1839	http://bugzilla.maptools.org/show_bug.cgi?id=1891
1840
18412008-05-26  Frank Warmerdam  <[email protected]>
1842
1843	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
1844
1845	* li2008-04-15  Andrey Kiselev  <[email protected]>
1846
1847btiff/tif_win32.c: Replace custom Win32 memory api with generic
1848	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
1849	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
1850
1851	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
1852	in windows version (care of Edward Lam).
1853
18542008-05-24  Frank Warmerdam  <[email protected]>
1855
1856	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
1857	compression codec codes.
1858
1859	* tif_dirwrite.c: fix potential memory leak.
1860
1861	* tif_dirread.c: Fix unchecked malloc result.
1862
18632008-05-24  Bob Friesenhahn  <[email protected]>
1864
1865	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
1866	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
1867	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
1868	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
1869	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
1870	suggestions from Lee Howard posted to the tiff list on 13 Sep
1871	2007.
1872
18732008-05-23  Frank Warmerdam  <[email protected]>
1874
1875	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
1876	possible runtime problem reported by coverity.
1877
1878	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
1879
1880	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
1881	http://bugzilla.maptools.org/show_bug.cgi?id=1888
1882
1883	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
1884
1885	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
1886
1887	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
1888	Cleanup scanline allocation to avoid coverity warning.
1889
1890	* tools/thumbnail.c: Check for TIFFOpen() failure.
1891
18922008-05-18  Frank Warmerdam  <[email protected]>
1893
1894	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
1895	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
1896	why this is needed.
1897
18982008-05-09  Bob Friesenhahn  <[email protected]>
1899
1900	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
1901	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
1902
19032008-04-15  Andrey Kiselev  <[email protected]>
1904
1905	* test/: Test suite updated. Everything is passed now.
1906
1907	* libtiff/tif_dirinfo.c: Fixed description of the
1908	TIFFTAG_NUMBEROFINKS tag.
1909
19102008-04-14  Andrey Kiselev  <[email protected]>
1911
1912	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
1913	Get rid of some of "dereferencing type-punned" warnings by converting
1914	tdir_offset field of TIFFDirEntry structure into union.
1915
19162008-04-10  Andrey Kiselev  <[email protected]>
1917
1918	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
1919	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
1920	from the public interface. Type of its 'count' parameter changed
1921	from uint32 to tmsize_t.
1922
1923	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
1924	of the tiff structure have the size_t type instead of uint32.
1925
19262008-04-09  Andrey Kiselev  <[email protected]>
1927
1928	* tools/tiffdump.c: Added support for MSVS 6.0.
1929
1930	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
1931	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
1932	point values on MSVS 6.0 platform.
1933
19342008-03-14  Frank Warmerdam  <[email protected]>
1935
1936	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
1937	TIFFReadDirEntryArray() since they are interfering with seemingly
1938	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
1939
19402008-02-09  Joris Van Damme  <[email protected]>
1941
1942	* tif_dirread.c: Added handling for the case of number of values for
1943	PageNumber tag different from 2 (previously resulted in an assert
1944	indicating lack of handling and was forgotten about)
1945
19462008-02-01  Frank Warmerdam  <[email protected]>
1947
1948	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
1949	the actual jpeg data stream if the first strip/tile has zero size.
1950	This is the case when GDAL creates a new file with zero sizes, closes
1951	and reopens it.
1952
19532008-01-07  Frank Warmerdam  <[email protected]>
1954
1955	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
1956
19572008-01-01  Frank Warmerdam  <[email protected]>
1958
1959	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
1960
1961	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
1962	targets.
1963
1964	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
1965	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
1966	(x64).
1967
1968	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
1969	and TIFFFieldWithName() now return TIFFField pointers instead of
1970	TIFFFieldInfo pointers.
1971
1972	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
1973	exist. This makes it compile again on Windows
1974
1975	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
1976	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
1977
1978	* test/rewrite_tag.c: New test for TIFFRewriteField().
1979
19802007-12-31  Frank Warmerdam  <[email protected]>
1981
1982	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
1983	rewrites one field "on disk" updating an existing directory
1984	entry.  Lots of limitations still...
1985
1986	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
1987	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
1988	the strip offset/size values are dirty but nothing else about the
1989	directory is dirty.  In flush handle "just stripmaps dirty" as a
1990	special case that just rewrites these values without otherwise
1991	modifying the directory on disk using TIFFRewriteField().
1992
1993	We also modify logic so that in update mode the directory is not
1994	marked dirty on read, but only when something is changed.  This
1995	means we need to keep track of updates to the stripmap stuff in
1996	TIFFAppendToStrip().
1997
19982007-12-10  Frank Warmerdam  <[email protected]>
1999
2000	* tif_jpeg.c: Improve ability to switch between encoding and decoding
2001	in the jpeg code (gdal bug #2033).
2002
20032007-11-23  Frank Warmerdam  <[email protected]>
2004
2005	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
2006	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
2007	rawcp/rawcc buffer are for writing and thus may require flushing.
2008	Necessary to distinguish whether they need to be written to disk when
2009	in mixed read/write mode and doing a mixture of writing followed by
2010	reading.  http://trac.osgeo.org/gdal/ticket/1758
2011
20122007-11-23  Andrey Kiselev  <[email protected]>
2013
2014	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
2015	from Alexey Chupahin.
2016
20172007-11-02  Frank Warmerdam  <[email protected]>
2018
2019	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
2020	establishing if an existing tile can be rewritten to the same location
2021	by comparing the current size to all the other blocks in the same
2022	directory.  This is dangerous in many situations and can easily
2023	corrupt a file.  (observed in esoteric GDAL situation that's hard to
2024	document).  This change involves leaving the stripbytecount[] values
2025	unaltered till TIFFAppendToStrip().  Now we only write a block back
2026	to the same location it used to be at if the new data is the same
2027	size or smaller - otherwise we move it to the end of file.
2028
2029	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
2030	data when writing the directory just because we have BEENWRITING at
2031	some point in the past.  This was causing odd junk to be written out
2032	in a tile of data when a single tile had an interleaving of reading
2033	and writing with reading last.  (highlighted by gdal
2034	autotest/gcore/tif_write.py test 7.
2035
2036	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
2037	modifying callers buffer.
2038	http://trac.osgeo.org/gdal/ticket/1965
2039
2040	* tif_predict.c/h: more fixes related to last item, keeping a
2041	distinct pfunc for encode and decode cases as these were getting
2042	mixed up sometimes.
2043	http://trac.osgeo.org/gdal/ticket/1948
2044
20452007-11-01  Frank Warmerdam  <[email protected]>
2046
2047	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
2048	predictor based encoding and decoding works in read-write update
2049	mode properly.
2050	http://trac.osgeo.org/gdal/ticket/1948
2051
20522007-10-24  Joris Van Damme  <[email protected]>
2053
2054	* tif_dirread.c: Fixed problem with bogus file triggering
2055	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
2056	ChopUpSingleUncompressedStrip
2057
20582007-10-22  Joris Van Damme  <[email protected]>
2059
2060	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
2061	at best, access violation at worst, when subsampled JPEG compressed imagery
2062	is decoded without the JPEG_COLORMODE feature
2063
20642007-10-11  Frank Warmerdam  <[email protected]>
2065
2066	* html/index.html: Update "people responsible" section.
2067
20682007-10-05  Frank Warmerdam  <[email protected]>
2069
2070	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
2071	as reported on the mailing list.
2072
20732007-10-01  Joris Van Damme  <[email protected]>
2074
2075	* changed some more incorrect %lud printf flags to %lu
2076
20772007-09-29  Joris Van Damme  <[email protected]>
2078
2079	* tif_dirread.c: Strip chopping interfered badly with uncompressed
2080	subsampled images because it tried to divide subsampled rowblocks,
2081	leading to all sorts of errors throughout the library for these
2082	images. Fixed by making strip chopping divide in row counts that
2083	are a multiple of vertical subsampling value.
2084
20852007-09-28  Joris Van Damme  <[email protected]>
2086
2087	* tif_dirread.c: Logical cast working around compiler warning
2088
2089	* tif_read.c: Correction of some error flags and parameter lists
2090
20912007-09-27  Joris Van Damme  <[email protected]>
2092
2093	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
2094	when dealing with large bitspersample values, shutting up purification
2095	tools that warn about truncation, though it remains incorrect and
2096	indicates a conceptual problem there.
2097
2098	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
2099	of first IFD) to proper place because it badly interfered with memory
2100	mapping, resulting in mapping flag even with dummy mapping functions
2101	that returned 0 whilst at the same time the mapping tif_size wasn't
2102	set, thus resulting in continuous incorrect beyond-eof errors.
2103
21042007-09-24  Joris Van Damme  <[email protected]>
2105
2106	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
2107	inconsistent use of const in tiffFields and exifFields definition
2108
21092007-09-20  Frank Warmerdam  <[email protected]>
2110
2111	* tif_dirwrite.c: Always write tile/strip offsets and sizes
2112	using LONG8 type when output format is BigTIFF.  The
2113	TIFFWriteDirectoryTagLongLong8Array() function was restructured
2114	accordingly.
2115
2116	* tif_dirread.c: Improvements to error reporting text in
2117	TIFFFetchDirectory().
2118
21192007-09-19  Bob Friesenhahn  <[email protected]>
2120
2121	* test/images: Added a small collection of test images for use by
2122	test programs and scripts.
2123	* test/tiffinfo.sh: A trivial example test script.
2124	* test/common.sh: Added small script for setting the environment
2125	used by script-based tests.
2126
21272007-08-24  Frank Warmerdam  <[email protected]>
2128
2129	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
2130	zero when writing directory contents to preserve the ability to
2131	rewrite directories in place, even in the middle of a directory
2132	chain.
2133
2134	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
2135	definitions that are missing.  Existing definitions are silently
2136	ignored.
2137
2138	* tif_dirread.c: Add runtime error for fields for which no definition
2139	is found (in addition to an assert for developers) in
2140	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
2141	prudent.
2142
21432007-08-10  Joris Van Damme  <[email protected]>
2144
2145	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
2146	from _TIFFRGBAImage structure to revert unwanted ABI change.
2147
21482007-08-10  Joris Van Damme  <[email protected]>
2149
2150	* libtiff/tif_win32.c: use SetFilePointer instead of
2151	SetFilePointerEx, as per bug
2152
2153	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
2154
21552007-07-19  Andrey Kiselev  <[email protected]>
2156
2157	* libtiff/tif_stream.cxx: Put all callback functions declarations
2158	inside extern "C" block.
2159
2160	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
2161	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
2162	formatter instead of "%lld" with MSVC compiler.
2163
2164	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
2165	_TIFFUInt64ToDouble() functions.
2166
21672007-07-18  Andrey Kiselev  <[email protected]>
2168
2169	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
2170	integer constants.
2171
2172	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2173	remove tif_config.h/tiffconf.h during cleaning. As per bug
2174
2175	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2176
2177	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2178
2179	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2180
21812007-07-13  Andrey Kiselev  <[email protected]>
2182
2183	* libtiff 4.0.0alpha released.
2184
21852007-07-12  Andrey Kiselev  <[email protected]>
2186
2187	* tools/tiff2pdf.c: Added missed extern optind as per bug
2188
2189	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2190
2191	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2192	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2193	extending scheme completed.
2194
21952007-07-11  Bob Friesenhahn  <[email protected]>
2196
2197	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2198	use standard C++ library size types and attempt to detect overflow
2199	cases.
2200
22012007-07-08  Andrey Kiselev  <[email protected]>
2202
2203	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2204	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2205	tag extending scheme. Use the new scheme everywhere.
2206
2207	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2208	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2209	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2210	TIFFFIeldInfo structure replaced with TIFFField structure.
2211	TIFFFieldInfo retained for the backward compatibility.
2212
22132007-07-05  Bob Friesenhahn  <[email protected]>
2214
2215	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2216	defined.
2217
22182007-07-04  Andrey Kiselev  <[email protected]>
2219
2220	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2221	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2222	removed.
2223
2224	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2225	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2226	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2227	These tags are not codec-specific and relate to image content, so
2228	process them as other normal tags.
2229
2230	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2231	public tiffio.h to private tif_dir.h.
2232
2233	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2234	outdated.
2235
22362007-07-03  Andrey Kiselev  <[email protected]>
2237
2238	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2239	tif_win3.c}: Obsoleted portability stuff removed.
2240
2241	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2242
2243	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2244
2245	Patch from William Bader.
2246
2247	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2248	significant upgrade of the whole utility as per bug
2249
2250	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2251
2252	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2253	PDF file using TIFFClientOpen() machinery as it is implemented
2254	by Leon Bottou.
2255
22562007-06-26  Bob Friesenhahn  <[email protected]>
2257
2258	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2259	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2260	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2261	allow returning -1 for errors.
2262	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2263
22642007-06-25  Bob Friesenhahn  <[email protected]>
2265
2266	* port/strtoull.c: New porting function in case strtoull() is not
2267	available on the target system.
2268	* configure.ac: Add configure support for determining sized types
2269	in a portable way and performing necessary substitutions in
2270	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2271	definitions.
2272
22732007-04-27  Andrey Kiselev  <[email protected]>
2274
2275	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2276
2277	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2278
22792007-04-07  Andrey Kiselev  <[email protected]>
2280
2281	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2282	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2283	tif_predict.c, tif_zip.c}: Finally fix bug
2284
2285	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2286
2287	by introducing _TIFFMergeFieldInfo() returning integer error status
2288	instead of void in case of problems with field merging (e.g., if the
2289	field with such a tag already registered). TIFFMergeFieldInfo() in
2290	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2291	check returned value.
2292
22932007-04-07  Frank Warmerdam  <[email protected]>
2294
2295	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2296	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2297
22982007-04-06  Frank Warmerdam  <[email protected]>
2299
2300	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2301	will convert from decompressor to compressor or compress to decompress
2302	if required by the force arguments.  This works around a problem in
2303	where the JPEGFixupTestSubsampling() may cause a decompressor to
2304	be setup on a directory when later a compressor is required with the
2305	force flag set.  Occurs with the addtiffo program for instance.
2306
23072007-04-06  Andrey Kiselev  <[email protected]>
2308
2309	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2310	functionality from Richard Nolde. As per bug
2311
2312	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2313
23142007-03-28  Frank Warmerdam  <[email protected]>
2315
2316	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2317
23182007-03-17  Joris Van Damme  <[email protected]>
2319
2320	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2321
23222007-03-07  Joris Van Damme  <[email protected]>
2323
2324	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2325	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2326	factor. This bug is mentioned in:
2327	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2328	http://www.asmail.be/msg0054766825.html
2329
23302007-03-07  Joris Van Damme  <[email protected]>
2331
2332	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2333
2334	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2335	unused arguments by standard C indication for the same
2336
23372007-02-27  Andrey Kiselev  <[email protected]>
2338
2339	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2340	counters in TIFFFetchData(). Should finally fix the issue
2341
2342	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2343
23442007-02-24  Andrey Kiselev  <[email protected]>
2345
2346	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
2347	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2348
2349	* libtiff/tif_dirread.c: Added special function to handle
2350	SubjectDistance EXIF tag as per bug
2351
2352	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
2353
2354	* tools/tiff2pdf.c: Do not assume inches when the resolution units
2355	do not specified. As per bug
2356
2357	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2358
2359	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
2360	it was set as infinite. As per bug
2361
2362	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2363
2364	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
2365	by Richard Nolde. As per bug
2366
2367	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
2368
23692007-02-22  Andrey Kiselev  <[email protected]>
2370
2371	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
2372	ExtraSamples == 999 produced by Corel Draw. As per bug
2373
2374	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
2375
2376	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
2377	changed from tsize_t to uint32 to be able to work with data arrays
2378	larger than 2GB. Fixes bug
2379
2380	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2381
2382	Idea submitted by Matt Hancher.
2383
23842007-01-31  Andrey Kiselev  <[email protected]>
2385
2386	* tools/tif2rgba.c: This utility does not work properly on big-endian
2387	architectures. It was fixed including the bug
2388
2389	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
2390
23912007-01-15  Mateusz Loskot <[email protected]>
2392
2393	* Submitted libtiff port for Windows CE platform
2394	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
2395	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
2396	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
2397	functons from tif_win32.c.
2398	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
2399	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
2400	standard header files for Windows CE build.
2401	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
2402
24032006-11-19  Frank Warmerdam  <[email protected]>
2404
2405	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
2406	we move a strip.
2407	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
2408
24092006-10-13  Andrey Kiselev  <[email protected]>
2410
2411	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
2412	in Gentoo bug ():
2413
2414	http://bugs.gentoo.org/show_bug.cgi?id=142383
2415
2416	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
2417	Though it is still far from the state of being working and useful.
2418
24192006-10-12  Andrey Kiselev  <[email protected]>
2420
2421	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
2422	method.
2423
2424	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
2425	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
2426
2427	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
2428	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
2429
2430	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
2431	vulnerabilities, reported in Gentoo bug ():
2432
2433	http://bugs.gentoo.org/show_bug.cgi?id=142383
2434
24352006-09-28  Andrey Kiselev  <[email protected]>
2436
2437	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
2438	vulnerabilities, as per	Gentoo bug ():
2439
2440	http://bugs.gentoo.org/show_bug.cgi?id=142383
2441
24422006-09-27  Frank Warmerdam  <[email protected]>
2443
2444	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
2445	encoding and decoding on the same read-write TIFF handle.  The LZW
2446	code can now maintain encode and decode state at the same time. The
2447	ZIP code will switch back and forth as needed.
2448	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
2449
24502006-09-20  Frank Warmerdam  <[email protected]>
2451
2452	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
2453	tif_config.vc.h for easier identification by folks using an IDE.
2454
24552006-07-25  Frank Warmerdam  <[email protected]>
2456
2457	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
2458
24592006-07-19  Frank Warmerdam  <[email protected]>
2460
2461	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
2462	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
2463	to bug report by Peng Gao with black strip at bottom of images.
2464
24652006-07-12  Frank Warmerdam  <[email protected]>
2466
2467	* tif_dirwrite.c: make sure to use uint32 for wordcount in
2468	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
2469	It already seems to have been done for other field types.  Needed
2470	for "tiffset" on files with geotiff ascii text.
2471
24722006-07-04  Bob Friesenhahn  <[email protected]>
2473
2474	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
2475	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
2476	its use does not appear to be required, so use it only when it is
2477	available.
2478
24792006-06-24  Andrey Kiselev  <[email protected]>
2480
2481	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
2482
2483	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
2484	function TIFFFetchDirectory() avoiding code duplication in
2485	TIFFReadDirectory() and TIFFReadCustomDirectory().
2486
24872006-06-19  Frank Warmerdam  <[email protected]>
2488
2489	* tools/tiff2pdf.c: Fix handling of -q values.
2490	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
2491
24922006-06-17  Frank Warmerdam  <[email protected]>
2493
2494	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
2495	files.  Modified TIFFReadDirectory() to not invoke
2496	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
2497	but one of them is zero.
2498	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
2499
25002006-06-08  Andrey Kiselev  <[email protected]>
2501
2502	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
2503	checking code in the separate function TIFFCheckDirOffset().
2504
2505	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
2506
2507	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
2508
2509	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
2510
2511	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
2512
2513	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
2514
2515	* tools/tiff2pdf.c: Fixed buffer overflow condition in
2516	t2p_write_pdf_string() as per bug
2517
2518	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
2519
25202006-06-07  Andrey Kiselev  <[email protected]>
2521
2522	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
2523	support for JBIG compression scheme (34661 code) contributed by Lee
2524	Howard. As per bug
2525
2526	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
2527
2528	* configure, configure.ac: OJPEG support enabled by default.
2529
2530	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
2531
25322006-06-03  Bob Friesenhahn  <[email protected]>
2533
2534	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
2535	TIFFPrintDirectory().  Joris Van Damme authored the fix.
2536
25372006-04-21  Andrey Kiselev  <[email protected]>
2538
2539	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
2540	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
2541
2542	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
2543	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
2544	Added support for OpenVMS by Alexey Chupahin, [email protected].
2545
25462006-04-20  Andrey Kiselev  <[email protected]>
2547
2548	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
2549	Properly set the binary mode for stdin stream as per bug
2550	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
2551
2552	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
2553	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
2554	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
2555	tiffset.1}: Improvements in page formatting as per bug
2556	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
2557
2558	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
2559	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
2560
25612006-04-18  Frank Warmerdam  <[email protected]>
2562
2563	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
2564	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
2565
25662006-04-12  Joris Van Damme  <[email protected]>
2567
2568	* libtiff/tif_getimage.c: Added support for planarconfig separate
2569	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
2570
25712006-04-11  Joris Van Damme  <[email protected]>
2572
2573	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
2574	- Conversion of unassociated alpha to associated alpha now done with
2575	  more performant LUT, and calculation more correct
2576	- Conversion of 16bit data to 8bit data now done with
2577	  more performant LUT, and calculation more correct
2578	- Bugfix of handling of 16bit RGB with unassociated alpha
2579
25802006-04-11  Joris Van Damme  <[email protected]>
2581
2582	* libtiff/tif_getimage.c:
2583	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
2584	  buffer for alpha strile and filled it, only to never read it back.
2585	  Removed allocation and fill.
2586	- Minor rename of vars in gtTileSeparate and gtStripSeparate
2587	  anticipating planned functionality extension
2588
25892006-04-08  Joris Van Damme  <[email protected]>
2590
2591	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
2592	and pickTileSeparateCase to PickSeparateCase as both work on strips as
2593	well
2594
2595	* libtiff/tif_getimage.c: moved img->get selection from
2596	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
2597	logical hook for planned functionality extension
2598
25992006-04-08  Joris Van Damme  <[email protected]>
2600
2601	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
2602	of inappropriate use of jpeg_abort instead of jpeg_destroy
2603
26042006-04-07  Joris Van Damme  <[email protected]>
2605
2606	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
2607	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
2608	on subsampled images - this ought to get sorted when we feel brave
2609	enough to replace TIFFScanlineSize alltogether
2610
2611	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
2612
26132006-04-04  Joris Van Damme  <[email protected]>
2614
2615	* libtiff/tiffio.h: added new type tstrile_t
2616
2617	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
2618	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
2619	toff_t*
2620
2621	* libtiff/tif_ojpeg.c: totally new implementation
2622
2623	* libtiff/tif_dirread.c: added several hacks to suit new support of
2624	OJPEG
2625
2626	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
2627	of OJPEG images in favor of tif_getimage.c native handling of
2628	YCbCr and desubsampling
2629
26302006-03-29  Frank Warmerdam  <[email protected]>
2631
2632	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
2633	interpretation causes the "upsampled" flag to be recomputed.  Fixes
2634	peculiar bug where photometric flag had to be set before jpegcolormode
2635	flag.
2636
26372006-03-25  Joris Van Damme  <[email protected]>
2638
2639	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
2640
2641	* libtiff/tif_strip.c: temporarilly added two new versions of
2642	TIFFScanlineSize
2643	  - TIFFNewScanlineSize: proposed new version, after all related
2644	    issues and side-effects are sorted out
2645	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
2646	This needs further sorting out.
2647
26482006-03-25  Joris Van Damme  <[email protected]>
2649
2650	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
2651	of last truncated strip data to TIFFWriteEncodedStrip
2652
26532006-03-25  Joris Van Damme  <[email protected]>
2654
2655	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
2656
26572006-03-25  Joris Van Damme  <[email protected]>
2658
2659	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
2660
2661	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
2662
2663	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
2664	prepare	the path for new tif_ojpeg.c
2665
26662006-03-23  Andrey Kiselev  <[email protected]>
2667
2668	* libtiff 3.8.2 released.
2669
2670	* tools/Makefile.am: Use runtime paths linker flags when rpath
2671	option enabled.
2672
26732006-03-21  Andrey Kiselev  <[email protected]>
2674
2675	* libtiff/libtiff.def: Added missed exports as per bug
2676	http://bugzilla.remotesensing.org/attachment.cgi?id=337
2677
2678	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
2679	tools/Makefile.vc: Makefiles improvements as per bug
2680	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
2681
2682	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
2683	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
2684	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
2685
2686	* libtiff/tif_strip.c: Take subsampling in account when calculating
2687	TIFFScanlineSize().
2688
2689	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
2690
26912006-03-17  Andrey Kiselev  <[email protected]>
2692
2693	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
2694	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
2695
2696	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
2697	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
2698
26992006-03-16  Andrey Kiselev  <[email protected]>
2700
2701	* libtiff/tiffiop.h: Added decalration for
2702	_TIFFSetDefaultCompressionState().
2703
2704	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
2705	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
2706	codec cleanup methods. As per bug
2707
2708	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
2709
27102006-03-15  Andrey Kiselev  <[email protected]>
2711
2712	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
2713	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
2714
2715	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
2716	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
2717
2718	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
2719	removed; move here the STRIP_SIZE_DEFAULT macro definition.
2720
2721	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
2722	macro definition.
2723
2724	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
2725
27262006-03-14  Andrey Kiselev  <[email protected]>
2727
2728	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
2729	in TIFFReadDirectory, because it is always set at the start of
2730	function and we allow TIFFs without that tag set.
2731
27322005-03-13  Andrey Kiselev  <[email protected]>
2733
2734	* libtiff 3.8.1 released.
2735
27362006-03-07  Andrey Kiselev  <[email protected]>
2737
2738	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
2739	function as per bug
2740	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2741
2742	* libtiff/tif_dirread.c: More wise check for integer overflow
2743	condition as per bug
2744	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2745
2746	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
2747	Properly restore setfield/getfield methods in cleanup functions. As
2748	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2749
27502006-03-03  Andrey Kiselev  <[email protected]>
2751
2752	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
2753	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
2754
2755	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
2756	TIFFPredictorCleanup() in codec cleanup methods. As per bug
2757
2758	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2759
2760	* libtiff/tif_dirread.c: Fixed integer overflow condition in
2761	TIFFFetchData() function. As per bug
2762
2763	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2764
27652006-03-01  Andrey Kiselev  <[email protected]>
2766
2767	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
2768	TIFFSetField() method, not directly. As per bug
2769
2770	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
2771
2772	* tools/ppm2tiff.c: Added support for PBM files as per bug
2773	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
2774
27752006-02-27  Andrey Kiselev  <[email protected]>
2776
2777	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
2778	to avoid crash as per bug
2779
2780	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
2781
27822006-02-26  Andrey Kiselev  <[email protected]>
2783
2784	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
2785	t2p_sample_rgba_to_rgb() was used in place of each other, that was
2786	resulted in problems with RGBA images with associated alpha.
2787	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
2788
27892006-02-23  Andrey Kiselev  <[email protected]>
2790
2791	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
2792	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2793
2794	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
2795	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
2796	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2797
2798	* tools/tiff2ps.c: Properly scale all the pages when converting
2799	multipage TIFF with /width/height/center options set. As per bug
2800
2801	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
2802
28032006-02-15  Andrey Kiselev  <[email protected]>
2804
2805	* tools/tiff2pdf.c: Do not create output file until all option checks
2806	will be done. As per bug
2807
2808	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
2809
2810	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
2811	list of input files as per bug:
2812
2813	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
2814
28152006-02-09  Andrey Kiselev  <[email protected]>
2816
2817	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
2818	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
2819
2820	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
2821	TIFFRGBAImage interface.
2822
2823	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
2824	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
2825
28262006-02-07  Frank Warmerdam  <[email protected]>
2827
2828	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
2829	compressed TIFF files, per submission from Dan Cobra.
2830
28312006-02-07  Andrey Kiselev  <[email protected]>
2832
2833	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
2834	cast values to avoid warnings. As per bug
2835	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2836
2837	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
2838	appropriate. As per bug
2839	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2840
2841	* libtiff/tif_aux.c: Fixed type of temporary variable in
2842	_TIFFCheckMalloc() as per bug
2843	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2844
28452006-02-06  Andrey Kiselev  <[email protected]>
2846
2847	* libtiff/tif_aux.c: Return static array when fetching default
2848	YCbCrCoefficients (another problem, reported a the
2849	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
2850
28512006-02-03  Andrey Kiselev  <[email protected]>
2852
2853	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
2854	YCbCrSubsampling and DotRange tags as per bugs
2855
2856	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
2857	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
2858
2859	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
2860	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
2861
2862	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
2863
28642006-01-23  Andrey Kiselev  <[email protected]>
2865
2866	* libtool related stuff updated from the 2.1a branch.
2867
28682006-01-11  Frank Warmerdam  <[email protected]>
2869
2870	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
2871	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
2872	properly as per bug:
2873	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
2874
28752006-01-09  Bob Friesenhahn  <[email protected]>
2876
2877	* configure.ac: Fix with_default_strip_size comparison as reported
2878	by Norihiko Murase.
2879
28802006-01-08  Bob Friesenhahn  <[email protected]>
2881
2882	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
2883	incorrectly, tests were not actually testing the uninstalled
2884	libtiff.  Now they are.
2885
28862006-01-04  Andrey Kiselev  <[email protected]>
2887
2888	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
2889	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
2890	should be uint32 value.
2891
28922006-01-02  Bob Friesenhahn  <[email protected]>
2893
2894	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
2895	be used if build directory is not the same as source directory.
2896	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
2897	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
2898	and re-sorted tag names in alphabetical order.
2899
29002005-12-29  Andrey Kiselev  <[email protected]>
2901
2902	* libtiff 3.8.0 released.
2903
29042005-12-28  Bob Friesenhahn  <[email protected]>
2905
2906	* tools/bmp2tiff.c (main): Fixed warning regarding returning
2907	inconsistent types from a condition.
2908	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
2909	format.
2910	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
2911
29122005-12-28  Joris Van Damme  <[email protected]>
2913
2914	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
2915
29162005-12-27  Andrey Kiselev  <[email protected]>
2917
2918	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
2919	windows.h, to reduce the compile time.
2920
29212005-12-26  Bob Friesenhahn  <[email protected]>
2922
2923	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
2924
29252005-12-26  Andrey Kiselev  <[email protected]>
2926
2927	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
2928	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
2929	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
2930	private functions to retrieve FieldInfo arrays.
2931
29322005-12-24  Bob Friesenhahn  <[email protected]>
2933
2934	* html/build.html: Added some additional instructions for when
2935	building using MSVC under Windows.  Also fixed two HTML syntax
2936	errors and used HTML Tidy to tidy up the HTML syntax and
2937	formatting.
2938
29392005-12-24  Andrey Kiselev  <[email protected]>
2940
2941	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
2942	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
2943	StoNits tags custom.
2944
29452005-12-23  Andrey Kiselev  <[email protected]>
2946
2947	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
2948	WhitePoint tag custom.
2949
2950	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
2951
29522005-12-23  Joris Van Damme  <[email protected]>
2953
2954	* libtiff/tiffio.h: fixed typo that potentially resulted in
2955	redefininition of USE_WIN32_FILEIO
2956
2957	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
2958	calls in core LibTiff.
2959
29602005-12-21  Andrey Kiselev  <[email protected]>
2961
2962	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
2963	Photoshop and ICCProfile tags custom.
2964
29652005-12-21  Joris Van Damme  <[email protected]>
2966
2967	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
2968	newer code to get context indicator in error handler and still
2969	remain compatible with older code: Done TIFFError calls everywhere
2970	except in tools
2971
29722005-12-20  Andrey Kiselev  <[email protected]>
2973
2974	* tools/tiffcp.c: Added many error reporting messages; fixed integer
2975	overflow as per bug
2976
2977	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
2978
29792005-12-16  Frank Warmerdam  <[email protected]>
2980
2981	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
2982	YCbCr images in jpeg compressed TIFF files.
2983
29842005-12-14  Andrey Kiselev  <[email protected]>
2985
2986	* tools/tiffcp.c: Return non-zero status when reading fails (again).
2987
29882005-12-13  Andrey Kiselev  <[email protected]>
2989
2990	* tools/tiffcp.c: Return non-zero status when reading fails.
2991
29922005-12-12  Andrey Kiselev  <[email protected]>
2993
2994	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
2995
29962005-12-09  Andrey Kiselev  <[email protected]>
2997
2998	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
2999	custom.
3000
3001	* tools/tiffinfo.c: Print EXIF directory contents if exist.
3002
3003	* libtiff/tiff.h: Few EXIF tag numbers added.
3004
3005	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
3006	tiffio.h}: Preliminary support to read custom directories. New
3007	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
3008
30092005-12-07  Andrey Kiselev  <[email protected]>
3010
3011	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
3012	More work to implement custom directory read support.
3013
3014	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
3015	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
3016	tags custom.
3017
30182005-12-05  Andrey Kiselev  <[email protected]>
3019
3020	* libtiff/tif_dirread.c: One more workaround for broken
3021	StripByteCounts tag. Handle the case when StripByteCounts array filled
3022	with completely wrong values.
3023
30242005-11-30  Andrey Kiselev  <[email protected]>
3025
3026	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
3027	in the TIFFOpenW() function as per bug
3028
3029	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
3030
3031	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
3032	functions as per bug
3033
3034	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
3035
30362005-11-20  Frank Warmerdam  <[email protected]>
3037
3038	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
3039	for MS MDI format.
3040	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
3041
3042	* .cvsignore: many files added, and a few update according
3043	to suggestion of Brad HArds on tiff mailing list.
3044
30452005-11-03  Frank Warmerdam  <[email protected]>
3046
3047	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
3048	public.
3049
30502005-10-31  Andrey Kiselev  <[email protected]>
3051
3052	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
3053	as per bug
3054
3055	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
3056
3057	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
3058	as per bug
3059
3060	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
3061
3062	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
3063	problem as per bug
3064
3065	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
3066
3067	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
3068
3069	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
3070
3071	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
3072	ResolutionUnit tags modifiable during write process. As per bug
3073
3074	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
3075
3076	* tools/tiffsplit.c: Copy fax related fields over splitted parts
3077	as per bug
3078
3079	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
3080
30812005-10-21  Frank Warmerdam  <[email protected]>
3082
3083	* tif_dirread.c: Don't try and split single strips into "0" strips
3084	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
3085	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
3086
30872005-10-20  Joris Van Damme  <[email protected]>
3088
3089	* tif_fax3.c: changed 'at scanline ...' style warning/errors
3090	with incorrect use of tif_row, to 'at line ... of
3091	strip/tile ...' style
3092
30932005-10-15  Frank Warmerdam  <[email protected]>
3094
3095	* tif_write.c: fixed setting of planarconfig as per bug report
3096	on the mailing list from Joris.
3097
30982005-10-07  Andrey Kiselev  <[email protected]>
3099
3100	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
3101	tif_dirread.c}: Make the default strip size configurable via the
3102	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
3103
31042005-09-30  Bob Friesenhahn  <[email protected]>
3105
3106	* html/support.html: Fixed link to documentation on Greg Ward's
3107	LogLuv TIFF format.
3108
31092005-09-28  Andrey Kiselev  <[email protected]>
3110
3111	* tools/tiffdump.c: Fixed crash when reading malformed tags.
3112
31132005-09-20  Andrey Kiselev  <[email protected]>
3114
3115	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
3116	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
3117
31182005-09-12  Andrey Kiselev  <[email protected]>
3119
3120	* libtiff 3.7.4 released.
3121
3122	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
3123	from Patrick Welche (all scripts moved in the 'config' and 'm4'
3124	directories).
3125
31262005-09-12  Frank Warmerdam  <[email protected]>
3127
3128	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
3129
31302005-09-05  Frank Warmerdam  <[email protected]>
3131
3132	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
3133	also set it to NULL to avoid double free when re-setting custom
3134	string fields as per:
3135
3136	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
3137
31382005-08-12  Frank Warmerdam  <[email protected]>
3139
3140	* libtiff/tif_print.c: avoid signed/unsigned warning.
3141
3142	* libtiff/tif_dirread.c: removed unused variable.
3143
31442005-07-30  Frank Warmerdam  <[email protected]>
3145
3146	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
3147	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
3148	pass on bigendian (macosx) system.
3149
31502005-07-28  Andrey Kiselev  <[email protected]>
3151
3152	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
3153	CheckMalloc() function to _TIFFCheckMalloc() and make it available
3154	globally as an internal helper routine.
3155
31562005-07-27  Andrey Kiselev  <[email protected]>
3157
3158	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
3159	the custom tags handling code.
3160
31612005-07-26  Andrey Kiselev  <[email protected]>
3162
3163	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
3164	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
3165	function, use TIFFFetchNormalTag() instead as per bug
3166
3167	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3168
3169	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
3170	instead.
3171
3172	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3173
3174	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3175
31762005-07-25  Andrey Kiselev  <[email protected]>
3177
3178	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3179
3180	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3181
31822005-07-21  Andrey Kiselev  <[email protected]>
3183
3184	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3185	the TIFFWriteCheck() function in case of single band images (as per
3186	TIFF spec).
3187
31882005-07-12  Andrey Kiselev  <[email protected]>
3189
3190	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3191	support for SCons software building tool (http://www.scons.org/).
3192	This is experimental infrastructure and it will exist along with the
3193	autotools mechanics.
3194
31952005-07-07  Andrey Kiselev  <[email protected]>
3196
3197	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3198	the NetBSD source tree (the old	4-clause BSD license changed to
3199	the new 3-clause one).
3200
3201	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3202	replacement module.
3203
3204	* port/dummy.c: Make the dummy function static.
3205
32062005-07-06  Andrey Kiselev  <[email protected]>
3207
3208	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3209
3210	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3211	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3212	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3213
32142005-07-04  Andrey Kiselev  <[email protected]>
3215
3216	* libtiff 3.7.3 released.
3217
3218	* configure, configure.ac: Do not use empty -R option when linking
3219	with --enable-rpath.
3220
32212005-07-01  Andrey Kiselev  <[email protected]>
3222
3223	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3224	reading the first IFD when needed. As per bug
3225
3226	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3227
3228	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3229	effects.
3230
32312005-06-23  Andrey Kiselev  <[email protected]>
3232
3233	* tools/tiff2pdf.c: Print two characters per loop in the
3234	t2p_write_pdf_trailer(). As per bug
3235
3236	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3237
3238	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3239	per bug
3240
3241	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3242
3243	* acinclude.m4: Updated to latest OpenGL test macros versions.
3244
3245	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3246	platform. As per bug
3247
3248	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3249
32502005-06-14  Andrey Kiselev  <[email protected]>
3251
3252	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3253	and YClipPathUnits tags.
3254
32552005-06-07  Andrey Kiselev  <[email protected]>
3256
3257	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3258	use pixel sized shift in contigous case.
3259
32602005-06-06  Andrey Kiselev  <[email protected]>
3261
3262	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3263	Make overviews working for contiguos images.
3264
32652005-06-03  Andrey Kiselev  <[email protected]>
3266
3267	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3268	time one.
3269
3270	* libtiff/tif_predict.c: Floating point predictor now works on
3271	big-endian hosts.
3272
32732005-06-01  Andrey Kiselev  <[email protected]>
3274
3275	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3276	ASCII values.
3277
3278	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3279	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3280	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3281	TargetPrinter tags custom.
3282
3283	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3284	TIFF_CODERSETUP flag (to fix memry leaks).
3285
3286	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3287	allocating.
3288
32892005-05-26  Andrey Kiselev  <[email protected]>
3290
3291	* configure.ac, libtiff/Makefile.am: Added workaround for
3292	OpenBSD/MirOS soname problem as per bug
3293
3294	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3295
3296	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3297	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3298	per bug
3299
3300	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3301
33022005-05-25  Andrey Kiselev  <[email protected]>
3303
3304	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3305	the fscanf() function. As per bug
3306
3307	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3308
3309	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3310	uint16 array when fetching the BYTE and SBYTE filds, so we should
3311	consider result as pointer to uint16 array and not as array of chars.
3312	As per bug
3313
3314	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3315
3316	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3317
3318	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3319
3320	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3321	mode in CreateFile() call as per bug
3322
3323	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3324
3325	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3326	libtiffxx libraries as per bug
3327
3328	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3329
3330	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3331	GDAL.
3332
33332005-05-23  Frank Warmerdam  <[email protected]>
3334
3335	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3336	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3337	in directory.
3338
33392005-05-22  Frank Warmerdam  <[email protected]>
3340
3341	* libtiff/tif_dirread.c: Changed the code that computes
3342	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3343	zero. This is a common case with GDAL indicating a "null" tile/strip.
3344
33452005-05-17  Andrey Kiselev  <[email protected]>
3346
3347	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
3348
33492005-05-06  Frank Warmerdam  <[email protected]>
3350
3351	* libtiff/tif_dirread.c: Applied similar change to
3352	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
3353
3354	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3355
3356	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
3357
33582005-05-06  Andrey Kiselev  <[email protected]>
3359	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
3360	added new option '-b' to use interpolation in output PDF files (Bruno
3361	Ledoux).
3362
33632005-05-05  Frank Warmerdam  <[email protected]>
3364
3365	* libtiff/tif_dirread.c: Ensure that broken files with too many
3366	values in PerSampleShorts work ok instead of crashing.
3367
3368	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3369
33702005-04-27  Andrey Kiselev  <[email protected]>
3371
3372	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
3373	input file.
3374
33752005-04-15  Andrey Kiselev  <[email protected]>
3376
3377	* libtiff/tif_predict.c: Added ability to encode floating point
3378	predictor, as per TIFF Technical Note 3.
3379
33802005-04-14  Andrey Kiselev  <[email protected]>
3381
3382	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
3383	floating point predictor, as per TIFF Technical Note 3.
3384
33852005-04-13  Andrey Kiselev  <[email protected]>
3386
3387	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
3388	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
3389	swap 24-bit floating point values.
3390
3391	* libtiff/tiff.h: Added predictor constants.
3392
33932005-04-08  Andrey Kiselev  <[email protected]>
3394
3395	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
3396	values in _TIFFVSetField() function. Inspired by the bug
3397
3398	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3399
3400	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
3401	as per bug
3402
3403	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3404
34052005-03-30  Andrey Kiselev  <[email protected]>
3406
3407	* libtiff/tif_open.c: Do not read header in case the output file
3408	should be truncated (Ron).
3409
3410	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
3411	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
3412
3413	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
3414
34152005-03-22  Andrey Kiselev  <[email protected]>
3416
3417	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
3418	rpath option.
3419
34202005-03-21  Andrey Kiselev  <[email protected]>
3421
3422	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
3423	tags.
3424
34252005-03-18  Andrey Kiselev  <[email protected]>
3426
3427	* libtiff/dirinfo.c: Added DNG tags.
3428
3429	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
3430	handling code.
3431
3432	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
3433	added DNG 1.1.0.0 tags.
3434
3435	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
3436	bug
3437
3438	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
3439
3440	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
3441
34422005-03-17  Andrey Kiselev  <[email protected]>
3443
3444	* nmake.opt: Build with Win32 CRT library by default.
3445
3446	* tools/tiff2ps.c: Fixed typo in page size handling code.
3447
3448	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
3449	by value.
3450
3451	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
3452
34532005-03-15  Andrey Kiselev  <[email protected]>
3454
3455	* libtiff 3.7.2 released.
3456
34572005-03-09  Andrey Kiselev  <[email protected]>
3458
3459	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
3460	floating point data; complain on unsupported bit depths.
3461
34622005-03-05  Andrey Kiselev  <[email protected]>
3463
3464	* tif_stream.cxx: Use ios namespace instead of ios_base to support
3465	GCC 2.95.
3466
3467	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
3468	Lee Howard for HylaFax DCS tag
3469	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
3470
34712005-03-04  Andrey Kiselev  <[email protected]>
3472
3473	* configure, configure.ac: Use -rpath option instead of -R as per bug
3474
3475	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
3476
3477	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
3478	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
3479	software. As per bug
3480
3481	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
3482
3483	* nmake.opt, html/build.html: Add more comments, change the config
3484	file organization a bit as per bug
3485
3486	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
3487
3488	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
3489	as per bug
3490
3491	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
3492
34932005-03-03  Andrey Kiselev  <[email protected]>
3494
3495	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
3496	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3497
3498	* tools/fax2ps.c: Replace insecure mktemp() function with the
3499	tmpfile() as per bug
3500
3501	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
3502
35032005-02-04  Andrey Kiselev  <[email protected]>
3504
3505	* libtiff/tiff.h: Changed the int8 definition to be always signed char
3506	as per bug
3507
3508	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3509
3510	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
3511	block as per bug
3512
3513	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
3514
35152005-02-03  Bob Friesenhahn  <[email protected]>
3516
3517	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
3518	display more correctly.  Images display brighter than they should
3519	on a Sun workstation.
3520
35212005-02-03  Andrey Kiselev  <[email protected]>
3522
3523	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
3524	suspicious values in the tags. As per bugs
3525
3526	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3527
3528	and
3529
3530	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
3531
3532	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
3533
3534	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
3535
35362005-01-31  Bob Friesenhahn  <[email protected]>
3537
3538	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
3539	(TIFFTAG_TILELENGTH): Corrected description.
3540
35412005-01-30  Andrey Kiselev  <[email protected]>
3542
3543	* configure.ac: Fixes for --with-docdir option as per bug
3544
3545	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
3546
3547	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
3548	bug
3549
3550	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
3551
3552	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
3553	Michael Rinne and Edward Lam.
3554
35552005-01-15  Andrey Kiselev  <[email protected]>
3556
3557	* configure.ac: Make the documentation directory location configurable
3558	via the --with-docdir option (as suggested by Jeremy C. Reed).
3559
3560	* libtiff/tif_color.c: Use double as the second argument of pow()
3561	function in TIFFCIELabToRGBInit(). As per bug
3562
3563	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
3564
3565	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
3566	integer as per bug
3567
3568	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
3569
3570	* libtiff/tif_getimage.c: Always fill the error message buffer in
3571	TIFFRGBAImageBegin() as per bug
3572
3573	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
3574
35752005-01-12  Andrey Kiselev  <[email protected]>
3576
3577	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
3578	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
3579	tags as per bug
3580
3581	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
3582
3583	* libtiff/tif_win32.c: Fixed message formatting in functions
3584	Win32WarningHandler() and Win32ErrorHandler() as per bug
3585
3586	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
3587
3588	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
3589	per bug
3590
3591	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
3592
35932005-01-11  Andrey Kiselev  <[email protected]>
3594
3595	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
3596	"C"' section as per bug
3597
3598	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3599
3600	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
3601	compiler to avoid double definition of BSD types as per bug
3602
3603	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3604
3605	* libtiff/Makefile.am: Place the C++ stream API in the separate
3606	library called libtiffxx to avoid unneeded dependencies. Probably
3607	there will be more C++ API in the future. As per bugs
3608
3609	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
3610
3611	and
3612
3613	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3614
36152005-01-05  Andrey Kiselev  <[email protected]>
3616
3617	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
3618	wrong tag counts (Dmitry V. Levin, Martin Pitt).
3619
3620	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
3621	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3622
36232004-12-25  Andrey Kiselev  <[email protected]>
3624
3625	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
3626	RGB-images as per bug
3627
3628	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3629
3630
3631	* tools/tiffset.c: Convert character option to integer value as per
3632	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
3633
36342004-12-20  Andrey Kiselev  <[email protected]>
3635
3636	* libtiff 3.7.1 released.
3637
3638	* html/tiffset.1.html: Add missed manual page as per bug
3639
3640	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3641
3642	* libtiff/tiff.h: Revert back libtiff data type definitions as per
3643	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
3644
36452004-12-19  Andrey Kiselev  <[email protected]>
3646
3647	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
3648	checking for tag count in TIFFReadDirectory() function. As per bug
3649
3650	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3651
3652	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
3653	CheckMallock() function.
3654
3655	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
3656	RGB-images as per bug
3657
3658	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
3659
36602004-12-15  Frank Warmerdam  <[email protected]>
3661
3662	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
3663	SunPro compiler.
3664
36652004-12-11  Bob Friesenhahn  <[email protected]>
3666
3667	* autogen.sh: aclocal and autoheader should be executed after
3668	libtoolize.  Also add '-I .' to aclocal invocation to check
3669	current directory for macros.
3670
36712004-12-10  Andrey Kiselev  <[email protected]>
3672
3673	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
3674	as per bugs
3675
3676	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
3677
3678	and
3679
3680	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
3681
36822004-12-04  Andrey Kiselev  <[email protected]>
3683
3684	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
3685
3686	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3687
3688	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
3689	mode as per bug
3690
3691	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3692
3693	* libtiff/tif_config.in.vc: Removed unneded definitions for
3694	read/open/close/lseek functions to fix the
3695
3696	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
3697
36982004-12-03  Andrey Kiselev  <[email protected]>
3699
3700	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
3701	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
3702	must be removed in the future, as it was never used properly. As per
3703	bug
3704
3705	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
3706
37072004-11-30  Bob Friesenhahn  <[email protected]>
3708
3709	* libtiff/tif_jpeg.c: Added a work-around in order to allow
3710	compilation with the heavily modified version of libjpeg delivered
3711	with Cygwin.
3712
37132004-11-29  Andrey Kiselev  <[email protected]>
3714
3715	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
3716	counts. As per bug
3717
3718	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
3719
3720	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
3721
3722	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
3723
37242004-11-28  Andrey Kiselev  <[email protected]>
3725
3726	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
3727	on Windows.
3728
3729	* nmake.opt: Add missed DLLNAME variable.
3730
37312004-11-26  Frank Warmerdam  <[email protected]>
3732
3733	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
3734
37352004-11-24  Andrey Kiselev  <[email protected]>
3736
3737	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
3738	per bug
3739
3740	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
3741
3742	* man/tiffset.1: Added manual page for tiffset tool written by Jay
3743	Berkenbilt. As per bug
3744
3745	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3746
37472004-11-23  Frank Warmerdam  <[email protected]>
3748
3749	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
3750
37512004-11-21  Frank Warmerdam  <[email protected]>
3752
3753	* html/document.html: Updated Adobe web links as per email from Joris.
3754
37552004-11-21  Andrey Kiselev  <[email protected]>
3756
3757	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
3758	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
3759	use C++ streams should #include <tiffio.hxx>.
3760
37612004-11-13  Andrey Kiselev  <[email protected]>
3762
3763	* libtiff/tiff.h: Added Adobe DNG tags.
3764
3765	* libtiff/tif_win32.c: Typo fixed.
3766
3767	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
3768	be compliant with the latest standard. Appropriate additions in
3769	makefiles now completed.
3770
37712004-11-11  Andrey Kiselev  <[email protected]>
3772
3773	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
3774	different tag types. As per bug
3775
3776	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
3777
37782004-11-10  Andrey Kiselev  <[email protected]>
3779
3780	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
3781	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
3782
37832004-11-09  Andrey Kiselev  <[email protected]>
3784
3785	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
3786
37872004-11-07  Andrey Kiselev  <[email protected]>
3788
3789	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
3790	contributed by Edward Lam (see
3791	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
3792	Though no changes in any makefiles yet.
3793
37942004-11-05  Frank Warmerdam  <[email protected]>
3795
3796	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
3797	is bad. This is the callers responsibility.
3798	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
3799
38002004-11-05  Andrey Kiselev  <[email protected]>
3801
3802	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
3803	function to work with the double byte strings (used to represent
3804	filenames in some locales). As per bug
3805
3806	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
3807
3808	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
3809	Compression tags of type LONG from broken TIFFS as per bug
3810
3811	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3812
3813	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
3814	the writecount should have uint32 type. As per bug
3815
3816	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3817
3818	* libtiff/tif_write.c: Fixed wrong if() statement in
3819	TIFFAppendToStrip() function as per bug
3820
3821	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
3822
38232004-11-04  Andrey Kiselev  <[email protected]>
3824
3825	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
3826	field. The caller should supply a count when setting this field. As
3827	per bug
3828
3829	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
3830
3831	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
3832	uint32 count. Use this type everywhere.
3833
38342004-11-03  Frank Warmerdam  <[email protected]>
3835
3836	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
3837
38382004-11-02  Frank Warmerdam  <[email protected]>
3839
3840	* tools/tiff2rgba.c: removed extra newlines in usage message.
3841
38422004-10-30  Andrey Kiselev  <[email protected]>
3843
3844	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
3845
3846	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
3847	tags (Tristan Hill).
3848
38492004-10-30  Frank Warmerdam  <[email protected]>
3850
3851	* libtiff/tiffiop.h: added fallback definition of assert() if we
3852	don't have assert.h.
3853
38542004-10-29  Andrey Kiselev  <[email protected]>
3855
3856	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
3857	choosing when the incorrect Group4Options tag set. As per bug
3858
3859	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
3860
3861	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
3862	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
3863	TIFFWriteNormalTag().
3864
38652004-10-28  Andrey Kiselev  <[email protected]>
3866
3867	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
3868	tags (Peter Fales).
3869
3870	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
3871
38722004-10-28  Frank Warmerdam  <[email protected]>
3873
3874	* tools/tiff2pdf.c: added casts to avoid warnings.
3875
3876	* libtiff/libtiff.def: Added several more entry points required
3877	to link fax2tiff.c against the DLL on windows.
3878
38792004-10-27  Andrey Kiselev  <[email protected]>
3880
3881	* configure, configure.ac: Added --enable-rpath option to embed linker
3882	paths into library binary.
3883
38842004-10-26  Andrey Kiselev  <[email protected]>
3885
3886	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
3887
3888	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
3889	(Vladimir Nadvornik, Dmitry V. Levin).
3890
38912004-10-16  Andrey Kiselev  <[email protected]>
3892
3893	* libtiff 3.7.0 released.
3894
38952004-10-15  Bob Friesenhahn  <[email protected]>
3896
3897	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
3898	in this file so its inclusion is removed.  Including stdio.h
3899	sometimes incurs an INT32 typedef conflict between MinGW's
3900	basetsd.h and libjpeg's jmorecfg.h.
3901
39022004-10-15  Andrey Kiselev  <[email protected]>
3903
3904	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
3905
39062004-10-13  Bob Friesenhahn  <[email protected]>
3907
3908	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
3909	conflict noticed under MinGW.
3910	* ltmain.sh: Fix for MinGW compilation.
3911
39122004-10-13  Frank Warmerdam  <[email protected]>
3913
3914	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
3915	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
3916
39172004-10-12  Andrey Kiselev  <[email protected]>
3918
3919	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
3920	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
3921	properly (Dmitry V. Levin, Marcus Meissner).
3922
39232004-10-11  Andrey Kiselev  <[email protected]>
3924
3925	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
3926	to TIFF_IFD.
3927
39282004-10-10  Andrey Kiselev  <[email protected]>
3929
3930	* tools/bmp2tif.c: Check the space allocation results.
3931
39322004-10-09  Andrey Kiselev  <[email protected]>
3933
3934	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
3935	of the TIFFDirectory structure with the 0 instead of -1 to avoid
3936	confusing integer overflows in TIFFTileRowSize() for striped images.
3937
3938	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
3939	by Ross A. Finlayson.
3940
3941	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
3942
3943	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
3944
39452004-10-08  Frank Warmerdam  <[email protected]>
3946
3947	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
3948	of tif_fieldinfo.
3949
3950	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
3951
39522004-10-04  Bob Friesenhahn  <[email protected]>
3953
3954	* contrib/iptcutil/README: Added the missing README which goes
3955	along with iptcutil.
3956
39572004-10-03  Andrey Kiselev  <[email protected]>
3958
3959	* libtiff/tif_compress.c: Improved error reporting in
3960	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
3961
39622004-10-02  Andrey Kiselev  <[email protected]>
3963
3964	* libtiff 3.7.0beta2 released.
3965
3966	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
3967	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
3968	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
3969	allocations and	integer overflows (Dmitry V. Levin).
3970
3971	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
3972
39732004-10-01  Frank Warmerdam  <[email protected]>
3974
3975	* libtiff/tif_open.c: added a more informative message if a BigTIFF
3976	file is opened.
3977
39782004-09-30  Frank Warmerdam  <[email protected]>
3979
3980	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
3981	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
3982	in the Adobe XMP Specification.
3983
39842004-09-29  Andrey Kiselev  <[email protected]>
3985
3986	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
3987	memset().
3988
3989	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
3990	from Dmitry V. Levin to fix possible integer overflow problems.
3991
39922004-09-28  Andrey Kiselev  <[email protected]>
3993
3994	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
3995	(Dmitry V. Levin).
3996
39972004-09-26  Andrey Kiselev  <[email protected]>
3998
3999	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
4000	Optimize checking for the strip bounds.
4001
4002	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
4003	TIFFRasterScanlineSize() functions report zero in the case of integer
4004	overflow now. Properly handle this case in TIFFReadDirectory()
4005	(patches from Dmitry V. Levin).
4006
40072004-09-25  Andrey Kiselev  <[email protected]>
4008
4009	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
4010	macro where appropriate.
4011
4012	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
4013	noted by Gennady Khokhorin.
4014
4015	* libtiff/tif_dirread.c: Always check the return values, returned
4016	by the _TIFFmalloc() (Dmitry V. Levin).
4017
4018	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
4019	functions (Dmitry V. Levin).
4020
4021	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
4022	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
4023	TIFFGrowStrips() (found by Dmitry V. Levin).
4024
40252004-09-24  Andrey Kiselev  <[email protected]>
4026
4027	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
4028	to get the list of configured codecs.
4029
4030	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
4031	Dmitry V. Levin.
4032
40332004-09-23  Andrey Kiselev  <[email protected]>
4034
4035	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
4036	possible integer overflow in CheckMalloc() function.
4037
40382004-09-22  Andrey Kiselev  <[email protected]>
4039
4040	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
4041	of plain TIFFhowmany() where appropriate.
4042
40432004-09-21  Andrey Kiselev  <[email protected]>
4044
4045	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
4046
40472004-09-19  Andrey Kiselev  <[email protected]>
4048
4049	* libtiff 3.7.0beta released.
4050
4051	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
4052	overruns fixed, as noted by Chris Evans.
4053
40542004-09-14  Bob Friesenhahn  <[email protected]>
4055
4056	* commit: Added a script to make it more convenient to commit
4057	updates.  The CVS commit message is extracted from this ChangeLog
4058	file.
4059
40602004-09-14  Andrey Kiselev  <[email protected]>
4061
4062	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
4063	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
4064	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
4065	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
4066	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
4067	tif_config.h.in, tiffiop.h}:
4068	Get rid of BSD data types (u_char, u_short, u_int, u_long).
4069
40702004-09-13  Bob Friesenhahn  <[email protected]>
4071
4072	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
4073	specification. Reference libtiff bug tracking system to submit
4074	private tag additions.
4075
40762004-09-12  Bob Friesenhahn  <[email protected]>
4077
4078	* tools/tiffgt.c: Include "tif_config.h".
4079
4080	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
4081	tiffgt.  This results in the 'compile' script being added to the
4082	project.
4083
4084	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
4085	required to find OpenGL headers necessary to build tiffgt.  Also
4086	ensure that the libtiff that we built is used rather than some other
4087	libtiff installed on the system.
4088
40892004-09-12  Andrey Kiselev  <[email protected]>
4090
4091	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
4092	libraries.
4093
40942004-09-11  Bob Friesenhahn  <[email protected]>
4095
4096	* configure.ac: Pass library configuration defines via
4097	tif_config.h rather than extending CPPFLAGS. Configure a
4098	libtiff/tiffconf.h in order to satisfy application requirements
4099	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
4100	this causes failure to build on systems which properly respect
4101	this request.
4102
4103	* libtiff/tiffconf.h.in: New file to act as the template for the
4104	configured tiffconf.h
4105
4106	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
4107
41082004-09-10  Frank Warmerdam  <[email protected]>
4109
4110	* html/internals.html: Split off a discussion of adding new tags
4111	into addingtags.html.
4112
41132004-09-10  Andrey Kiselev  <[email protected]>
4114
4115	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
4116
4117	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
4118
4119	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4120
4121	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
4122
4123	* libtiff/tif_dirread.c: Don't reject to read tags of the
4124	SamplesPerPixel size when the tag count is greater than number of
4125	samples as per bug
4126
4127	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
4128
4129	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
4130	defining int8/uint8/... etc. types. As per bug
4131
4132	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
4133
41342004-09-09  Frank Warmerdam  <[email protected]>
4135
4136	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
4137	to avoid compile warnings about getopt() and a few other things.
4138
41392004-09-02  Andrey Kiselev  <[email protected]>
4140
4141	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
4142	assigning magic in TIFFFetchFloat().
4143
41442004-09-01  Andrey Kiselev  <[email protected]>
4145
4146	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
4147	to avoid requirement for tiffiop.h inclusion in some applications. See
4148	here
4149
4150	http://www.asmail.be/msg0054799560.html
4151
4152	for details.
4153
4154	* tools/fax2tiff.c: Use the new functions in the code.
4155
41562004-08-25  Andrey Kiselev  <[email protected]>
4157
4158	* tools/tiff2pdf.c: Initialize arrays properly.
4159
4160	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
4161	properly initialize array in PSDataBW().
4162
41632004-08-24  Andrey Kiselev  <[email protected]>
4164
4165	* tools/tiff2pdf.c: More fixes for bug
4166
4167	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4168
4169	from Ross Finlayson.
4170
41712004-08-23  Andrey Kiselev  <[email protected]>
4172
4173	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4174
4175	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4176	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4177
4178	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4179
4180	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4181
41822004-08-20  Andrey Kiselev  <[email protected]>
4183
4184	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4185	that the input file has compression, photometric interpretation,
4186	etcetra, tags or if not than a more descriptive error is returned.
4187
4188	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4189	code, responsible for tag data type checking.
4190
41912004-08-19  Andrey Kiselev  <[email protected]>
4192
4193	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4194	variable as per bug
4195
4196	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4197
41982004-08-16  Andrey Kiselev  <[email protected]>
4199
4200	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4201	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4202
42032004-08-01  Andrey Kiselev  <[email protected]>
4204
4205	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4206	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4207
42082004-07-24  Andrey Kiselev  <[email protected]>
4209
4210	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4211	separate package. All libtiff tools are updated to not advertise an
4212	abcence of LZW support.
4213
42142004-07-12  Andrey Kiselev  <[email protected]>
4215
4216	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4217
42182004-07-11  Andrey Kiselev  <[email protected]>
4219
4220	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4221	messages, as suggested by Bernd Herd.
4222
42232004-07-03  Andrey Kiselev  <[email protected]>
4224
4225	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4226	when setting custom tags by value. Reported by Eric Fieleke.
4227
42282004-06-14  Andrey Kiselev  <[email protected]>
4229
4230	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4231
42322004-06-08  Andrey Kiselev  <[email protected]>
4233
4234	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4235	into TIFFs.
4236
42372004-06-07  Andrey Kiselev  <[email protected]>
4238
4239	* libtiff 3.7.0alpha released.
4240
42412004-06-06  Andrey Kiselev  <[email protected]>
4242
4243	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4244	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4245	ones :-).
4246
4247	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4248	problems in 64-bit environment).
4249
42502004-06-05  Andrey Kiselev  <[email protected]>
4251
4252	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4253	Tags can be supplied by the mnemonic name or number.
4254
4255	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4256	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4257
42582004-05-27  Andrey Kiselev  <[email protected]>
4259
4260	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4261	markers as per bug
4262
4263	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4264
42652004-05-24  Andrey Kiselev  <[email protected]>
4266
4267	* tools/tiffsplit.c: Don't forget to copy Photometric
4268	Interpretation tag.
4269
42702004-05-20  Andrey Kiselev  <[email protected]>
4271
4272	* libtiff/{tif_open.c, tiffio.h}: New function added:
4273	TIFFIsBigEndian(). Function returns nonzero if given was file written
4274	in big-endian order.
4275
4276	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4277	files. Now output files will be written using the same byte order
4278	flag as	in the input image. See
4279
4280	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4281
4282	for details.
4283
42842004-05-19  Frank Warmerdam  <[email protected]>
4285
4286	* libtiff/tif_print.c: added (untested) support for printing
4287	SSHORT, SLONG and SRATIONAL fields.
4288
4289	* tools/tiffcp.c: close output file on normal exit.
4290
42912004-05-17  Andrey Kiselev  <[email protected]>
4292
4293	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4294	if compression type mismatches. See
4295
4296	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4297
42982004-04-30  Andrey Kiselev  <[email protected]>
4299
4300	* libtiff/tif_strip.c: Never return 0 from the
4301	TIFFNumberOfStrips().
4302
43032004-04-29  Andrey Kiselev  <[email protected]>
4304
4305	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4306	store single SampleFormat value for multisampled images. See
4307
4308	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4309
43102004-04-25  Andrey Kiselev  <[email protected]>
4311
4312	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4313	int16 and int32 types to avoid complains on some compilers. Details at
4314
4315	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4316
43172004-04-20  Andrey Kiselev  <[email protected]>
4318
4319	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4320
4321	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4322
43232004-04-14  Andrey Kiselev  <[email protected]>
4324
4325	* libtiff/tif_write.c: Allow in-place updating of the compressed
4326	images (don't work properly with all codecs). For details see GDAL bug
4327
4328	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4329
43302004-04-06  Andrey Kiselev  <[email protected]>
4331
4332	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4333	in the Intergarph JPEG compressed TIFF images as per bug:
4334
4335	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4336
43372004-04-04  Frank Warmerdam  <[email protected]>
4338
4339	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4340	via bad2.
4341
43422004-03-26  Andrey Kiselev  <[email protected]>
4343
4344	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4345	JPEG compression of grayscale images.
4346
4347	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
4348	present in the input image.
4349
43502004-03-19  Andrey Kiselev  <[email protected]>
4351
4352	* {many}: The first attempt to switch to autotools.
4353
43542004-03-03  Andrey Kiselev  <[email protected]>
4355
4356	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
4357	TIFFClientOpen() when the appropriate client functions was not
4358	supplied by user.
4359
43602004-03-02  Frank Warmerdam  <[email protected]>
4361
4362	* tools/ycbcr.c: fixed main() declaration as per:
4363	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
4364
43652004-02-26  Andrey Kiselev  <[email protected]>
4366
4367	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
4368	images. Reported by Artem Mirolubov.
4369
4370	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
4371	tag type in TIFFFetchNormalTag() as per bug
4372
4373	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
4374
43752004-02-17  Frank Warmerdam  <[email protected]>
4376
4377	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
4378	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
4379
43802004-02-05  Andrey Kiselev  <[email protected]>
4381
4382	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
4383	bug
4384
4385	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
4386
4387	But we need more work on fax codec to support update mode.
4388
43892004-01-30  Frank Warmerdam  <[email protected]>
4390
4391	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
4392	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
4393	Scott Reynolds.
4394
43952004-01-29  Andrey Kiselev  <[email protected]>
4396
4397	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
4398	and TIFFTAG_INDEXED as per bug
4399
4400	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
4401
4402	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
4403	NULL before proceeding further as per bug
4404
4405	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
4406
4407	Check results, returned by the TIFFFdOpen() before returning and close
4408	file if TIFFFdOpen() failed as per bug
4409
4410	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4411
4412	* libtiff/tif_open.c: More fixes for
4413
4414	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4415
44162004-01-28  Andrey Kiselev  <[email protected]>
4417
4418	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
4419	TIFFCleanup() from the TIFFClose() in order to fix the bug
4420
4421	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4422
4423	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
4424	InkNames tag as per bug
4425
4426	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
4427
4428	Memory leak fixed.
4429
44302004-01-21  Frank Warmerdam  <[email protected]>
4431
4432	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
4433	are field_passcount=TRUE properly.  Arguably anonymous custom tags
4434	should be declared as passcount=FALSE, but I don't want to change
4435	that without a careful review.
4436
44372004-01-20  Andrey Kiselev  <[email protected]>
4438
4439	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
4440	stripped image in TIFFWriteBufferSetup(). As per bug
4441
4442	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
4443
44442004-01-11  Andrey Kiselev  <[email protected]>
4445
4446	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
4447	patch from Gerben Koopmans.
4448
4449	* libtiff/tif_dirread.c: Check field_passcount value before setting
4450	the value of undefined type, patch from Gerben Koopmans.
4451
44522004-01-02  Andrey Kiselev  <[email protected]>
4453
4454	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
4455	non-RGB images.
4456
44572003-12-31  Andrey Kiselev  <[email protected]>
4458
4459	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
4460	pointer passed. Patch supplied by Larry Grill.
4461
4462	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
4463	suggested by Jeremy C. Reed.
4464
44652003-12-26  Andrey Kiselev  <[email protected]>
4466
4467	* libtiff 3.6.1 released.
4468
44692003-12-24  Andrey Kiselev  <[email protected]>
4470
4471	* config.guess, config.sub: Updated from the recent upstream.
4472
44732003-12-22  Andrey Kiselev  <[email protected]>
4474
4475	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
4476	More cleanups in color conversion interface, added appropriate manual
4477	page.
4478
44792003-12-19  Andrey Kiselev  <[email protected]>
4480
4481	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
4482	per bug
4483
4484	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4485
4486	* tools/tiff2ps.c: Added support for alpha channel. Fixes
4487
4488	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
4489
4490	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
4491	Interface for Lab->RGB color conversion is finally cleaned up.
4492	Added support for ReferenceBlackWhite tag handling when converted from
4493	YCbCr color space. The latter closes
4494
4495	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
4496
44972003-12-07  Andrey Kiselev  <[email protected]>
4498
4499	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
4500
4501	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
4502	library.
4503
45042003-12-06  Andrey Kiselev  <[email protected]>
4505
4506	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
4507	file and properly use it for CIE Lab->RGB transform.
4508
45092003-12-04  Andrey Kiselev  <[email protected]>
4510
4511	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
4512	conversion routines now in the tif_color.c module. New function
4513	TIFFYCbCrtoRGB() available in TIFF API.
4514
4515	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
4516
45172003-12-03  Andrey Kiselev  <[email protected]>
4518
4519	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
4520	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
4521	module.
4522
4523	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
4524	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
4525	Finally resolved problems with orientation handling. TIFFRGBAImage
4526	interface now properly supports all possible orientations, i.e. images
4527	will be flipped both in horizontal and vertical directions if
4528	required. 'Known bugs' section now removed from the appropriate manual
4529	pages. Closed bug entry:
4530
4531	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4532
45332003-12-02  Andrey Kiselev  <[email protected]>
4534
4535	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
4536	function calls as per bug
4537
4538	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
4539
45402003-11-28 Ross Finlayson  <[email protected]>
4541
4542	* tools/tiff2pdf.c:  Some bugs fixed.
4543
45442003-11-27  Andrey Kiselev  <[email protected]>
4545
4546	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
4547	reported by Antonio Scuri.
4548
4549	* man/tiff2pdf.1: Few improvements in page layout.
4550
4551	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
4552	 Added support fpr tiff2pdf manual page.
4553
45542003-11-26 Ross Finlayson  <[email protected]>
4555
4556	* /man/tiff2pdf.1:  File added to repository.
4557
45582003-11-26  Andrey Kiselev  <[email protected]>
4559
4560	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
4561	 Added support fpr tiff2pdf utility.
4562
45632003-11-25  Ross Finlayson  <[email protected]>
4564
4565	* /tools/tiff2pdf.c:  File added to repository.
4566
45672003-11-22  Andrey Kiselev  <[email protected]>
4568
4569	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
4570
45712003-11-21  Andrey Kiselev  <[email protected]>
4572
4573	* /tools/raw2tiff.c: #include <getopt.h> removed.
4574
4575	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
4576	sgigt utility removed and replaced with the completely rewritten
4577	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
4578	there is a lot of things to improve.
4579
4580	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
4581	extract the fields from the OJPEG files. Patch supplied by Ross
4582	Finlayson.
4583
4584	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
4585	Added new function TIFFIsCODECConfigured(), suggested by Ross
4586	Finlayson.
4587
45882003-11-18  Andrey Kiselev  <[email protected]>
4589
4590	* libtiff/tif_dirinfo.c: Implemented binary search in
4591	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
4592
4593	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
4594	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
4595
45962003-11-17  Frank Warmerdam  <[email protected]>
4597
4598	* tif_dirread.c: do not mark all anonymously defined tags to be
4599	IGNOREd.
4600
46012003-11-17  Andrey Kiselev  <[email protected]>
4602
4603	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
4604	TIFFDataWidth() function insted of tiffDataWidth array.
4605
46062003-11-16  Andrey Kiselev  <[email protected]>
4607
4608	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
4609	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
4610
46112003-11-15  Frank Warmerdam  <[email protected]>
4612
4613	* Makefile.in: fixed missing backslash for tif_color.c in list.
4614
46152003-11-13  Andrey Kiselev  <[email protected]>
4616
4617	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
4618	New color space conversion code: CIE L*a*b* 1976 images now supported
4619	by the TIFFRGBAImage interface. All introduced routines go to new
4620	module tif_color.c. Eventually all color conversion functions should
4621	be moved there.
4622
46232003-11-12  Andrey Kiselev  <[email protected]>
4624
4625	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
4626	with the reverse byte order (it is reported by the magic header
4627	field). Problem reported by Andreas Wiesmann.
4628
4629	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
4630	calculation function. Guessing mechanics now documented in manual page.
4631
46322003-11-11  Andrey Kiselev  <[email protected]>
4633
4634	* tools/raw2tiff.c: Implemented image size guessing using
4635	correlation coefficient calculation between two neighbour lines.
4636
46372003-11-09  Frank Warmerdam  <[email protected]>
4638
4639	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
4640	planarconfig_contig case in TIFFComputeTile().
4641
4642	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
4643
46442003-11-09  Andrey Kiselev  <[email protected]>
4645
4646	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
4647
46482003-11-07  Andrey Kiselev  <[email protected]>
4649
4650	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
4651	Added TIFFRawStripSize() function as suggested by Chris Hanson.
4652
46532003-11-03  Andrey Kiselev  <[email protected]>
4654
4655	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
4656	per bug
4657
4658	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
4659
46602003-10-29  Andrey Kiselev  <[email protected]>
4661
4662	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
4663
4664	* html/build.html: Added note about GNU make requirement.
4665
46662003-10-25  Andrey Kiselev  <[email protected]>
4667
4668	* Makefile.in: Fixes in using MAKEFLAGS as per bug
4669
4670	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
4671
4672	* port/install.sh.in: Option -p added to the mkdir command to create
4673	all directory tree structure before installing.
4674
46752003-10-18  Andrey Kiselev  <[email protected]>
4676
4677	* /tools/tiff2ps.c: #include <strings.h> replaced with the
4678	#include <string.h>.
4679
46802003-10-16  Andrey Kiselev  <[email protected]>
4681
4682	* Makefile.in: Add an absolute path to the test_pics.sh call.
4683
46842003-10-12  Andrey Kiselev  <[email protected]>
4685
4686	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
4687	typedefs.
4688
46892003-10-09  Andrey Kiselev  <[email protected]>
4690
4691	* configure, libtiff/{Makefile.in, mkversion.c}:
4692	Relative buildings fixed.
4693
4694	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
4695	rule.
4696
46972003-10-07  Andrey Kiselev  <[email protected]>
4698
4699	* Makefile.in: Added missed v3.6.0.html.
4700
4701	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
4702	ORIENTATION_BOTLEFT.
4703
47042003-10-04  Andrey Kiselev  <[email protected]>
4705
4706	* 3.6.0 final release.
4707
47082003-10-03  Andrey Kiselev  <[email protected]>
4709
4710	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
4711	function TIFFReadRGBAImageOriented() implemented to retrieve raster
4712	array with user-specified origin position as suggested by Jason Frank.
4713	See
4714
4715	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4716
4717	for details.
4718
4719	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
4720	instead of TIFFReadRGBAImage().
4721
4722	* tools/tiff2ps.c: Fixed possible endless loop as per bug
4723
4724	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
4725
47262003-09-30  Andrey Kiselev  <[email protected]>
4727
4728	* libtiff/tif_dirread.c: Check field counter against number of fields
4729	in order to fix
4730
4731	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
4732
4733	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
4734
4735	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
4736
47372003-09-25  Andrey Kiselev  <[email protected]>
4738
4739	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
4740	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
4741
4742	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
4743
47442003-09-23  Andrey Kiselev  <[email protected]>
4745
4746	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
4747
4748	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4749
47502003-08-21  Andrey Kiselev  <[email protected]>
4751
4752	* tools/tiffmedian.c: int declaration replaced with the uint32 to
4753	support large images as per bug
4754
4755	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
4756
47572003-08-12  Andrey Kiselev  <[email protected]>
4758
4759 	* libtiff/Makefile.in: Fixed problem with building in different
4760	directory.
4761
4762	* tools/tiff2ps.c: Added missing #include <strings.h>.
4763
4764	* libtiff/tif_dirwrite.c: More fixes for custom tags code
4765	from Ashley Dreier.
4766
47672003-08-07  Andrey Kiselev  <[email protected]>
4768
4769	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
4770	Patch submitted by Balatoni Denes (with corrections from Tom
4771	Kacvinsky).
4772
4773	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
4774	being used. Reported by Tom Kacvinsky.
4775
4776	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
4777	reported by Ashley Dreier.
4778
4779	* libtiff/tif_print.c: Fixed problem with float tags reading, support
4780	for printing RATIONAL and BYTE tags added.
4781
47822003-08-05  Andrey Kiselev  <[email protected]>
4783
4784	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
4785	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
4786	problems with predictor initialization. Remove O_RDONLY check during
4787	state block allocation to be able open LZW compressed files in update
4788	mode.
4789
4790	Problem exist for libtiff version of the tif_lzw.c module. One from
4791	lzw-compression-kit hasn't such troubles.
4792
47932003-08-04  Frank Warmerdam  <[email protected]>
4794
4795	* libtiff/tif_write.c: modified tif_write.c so that the various
4796	encoded write functions use tif_postdecode() to apply byte order
4797	swapping (swab) to the application passed data buffer if the same
4798	would be done when reading.  This allows us to write pixel data with
4799	more than 8 bits per sample to existing files of a non-native byte
4800	order.  One side effect of this change is the applications buffer
4801	itself is altered in this case by the act of writing.
4802
4803	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
4804
48052003-07-25  Frank Warmerdam  <[email protected]>
4806
4807	* libtiff/tif_open.c: avoid signed/unsigned casting warning
4808	initializing typemask as per patch from J.A. Strother.
4809
4810	* tools/tiffcp.c: fixed signed/unsigned casting warning.
4811
4812	* libtiff/tif_print.c: dos2unix conversion.
4813
4814	* tools/tiffsplit.c: increased the maximum number of pages that
4815	can be split.  Patch provided by Andrew J. Montalenti.
4816
48172003-07-11  Andrey Kiselev  <[email protected]>
4818
4819	* tools/raw2tiff.c: Added option `-p' to explicitly select color
4820	space of input image data. Closes
4821
4822	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
4823
48242003-07-08  Frank Warmerdam  <[email protected]>
4825
4826	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
4827	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
4828	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
4829	avoid casting warning at /W4.
4830
48312003-07-03  Andrey Kiselev  <[email protected]>
4832
4833	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
4834
48352003-06-30  Andrey Kiselev  <[email protected]>
4836
4837	* libtiff/tif_pixarlog.c: Unused variables removed.
4838
4839	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
4840	EstimateStripByteCounts() as per bug
4841
4842	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4843
4844	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
4845	64-bit architectures as per bug
4846
4847	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4848
4849	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
4850	unknown data type.
4851
48522003-06-19  Frank Warmerdam  <[email protected]>
4853
4854	* libtiff/tif_print.c: fixed some serious bugs when printing
4855	custom tags ... almost certain to crash.
4856
4857	* libtiff/tif_dirread.c: Don't ignore custom fields that are
4858	autodefined.  Not sure how this got to be like this.
4859
48602003-06-18  Andrey Kiselev  <[email protected]>
4861
4862	* 3.6.0 Beta2 released.
4863
4864	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
4865	comparing as per bug
4866
4867	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
4868
4869	`-z' option now can be used to set the number of reported different
4870	bytes.
4871
48722003-06-09  Andrey Kiselev  <[email protected]>
4873
4874	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
4875	to -r option to get the entire image as one strip. See
4876
4877	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4878
4879	for details.
4880
48812003-06-04  Andrey Kiselev  <[email protected]>
4882
4883	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
4884	values as per bug
4885
4886	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4887
48882003-05-27  Frank Warmerdam  <[email protected]>
4889
4890	* libtiff/tif_jpeg.c: modified segment_height calculation to always
4891	be a full height tile for tiled images.  Also changed error to just
4892	be a warning.
4893
48942003-05-25  Andrey Kiselev  <[email protected]>
4895
4896	* tools/fax2tiff.c: Page numbering fixed, as per bug
4897
4898	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
4899
49002003-05-20  Andrey Kiselev  <[email protected]>
4901
4902	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4903	configure, Makefile.in:	Switched back to the old behaviour. Likely
4904	better solution should be found for OJPEG support.
4905
49062003-05-11  Andrey Kiselev  <[email protected]>
4907
4908	* libtiff/mkversion.c: Fixed problem with wrong string size when
4909	reading RELEASE-DATE file.
4910
49112003-05-07  Andrey Kiselev  <[email protected]>
4912
4913	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
4914	index was out of range.
4915
49162003-05-06  Andrey Kiselev  <[email protected]>
4917
4918	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4919	configure, Makefile.in:	Improved libtiff compilation with OJPEG
4920	support. Now no need for patching IJG JPEG library, hack requred by
4921	libtiff will be compiled and used in-place. Implemented with
4922	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
4923
4924	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
4925	TIFFVGetFieldDefaulted() function.
4926
49272003-05-05  Andrey Kiselev  <[email protected]>
4928
4929	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
4930	comments.
4931
4932	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
4933	was not copied from source image.
4934
4935	* libtiff/getimage.c: Workaround for some images without correct
4936	info about alpha channel as per bug
4937
4938	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
4939
49402003-04-29  Andrey Kiselev  <[email protected]>
4941
4942	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
4943	It basically allows one to use the /flateDecode filter for ZIP
4944	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
4945
4946	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
4947
4948	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
4949	as per bug
4950
4951	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
4952
49532003-04-17  Andrey Kiselev  <[email protected]>
4954
4955	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
4956	due to problems with multidirectory images. Quality of error messages
4957	improved.
4958
49592003-04-16  Andrey Kiselev  <[email protected]>
4960
4961	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
4962	encoded images. See bug entries
4963
4964	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
4965
4966	and
4967
4968	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
4969
4970	* libtiff/tif_dirread.c: Additional check for StripByteCounts
4971	correctness. Fixes
4972
4973	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
4974
49752003-03-12  Andrey Kiselev  <[email protected]>
4976
4977	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
4978	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
4979	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
4980	tiffmedian.c}: Added library version reporting facility to all tools.
4981
49822003-03-06  Frank Warmerdam  <[email protected]>
4983
4984	* port/install.sh.in: Fixed problems with install producing paths
4985	like ///usr/local/lib on cygwin.
4986
49872003-02-27  Andrey Kiselev  <[email protected]>
4988
4989	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
4990	raw input page. Patch supplied by Julien Gaulmin. See
4991
4992	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
4993
4994	for details.
4995
49962003-02-26  Frank Warmerdam  <[email protected]>
4997
4998	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
4999	responsible for byte swapping complex image data.
5000
5001	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
5002	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
5003
50042003-02-07  Andrey Kiselev  <[email protected]>
5005
5006	* tools/ppm2tiff.c: Fixed problem with too many arguments.
5007
50082003-02-04  Andrey Kiselev  <[email protected]>
5009
5010	* tools/raw2tiff.c: Memory leak fixed.
5011
50122003-02-03  Andrey Kiselev  <[email protected]>
5013
5014	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
5015	(thanks, Julien!). More switches for fax2tiff tool for better control
5016	of input and output. Details at
5017
5018	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
5019
50202003-02-03  Frank Warmerdam  <[email protected]>
5021
5022	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
5023	library so that we can check if there is already any tile/strip data
5024	before deciding between creating a compressor or a decompressor.
5025
50262003-01-31  Frank Warmerdam  <[email protected]>
5027
5028	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
5029	a pre-existing compressed image.  That is, image writing to
5030	pre-existing compressed images is not allowed.
5031
5032	* libtiff/tif_open.c: Removed error if opening a compressed file
5033	in update mode.
5034
5035	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
5036
50372003-01-31  Andrey Kiselev  <[email protected]>
5038
5039	* config.guess, config.sub: Updated to recent upstream versions.
5040
50412003-01-15  Frank Warmerdam  <[email protected]>
5042
5043	* cut 3.6.0 Beta release.
5044
50452002-12-20  Andrey Kiselev  <[email protected]>
5046
5047	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
5048	in wrong way as per bug
5049
5050	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
5051
50522002-12-17  Frank Warmerdam  <[email protected]>
5053
5054	* libtiff/tif_dirread.c: Allow wrong sized arrays in
5055	TIFFFetchStripThing().
5056
5057	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
5058
50592002-12-02  Frank Warmerdam  <[email protected]>
5060
5061	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
5062	Was using realloc even first time.  Fix by Igor Venevtsev.
5063
50642002-11-30  Frank Warmerdam  <[email protected]>
5065
5066	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
5067	field value.
5068
5069	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
5070	tags in TIFFVGetField() ... added missing break.
5071
50722002-10-14  Frank Warmerdam  <[email protected]>
5073
5074	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
5075	the scanline buffer long enough when writing rgb triplets.
5076	The scanline needs to be 3 X the number of dots or else it will
5077	contain	an incomplete triplet and programs that try to separate
5078	the eps by redefining the colorimage operator will get messed up.
5079	Patch supplied by William Bader.
5080
5081	* Makefile.in: added tif_extension.c to file list as per
5082	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
5083
50842002-10-11  Andrey Kiselev  <[email protected]>
5085
5086	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
5087	large files (>2GiB) supporting. New option in the config.site:
5088	LARGEFILE="yes". Should be enough for I/O of the large files.
5089
50902002-10-10  Frank Warmerdam  <[email protected]>
5091
5092	* libtiff/html/v3.6.0.html: new release notes.
5093
5094	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
5095	link for Andrey.  Pointer to v3.6.0.html.
5096
5097	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
5098
50992002-10-07  Andrey Kiselev  <[email protected]>
5100	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
5101	(thanks, Sebastian!). New switches:
5102	-b # for a bottom margin of # inches
5103	-c   center image
5104	-l # for a left margin of # inches
5105	-r   rotate the image by 180 degrees
5106	New features merged with code for shrinking/overlapping.
5107	Previously added -c and -n switches (for overriding PS units) renamed
5108	in -x and -y respectively.
5109
5110	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
5111
5112	* html/man/*.html: Updated from actual manual pages.
5113
51142002-10-06  Frank Warmerdam  <[email protected]>
5115
5116	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
5117	size on windows.  Use #define boolean hack.
5118
5119	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
5120
5121	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
5122	USING_VISUALAGE is defined.
5123
5124	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5125
51262002-10-03  Frank Warmerdam  <[email protected]>
5127
5128	* libtiff/tiff.h: added COMPRESSION_JP2000.
5129
51302002-10-02  Andrey Kiselev  <[email protected]>
5131
5132	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
5133	by the TIFFFetchByteArray() function. Should finally resolve
5134
5135	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5136
5137	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
5138
5139	* html/Makefile.in: New targets added: html and groffhtml for
5140	producing HTML representations of the manual pages automatically.
5141	html target uses man2html tool, groffhtml uses groff tool.
5142
51432002-09-29  Frank Warmerdam  <[email protected]>
5144
5145	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
5146	from John H. DuBois III.
5147
51482002-09-15  Andrey Kiselev  <[email protected]>
5149
5150	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
5151	manual page for raw2tiff(1) tool.
5152
51532002-09-12  Andrey Kiselev  <[email protected]>
5154
5155	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
5156	the tiffio.h header file.
5157
5158	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
5159	manual page for TIFFDataWidth() function
5160
51612002-09-08  Frank Warmerdam  <[email protected]>
5162
5163	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
5164	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
5165
5166	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
5167	since we are unable to properly include the amount to skip.
5168
5169	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
5170
51712002-09-02  Andrey Kiselev  <[email protected]>
5172
5173	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5174	in TIFFFetchByteArray(). Problem described at
5175	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5176
51772002-08-22  Andrey Kiselev  <[email protected]>
5178
5179	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5180	in _TIFFSetupFieldInfo() function.
5181	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5182
5183	* /libtiff/tif_lzw.c: Additional consistency checking added in
5184	LZWDecode() and LZWDecodeCompat().
5185	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5186	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5187
5188	* /libtiff/tif_lzw.c:
5189	Added check for valid code lengths in LZWDecode() and
5190	LZWDecodeCompat(). Fixes
5191	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5192
51932002-08-16  Andrey Kiselev  <[email protected]>
5194
5195	* /libtiff/{Makefile.vc, libtiff.def}:
5196	Missed declarations added.
5197
51982002-08-15  Frank Warmerdam  <[email protected]>
5199
5200	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5201	return code from the underlying pick function.
5202
5203	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5204
5205	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5206	with FIELD_CUSTOM as mentioned in bug 169.
5207
5208	* tif_close.c: added logic to free dynamically created anonymous
5209	field definitions to correct a small memory leak.
5210
5211	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5212
52132002-08-10  Andrey Kiselev  <[email protected]>
5214
5215	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5216	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5217
52182002-07-31  Frank Warmerdam  <[email protected]>
5219
5220	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5221	JPEGDecode() as per bugzilla bug (issue 1):
5222
5223	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5224
5225	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5226	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5227	present in the tiff tags.
5228
5229	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5230
5231	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5232	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5233	fooled with the value.
5234
5235	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5236
52372002-06-22  Andrey Kiselev  <[email protected]>
5238
5239	* /tools/tiff2ps.c: Added workaround for some software that may crash
5240	when last strip of image contains fewer number of scanlines than
5241	specified by the `/Height' variable. See
5242	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5243	for explanation.
5244
52452002-06-21  Andrey Kiselev  <[email protected]>
5246
5247	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5248	splitting long images in several pages. See
5249	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5250	Patch granted by John Williams <[email protected]>.
5251
52522002-06-11  Frank Warmerdam  <[email protected]>
5253
5254	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5255	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5256	This one is described in:
5257
5258	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5259
5260	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5261
5262	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5263
52642002-05-10  Andrey Kiselev  <[email protected]>
5265
5266	* tools/tiff2ps: New commandline switches to override resolution
5267	units obtained from the input file. Closes
5268	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5269
52702002-04-26  Andrey Kiselev  <[email protected]>
5271
5272	* libtiff/libtiff.def: Added missed declaration.
5273
52742002-04-22  Andrey Kiselev  <[email protected]>
5275
5276	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5277	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5278
52792002-04-20  Andrey Kiselev  <[email protected]>
5280
5281	* libtiff/tif_open.c: Pointers to custom procedures
5282	in TIFFClientOpen() are checked to be not NULL-pointers.
5283
52842002-04-18  Andrey Kiselev  <[email protected]>
5285
5286	* libtiff/libtiff.def: Added missed declarations.
5287
5288	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5289
52902002-04-16  Andrey Kiselev  <[email protected]>
5291
5292	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5293	Should finally close
5294	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5295
52962002-04-10  Andrey Kiselev  <[email protected]>
5297
5298	* tools/tiff2ps: Division by zero fixed.
5299	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5300
53012002-04-09  Andrey Kiselev  <[email protected]>
5302
5303	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5304	TIFFCheckpointDirectory() routine added.
5305	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5306
5307	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5308	for the new function.
5309
53102002-04-08  Andrey Kiselev  <[email protected]>
5311
5312	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5313	additional members tif->tif_decodestatus and tif->tif_encodestatus
5314	for correct handling of unconfigured codecs (we should not try to read
5315	data or to define data size without correct codecs).
5316
5317	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5318	changed. Now it has used tif->tif_decodestatus and
5319	tif->tif_encodestatus.
5320	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5321	case of __cvs_8.tif test image).
5322
5323	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5324	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5325	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5326	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5327
53282002-04-04  Andrey Kiselev  <[email protected]>
5329
5330	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5331	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5332	files by skipping bad strips.
5333	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5334
53352002-04-03  Frank Warmerdam  <[email protected]>
5336
5337	* libtiff/tif_dirwrite.c: Removed some dead code.
5338
5339	* libtiff/*: Cleanup some warnings.
5340
5341	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5342	for variable length FIELD_CUSTOM values.  Was int * but should be
5343	u_short *.
5344
53452002-04-01  Andrey Kiselev  <[email protected]>
5346
5347	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
5348	utility (at cpStripToTile routine).
5349
53502002-03-27  Frank Warmerdam  <[email protected]>
5351
5352	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
5353
5354	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
5355
5356	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
5357	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
5358
5359	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
5360	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
5361
53622002-03-26  Dwight Kelly  <[email protected]>
5363
5364	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5365	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
5366	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
5367	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
5368	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
5369	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
5370
53712002-03-26  Andrey Kiselev  <[email protected]>
5372
5373	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
5374	now also uses TIFFRGBAImageOK before reading. This is additional fix
5375	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5376
53772002-03-25  Andrey Kiselev  <[email protected]>
5378
5379	* libtiff/: tif_getimage.c: Additional check for supported
5380	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
5381	TIFFRGBAImageOK before reading.
5382	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5383
53842002-03-15  Andrey Kiselev  <[email protected]>
5385
5386	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5387	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
5388	TIFFDataType sizes instead of working with tiffDataWidth array
5389	directly. Should prevent out-of-borders bugs in case of unknown or
5390	broken data types.  EstimateStripByteCounts routine modified, so it
5391	won't work when tags with uknown sizes founded.
5392	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
5393
53942002-03-13  Andrey Kiselev  <[email protected]>
5395
5396	* libtiff/tif_getimage.c: Added support for correct handling
5397	`Orientation' tag in gtTileContig. Should be added in other gt*
5398	functions as well, but I have not images for testing yet. Partially
5399	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5400
54012002-03-10  Andrey Kiselev  <[email protected]>
5402
5403	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
5404	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
5405	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
5406	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
5407
54082002-03-08  Andrey Kiselev  <[email protected]>
5409
5410	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
5411	be stripped when installing, utility binaries will do.	Closes
5412	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5413
54142002-02-28  Frank Warmerdam  <[email protected]>
5415
5416	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
5417
5418	* man/libtiff.3t: added copyright tag info.
5419
54202002-02-11  Frank Warmerdam  <[email protected]>
5421
5422	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
5423
5424	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5425
5426	* man/Makefile.in: Patch DESTDIR handling
5427
5428	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
5429
5430	* configure: OpenBSD changes for Sparc64 and DSO version.
5431
5432	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
5433
54342002-02-05  Frank Warmerdam  <[email protected]>
5435
5436	* config.site/configure: added support for OJPEG=yes option to enable
5437	OJPEG support from config.site.
5438
54392002-01-27  Frank Warmerdam  <[email protected]>
5440
5441	* html/document.html: fixed links for TIFf 6 docs.
5442
54432002-01-18  Frank Warmerdam  <[email protected]>
5444
5445	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
5446
5447	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
5448	decodestrip function returns anything not greater than zero as per
5449	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
5450
5451	* configure: Modify CheckForBigEndian so it can work in a cross
5452	compiled situation.
5453
54542002-01-16  Frank Warmerdam  <[email protected]>
5455
5456	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
5457
5458	* tools/tiffset.c: fix bug in error reporting.
5459
5460	* tools/tiffcp.c: fix several warnings that show up with -Wall.
5461
54622002-01-04  Frank Warmerdam  <[email protected]>
5463
5464	* libtiff/tif_jpeg.c: fixed computation of segment_width for
5465	tiles files to avoid error about it not matching the
5466	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
5467	size.") for ITIFF files.  Apparently the problem was incorporated since
5468	3.5.5, presumably during the OJPEG/JPEG work recently.
5469
54702001-12-15  Frank Warmerdam  <[email protected]>
5471
5472	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
5473
5474	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5475
5476	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
5477	(defined in tiffconf.h - 1 by default) then the RGBA interface
5478	will assume that a fourth extra sample is ASSOCALPHA if the
5479	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
5480	the library, but makes it work better with RGBA files produced by
5481	lots of applications that don't mark the alpha values properly.
5482
5483	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5484	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
5485
54862001-12-12  Frank Warmerdam  <[email protected]>
5487
5488	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
5489	override those from tiff directory.  This makes this work with
5490	ImageGear generated files.
5491
54922001-12-07  Frank Warmerdam  <[email protected]>
5493
5494	* html/Makefile.in: added missing images per bug 92.
5495
5496	* port/Makefile.in: fixed clean target per bug 92.
5497
54982001-11-28  Frank Warmerdam  <[email protected]>
5499
5500	* Reissue 3.5.7 release.
5501
5502	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
5503	YYYYMMDD so that it is increasing over time.
5504
5505	* Makefile.in: Ensure that tiffvers.h is regenerated in the
5506	make release target.
5507
5508	* Makefile.in: added libtiff/tiffvers.h to the release file list.
5509
55102001-11-23  Frank Warmerdam  <[email protected]>
5511
5512	* added html/v3.5.7.html, updated html/index.html.
5513
5514	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
5515
55162001-11-15  Frank Warmerdam  <[email protected]>
5517
5518	* configure: fixed test for -lm.
5519
55202001-11-02  Frank Warmerdam  <[email protected]>
5521
5522	* Added PHOTOMETRIC_ITULAB as per bug 90.
5523
5524	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
5525
55262001-10-10  Frank Warmerdam  <[email protected]>
5527
5528	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
5529	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
5530	in keeping with TIFF 6.0 standard in tiff.h
5531
5532	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
5533
55342001-09-26  Frank Warmerdam  <[email protected]>
5535
5536	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
5537	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
5538
55392001-09-24  Frank Warmerdam  <[email protected]>
5540
5541	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
5542
5543	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
5544
5545	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
5546	error about LZW not being available.
5547
5548	* libtiff/tif_dir.c: propagate failure to initialize compression
5549	back from TIFFSetField() as an error status, so applications can
5550	detect failure.
5551
5552	* libtiff/tif_dir.c: removed the auto replacement of
5553	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
5554
5555	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
5556	from CVS as they are all supposed to be auto-generated by configure.
5557
55582001-09-22  Frank Warmerdam  <[email protected]>
5559
5560	* libtiff/tif_ojpeg.c: new update from Scott.
5561
55622001-09-09  Frank Warmerdam  <[email protected]>
5563
5564	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
5565	always use the "safe" version, even if there is a very slight
5566	cost in performance.
5567
5568	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
5569
5570	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
5571	in two places.
5572
5573	* libtiff/tif_getimage.c: Fixed problem with reading strips or
5574	tiles that don't start on a tile boundary.  Fix contributed by
5575	Josep Vallverdu (from HP), and further described in bug 47.
5576
5577	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
5578
5579	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
5580
5581	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
5582
55832001-09-06  Frank Warmerdam  <[email protected]>
5584
5585	* libtiff/tif_packbits.c: fixed memory overrun error.
5586
5587	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
5588
55892001-08-31  Frank Warmerdam  <[email protected]>
5590
5591	* libtiff/tif_getimage.c: relax handling of contig case where
5592	there are extra samples that are supposed to be ignored.  This
5593	should now work for 8bit greyscale or palletted images.
5594
5595	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
5596
55972001-08-28  Frank Warmerdam  <[email protected]>
5598
5599	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
5600	images with more than four samples per pixel.  See:
5601
5602	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
5603
56042001-08-10  Frank Warmerdam  <[email protected]>
5605
5606	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
5607	in TIFFReadRGBATile() to avoid issues in cases of overlapping
5608	buffers.  See Bug 69 in Bugzilla.
5609
5610	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
5611
5612	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
5613
56142001-08-09  Frank Warmerdam  <[email protected]>
5615
5616	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
5617	when checking for 64 bit architectures as per bugzilla bug 67.
5618
56192001-07-27  Frank Warmerdam  <[email protected]>
5620
5621	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
5622	bug 66.
5623
56242001-07-20  Frank Warmerdam  <[email protected]>
5625
5626	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
5627	has been included.
5628
56292001-07-19  Frank Warmerdam  <[email protected]>
5630
5631	* libtiff/tif_open.c: Seek back to zero after failed read,
5632	before writing header.
5633
56342001-07-18  Frank Warmerdam  <[email protected]>
5635
5636	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
5637	much better.  Now depends on having patched libjpeg as per
5638	patch in contrib/ojpeg/*.
5639
56402001-07-17  Frank Warmerdam  <[email protected]>
5641
5642	* */Makefile.in: added DESTDIR support.
5643
5644	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
5645
56462001-07-16  Frank Warmerdam  <[email protected]>
5647
5648	* configure, libtiff/Makefile.in: applied OpenBSD patches
5649	as per:
5650
5651	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
5652
56532001-06-28  Frank Warmerdam  <[email protected]>
5654
5655	* libtiff/tif_getimage.c: Fixed so that failure is properly
5656	reported by gtTileContig, gtStripContig, gtTileSeparate and
5657	gtStripSeparate.
5658
5659	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
5660
5661	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
5662	Updated bug section of tiffcmp.1 to note tiled file issues.
5663
5664	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
5665
56662001-06-22  Frank Warmerdam  <[email protected]>
5667
5668	* configure: Changes for DSO generation on AIX provided by
5669	John Marquart <[email protected]>.
5670
5671	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
5672	on Darwin thanks to Robert Krajewski ([email protected]) and
5673	Keisuke Fujii ([email protected]).
5674
56752001-06-13  Frank Warmerdam  <[email protected]>
5676
5677	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
5678
5679	* man/tiff2rgba.1: new
5680
56812001-05-22  Frank Warmerdam  <[email protected]>
5682
5683	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
5684
56852001-05-13  Frank Warmerdam  <[email protected]>
5686
5687	* libtiff/tools/thumbnail.c: changed default output compression
5688	to packbits from LZW since LZW isn't generally available.
5689
56902001-05-12  Frank Warmerdam  <[email protected]>
5691
5692	* libtiff/tif_ojpeg.c: New.
5693	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
5694	to OJPEG support.
5695
5696	Scott Marovich <[email protected]> supplied OJPEG support.
5697
56982001-05-11  Frank Warmerdam  <[email protected]>
5699
5700	* tiff.h: removed, it duplicates libtiff/tiff.h.
5701
57022001-05-08  Frank Warmerdam  <[email protected]>
5703
5704	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
5705	ensure everything is in order.
5706
5707	* libtiff/libtiff.def: added TIFFCreateDirectory and
5708	TIFFDefaultStripSize as per:
5709
5710	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
5711
57122001-05-02  Frank Warmerdam  <[email protected]>
5713
5714	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
5715	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
5716	force use of uint32 counts instead of short counts.
5717
5718	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
5719	case of writing TIFF_BYTE/TIFF_SBYTE fields.
5720
5721	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
5722
57232001-05-01  Frank Warmerdam  <[email protected]>
5724
5725	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
5726	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
5727
57282001-04-05  Frank Warmerdam  <[email protected]>
5729
5730	* tiffio.h: removed C++ style comment.
5731
5732	* configure: fixed up SCRIPT_SH/SHELL handling.
5733
5734	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
5735
5736	* config.guess: documented more variables as per bug 40.
5737
57382001-04-03  Frank Warmerdam  <[email protected]>
5739
5740	* configure, *Makefile.in: Various changes to improve configuration
5741	for HP/UX specifically, and also in general.  They include:
5742	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
5743	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
5744	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
5745	 - Use -${MAKEFLAGS} in sub makes from makefiles.
5746
5747	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
5748
57492001-04-02  Frank Warmerdam  <[email protected]>
5750
5751	* libtiff/tiff.h: Applied hac to try and resolve the problem
5752	with the inttypes.h include file on AIX.
5753
5754	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5755
5756	* VERSION: update to 3.5.7 beta in preparation for release.
5757
5758	* configure/config.site: modified to check if -lm is needed for
5759	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
5760
5761	* config.guess: updated wholesale to an FSF version apparently
5762	from 1998 (as opposed to 1994).  This is mainly inspired by
5763	providing for MacOS X support.
5764
57652001-03-29  Frank Warmerdam  <[email protected]>
5766
5767	* configure, Makefile.in, etc: added support for OPTIMIZER being
5768	set from config.site.
5769
57702001-03-28  Frank Warmerdam  <[email protected]>
5771
5772	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
5773
5774	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
5775	sizes. It fixes two problems:
5776
5777	Without	scaling (-S) the fax is now centered on the page size specified
5778	with -H	and/or -W. Before, fax2ps was using an obscure and practially
5779	useless algorithm to allocate the image relative to Letter sized paper
5780	which sometime sled to useless whitespace on the paper, while at the
5781	same time cutting of the faxes printable area at the opposite border.
5782
5783	Second, scaling now preserves aspect ratio, which makes unusual faxes
5784	(in particular short ones) print properly.
5785
5786	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
5787
5788	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
5789	Bruce A. Mallett.  See check message for detailed information
5790	on all the changes, including a faster encoder, fixes for level
5791	2 PostScript, and support for the imagemask operator.
5792
57932001-03-27  Frank Warmerdam  <[email protected]>
5794
5795	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
5796	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
5797
5798	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5799
58002001-03-16  Frank Warmerdam  <[email protected]>
5801
5802	* tif_dirinfo.c: moved definition of copyright tag in field list.
5803	Apparently they have to be in sorted order by tag id.
5804
58052001-03-13  Frank Warmerdam  <[email protected]>
5806
5807	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
5808	images in RGBA interface.
5809
58102001-03-02  Frank Warmerdam  <[email protected]>
5811
5812	* Added TIFFTAG_COPYRIGHT support.
5813
58142001-02-19  Frank Warmerdam  <[email protected]>
5815
5816	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
5817	with support for extracting subimages with the ,n syntax, and also
5818	adding the -b bias removal flag.
5819
58202001-02-16  Frank Warmerdam  <[email protected]>
5821
5822	* libtiff/libtiff.def: Brent Roman submitted new version adding
5823	serveral missing entry points.
5824
5825	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
5826	Some sort of weird VMS thing.
5827
5828	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
5829
5830	* tif_luv.c/tiff.h/tiffio.h:
5831	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
5832	([email protected]).  He writes:
5833
5834	1) I improved the gamut-mapping function in tif_luv.c for imaginary
5835	colors, because some images were being super-saturated on the input
5836	side and this resulted in some strange color shifts in the output.
5837
5838	2) I added a psuedotag in tiff.h to control random dithering during
5839	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
5840	on for 24-bit LogLuv output.  Dithering improves the average color
5841	accuracy over the image.
5842
5843	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
5844	tiffio.h, to expose internal routines for converting between LogLuv and
5845	XYZ coordinates.  This is helpful for writing more efficient,
5846	specialized conversion routines, especially for reading LogLuv files.
5847
5848	Changes applied with minor edits.
5849
58502001-01-23  Frank Warmerdam  <[email protected]>
5851
5852	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
5853	whether we are encoding or decoding.  This is to ensure graceful
5854	recovery if TIFFClientOpen() discovers an attempt to open a compressed
5855	file for "r+" access, and subsequently close it, as it resets the
5856	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
5857	compressor's concept of whether it is in encode or decode mode.
5858
58592001-01-08  Mike Welles <[email protected]>
5860
5861	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
5862
58632001-01-07  Frank Warmerdam  <[email protected]>
5864
5865	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
5866	as per bug report by Patrick Connor.
5867
58682000-12-28  Frank Warmerdam  <[email protected]>
5869
5870	* Added RELEASE-DATE file to release file list.
5871
5872	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
5873
58742000-12-22  Mike Welles <[email protected]>
5875        * added link to CVS mirror from index.html
5876
5877	* updated html/internals.html to note that LZW compression is
5878	  not supported by default.
5879
58802000-12-22  Frank Warmerdam  <[email protected]>
5881
5882	* updated html/libtiff.html to not point at Niles' old JPL web site
5883	for the man pages, point at www.libtiff.org.
5884
58852000-12-21  Frank Warmerdam  <[email protected]>
5886
5887	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
5888	Leonard Rosenthol <[email protected]>.  May interfere
5889	with correct building on older systems.  If so, please let me know.
5890
58912000-12-19 Mike Welles <[email protected]>
5892
5893	* Took out LZW Encoding from tif_lzw.c
5894
5895	* Created HOWTO-RELEASE
5896
5897	* Created html/v3.5.6.html
5898
5899	* updated index.html
5900
59012000-12-01  Frank Warmerdam  <[email protected]>
5902
5903	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
5904	Patches supplied by Frank Cringle <[email protected]>
5905	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
5906
59072000-11-24  Frank Warmerdam  <[email protected]>
5908
5909	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
5910	target so that the private headers required by libgeotiff can be
5911	installed with the others.  They are not installed by default.
5912
5913	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
5914	targets so libtiff.so will be built with an explicit dependency
5915	on libm.so.
5916
5917	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
5918	libtiff.so.3.5.5.
5919
5920	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
5921	file, or ALPHA version logic.  Added stuff about DIST_POINT in
5922	place of DIST_TYPE and the alpha release number stuff.
5923
59242000-11-22  Frank Warmerdam  <[email protected]>
5925
5926	* I have applied a patch from Steffen Moeller <[email protected]> to
5927	the configure script so that it now accepts the --prefix, and
5928	--exec-prefix directives.
5929
59302000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
5931
5932	* I have made a variety of modifications in an effort to ensure the
5933	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
5934	file which seems to be updated regularly.
5935
5936	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
5937	   version include file.
5938	 o renamed version.h to tiffvers.h because we now have to install it
5939	   with the public libtiff include files.
5940	 o include tiffvers.h in tiffio.h.
5941	 o updated tif_version.c to use tiffvers.h.
5942	 o Updated Makefile.in accordingly.
5943
5944	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
5945	I have updated the win32 detection rules in tiffcomp.h.
5946
59472000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
5948
5949	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
5950	the strip/tile width and height aren't multiples of the sampling size.
5951	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
5952	Some patches from Rick LaMont of Dot C Software.
5953
5954	* Modified tif_packbits.c encoder to avoid compressing more
5955	data than provided if rowsize doesn't factor into provided data
5956	(such as occurs for YCbCr).
5957
59582000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
5959
5960	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
5961	roundup if rows_per_strip not a multiple of vertical sample size.
5962
59632000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
5964
5965	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
5966	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5967	from [email protected].
5968
5969	* Modified tif_packbits.c decoding to avoid overrunning the
5970	output buffer, and to issue a warning if data needs to be
5971	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5972
59732000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
5974
5975	* Modified tiff2bw to ensure portions add to 100%, and that
5976	white is properly recovered.
5977
5978	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
5979	Patch c/o Stanislav Brabec <[email protected]>
5980
59812000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
5982
5983	* Modified TIFFClientOpen() to emit an error on an attempt to
5984	open a comperessed file for update (O_RDWR/r+) access.  This is
5985	because the compressor/decompressor code gets very confused when
5986	the mode is O_RDWR, assuming this means writing only.  See
5987	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
5988
59892000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
5990
5991	* Added GNULDdso target an`d switched linux and freebsd to use it.
5992
59932000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
5994
5995	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
5996	of EXPAND1D() as per bug 11 (from Roman).
5997
59982000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
5999	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
6000	cygwin compatibility.
6001
6002	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
6003	be a proper fix to the buffer sizing problem.  See
6004	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
6005
6006	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
6007	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
6008	Thanks to Nick Lamb <[email protected]> for reporting the
6009	bug and proving the patch.
6010
60112000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
6012
6013	* Fixed tif_jpeg.c so avoid destroying the decompressor before
6014	we are done access data thanks to bug report from:
6015	Michael Eckstein <[email protected]>.
6016
6017	* Reverted tif_flush change.
6018
60192000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
6020
6021	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
6022	error when TIFF_BEENWRITING is not set.  This ensures that the
6023	directory contents can still be flushed by TIFFFlush().
6024
60252000-08-14  Frank Warmerdam  <[email protected]>
6026
6027	* tif_open.c: Don't set MMAP for O_RDWR files.
6028
6029	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
6030	so that files opened for update can be strip chopped too.
6031
6032	* tif_read.c: fixed up bug with files missing rowsperstrip and
6033	the strips per separation fix done a few weeks ago.
6034
60352000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
6036
6037	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
6038	SAMPLEFORMAT_COMPLEXINT.
6039
60402000-07-13  Mike Welles <[email protected]>
6041
6042	* index.html, bugs.html: added bugzilla info.
6043
60442000-07-12  Frank Warmerdam  <[email protected]>
6045
6046	* tif_read.c: fix subtle bug with determining the number of
6047	rows for strips that are the last strip in a separation but
6048	not the last strip of all in TIFFReadEncodedStrip().
6049
6050	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
6051	Peter Skarpetis <[email protected]>
6052
60532000-06-15  Frank Warmerdam  <[email protected]>
6054
6055	* Modified tiffio.h logic with regard to including windows.h.  It
6056	won't include it when building with __CYGWIN__.
6057
60582000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
6059
6060	* README: update to mention www.libtiff.org, don't list Sam's old
6061	email address.
6062
6063	* configure: Fixed DSO test for Linux as per patch from
6064	  Jan Van Buggenhout <[email protected]>.
6065
60662000-04-21  Frank Warmerdam  <[email protected]>
6067
6068	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
6069	one tile/strip images with an offset, and byte count of zero. These
6070	could be "unpopulated" images.
6071
60722000-04-18  Frank Warmerdam  <[email protected]>
6073
6074	* contrib/addtiffo: Added "averaging" resampling option.
6075
6076	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
6077
6078Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
6079
6080	* tools/Makefile.in: Modified to install properly on SGI.
6081
60822000-04-12  Mike Welles	     <[email protected]>
6083	* configure:  Fixed stupid mistake in libc6 test on Linux
6084
60852000-04-04  Mike Welles	     <[email protected]>
6086	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
6087	  caught by BoundsChecker.  From Arvan Pritchard
6088	  <[email protected]>  (untested).
6089
6090	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
6091	  Arvan Pritchard <[email protected]>
6092
6093	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
6094	  Arvan Pritchard <[email protected]>
6095
60962000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
6097
6098	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
6099
61002000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
6101
6102	* fax2ps: Fixed mixup of width and height in bounding box statement
6103	as per submission by Nalin Dahyabhai <[email protected]>.
6104
61052000-03-27  Mike Welles	     <[email protected]>
6106
6107	* fax2ps:  Modified printruns to take uint32 instead of uint16.
6108	Patch courtesy of Bernt Herd <[email protected]>
6109
61102000-03-20  Mike Welles	     <[email protected]>
6111
6112	* configure: added test for libc6 for linux targets.  Bug reported by
6113        Stanislav Brabec <[email protected]>
6114
6115	* Added 3.5 docs to html/Makefile.in.
6116	Thanks to  Stanislav Brabec <[email protected]>
6117
6118	* configure: fixed bugs in sed scripts
6119	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
6120	fix submitted to Stanislav Brabec <[email protected]>
6121
6122	* tools/iptcutil was not in files list, and wasn't being
6123	added to tar archive.  Updated Makefile.in.
6124
61252000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
6126
6127	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
6128	conversion for the run arrays.
6129
61302000-03-03  Frank Warmerdam  <[email protected]>
6131
6132	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
6133	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
6134
61352000-03-02  Frank Warmerdam  <[email protected]>
6136
6137	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
6138
6139	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
6140	to avoid overruns encountered with frle_bug.tif.
6141
6142Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
6143
6144	* Fixed tools/tiffcmp so that stopondiff testing works.
6145	  Patch care of Joseph Orost <[email protected]>.
6146
61472000-01-28    <warmerda@CS46980-B>
6148
6149	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
6150	  set to 1, and added default (off) setting in tiffconf.h.  This
6151	  should eventually be set by the configure script somehow.
6152
6153	  The original work on all these 2-4GB changes was done by
6154	  Peter Smith ([email protected]).
6155
6156	* Modified tif_win32.c to support 2-4GB seeks.
6157
6158	* tentatively changed toff_t to be unsigned instead of signed to
6159	  facilitate support for 2-4GB files.
6160
6161	* Updated a variety of files to use toff_t.  Fixed some mixups
6162	  between toff_t and tsize_t.
6163
6164Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
6165
6166	* Largely reimplemented contrib/addtiffo to avoid temp files,
6167	updating the TIFF file in place.  Fixed a few other bugs to.
6168
6169	* Set tif_rawdatasize to zero when freeing raw data buffer in
6170	TIFFWriteDirectory().
6171
6172	* Enabled "REWRITE_HACK" in tif_write.c by default.
6173
6174	* Fix bug in tif_write.c when switching between reading one directory
6175	and writing to another.
6176
6177	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6178
6179Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6180
6181	* Added TIFFmemory(3t) functions to libtiff.def.
6182
6183Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6184
6185	* Added libtiff/libtiff.def to TIFFILES distribution list.
6186
6187Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6188
6189	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6190
6191	* Altered descriptions in tools to reflect "by default" lzw not supported
6192
6193	* Updated index.html to note lzw compression kit.
6194
6195Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6196
6197	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6198
6199Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6200
6201	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6202
6203	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6204	  when LZW compression invoked.
6205
6206	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6207	  in tools to reflect removal of LZW compression
6208
6209Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6210
6211        * Fixed bug that caused LZW (non) compression to segfault. Added
6212	  warning about LZW compression removed being removed, and why.
6213
6214	* Added nostrip to install in tools/Makefile.in so that debugging
6215	  symbols are kept.
6216
6217Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6218
6219	* Added patch from Ivo Penzar <[email protected]>,
6220	  supporting Adobe ZIP deflate.  Untested.
6221
6222Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6223
6224	* Made Packbits the default compression in tools/tiff2rgba.c instead
6225	of LZW.
6226
6227Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6228
6229	* Added tif_luv to contrib/djgpp/Makefile.lib.
6230
6231Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6232
6233        * Added zip creation to relase makefile target
6234
6235	* Added html for TIFFWriteTile.3t man page.
6236
6237Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6238
6239	* Added some changes to tif_write.c to support rewriting existing
6240	fixed sized tiles and strips.  Code mods disabled by default, only
6241	enabled if REWRITE_HACK is defined for now.
6242
6243Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6244
6245	* Added TIFFWriteTile.3t man page.
6246
6247Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6248
6249	* Added notes on use of makefile.vc in build.html, and fixed
6250	email subscription address.
6251
6252199-11-28  Mike Welles <[email protected]>
6253
6254	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6255
6256	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6257	   from Bruce Carmeron <[email protected]> -- modifications of
6258	   changes made by Frank (sun cc still complained on cast).
6259
6260	*  Added tiffconf.h to install target per request from Bill
6261	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6262 	   know features have been compiled into the TIFF library in order to
6263	   handle things properly".
6264
6265Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6266
6267	* fixed various VC++ warnings as suggested by Gilles Vollant
6268	<[email protected]>.
6269
6270Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6271
6272	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6273	not imply applications are responsible for image data swapping.
6274
62751999-11-22  Mike Welles <[email protected]>
6276	*  HTML-ized the man pages, added to html/man
6277
6278	*  Removed LZW Compression to comply with Unisys patent extortion.
6279
62801999-09-29  Mike Welles		<[email protected]>
6281	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6282	   From Ivo Penzar <[email protected].
6283
6284	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6285	   memory mapped files. <[email protected]>
6286
62871999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6288	* Corrected alpha versioning.
6289
6290	* Removed distinction between  alpha and release targets in Makefile.in.
6291
6292	* added release.stamp target, which tags cvs tree, and updates
6293	  "RELEASE-DATE"
6294
6295	* added releasediff target, which diffs tree with source as of
6296	  date in "RELEASE-DATE"
6297
6298	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6299	  away from alpha/non-alpha distinctions).
6300
6301	* updated html to reflect release
6302
63031999-09-23    <warmerda@CS46980-B>
6304
6305	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6306
6307	* Added CYGWIN case in configure.
6308
6309Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6310
6311	* Applied Francois Dagand's patch to handle fax decompression bug.
6312	  (sizes >= 65536 were failing)
6313
6314Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6315
6316	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6317	  by Christopher Lawton <[email protected]>
6318
6319Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6320
6321	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6322	  Albert Chin-A-Young <[email protected]>
6323
6324	* Added TIFFReassignTagToIgnore() API on behalf of
6325	  Bruce Cameron <[email protected]>.  Man page still pending.
6326
6327Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6328
6329	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6330	files to provide for a rudimentary testsuite.
6331
6332	* Added contrib/tags back from old distribution ... fixed up a bit.
6333
63341999-08-16    <warmerda@CS46980-B>
6335
6336	* Added simple makefile.vc makefiles for building with MS VC++
6337	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6338	better solutions for some users.
6339
6340Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6341
6342	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6343	put it in tools since part of it is in C++.
6344
63451999-08-16  Michael L. Welles  <[email protected]>
6346
6347	* Updated html/index.html with anon CVS instructions.
6348
6349Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
6350
6351	* pre-remove so link before softlink in LINUXdso action in
6352	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
6353	the first.
6354
6355	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
6356	colormaps owned by the TIFF handle itself when trying to fixup wrong
6357	(eight bit) colormaps.  Corrected by maintaining a private copy of
6358	the colormap.
6359
6360	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
6361	tif_getimage.c.
6362
6363	* CVS Repository placed at remotesensing.org.  ChangeLog added.
6364