xref: /libtiff-4.0.7/ChangeLog (revision 5e6fbd86)
12015-05-28  Bob Friesenhahn  <[email protected]>
2
3	* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
4	Coverity 298615 "Resource leak".
5
6	* tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309
7	"Resource leak".
8
9	* tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource
10	leak".
11	(cpStrips): Fix Coverity 1024305 "Resource leak".
12
132015-05-27  Bob Friesenhahn  <[email protected]>
14
15	* tools/ras2tiff.c: Fix Sun Raster header definition to be safe
16	for 64-bit systems.  Add some header validations.  Should fix many
17	Coverity issues.
18	(main): Fix Coverity 1301206: "Integer handling issues  (BAD_SHIFT)".
19	(main): Quiet Coverity 1024223 "Untrusted value as argument".
20
21	* tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting
22	level does not match indentation".
23	(get_histogram): Quiet Coverity 1024386 "Out-of-bounds read".
24	This was a benign mis-diagnosis but added code to enforce against
25	buffer overflow.
26
27	* tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical
28	vs. bitwise operator".
29	(readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or
30	modulo by zero".
31	(readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead
32	code".
33	(writeSingleSection): Fix Coverity 1024796 "Nesting level does not
34	match indentation".
35	(writeCroppedImage): Fix Coverity 1024797 "Nesting level does not
36	match indentation".
37	(loadImage): Fix Coverity 1299741 "Dereference before null check".
38	(loadImage): Fix Coverity 1299740 "Out-of-bounds write".
39
402015-03-02  Even Rouault  <[email protected]>
41
42	* tools/tiffdither.c: check memory allocations to avoid writing to
43	NULL pointer. Also check multiplication overflow. Fixes #2501,
44	CVE-2014-8128. Derived from patch by Petr Gajdos.
45
462015-01-26  Even Rouault  <[email protected]>
47
48	* add html/v4.0.4beta.html under version control
49	* HOWTO-RELEASE: write that cvs add html/vX.X.html must be used
50
512015-01-26  Even Rouault  <[email protected]>
52
53	* libtiff 4.0.4beta released
54
552015-01-26  Even Rouault  <[email protected]>
56
57	* automake: updated to 1.15
58	* libtool: updated to 2.4.5
59
602015-01-22  Even Rouault  <[email protected]>
61
62	* tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
63
642015-01-05  Frank Warmerdam  <[email protected]>
65
66	* html/bugs.html: remove note about needing to email the tiff mailing
67	list administrator about being approved for membership, this appears
68	not to be true.
69
702015-01-05  Olivier Paquet  <[email protected]>
71
72	* tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
73
742015-01-03  Even Rouault  <[email protected]>
75
76	* libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
77	when reading more than 65535 directories, and effectively error out when
78	reaching that limit.
79
802014-12-29  Even Rouault  <[email protected]>
81
82	* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
83	markers to avoid emitting a warning (even if, according to the TechNote,
84	there are admitedly unusual/not recommended or even forbidden variants, but
85	they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
86	SOF9 and SOF10).
87	Define in_color_space and input_components to the right values in
88	JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
89	libjpeg API documentation, so as to be compatible with mozjpeg library.
90	Note: the default settings of mozjpeg will produce progressive scans, which
91	is forbidden by the TechNote.
92
932014-12-29  Even Rouault  <[email protected]>
94
95	* libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
96	to avoid buffer leak (fix previous fix, found by Coverity scan)
97
982014-12-29  Even Rouault  <[email protected]>
99
100	* libtiff/tif_next.c: add new tests to check that we don't read outside of
101	the compressed input stream buffer.
102
103	* libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
104    in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
105    putcontig8bitYCbCr21tile cases.
106
1072014-12-27  Even Rouault  <[email protected]>
108
109	* libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
110	extented tags installed by user code through the extender mechaninm before
111	calling the extender callback (GDAL #5054)
112
1132014-12-26  Bob Friesenhahn  <[email protected]>
114
115	* tools/tiffcrop.c: Fix warnings about variables set but not used.
116
117	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
118	but not used.
119
120	* tools/tiffgt.c: Fix warnings about unused parameters.
121
122	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
123
1242014-12-25  Even Rouault  <[email protected]>
125
126	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
127	various typos found by Debian lintian tool (GDAL #5756)
128
1292014-12-24  Even Rouault  <[email protected]>
130
131	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
132	http://bugzilla.maptools.org/show_bug.cgi?id=2235
133
1342014-12-24  Even Rouault  <[email protected]>
135
136	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
137	http://bugzilla.maptools.org/show_bug.cgi?id=2445
138
1392014-12-24  Even Rouault  <[email protected]>
140
141	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
142	Derived from patch by Petr Gajdos,
143	http://bugzilla.maptools.org/show_bug.cgi?id=2443
144
1452014-12-23  Even Rouault  <[email protected]>
146
147	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
148	of _TIFFFillStriles(). This solves crashing bug on corrupted
149	images generated by afl.
150
1512014-12-23  Even Rouault  <[email protected]>
152
153	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
154	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
155	images generated by afl.
156
1572014-12-21  Bob Friesenhahn  <[email protected]>
158
159	* tools/tiffdump.c: Guard against arithmetic overflow when
160	calculating allocation buffer sizes.
161
1622014-12-21  Even Rouault  <[email protected]>
163
164	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
165	SamplesPerPixel = 3. Enforce that
166	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
167
1682014-12-21  Even Rouault  <[email protected]>
169
170	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
171	copying. The right fix would be to properly copy it, but not worth the burden
172	for those esoteric utilities.
173	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
174
1752014-12-21  Even Rouault  <[email protected]>
176
177	* tools/thumbnail.c: fix out-of-buffer write
178	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
179
1802014-12-21  Even Rouault  <[email protected]>
181
182	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
183	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
184	COMPRESSION_CCITTFAX4
185	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
186
1872014-12-21  Even Rouault  <[email protected]>
188
189	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
190	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
191
1922014-12-21  Even Rouault  <[email protected]>
193
194	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
195	TIFFTAG_SAMPLESPERPIXEL
196
1972014-12-21  Even Rouault  <[email protected]>
198
199	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
200	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
201	Description: fix for Debian bug #741451
202	tiffcp crashes when converting JPEG-encoded TIFF to a different
203	encoding (like none or lzw). For example this will probably fail:
204	tiffcp -c none jpeg_encoded_file.tif output.tif
205	The reason is that when the input file contains JPEG data,
206	the tiffcp code forces conversion to RGB space. However,
207	the output normally inherits YCbCr subsampling parameters
208	from the input, which leads to a smaller working buffer
209	than necessary. The buffer is subsequently overrun inside
210	cpStripToTile() (called from writeBufferToContigTiles).
211	Note that the resulting TIFF file would be scrambled even
212	if tiffcp wouldn't crash, since the output file would contain
213	RGB data intepreted as subsampled YCbCr values.
214	This patch fixes the problem by forcing RGB space on the output
215	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
216	Author: Tomasz Buchert <[email protected]>
217
2182014-12-21  Even Rouault  <[email protected]>
219
220	Fix various crasher bugs on fuzzed images.
221	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
222	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
223	the directory
224	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
225	TransferFunction if BitsPerSample has not yet been read, otherwise reading
226	it later will cause user code to crash if BitsPerSample > 1
227	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
228	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
229	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
230	instead of imagewidth to avoid crash
231	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
232	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
233	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
234	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
235	* tools/tiffdump.c: fix crash due to overflow of entry count.
236
2372014-12-15  Even Rouault  <[email protected]>
238
239	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
240	all tiles/strips to include quantization tables even when the jpegtablesmode
241	had the JPEGTABLESMODE_QUANT bit set.
242	Also add explicit removal of Huffman tables when jpegtablesmode has the
243	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
244	first tile/strip (only useful in update scenarios. create-only was
245	fine)
246
2472014-12-09  Bob Friesenhahn  <[email protected]>
248
249	* tools/tiff2pdf.c: Assure that memory size calculations for
250	_TIFFmalloc() do not overflow the range of tmsize_t.
251
2522014-12-07  Even Rouault  <[email protected]>
253
254	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
255	Valgrind and Address Sanitizer on test suite
256
2572014-12-07  Bob Friesenhahn  <[email protected]>
258
259	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
260	tag can return one channel, with the other two channels set to
261	NULL.  The tiff2pdf code was expecting that other two channels
262	were duplicate pointers in the case where there is only one
263	channel.  Detect this condition in order to avoid a crash, and
264	presumably perform correctly with just one channel.
265
2662014-12-06  Bob Friesenhahn  <[email protected]>
267
268	* tools/tiffdump.c: Fix double-free bug.
269
2702014-11-27  Even Rouault  <[email protected]>
271
272	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
273	Visual Studio 2015 aka VC 14 aka MSVC 1900
274
2752014-11-20  Even Rouault  <[email protected]>
276
277	* libtiff/tif_lzw.c: prevent potential null dereference of
278	sp->dec_codetab in LZWPreDecode (bug #2459)
279
280	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
281	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
282
283	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
284
285	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
286	Coverity happier (not a bug, #2459)
287
288	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
289	(not a bug, #2459)
290
291	* tools/tiff2pdf.c: close PDF file (bug #2479)
292
293	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
294
295	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
296	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
297
298	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
299	(bug #2459) and add missing va_end in dump_info (#2459)
300
301	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
302
3032014-11-20  Even Rouault  <[email protected]>
304	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
305	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
306
3072014-11-20  Even Rouault  <[email protected]>
308	* automake: updated to 1.14.1
309	* libtool: updated to 2.4.3
310	* HOWTO-RELEASE: small update about autotools building order
311
3122014-10-20  Olivier Paquet  <[email protected]>
313	* tools/tiff2pdf.c: Preserve input file directory order when pages
314	are tagged with the same page number.
315
3162014-08-31  Bob Friesenhahn  <[email protected]>
317
318	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
319	count for tag should be a warning rather than an error since
320	errors terminate processing.
321
3222014-06-07  Bob Friesenhahn  <[email protected]>
323
324	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
325	was wrongly described.  Fix suggested by Miguel Medalha.
326
3272014-05-06  Bob Friesenhahn  <[email protected]>
328
329	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
330	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
331	Reviewed and forwarded by Lee Howard.
332
3332013-11-30  Frank Warmerdam  <[email protected]>
334
335	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
336
3372013-10-21  Frank Warmerdam  <[email protected]>
338
339	* libtiff/tif_dir.c: generate error in case of directory count
340	overflow.
341
3422013-10-01  Frank Warmerdam  <[email protected]>
343
344	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
345	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
346
3472013-09-12  Bob Friesenhahn  <[email protected]>
348
349	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
350	be defective, then set it to zero before returning error in order
351	to terminate processing of truncated TIFF.  Issue found and fix
352	suggested by Richard Nolde.
353
3542013-08-14  Frank Warmerdam  <[email protected]>
355
356	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
357
3582013-08-13  Frank Warmerdam  <[email protected]>
359
360	* tools/gif2tiff.c: Be more careful about corrupt or
361	hostile input files (#2450, CVE-2013-4231)
362
363	* tools/tiff2pdf.c: terminate after failure of allocating
364	ycbcr buffer (bug #2449, CVE-2013-4232)
365
3662013-07-09  Frank Warmerdam  <[email protected]>
367
368	* tools/tiffinfo.c: Default various values fetched with
369	TIFFGetField() to avoid being uninitialized.
370
3712013-05-02  Tom Lane  <[email protected]>
372
373	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
374	t2p_process_jpeg_strip to be at least marginally competent.  The
375	approach is still fundamentally flawed, but at least now it won't
376	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
377
3782013-05-02  Tom Lane  <[email protected]>
379
380	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
381 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
382 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
383 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
384 	large enough, and eliminate substantially all uses of sprintf(buf,
385 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
386 	protect against overflow of fixed-size buffers.  This responds in
387 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
388 	t2p_write_pdf_page(), but in general it seems like a good idea to
389 	deprecate use of sprintf().
390
3912013-03-29  Bob Friesenhahn  <[email protected]>
392
393	* configure.ac: Applied patch by Brad Smith to improve pkg-config
394	static linking by adding -lm to Libs.private when needed.
395
3962013-03-05  Tom Lane  <[email protected]>
397
398	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
399 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
400 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
401 	tools/tiffdither.c: Sync tool usage printouts and man pages with
402 	reality (quite a few options had escaped being documented in one
403 	or both places).  Per an old report from Miroslav Vadkerti.
404
4052013-01-25  Bob Friesenhahn  <[email protected]>
406
407	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
408	rotation angle was set by the auto rotate check, it was retained
409	for all pages that followed instead ofa being retested for each
410	page.  Patch by Richard Nolde.
411
4122013-01-18  Frank Warmerdam  <[email protected]>
413
414	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
415	64bit linux.
416
417	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
418	http://bugzilla.maptools.org/show_bug.cgi?id=2427
419
4202012-12-20  Tom Lane  <[email protected]>
421
422	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
423	it will pass with more versions of libjpeg.  (There are at least
424	three in active use now, and JPEG_LIB_VERSION doesn't tell us
425	enough to uniquely identify expected results.)
426
4272012-12-12  Tom Lane  <[email protected]>
428
429	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
430	field_passcount fields: it had the TIFF_VARIABLE and
431	TIFF_VARIABLE2 cases backwards.
432
4332012-12-10  Tom Lane  <[email protected]>
434
435	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
436 	check the linebytes calculation too, get the max() calculation
437 	straight, avoid redundant error messages, check for malloc
438 	failure.
439
4402012-12-10  Tom Lane  <[email protected]>
441
442	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
443 	(to enlarge tbuf for possible partial stride at end) so that
444 	overflow in the integer addition is detected.  Per gripe from
445 	Huzaifa Sidhpurwala.
446
4472012-12-03  Bob Friesenhahn  <[email protected]>
448
449	* tools/tiffset.c: tiffset now supports a -u option to unset a
450	tag.  Patch by Zach Baker. See
451	http://bugzilla.maptools.org/show_bug.cgi?id=2419
452
4532012-11-18  Bob Friesenhahn  <[email protected]>
454
455	* automake: Update Automake to 1.12.5 release.
456
457	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
458	require malloc() to return NULL pointer if requested allocation
459	size is zero.  Assure that _TIFFmalloc does.
460
4612012-11-01  Frank Warmerdam  <[email protected]>
462
463	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
464	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
465	Red Hat Security Response team for the fix.
466
4672012-10-18  Frank Warmerdam  <[email protected]>
468
469	* tif_zip.c: Avoid crash on NULL error messages.
470
4712012-09-22  Bob Friesenhahn  <[email protected]>
472
473	* libtiff 4.0.3 released.
474
4752012-09-20  Bob Friesenhahn  <[email protected]>
476
477	* Makefile.am: Update to Automake 1.12.4
478
4792012-08-19  Bob Friesenhahn  <[email protected]>
480
481	* Makefile.in: Update to Automake 1.12.3
482
483	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
484	some TIFF/FX support in libtiff.  Add the tag definitions to
485	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
486	and also fixes an error in a comment.  Adds the photometric values
487	to tif_print.c, and fixes a bug.  These changes are by Steve
488	Underwood.
489
4902012-08-13  Frank Warmerdam  <[email protected]>
491
492	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
493	compressed file: http://trac.osgeo.org/gdal/ticket/4771
494
4952012-08-02  Frank Warmerdam  <[email protected]>
496
497	* libtiff/tif_dirread.c: report error in case of mismatch value
498	counts for tags (ie. DotRange).
499
5002012-07-26  Tom Lane  <[email protected]>
501
502	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
503 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
504	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
505	as external accessors for the opaque type TIFFField.
506
507	* tools/tiffset.c: Make tiffset use the above functions instead of
508	relying on library private headers.
509
5102012-07-19  Tom Lane  <[email protected]>
511
512	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
513	after a malloc failure.  No crash risk AFAICS, but the program
514	might not report exit code 1 as desired.  h/t [email protected]
515
5162012-07-18  Tom Lane  <[email protected]>
517
518	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
519	prevents core dumps or perhaps even arbitrary code execution when
520	processing a corrupt input file (CVE-2012-3401).
521
5222012-07-06  Bob Friesenhahn  <[email protected]>
523
524	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
525	IJG JPEG 7+ uses a different upsampling algorithm which produces
526	different numeric results.
527
528	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
529	work with IJG JPEG 7+.
530
5312012-07-04  Bob Friesenhahn  <[email protected]>
532
533	* test/raw_decode.c: Add changes so that test can run with build
534	directory outside of source directory.
535
5362012-07-02  Frank Warmerdam  <[email protected]>
537
538	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
539	imagery (http://trac.osgeo.org/gdal/ticket/4732)
540
5412012-06-20  Frank Warmerdam  <[email protected]>
542
543	* libtiff/tif_fax3.c: fix memory initialization of runs, only
544	partly done.
545
546	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
547	full "stride" past the end.
548
5492012-06-19  Frank Warmerdam  <[email protected]>
550
551	* libtiff/tif_packbits.c: fix read past end of data buffer.
552
5532012-06-15  Frank Warmerdam  <[email protected]>
554
555	*  libtiff 4.0.2 released.
556
557	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
558	warnings with clang.
559
5602012-06-15  Tom Lane  <[email protected]>
561
562	* tools/tiff2pdf.c: Defend against integer overflows while
563	calculating required buffer sizes (CVE-2012-2113).
564
5652012-06-12  Frank Warmerdam  <[email protected]>
566
567	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
568
569	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
570
5712012-06-07  Frank Warmerdam  <[email protected]>
572
573	* libtiff/tif_print.c: avoid pretty printing other fields when
574	we don't have the proper amount and type of data or if the field
575	is actually autodefined.
576
5772012-06-05  Frank Warmerdam  <[email protected]>
578
579	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
580	ycbcrsubsampling values result in a runtime error, not just an
581	assertion.
582
583	* tests/custom_dir.c: Add testing of EXIF and custom directory
584	reading and writing.
585
586	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
587	and TIFFCreateEXIFDirectory() functions.
588
589	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
590	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
591	differently.  This is to avoid using special TIFFGetField/TIFFSetField
592	rules for these fields in non-image directories (like EXIF).
593
5942012-06-04  Frank Warmerdam  <[email protected]>
595
596	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
597	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
598	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
599
6002012-06-01  Frank Warmerdam  <[email protected]>
601
602	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
603
604	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
605	http://bugzilla.maptools.org/show_bug.cgi?id=2379
606
607	* libtiff/tif_unix.c: use strerror() to return a more specific error message
608	on failed open.
609	http://bugzilla.maptools.org/show_bug.cgi?id=2341
610
611	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
612	http://bugzilla.maptools.org/show_bug.cgi?id=2386
613
614	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
615	for testing jpeg in tiff image decoding including the "raw" decode interface.
616
6172012-05-31  Frank Warmerdam  <[email protected]>
618
619	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
620	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
621	sampling values.
622
623	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
624
625	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
626	http://bugzilla.maptools.org/show_bug.cgi?id=2398
627
6282012-05-29  Frank Warmerdam  <[email protected]>
629
630	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
631	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
632	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
633	to get/set functions for different tags!
634
635	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
636	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
637
6382012-05-24  Frank Warmerdam  <[email protected]>
639
640	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
641	accumulate" and overwrite the end by one word in at least some cases.
642
6432012-05-23  Frank Warmerdam  <[email protected]>
644
645	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
646
647	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
648
649	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
650	the same image.
651
652	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
653	stripbytecounts or stripoffsets or where loading these fails.
654
655	* libtiff/tif_print.c: be careful about whether min/max values are singular
656	or one per sample.
657
658	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
659	May affect things like ISOSpeedRatings.
660
661	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
662	in some cases.
663
6642012-05-19  Bob Friesenhahn  <[email protected]>
665
666	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
667	example for how to retreive the value of unsupported tags.
668
6692012-03-30  Frank Warmerdam  <[email protected]>
670
671	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
672	care of Tom Lane @ Red Hat.
673
6742012-02-18  Bob Friesenhahn  <[email protected]>
675
676	* libtiff 4.0.1 released.
677
678	* Update automake used to 1.11.3.
679
680	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
681	attribute specification to lessen the risk of accidental macro
682	substitution.  Patch from Vincent Torri.
683
6842012-01-31  Frank Warmerdam  <[email protected]>
685
686	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
687	assumption tag fetching is always successful.
688
689	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
690
6912012-01-22  Bob Friesenhahn  <[email protected]>
692
693	* configure.ac: Add support for using library symbol versioning on
694	ELF systems with the GNU linker.  Support is enabled via
695	--enable-ld-version-script.  Disabled by default for now until
696	there is a decision for how to deploy a libtiff with versioned
697	symbols after libtiff 4.0.0 was already released.
698
6992011-12-22  Bob Friesenhahn  <[email protected]>
700
701	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
702
703	tif_win32.c.  Patch by Edward Lam.
704
705	* configure.ac: Add libtiff private dependency on -llzma for
706	pkg-config.  Patch by Mark Brand.
707	Updated Automake to 1.11.2.
708
7092011-12-21  Bob Friesenhahn  <[email protected]>
710
711	* libtiff 4.0.0 released.
712
7132011-12-08  Frank Warmerdam  <[email protected]>
714
715	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
716	of _TIFFFillStriles() results (#gdal 4372)
717
7182011-12-07  Frank Warmerdam  <[email protected]>
719
720	* libtiff/tif_dirread.c: fixes to deal with invalid files where
721	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
722
723	* libtiff/tif_dirread.c: fix error reporting when there is no
724	tag information struct and name (gdal #4373)
725
7262011-10-22  Bob Friesenhahn  <[email protected]>
727
728	* Update GNU libtool to 2.4.2.
729
730	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
731	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
732	Deroulers.
733
7342011-06-21  Frank Warmerdam  <[email protected]>
735
736	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
737
7382011-05-31  Jim Meyering  <[email protected]>
739
740	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
741	upon failure to allocate "resizeddata".
742	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
743	allocation failure, not before.
744	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
745	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
746	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
747	NULL-deref and possible overflow
748	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
749	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
750	and set of otherwise unused local, data_is_empty.
751	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
752	Diagnose out-of-memory failure and return 0 rather than
753	dereferencing NULL.
754
7552011-05-24  Frank Warmerdam  <[email protected]>
756
757	* libtiff/tif_dirread.c: produce special error message for zero tag
758	directories instead of error out on the malloc(0) failure.
759
7602011-05-16  Frank Warmerdam  <[email protected]>
761
762	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
763	related declarations as they are in active use by libraries
764	such as libgeotiff, and work just fine.  (#2315)
765
7662011-04-20  Frank Warmerdam  <[email protected]>
767
768	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
769	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
770	http://bugzilla.maptools.org/show_bug.cgi?id=2315
771
772	* libtiff/libtiff.def: add some missing (64bit) APIs.
773	http://bugzilla.maptools.org/show_bug.cgi?id=2316
774
7752011-04-09  Bob Friesenhahn  <[email protected]>
776
777	* libtiff 4.0.0beta7 released.
778
7792011-04-09  Bob Friesenhahn  <[email protected]>
780
781	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
782	the run-time target whereas target is used to specify the final
783	output target if the package is a build tool (like a compiler),
784	which libtiff is not.  Resolves libtiff bug 2307 "Use
785	AC_CANONICAL_HOST macro".
786
7872011-04-02  Bob Friesenhahn  <[email protected]>
788
789	* configure.ac: Support configuring TIFF_INT64_FORMAT and
790	TIFF_UINT64_FORMAT appropriately for MinGW32.
791
792	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
793	printf conventions for 64-bit types because it uses the WIN32 CRT.
794
795	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
796	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
797	printf conventions for 64-bit types because it uses the WIN32 CRT.
798
799	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
800	understood by WIN32 CRT.
801
802	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
803
804	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
805	it is much more portable.  Tmpfile is included in ISO/IEC
806	9899:1990 and the WIN32 CRT.
807
8082011-03-26  Frank Warmerdam  <[email protected]>
809
810	* tools/tiffset.c: add -d and -sd switches to allow operation on
811	a particular directory, not just the first (jef).
812
8132011-03-21  Frank Warmerdam  <[email protected]>
814
815	* libtiff/tif_thunder.c: Correct potential buffer overflow with
816	thunder encoded files with wrong bitspersample set.  The libtiff
817	development team would like to thank Marin Barbella and TippingPoint's
818	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
819	CVE-2011-1167).
820	http://bugzilla.maptools.org/show_bug.cgi?id=2300
821
8222011-03-10  Frank Warmerdam  <[email protected]>
823
824	* libtiff/tif_fax3.h: Fix to last change allowing zero length
825	runs at the start of a scanline - needed for legal cases.
826
8272011-03-02  Frank Warmerdam  <[email protected]>
828
829	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
830	a move left.  Without this, a malicious input file can generate an
831	indefinitely large series of runs without a0 ever reaching the right
832	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
833	This is a modified version of a patch proposed by Drew Yao of Apple
834	Product Security.  It adds an unexpected() report, and disallows the
835	equality case, since emitting a run without increasing a0 still allows
836	buffer overrun.
837
8382011-02-23  Frank Warmerdam  <[email protected]>
839
840	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
841
842	* tools/tiff2rgba.c: close source file on error to make leak
843	detection easier.
844
845	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
846
847	http://bugzilla.maptools.org/show_bug.cgi?id=2295
848
8492011-02-22  Frank Warmerdam  <[email protected]>
850
851	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
852	_SUPPORT)
853
8542011-02-18  Frank Warmerdam  <[email protected]>
855
856	* configure.ac, configure: Added support for --enable-chunky-strip-read
857	configure option to enable the experimental feature from a couple
858	months ago for reading big strips in chunks.
859
860	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
861	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
862	Implement optional support for deferring the load of strip/tile
863	offset and size tags for optimized scanning of directories.  Enabled
864	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
865	#define in tif_config.h).
866
8672011-02-11  Frank Warmerdam  <[email protected]>
868
869	* libtiff/tif_print.c: remove unused variable.
870
8712011-02-09  Frank Warmerdam  <[email protected]>
872
873	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
874	with non-console (popup message) builds on win32.
875
876	http://bugzilla.maptools.org/show_bug.cgi?id=2293
877
8782011-01-24  Olivier Paquet  <[email protected]>
879
880	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
881	tif_print.c, tiff.h, tiffiop.h} : Added support for
882	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
883	values for each sample. Presents the min/max of all samples by default for
884	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
885	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
886	http://www.asmail.be/msg0055458208.html
887
8882011-01-06  Frank Warmerdam  <[email protected]>
889
890	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
891	maintained.
892
893	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
894	for CHUNKY_STRIP_READ_SUPPORT.
895
896	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
897	during JPEGPreDecode and JPEGDecode calls.
898	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
899	as compression formats like JPEG keep 16 lines interleaved in a sense
900	and might need to touch	quite a bit of data.
901
902	http://trac.osgeo.org/gdal/ticket/3894
903
9042011-01-03  Lee Howard <[email protected]>
905
906	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
907	caused by commit on 2010-12-14.  Submitted by e-mail from
908	Even Rouault <[email protected]>
909
9102010-12-31  Olivier Paquet  <[email protected]>
911
912	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
913	http://bugzilla.maptools.org/show_bug.cgi?id=2266
914
9152010-12-23  Andrey Kiselev  <[email protected]>
916
917	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
918	compression level parameter (preset) for Deflate and LZMA encoders,
919	e.g "-c lzma:p1" or "-c zip:p9".
920
921	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
922	(preset) in LZMAVSetField().
923
9242010-12-18  Bob Friesenhahn  <[email protected]>
925
926	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
927	Makefile.
928
9292010-12-14  Andrey Kiselev  <[email protected]>
930
931	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
932	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
933	TIFF compression scheme LZMA reserving a new value 34925 for
934	Compression tag. As per
935	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
936
9372010-12-14  Lee Howard <[email protected]>
938
939	* libtiff/tif_dirread.c: tolerate some cases where
940	FIELD_COLORMAP is missing
941	http://bugzilla.maptools.org/show_bug.cgi?id=2189
942
9432010-12-14  Lee Howard <[email protected]>
944
945	* libtiff/tif_read.c: change read_ahead to tmsize_t
946	http://bugzilla.maptools.org/show_bug.cgi?id=2222
947
9482010-12-14  Lee Howard <[email protected]>
949
950	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
951	Windows except on Cygwin
952	http://bugzilla.maptools.org/show_bug.cgi?id=2224
953
9542010-12-14  Lee Howard <[email protected]>
955
956	* tools/gif2tiff.c: fix buffer overrun
957	http://bugzilla.maptools.org/show_bug.cgi?id=2270
958
9592010-12-14  Lee Howard <[email protected]>
960
961	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
962	to improve compatibility with various viewers
963	submitted by e-mail from Dwight Kelly <[email protected]>
964
9652010-12-13  Lee Howard <[email protected]>
966
967	* tools/fax2ps.c: be consistent with page-numbering
968	http://bugzilla.maptools.org/show_bug.cgi?id=2225
969
9702010-12-13  Lee Howard <[email protected]>
971
972	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
973	resolves CVE-2010-2595
974	http://bugzilla.maptools.org/show_bug.cgi?id=2208
975
9762010-12-13  Lee Howard <[email protected]>
977
978	* tools/tiffcrop.c: new release by Richard Nolde
979	http://bugzilla.maptools.org/show_bug.cgi?id=2004
980
9812010-12-12  Lee Howard <[email protected]>
982
983	* tools/tiff2pdf.c: fix colors for images with RGBA
984	interleaved data
985	http://bugzilla.maptools.org/show_bug.cgi?id=2250
986
9872010-12-12  Lee Howard <[email protected]>
988
989	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
990	http://bugzilla.maptools.org/show_bug.cgi?id=2164
991
9922010-12-11  Lee Howard <[email protected]>
993
994	* tools/tiff2pdf.c: remove invalid duplication for Lab
995	http://bugzilla.maptools.org/show_bug.cgi?id=2162
996
9972010-12-11  Lee Howard <[email protected]>
998
999	* libtiff/tif_jpeg.c: fix use of clumplines calculation
1000	http://bugzilla.maptools.org/show_bug.cgi?id=2149
1001
10022010-12-11  Lee Howard <[email protected]>
1003
1004	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
1005	http://bugzilla.maptools.org/show_bug.cgi?id=2118
1006
10072010-12-11  Lee Howard <[email protected]>
1008
1009	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
1010	  libtiff/tif_zip.c: fix build errors for VC6
1011	http://bugzilla.maptools.org/show_bug.cgi?id=2105
1012
10132010-12-11  Lee Howard <[email protected]>
1014
1015	* libtiff/tif_stream.cxx: warnings cleanup
1016	http://bugzilla.maptools.org/show_bug.cgi?id=2091
1017	* libtiff/tif_dirread.c: warnings cleanup
1018	http://bugzilla.maptools.org/show_bug.cgi?id=2092
1019
10202010-12-11  Lee Howard <[email protected]>
1021
1022	* tools/tiff2pdf.c: add fill-page option
1023	http://bugzilla.maptools.org/show_bug.cgi?id=2051
1024
10252010-12-11  Lee Howard <[email protected]>
1026
1027	* libtiff/tif_dirread.c: modify warnings
1028	http://bugzilla.maptools.org/show_bug.cgi?id=2016
1029
10302010-12-11  Lee Howard <[email protected]>
1031
1032	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
1033        http://bugzilla.maptools.org/show_bug.cgi?id=1999
1034
10352010-12-11  Lee Howard <[email protected]>
1036
1037	* tools/tiffinfoce.c: strip byte counts are uint64* now
1038
10392010-12-11  Lee Howard <[email protected]>
1040
1041        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
1042        or missing byte-count tag
1043        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
1044        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
1045
10462010-12-08  Lee Howard <[email protected]>
1047
1048        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
1049        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
1050
10512010-12-06  Lee Howard <[email protected]>
1052
1053        * libtiff/tif_open.c: Fix mode check before opening a file.
1054        http://bugzilla.maptools.org/show_bug.cgi?id=1906
1055
10562010-11-27  Bob Friesenhahn  <[email protected]>
1057
1058	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
1059	Patch by Vincent Torri.
1060
10612010-10-21  Frank Warmerdam  <[email protected]>
1062
1063	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
1064
1065	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
1066
1067	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
1068
10692010-09-25  Lee Howard <[email protected]>
1070
1071	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
1072	with additional command line options for Document Title,
1073	Document Creator, and Page Orientation
1074
10752010-07-13  Bob Friesenhahn  <[email protected]>
1076
1077	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
1078	potentially unterminated buffer due to using an exceptionally long
1079	file name.
1080
10812010-07-08  Andrey Kiselev  <[email protected]>
1082
1083	* tools/tiff2pdf.c: Fixed ID buffer filling in
1084	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
1085
10862010-07-07  Andrey Kiselev  <[email protected]>
1087
1088	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
1089	to expected value as the warning message suggests. As per bug
1090	http://bugzilla.maptools.org/show_bug.cgi?id=1963
1091
10922010-07-06  Andrey Kiselev  <[email protected]>
1093
1094	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
1095	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
1096	which should be set by value.
1097
1098	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
1099	and _TIFFFieldWithName() if the tag is not found in the tag table.
1100	This should be normal situation and returned NULL value should be
1101	properly handled by the caller.
1102
11032010-07-02  Andrey Kiselev  <[email protected]>
1104
1105	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
1106	integer type conversions. As per bug
1107	http://bugzilla.maptools.org/show_bug.cgi?id=2207
1108
1109	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
1110	WhitePoint tag as per bug
1111	http://bugzilla.maptools.org/show_bug.cgi?id=2042
1112
1113	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1114	working with YCbCr image in PickContigCase(). As per bug
1115	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1116
1117	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1118	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1119	we don't need any post-processing. That helps to reset the hook if we
1120	previously set this field to some other value and the hook was
1121	initialized accordingly. As per bug
1122	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1123
11242010-07-01  Andrey Kiselev  <[email protected]>
1125
1126	* tools/tiffgt.c: Properly check the raster buffer allocations for
1127	integer overflows. As per bug
1128	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1129
1130	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1131	upstream.
1132
1133	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1134	multiply_32() and multiply_64() functions into tif_aux.c file and
1135	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1136
11372010-06-30  Andrey Kiselev  <[email protected]>
1138
1139	* tools/tiff2pdf.c: Better generation of ID field in
1140	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1141
1142	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1143	converting JPEG encoded tiles.
1144
1145	* tools/tiff2pdf.c: Better handling of string fields, use static
1146	string buffers instead of dynamically allocated, use strncpy() instead
1147	of strcpy(), control the string lengths.
1148
11492010-06-25  Andrey Kiselev  <[email protected]>
1150
1151	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1152	referencing to uninitialized memory in some cases (e.g. when tile size
1153	set bigger than the image size).
1154
11552010-06-15  Bob Friesenhahn  <[email protected]>
1156
1157	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1158	subsampled data since tiffcrop currently doesn't support it.  Fix
1159	JPEG support.
1160
11612010-06-13  Frank Warmerdam  <[email protected]>
1162
1163	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1164
1165	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1166	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1167	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1168	size is larger.  Also, there are a bunch of places that try to
1169	memset() a malloc'd buffer before checking for malloc failure, which
1170	would result in core dump if there actually were a failure. (#2211)
1171
11722010-06-11  Bob Friesenhahn  <[email protected]>
1173
1174	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1175	avoid compiler warnings if parameter types are not sign
1176	consistent.
1177
1178	* libtiff 4.0.0alpha6 released.
1179
1180	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1181	European page size dimensions.  Added an option to allow the user
1182	to specify a custom page size on the command line.  Fix the case
1183	where a page size specified with a fractional part was being
1184	coerced to an integer by retyping the variables that define the
1185	paper size.
1186
1187	* html/index.html: Update for the 3.9.3 release.
1188
1189	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1190	YCbCr subsampled data since tiffcp currently doesn't support it.
1191	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1192
1193	* Update libtool to version 2.2.10.
1194
11952010-06-10  Bob Friesenhahn  <[email protected]>
1196
1197	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1198	multiplier is zero.
1199
12002010-06-09  Bob Friesenhahn  <[email protected]>
1201
1202	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1203	CVE-2010-1411 was not complete.
1204
1205	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1206	multiply two integers.  Returns zero if there is an integer
1207	overflow.
1208
1209	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1210	is reported when reading the input file.
1211
12122010-06-08  Bob Friesenhahn  <[email protected]>
1213
1214	* Update libtool to version 2.2.8.
1215
1216	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1217	buffer due to integer overflow in TIFFroundup() and several other
1218	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1219	fixes CVE-2010-1411.
1220
1221	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1222	result in an integer overflow. This causes TIFFroundup() to also
1223	return zero if there would be an integer overflow.
1224
1225	* contrib: Add an emacs formatting mode footer to all source files
1226	so that emacs can be effectively used.
1227
12282010-06-03  Oliver Chen Feng <[email protected]>
1229
1230	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1231	file PAGENUMBER value in sequence for users who care the page
1232	sequence, this will also prevent tiff2pdf from creating pdf file from
1233	the merged tiff file with wrong page sequence.
1234
12352010-05-08  Olivier Paquet  <[email protected]>
1236
1237	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1238	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1239	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1240	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1241	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1242
12432010-05-07  Frank Warmerdam  <[email protected]>
1244
1245	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1246	JPEGPreEncode(), not just when we want to output local tables.
1247	Otherwise the quality used during compression may not be right and
1248	might not match the tables in the tables tag.   This bug only occurs
1249	when seeking between directories in the midst of writing blocks.
1250	http://trac.osgeo.org/gdal/ticket/3539
1251
12522010-05-06  Andrey Kiselev  <[email protected]>
1253
1254	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1255	Regenerated from the source.
1256
12572010-05-05  Olivier Paquet  <[email protected]>
1258
1259	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1260	had stopped working. Also made it always print 6 floats instead of
1261	2*SamplesPerPixel.
1262	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1263	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1264	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1265	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1266
12672010-05-05  Frank Warmerdam  <[email protected]>
1268
1269	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1270	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1271
12722010-04-21  Frank Warmerdam  <[email protected]>
1273
1274	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1275	JPEGSetupEncode() is called if the tables already seem to be
1276	established.  This prevents spurious updates and rewriting of
1277	directories with jpegtables when doing updates to existing images.
1278	http://trac.osgeo.org/gdal/ticket/3539
1279
12802010-04-20  Olivier Paquet  <[email protected]>
1281
1282	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1283	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1284	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1285	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1286	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1287
12882010-04-10  Bob Friesenhahn  <[email protected]>
1289
1290	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
1291	when the tag count value is zero.  Error handling is still a
1292	regression since in 3.9.2, empty tags are skipped (with a warning)
1293	rather than returning a hard error and refusing to read the file.
1294
1295	* tools/ppm2tiff.c (main): While case for parsing comment line
1296	requires extra parenthesis to work as expected.  Reported by
1297	Thomas Sinclair.
1298
12992010-04-02  Frank Warmerdam  <[email protected]>
1300
1301	* libtiff/tif_read.c (primarily): Add support for
1302	CHUNKY_STRIP_READ_SUPPORT where large strips are
1303	read in chunks for applications using TIFFReadScanline().
1304	This is intended to make it more practical work with very
1305	large compressed one-strip files.   Feature is off by default.
1306	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
1307	http://trac.osgeo.org/gdal/ticket/3514
1308
13092010-03-31  Frank Warmerdam  <[email protected]>
1310
1311	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
1312	directories so previously placed directories will be migrated to
1313	the end of file if needed.
1314
13152010-03-30  Frank Warmerdam  <[email protected]>
1316
1317	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
1318	to support operating on strips/tiles of more than 256MB.
1319	http://trac.osgeo.org/gdal/ticket/3512
1320
13212010-03-10  Bob Friesenhahn  <[email protected]>
1322
1323	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
1324	that it is clearly a memory allocation error message, and also
1325	includes the size of the allocation request.
1326
13272010-02-22  Lee Howard  <[email protected]>
1328
1329	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
1330	the JPEG TIFF as is is not required in order to prevent it from
1331	being unused and filled with invalid data.  (Leave it to be
1332	generated by later activity.)
1333	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1334	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
1335	data rather than skipping them.  This fixes the ability to view in
1336	Acrobat Reader, Evince, and Ghostscript.
1337	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1338	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
1339	strips.
1340	http://bugzilla.maptools.org/show_bug.cgi?id=2029
1341
13422009-12-03  Frank Warmerdam  <[email protected]>
1343
1344	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
1345	Made so that when working with downsampled images a stub function
1346	reporting an error is used for tif_decoderow.  We cannot meaningfully
1347	support reading scanlines in this situation.  (#1936)
1348
1349	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
1350	resetting of the upsampling values (gdal:#3259).
1351	http://bugzilla.maptools.org/show_bug.cgi?id=1936
1352
13532009-11-30  Frank Warmerdam  <[email protected]>
1354
1355	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
1356	tools/ras2tiff.c: Fix resource leaks on error.
1357	http://bugzilla.maptools.org/show_bug.cgi?id=2121
1358
1359	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
1360	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
1361	of as a custom(generic) field to avoid a potential reentrancy problem.
1362	http://bugzilla.maptools.org/show_bug.cgi?id=2125
1363
1364	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
1365	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
1366	const, and display_sRGB static and const.
1367	http://bugzilla.maptools.org/show_bug.cgi?id=2124
1368
13692009-11-04  Bob Friesenhahn  <[email protected]>
1370
1371	* libtiff 4.0.0alpha5 released.
1372
13732009-11-03  Bob Friesenhahn  <[email protected]>
1374
1375	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
1376	version has undergone substantial testing with arbitrary sample
1377	bit depths.  Also eliminates GCC compilation warnings.
1378
13792009-11-02  Bob Friesenhahn  <[email protected]>
1380
1381	* port/libport.h: Add extern declarations for getopt standard
1382	globals.
1383
13842009-10-31  Bob Friesenhahn  <[email protected]>
1385
1386	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
1387	noticed in 64-bit build of libtiff with Visual Studio 2005.
1388	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
1389	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
1390
1391	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
1392	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
1393	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
1394	http://bugzilla.maptools.org/show_bug.cgi?id=2068
1395
13962009-10-29  Bob Friesenhahn  <[email protected]>
1397
1398	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
1399	pointer" warnings.
1400
14012009-10-28  Bob Friesenhahn  <[email protected]>
1402
1403	* html/tools.html: Add manual page links, and a summary
1404	description of tiffcrop.
1405
14062009-10-07  Bob Friesenhahn  <[email protected]>
1407
1408	* configure.ac: x86_64 should use the same fill order as i386.
1409
14102009-09-24  Bob Friesenhahn  <[email protected]>
1411
1412	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
1413	Nolde.  Major updates to add significant functionality for reading
1414	and writing tile based images with bit depths not a multiple of 8
1415	which cannot be handled by tiffcp.
1416
14172009-09-03  Bob Friesenhahn  <[email protected]>
1418
1419	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
1420	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
1421	"Bug 2090 - OJPEG crash with libjpeg v7".
1422	http://bugzilla.maptools.org/show_bug.cgi?id=2090
1423
14242009-09-03  Frank Warmerdam  <[email protected]>
1425
1426	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
1427	interface when stoponerror is set.
1428	http://bugzilla.maptools.org/show_bug.cgi?id=2071
1429
14302009-08-30  Bob Friesenhahn  <[email protected]>
1431
1432	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
1433	fix build with gcc when using the "-Wformat
1434	-Werror=format-security" flags.
1435
14362009-08-29  Bob Friesenhahn  <[email protected]>
1437
1438	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
1439	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
1440	utilities tests.
1441
14422009-08-28  Bob Friesenhahn  <[email protected]>
1443
1444	* tools/tiffinfo.c: tiffinfo should return error status to the
1445	caller.  Register a private error callback to accomplish that.
1446
1447	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
1448	PNM formats so that we will be able to test more of the tools.
1449	While adding these test images I notice that bmp2tiff and gif2tiff
1450	only support ancient versions of their respective formats.
1451
14522009-08-27  Bob Friesenhahn  <[email protected]>
1453
1454	* libtiff 4.0.0alpha4 released.
1455
1456	* HOWTO-RELEASE: Improved release instructions.
1457
14582009-08-24  Bob Friesenhahn  <[email protected]>
1459
1460	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
1461	fixes for "Bug 2023 - nroff errors in manual pages".
1462	http://bugzilla.maptools.org/show_bug.cgi?id=2023
1463
1464	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
1465	CVE-2009-2347 libtiff: integer overflows in various inter-color
1466	space conversion tools".
1467	http://bugzilla.maptools.org/show_bug.cgi?id=2079
1468
1469	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
1470	Berkenbilt for "Bug 2024 - possible null pointer dereference with
1471	one-line fix".
1472	http://bugzilla.maptools.org/show_bug.cgi?id=2024
1473
1474	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
1475	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
1476	segfault after setting tdir_tag = IGNORE".
1477	http://bugzilla.maptools.org/show_bug.cgi?id=1895
1478
14792009-08-23  Bob Friesenhahn  <[email protected]>
1480
1481	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
1482	tiffcrop.sh into a collection of many specific tests.  Re-wrote
1483	all of the existing tests to be based on some simple shell
1484	functions.  Make distcheck works again.
1485
1486	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
1487	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
1488	tests under valgrind.
1489
14902009-08-21  Bob Friesenhahn  <[email protected]>
1491
1492	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
1493	build.
1494
1495	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
1496	actually activated since it needed to be enabled in this
1497	Makefile.am.  Also activated parallel-tests mode since it offers
1498	useful features such as per-test .log files and a summary test
1499	report .log file.
1500
15012009-08-20  Bob Friesenhahn  <[email protected]>
1502
1503	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
1504	libtool 2.2.6.  Enabled support for silent build rules
1505	(--enable-silent-rules or 'make V=0') and colorized tests.
1506
1507	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
1508
15092009-06-30  Frank Warmerdam  <[email protected]>
1510
1511	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
1512
1513	* tools/tiffcp.c: add -c sgilog support.
1514
1515	* libtiff/tif_luv.c: correct return codes from encoderow to be
1516	1 on success instead of zero.
1517	http://bugzilla.maptools.org/show_bug.cgi?id=2069
1518
1519	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
1520	#1085 for a better underflow fix that errors properly.
1521	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1522	http://bugzilla.maptools.org/show_bug.cgi?id=1985
1523
15242009-06-26  Frank Warmerdam  <[email protected]>
1525
1526	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
1527	fails on oddly sized 12bit jpeg compressed ycbcr images.
1528
15292009-06-22  Frank Warmerdam  <[email protected]>
1530
1531	* libtiff/tif_lzw.c: Fix buffer underflow bug.
1532	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1533
15342009-06-21  Frank Warmerdam  <[email protected]>
1535
1536	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
1537	for dual mode 8/12 bit jpeg support.
1538
15392009-06-03  Frank Warmerdam  <[email protected]>
1540
1541	* libtiff/tif_write.c: do not override the planar configuration to be
1542	contig for one sample files if planar configuration is already set.
1543	http://bugzilla.maptools.org/show_bug.cgi?id=2057
1544
15452009-06-02  Frank Warmerdam  <[email protected]>
1546
1547	* libtiff/libtiff.def: Add TIFFUnsetField.
1548
15492009-05-03  Frank Warmerdam  <[email protected]>
1550
1551	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
1552	error reports to use "%s" as format string.
1553	http://trac.osgeo.org/gdal/ticket/2976
1554
15552009-03-12  Frank Warmerdam  <[email protected]>
1556
1557	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
1558	for some codecs (#2020).
1559
15602009-02-12  Frank Warmerdam  <[email protected]>
1561
1562	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
1563	http://bugzilla.maptools.org/show_bug.cgi?id=2005
1564
15652009-02-09  Frank Warmerdam  <[email protected]>
1566
1567	* libtiff/tif_dirread.c: Improve allocation safety when allocated
1568	buffer for large tags.  (#1998)  Related to (#1993)
1569
15702009-02-06  Frank Warmerdam  <[email protected]>
1571
1572	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
1573	test suite should pass.
1574
15752009-02-05  Frank Warmerdam  <[email protected]>
1576
1577	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
1578	but at the 2GB boundary to avoid overflow on 32bit systems.
1579	http://bugzilla.maptools.org/show_bug.cgi?id=1993
1580
1581	* libtiff/tif_dirread.c: Remove some assertions that blow due to
1582	corrupt files rather than in response to library internal
1583	inconsistencies.
1584	http://bugzilla.maptools.org/show_bug.cgi?id=1995
1585	http://bugzilla.maptools.org/show_bug.cgi?id=1991
1586
1587	* libtiff/tif_dirread.c: Fixed testing for failed result from
1588	TIFFReadDirectoryFindFieldInfo().
1589	http://bugzilla.maptools.org/show_bug.cgi?id=1992
1590
15912009-01-23  Frank Warmerdam  <[email protected]>
1592
1593	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
1594	http://bugzilla.maptools.org/show_bug.cgi?id=1911
1595
1596	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
1597
1598	http://bugzilla.maptools.org/show_bug.cgi?id=1924
1599
1600	* tools/tiffcrop.c: initialize xres/yres values.
1601
1602	* test/*.sh - default ${srcdir} to local directory.
1603
1604	* test/common.sh - start verbose mode after common settings.
1605
1606	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
1607	avoid type mismatches on different platforms.
1608	http://bugzilla.maptools.org/show_bug.cgi?id=1889
1609
16102009-01-22  Frank Warmerdam  <[email protected]>
1611
1612	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
1613	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
1614
1615	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
1616	defined, primarily to reduce prototype warnings on windows.
1617
1618	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
1619	about unused parameters, and uninitialized variables.
1620
16212009-01-21  Bob Friesenhahn  <[email protected]>
1622
1623	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
1624	order to trace full execution detail while executing the test suite.
1625
16262009-01-20  Frank Warmerdam  <[email protected]>
1627
1628	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
1629
16302009-01-20  Bob Friesenhahn  <[email protected]>
1631
1632	* test/Makefile.am (CLEANFILES): Make sure that test output files
1633	are removed by 'make clean'
1634
1635	* Update autotools for 4.0.0 beta3
1636
1637	* 4.0.0 beta3 produced.
1638
16392009-01-12  Bob Friesenhahn  <[email protected]>
1640
1641	* test/tiffcrop.sh: New test script for tiffcrop from Richard
1642	Nolde.
1643
1644	* tools/tiff2ps.c: Remove spurious message to stderr.
1645
16462009-01-11  Bob Friesenhahn  <[email protected]>
1647
1648	* tools/tiff2ps.c: Incorporated significant functionality update
1649	from Richard Nolde.  In particular, support for rotating the image
1650	by 90, 180, 270, and 'auto' has been added.
1651
1652	* man/tiffcrop.1: Incorporated documentation updates from Richard
1653	Nolde.
1654
1655	* tools/tiffcrop.c: Incorporated significant functionality update
1656	from Richard Nolde.
1657
16582008-12-31  Bob Friesenhahn  <[email protected]>
1659
1660	* libtiff/tiffio.h: GCC will now validate format specifications
1661	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
1662	TIFFWarningExt() in order to reveal bugs.
1663
1664	* Many fixes throughout to work better as a 64-bit build.
1665
16662008-12-30  Bob Friesenhahn  <[email protected]>
1667
1668	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
1669	tags now require 64-bit parameter rather than 32-bit.
1670
1671	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
1672	64-bit values.
1673
1674	* tools/thumbnail.c: Eliminate crash noticed while running test
1675	suite.
1676
16772008-12-29  Bob Friesenhahn  <[email protected]>
1678
1679	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
1680	Initialize stack variables to avoid compiler warning.
1681
1682	* tools/tiffinfoce.c (main): Use toff_t for offset type when
1683	retrieving offset of EXIF IFD.
1684
1685	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
1686	TIFFClientOpen() callback and other external function definitions.
1687
1688	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
1689	type now.  Fixes crash when dumping files containing an EXIF IFD.
1690
1691	* m4/libtool.m4: Update to libtool 2.2.6.
1692
16932008-12-21  Frank Warmerdam  <[email protected]>
1694
1695	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
1696
1697	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
1698	strip for the last partial strip in a jpeg compressed file.
1699	http://bugzilla.maptools.org/show_bug.cgi?id=1981
1700
17012008-10-29  Frank Warmerdam  <[email protected]>
1702
1703	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
1704	we take the shortcut to only update the strip/tile offsets in place.
1705	http://trac.osgeo.org/gdal/ticket/2621
1706
17072008-10-21  Andrey Kiselev  <[email protected]>
1708
1709	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
1710	the older versions retained).
1711
17122008-10-09  Frank Warmerdam  <[email protected]>
1713
1714	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
1715	IPP enabled version of libjpeg from Intel.
1716	http://bugzilla.maptools.org/show_bug.cgi?id=1951
1717
17182008-09-05  Andrey Kiselev  <[email protected]>
1719
1720	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
1721	Required for libtiff 4.0.
1722
1723	* tools/tiffsplit.c: Use dynamically allocated array instead of static
1724	when constructing output file names.
1725
17262008-09-03  Andrey Kiselev  <[email protected]>
1727
1728	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
1729	doing the filename/path construction.
1730
1731	* tools/tiff2pdf.c: More appropriate format string in
1732	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
1733
1734	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
1735
1736	http://bugzilla.maptools.org/show_bug.cgi?id=1929
1737
1738	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
1739	CVE-2008-2327 security issue.
1740
17412008-09-01  Frank Warmerdam  <[email protected]>
1742
1743	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
1744
1745	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
1746	depending on whether the file is bigtiff or classic tiff.
1747	http://bugzilla.maptools.org/show_bug.cgi?id=1917
1748
17492008-08-12  Edward Lam  <[email protected]>
1750
1751	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
1752	consistent (__int64) casting when testing if _lseeki64 has
1753	successfully seeked as requested.  This is necessary for large
1754	file support to work since off_t is only 32-bit.
1755
17562008-07-29  Frank Warmerdam  <[email protected]>
1757
1758	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
1759	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
1760	with control logic to return runtime errors (c/o Even Rouault) (#1927).
1761
17622008-06-17  Frank Warmerdam  <[email protected]>
1763
1764	* tools/tiffcrop.c: Fix some portability problems.
1765
1766	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
1767	used in tif_jpeg.c.
1768
1769	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
1770	as TIFFOpen().
1771
17722008-06-01  Frank Warmerdam  <[email protected]>
1773
1774	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
1775	like Sparc/Solaris.
1776	http://bugzilla.maptools.org/show_bug.cgi?id=1892
1777
17782008-05-27  Frank Warmerdam  <[email protected]>
1779
1780	* libtiff.def: Add TIFFFindField
1781	http://bugzilla.maptools.org/show_bug.cgi?id=1891
1782
17832008-05-26  Frank Warmerdam  <[email protected]>
1784
1785	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
1786
1787	* li2008-04-15  Andrey Kiselev  <[email protected]>
1788
1789btiff/tif_win32.c: Replace custom Win32 memory api with generic
1790	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
1791	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
1792
1793	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
1794	in windows version (care of Edward Lam).
1795
17962008-05-24  Frank Warmerdam  <[email protected]>
1797
1798	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
1799	compression codec codes.
1800
1801	* tif_dirwrite.c: fix potential memory leak.
1802
1803	* tif_dirread.c: Fix unchecked malloc result.
1804
18052008-05-24  Bob Friesenhahn  <[email protected]>
1806
1807	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
1808	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
1809	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
1810	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
1811	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
1812	suggestions from Lee Howard posted to the tiff list on 13 Sep
1813	2007.
1814
18152008-05-23  Frank Warmerdam  <[email protected]>
1816
1817	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
1818	possible runtime problem reported by coverity.
1819
1820	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
1821
1822	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
1823	http://bugzilla.maptools.org/show_bug.cgi?id=1888
1824
1825	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
1826
1827	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
1828
1829	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
1830	Cleanup scanline allocation to avoid coverity warning.
1831
1832	* tools/thumbnail.c: Check for TIFFOpen() failure.
1833
18342008-05-18  Frank Warmerdam  <[email protected]>
1835
1836	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
1837	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
1838	why this is needed.
1839
18402008-05-09  Bob Friesenhahn  <[email protected]>
1841
1842	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
1843	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
1844
18452008-04-15  Andrey Kiselev  <[email protected]>
1846
1847	* test/: Test suite updated. Everything is passed now.
1848
1849	* libtiff/tif_dirinfo.c: Fixed description of the
1850	TIFFTAG_NUMBEROFINKS tag.
1851
18522008-04-14  Andrey Kiselev  <[email protected]>
1853
1854	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
1855	Get rid of some of "dereferencing type-punned" warnings by converting
1856	tdir_offset field of TIFFDirEntry structure into union.
1857
18582008-04-10  Andrey Kiselev  <[email protected]>
1859
1860	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
1861	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
1862	from the public interface. Type of its 'count' parameter changed
1863	from uint32 to tmsize_t.
1864
1865	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
1866	of the tiff structure have the size_t type instead of uint32.
1867
18682008-04-09  Andrey Kiselev  <[email protected]>
1869
1870	* tools/tiffdump.c: Added support for MSVS 6.0.
1871
1872	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
1873	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
1874	point values on MSVS 6.0 platform.
1875
18762008-03-14  Frank Warmerdam  <[email protected]>
1877
1878	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
1879	TIFFReadDirEntryArray() since they are interfering with seemingly
1880	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
1881
18822008-02-09  Joris Van Damme  <[email protected]>
1883
1884	* tif_dirread.c: Added handling for the case of number of values for
1885	PageNumber tag different from 2 (previously resulted in an assert
1886	indicating lack of handling and was forgotten about)
1887
18882008-02-01  Frank Warmerdam  <[email protected]>
1889
1890	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
1891	the actual jpeg data stream if the first strip/tile has zero size.
1892	This is the case when GDAL creates a new file with zero sizes, closes
1893	and reopens it.
1894
18952008-01-07  Frank Warmerdam  <[email protected]>
1896
1897	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
1898
18992008-01-01  Frank Warmerdam  <[email protected]>
1900
1901	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
1902
1903	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
1904	targets.
1905
1906	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
1907	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
1908	(x64).
1909
1910	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
1911	and TIFFFieldWithName() now return TIFFField pointers instead of
1912	TIFFFieldInfo pointers.
1913
1914	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
1915	exist. This makes it compile again on Windows
1916
1917	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
1918	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
1919
1920	* test/rewrite_tag.c: New test for TIFFRewriteField().
1921
19222007-12-31  Frank Warmerdam  <[email protected]>
1923
1924	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
1925	rewrites one field "on disk" updating an existing directory
1926	entry.  Lots of limitations still...
1927
1928	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
1929	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
1930	the strip offset/size values are dirty but nothing else about the
1931	directory is dirty.  In flush handle "just stripmaps dirty" as a
1932	special case that just rewrites these values without otherwise
1933	modifying the directory on disk using TIFFRewriteField().
1934
1935	We also modify logic so that in update mode the directory is not
1936	marked dirty on read, but only when something is changed.  This
1937	means we need to keep track of updates to the stripmap stuff in
1938	TIFFAppendToStrip().
1939
19402007-12-10  Frank Warmerdam  <[email protected]>
1941
1942	* tif_jpeg.c: Improve ability to switch between encoding and decoding
1943	in the jpeg code (gdal bug #2033).
1944
19452007-11-23  Frank Warmerdam  <[email protected]>
1946
1947	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
1948	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
1949	rawcp/rawcc buffer are for writing and thus may require flushing.
1950	Necessary to distinguish whether they need to be written to disk when
1951	in mixed read/write mode and doing a mixture of writing followed by
1952	reading.  http://trac.osgeo.org/gdal/ticket/1758
1953
19542007-11-23  Andrey Kiselev  <[email protected]>
1955
1956	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
1957	from Alexey Chupahin.
1958
19592007-11-02  Frank Warmerdam  <[email protected]>
1960
1961	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
1962	establishing if an existing tile can be rewritten to the same location
1963	by comparing the current size to all the other blocks in the same
1964	directory.  This is dangerous in many situations and can easily
1965	corrupt a file.  (observed in esoteric GDAL situation that's hard to
1966	document).  This change involves leaving the stripbytecount[] values
1967	unaltered till TIFFAppendToStrip().  Now we only write a block back
1968	to the same location it used to be at if the new data is the same
1969	size or smaller - otherwise we move it to the end of file.
1970
1971	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
1972	data when writing the directory just because we have BEENWRITING at
1973	some point in the past.  This was causing odd junk to be written out
1974	in a tile of data when a single tile had an interleaving of reading
1975	and writing with reading last.  (highlighted by gdal
1976	autotest/gcore/tif_write.py test 7.
1977
1978	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
1979	modifying callers buffer.
1980	http://trac.osgeo.org/gdal/ticket/1965
1981
1982	* tif_predict.c/h: more fixes related to last item, keeping a
1983	distinct pfunc for encode and decode cases as these were getting
1984	mixed up sometimes.
1985	http://trac.osgeo.org/gdal/ticket/1948
1986
19872007-11-01  Frank Warmerdam  <[email protected]>
1988
1989	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
1990	predictor based encoding and decoding works in read-write update
1991	mode properly.
1992	http://trac.osgeo.org/gdal/ticket/1948
1993
19942007-10-24  Joris Van Damme  <[email protected]>
1995
1996	* tif_dirread.c: Fixed problem with bogus file triggering
1997	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
1998	ChopUpSingleUncompressedStrip
1999
20002007-10-22  Joris Van Damme  <[email protected]>
2001
2002	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
2003	at best, access violation at worst, when subsampled JPEG compressed imagery
2004	is decoded without the JPEG_COLORMODE feature
2005
20062007-10-11  Frank Warmerdam  <[email protected]>
2007
2008	* html/index.html: Update "people responsible" section.
2009
20102007-10-05  Frank Warmerdam  <[email protected]>
2011
2012	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
2013	as reported on the mailing list.
2014
20152007-10-01  Joris Van Damme  <[email protected]>
2016
2017	* changed some more incorrect %lud printf flags to %lu
2018
20192007-09-29  Joris Van Damme  <[email protected]>
2020
2021	* tif_dirread.c: Strip chopping interfered badly with uncompressed
2022	subsampled images because it tried to divide subsampled rowblocks,
2023	leading to all sorts of errors throughout the library for these
2024	images. Fixed by making strip chopping divide in row counts that
2025	are a multiple of vertical subsampling value.
2026
20272007-09-28  Joris Van Damme  <[email protected]>
2028
2029	* tif_dirread.c: Logical cast working around compiler warning
2030
2031	* tif_read.c: Correction of some error flags and parameter lists
2032
20332007-09-27  Joris Van Damme  <[email protected]>
2034
2035	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
2036	when dealing with large bitspersample values, shutting up purification
2037	tools that warn about truncation, though it remains incorrect and
2038	indicates a conceptual problem there.
2039
2040	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
2041	of first IFD) to proper place because it badly interfered with memory
2042	mapping, resulting in mapping flag even with dummy mapping functions
2043	that returned 0 whilst at the same time the mapping tif_size wasn't
2044	set, thus resulting in continuous incorrect beyond-eof errors.
2045
20462007-09-24  Joris Van Damme  <[email protected]>
2047
2048	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
2049	inconsistent use of const in tiffFields and exifFields definition
2050
20512007-09-20  Frank Warmerdam  <[email protected]>
2052
2053	* tif_dirwrite.c: Always write tile/strip offsets and sizes
2054	using LONG8 type when output format is BigTIFF.  The
2055	TIFFWriteDirectoryTagLongLong8Array() function was restructured
2056	accordingly.
2057
2058	* tif_dirread.c: Improvements to error reporting text in
2059	TIFFFetchDirectory().
2060
20612007-09-19  Bob Friesenhahn  <[email protected]>
2062
2063	* test/images: Added a small collection of test images for use by
2064	test programs and scripts.
2065	* test/tiffinfo.sh: A trivial example test script.
2066	* test/common.sh: Added small script for setting the environment
2067	used by script-based tests.
2068
20692007-08-24  Frank Warmerdam  <[email protected]>
2070
2071	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
2072	zero when writing directory contents to preserve the ability to
2073	rewrite directories in place, even in the middle of a directory
2074	chain.
2075
2076	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
2077	definitions that are missing.  Existing definitions are silently
2078	ignored.
2079
2080	* tif_dirread.c: Add runtime error for fields for which no definition
2081	is found (in addition to an assert for developers) in
2082	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
2083	prudent.
2084
20852007-08-10  Joris Van Damme  <[email protected]>
2086
2087	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
2088	from _TIFFRGBAImage structure to revert unwanted ABI change.
2089
20902007-08-10  Joris Van Damme  <[email protected]>
2091
2092	* libtiff/tif_win32.c: use SetFilePointer instead of
2093	SetFilePointerEx, as per bug
2094
2095	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
2096
20972007-07-19  Andrey Kiselev  <[email protected]>
2098
2099	* libtiff/tif_stream.cxx: Put all callback functions declarations
2100	inside extern "C" block.
2101
2102	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
2103	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
2104	formatter instead of "%lld" with MSVC compiler.
2105
2106	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
2107	_TIFFUInt64ToDouble() functions.
2108
21092007-07-18  Andrey Kiselev  <[email protected]>
2110
2111	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
2112	integer constants.
2113
2114	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2115	remove tif_config.h/tiffconf.h during cleaning. As per bug
2116
2117	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2118
2119	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2120
2121	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2122
21232007-07-13  Andrey Kiselev  <[email protected]>
2124
2125	* libtiff 4.0.0alpha released.
2126
21272007-07-12  Andrey Kiselev  <[email protected]>
2128
2129	* tools/tiff2pdf.c: Added missed extern optind as per bug
2130
2131	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2132
2133	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2134	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2135	extending scheme completed.
2136
21372007-07-11  Bob Friesenhahn  <[email protected]>
2138
2139	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2140	use standard C++ library size types and attempt to detect overflow
2141	cases.
2142
21432007-07-08  Andrey Kiselev  <[email protected]>
2144
2145	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2146	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2147	tag extending scheme. Use the new scheme everywhere.
2148
2149	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2150	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2151	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2152	TIFFFIeldInfo structure replaced with TIFFField structure.
2153	TIFFFieldInfo retained for the backward compatibility.
2154
21552007-07-05  Bob Friesenhahn  <[email protected]>
2156
2157	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2158	defined.
2159
21602007-07-04  Andrey Kiselev  <[email protected]>
2161
2162	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2163	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2164	removed.
2165
2166	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2167	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2168	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2169	These tags are not codec-specific and relate to image content, so
2170	process them as other normal tags.
2171
2172	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2173	public tiffio.h to private tif_dir.h.
2174
2175	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2176	outdated.
2177
21782007-07-03  Andrey Kiselev  <[email protected]>
2179
2180	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2181	tif_win3.c}: Obsoleted portability stuff removed.
2182
2183	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2184
2185	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2186
2187	Patch from William Bader.
2188
2189	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2190	significant upgrade of the whole utility as per bug
2191
2192	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2193
2194	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2195	PDF file using TIFFClientOpen() machinery as it is implemented
2196	by Leon Bottou.
2197
21982007-06-26  Bob Friesenhahn  <[email protected]>
2199
2200	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2201	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2202	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2203	allow returning -1 for errors.
2204	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2205
22062007-06-25  Bob Friesenhahn  <[email protected]>
2207
2208	* port/strtoull.c: New porting function in case strtoull() is not
2209	available on the target system.
2210	* configure.ac: Add configure support for determining sized types
2211	in a portable way and performing necessary substitutions in
2212	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2213	definitions.
2214
22152007-04-27  Andrey Kiselev  <[email protected]>
2216
2217	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2218
2219	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2220
22212007-04-07  Andrey Kiselev  <[email protected]>
2222
2223	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2224	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2225	tif_predict.c, tif_zip.c}: Finally fix bug
2226
2227	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2228
2229	by introducing _TIFFMergeFieldInfo() returning integer error status
2230	instead of void in case of problems with field merging (e.g., if the
2231	field with such a tag already registered). TIFFMergeFieldInfo() in
2232	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2233	check returned value.
2234
22352007-04-07  Frank Warmerdam  <[email protected]>
2236
2237	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2238	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2239
22402007-04-06  Frank Warmerdam  <[email protected]>
2241
2242	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2243	will convert from decompressor to compressor or compress to decompress
2244	if required by the force arguments.  This works around a problem in
2245	where the JPEGFixupTestSubsampling() may cause a decompressor to
2246	be setup on a directory when later a compressor is required with the
2247	force flag set.  Occurs with the addtiffo program for instance.
2248
22492007-04-06  Andrey Kiselev  <[email protected]>
2250
2251	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2252	functionality from Richard Nolde. As per bug
2253
2254	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2255
22562007-03-28  Frank Warmerdam  <[email protected]>
2257
2258	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2259
22602007-03-17  Joris Van Damme  <[email protected]>
2261
2262	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2263
22642007-03-07  Joris Van Damme  <[email protected]>
2265
2266	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2267	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2268	factor. This bug is mentioned in:
2269	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2270	http://www.asmail.be/msg0054766825.html
2271
22722007-03-07  Joris Van Damme  <[email protected]>
2273
2274	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2275
2276	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2277	unused arguments by standard C indication for the same
2278
22792007-02-27  Andrey Kiselev  <[email protected]>
2280
2281	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2282	counters in TIFFFetchData(). Should finally fix the issue
2283
2284	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2285
22862007-02-24  Andrey Kiselev  <[email protected]>
2287
2288	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
2289	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2290
2291	* libtiff/tif_dirread.c: Added special function to handle
2292	SubjectDistance EXIF tag as per bug
2293
2294	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
2295
2296	* tools/tiff2pdf.c: Do not assume inches when the resolution units
2297	do not specified. As per bug
2298
2299	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2300
2301	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
2302	it was set as infinite. As per bug
2303
2304	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2305
2306	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
2307	by Richard Nolde. As per bug
2308
2309	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
2310
23112007-02-22  Andrey Kiselev  <[email protected]>
2312
2313	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
2314	ExtraSamples == 999 produced by Corel Draw. As per bug
2315
2316	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
2317
2318	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
2319	changed from tsize_t to uint32 to be able to work with data arrays
2320	larger than 2GB. Fixes bug
2321
2322	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2323
2324	Idea submitted by Matt Hancher.
2325
23262007-01-31  Andrey Kiselev  <[email protected]>
2327
2328	* tools/tif2rgba.c: This utility does not work properly on big-endian
2329	architectures. It was fixed including the bug
2330
2331	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
2332
23332007-01-15  Mateusz Loskot <[email protected]>
2334
2335	* Submitted libtiff port for Windows CE platform
2336	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
2337	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
2338	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
2339	functons from tif_win32.c.
2340	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
2341	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
2342	standard header files for Windows CE build.
2343	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
2344
23452006-11-19  Frank Warmerdam  <[email protected]>
2346
2347	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
2348	we move a strip.
2349	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
2350
23512006-10-13  Andrey Kiselev  <[email protected]>
2352
2353	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
2354	in Gentoo bug ():
2355
2356	http://bugs.gentoo.org/show_bug.cgi?id=142383
2357
2358	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
2359	Though it is still far from the state of being working and useful.
2360
23612006-10-12  Andrey Kiselev  <[email protected]>
2362
2363	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
2364	method.
2365
2366	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
2367	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
2368
2369	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
2370	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
2371
2372	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
2373	vulnerabilities, reported in Gentoo bug ():
2374
2375	http://bugs.gentoo.org/show_bug.cgi?id=142383
2376
23772006-09-28  Andrey Kiselev  <[email protected]>
2378
2379	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
2380	vulnerabilities, as per	Gentoo bug ():
2381
2382	http://bugs.gentoo.org/show_bug.cgi?id=142383
2383
23842006-09-27  Frank Warmerdam  <[email protected]>
2385
2386	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
2387	encoding and decoding on the same read-write TIFF handle.  The LZW
2388	code can now maintain encode and decode state at the same time. The
2389	ZIP code will switch back and forth as needed.
2390	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
2391
23922006-09-20  Frank Warmerdam  <[email protected]>
2393
2394	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
2395	tif_config.vc.h for easier identification by folks using an IDE.
2396
23972006-07-25  Frank Warmerdam  <[email protected]>
2398
2399	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
2400
24012006-07-19  Frank Warmerdam  <[email protected]>
2402
2403	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
2404	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
2405	to bug report by Peng Gao with black strip at bottom of images.
2406
24072006-07-12  Frank Warmerdam  <[email protected]>
2408
2409	* tif_dirwrite.c: make sure to use uint32 for wordcount in
2410	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
2411	It already seems to have been done for other field types.  Needed
2412	for "tiffset" on files with geotiff ascii text.
2413
24142006-07-04  Bob Friesenhahn  <[email protected]>
2415
2416	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
2417	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
2418	its use does not appear to be required, so use it only when it is
2419	available.
2420
24212006-06-24  Andrey Kiselev  <[email protected]>
2422
2423	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
2424
2425	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
2426	function TIFFFetchDirectory() avoiding code duplication in
2427	TIFFReadDirectory() and TIFFReadCustomDirectory().
2428
24292006-06-19  Frank Warmerdam  <[email protected]>
2430
2431	* tools/tiff2pdf.c: Fix handling of -q values.
2432	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
2433
24342006-06-17  Frank Warmerdam  <[email protected]>
2435
2436	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
2437	files.  Modified TIFFReadDirectory() to not invoke
2438	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
2439	but one of them is zero.
2440	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
2441
24422006-06-08  Andrey Kiselev  <[email protected]>
2443
2444	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
2445	checking code in the separate function TIFFCheckDirOffset().
2446
2447	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
2448
2449	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
2450
2451	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
2452
2453	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
2454
2455	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
2456
2457	* tools/tiff2pdf.c: Fixed buffer overflow condition in
2458	t2p_write_pdf_string() as per bug
2459
2460	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
2461
24622006-06-07  Andrey Kiselev  <[email protected]>
2463
2464	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
2465	support for JBIG compression scheme (34661 code) contributed by Lee
2466	Howard. As per bug
2467
2468	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
2469
2470	* configure, configure.ac: OJPEG support enabled by default.
2471
2472	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
2473
24742006-06-03  Bob Friesenhahn  <[email protected]>
2475
2476	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
2477	TIFFPrintDirectory().  Joris Van Damme authored the fix.
2478
24792006-04-21  Andrey Kiselev  <[email protected]>
2480
2481	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
2482	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
2483
2484	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
2485	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
2486	Added support for OpenVMS by Alexey Chupahin, [email protected].
2487
24882006-04-20  Andrey Kiselev  <[email protected]>
2489
2490	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
2491	Properly set the binary mode for stdin stream as per bug
2492	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
2493
2494	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
2495	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
2496	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
2497	tiffset.1}: Improvements in page formatting as per bug
2498	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
2499
2500	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
2501	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
2502
25032006-04-18  Frank Warmerdam  <[email protected]>
2504
2505	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
2506	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
2507
25082006-04-12  Joris Van Damme  <[email protected]>
2509
2510	* libtiff/tif_getimage.c: Added support for planarconfig separate
2511	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
2512
25132006-04-11  Joris Van Damme  <[email protected]>
2514
2515	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
2516	- Conversion of unassociated alpha to associated alpha now done with
2517	  more performant LUT, and calculation more correct
2518	- Conversion of 16bit data to 8bit data now done with
2519	  more performant LUT, and calculation more correct
2520	- Bugfix of handling of 16bit RGB with unassociated alpha
2521
25222006-04-11  Joris Van Damme  <[email protected]>
2523
2524	* libtiff/tif_getimage.c:
2525	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
2526	  buffer for alpha strile and filled it, only to never read it back.
2527	  Removed allocation and fill.
2528	- Minor rename of vars in gtTileSeparate and gtStripSeparate
2529	  anticipating planned functionality extension
2530
25312006-04-08  Joris Van Damme  <[email protected]>
2532
2533	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
2534	and pickTileSeparateCase to PickSeparateCase as both work on strips as
2535	well
2536
2537	* libtiff/tif_getimage.c: moved img->get selection from
2538	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
2539	logical hook for planned functionality extension
2540
25412006-04-08  Joris Van Damme  <[email protected]>
2542
2543	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
2544	of inappropriate use of jpeg_abort instead of jpeg_destroy
2545
25462006-04-07  Joris Van Damme  <[email protected]>
2547
2548	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
2549	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
2550	on subsampled images - this ought to get sorted when we feel brave
2551	enough to replace TIFFScanlineSize alltogether
2552
2553	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
2554
25552006-04-04  Joris Van Damme  <[email protected]>
2556
2557	* libtiff/tiffio.h: added new type tstrile_t
2558
2559	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
2560	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
2561	toff_t*
2562
2563	* libtiff/tif_ojpeg.c: totally new implementation
2564
2565	* libtiff/tif_dirread.c: added several hacks to suit new support of
2566	OJPEG
2567
2568	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
2569	of OJPEG images in favor of tif_getimage.c native handling of
2570	YCbCr and desubsampling
2571
25722006-03-29  Frank Warmerdam  <[email protected]>
2573
2574	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
2575	interpretation causes the "upsampled" flag to be recomputed.  Fixes
2576	peculiar bug where photometric flag had to be set before jpegcolormode
2577	flag.
2578
25792006-03-25  Joris Van Damme  <[email protected]>
2580
2581	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
2582
2583	* libtiff/tif_strip.c: temporarilly added two new versions of
2584	TIFFScanlineSize
2585	  - TIFFNewScanlineSize: proposed new version, after all related
2586	    issues and side-effects are sorted out
2587	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
2588	This needs further sorting out.
2589
25902006-03-25  Joris Van Damme  <[email protected]>
2591
2592	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
2593	of last truncated strip data to TIFFWriteEncodedStrip
2594
25952006-03-25  Joris Van Damme  <[email protected]>
2596
2597	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
2598
25992006-03-25  Joris Van Damme  <[email protected]>
2600
2601	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
2602
2603	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
2604
2605	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
2606	prepare	the path for new tif_ojpeg.c
2607
26082006-03-23  Andrey Kiselev  <[email protected]>
2609
2610	* libtiff 3.8.2 released.
2611
2612	* tools/Makefile.am: Use runtime paths linker flags when rpath
2613	option enabled.
2614
26152006-03-21  Andrey Kiselev  <[email protected]>
2616
2617	* libtiff/libtiff.def: Added missed exports as per bug
2618	http://bugzilla.remotesensing.org/attachment.cgi?id=337
2619
2620	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
2621	tools/Makefile.vc: Makefiles improvements as per bug
2622	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
2623
2624	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
2625	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
2626	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
2627
2628	* libtiff/tif_strip.c: Take subsampling in account when calculating
2629	TIFFScanlineSize().
2630
2631	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
2632
26332006-03-17  Andrey Kiselev  <[email protected]>
2634
2635	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
2636	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
2637
2638	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
2639	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
2640
26412006-03-16  Andrey Kiselev  <[email protected]>
2642
2643	* libtiff/tiffiop.h: Added decalration for
2644	_TIFFSetDefaultCompressionState().
2645
2646	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
2647	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
2648	codec cleanup methods. As per bug
2649
2650	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
2651
26522006-03-15  Andrey Kiselev  <[email protected]>
2653
2654	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
2655	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
2656
2657	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
2658	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
2659
2660	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
2661	removed; move here the STRIP_SIZE_DEFAULT macro definition.
2662
2663	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
2664	macro definition.
2665
2666	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
2667
26682006-03-14  Andrey Kiselev  <[email protected]>
2669
2670	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
2671	in TIFFReadDirectory, because it is always set at the start of
2672	function and we allow TIFFs without that tag set.
2673
26742005-03-13  Andrey Kiselev  <[email protected]>
2675
2676	* libtiff 3.8.1 released.
2677
26782006-03-07  Andrey Kiselev  <[email protected]>
2679
2680	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
2681	function as per bug
2682	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2683
2684	* libtiff/tif_dirread.c: More wise check for integer overflow
2685	condition as per bug
2686	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2687
2688	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
2689	Properly restore setfield/getfield methods in cleanup functions. As
2690	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2691
26922006-03-03  Andrey Kiselev  <[email protected]>
2693
2694	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
2695	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
2696
2697	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
2698	TIFFPredictorCleanup() in codec cleanup methods. As per bug
2699
2700	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2701
2702	* libtiff/tif_dirread.c: Fixed integer overflow condition in
2703	TIFFFetchData() function. As per bug
2704
2705	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2706
27072006-03-01  Andrey Kiselev  <[email protected]>
2708
2709	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
2710	TIFFSetField() method, not directly. As per bug
2711
2712	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
2713
2714	* tools/ppm2tiff.c: Added support for PBM files as per bug
2715	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
2716
27172006-02-27  Andrey Kiselev  <[email protected]>
2718
2719	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
2720	to avoid crash as per bug
2721
2722	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
2723
27242006-02-26  Andrey Kiselev  <[email protected]>
2725
2726	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
2727	t2p_sample_rgba_to_rgb() was used in place of each other, that was
2728	resulted in problems with RGBA images with associated alpha.
2729	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
2730
27312006-02-23  Andrey Kiselev  <[email protected]>
2732
2733	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
2734	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2735
2736	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
2737	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
2738	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2739
2740	* tools/tiff2ps.c: Properly scale all the pages when converting
2741	multipage TIFF with /width/height/center options set. As per bug
2742
2743	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
2744
27452006-02-15  Andrey Kiselev  <[email protected]>
2746
2747	* tools/tiff2pdf.c: Do not create output file until all option checks
2748	will be done. As per bug
2749
2750	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
2751
2752	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
2753	list of input files as per bug:
2754
2755	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
2756
27572006-02-09  Andrey Kiselev  <[email protected]>
2758
2759	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
2760	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
2761
2762	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
2763	TIFFRGBAImage interface.
2764
2765	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
2766	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
2767
27682006-02-07  Frank Warmerdam  <[email protected]>
2769
2770	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
2771	compressed TIFF files, per submission from Dan Cobra.
2772
27732006-02-07  Andrey Kiselev  <[email protected]>
2774
2775	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
2776	cast values to avoid warnings. As per bug
2777	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2778
2779	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
2780	appropriate. As per bug
2781	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2782
2783	* libtiff/tif_aux.c: Fixed type of temporary variable in
2784	_TIFFCheckMalloc() as per bug
2785	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2786
27872006-02-06  Andrey Kiselev  <[email protected]>
2788
2789	* libtiff/tif_aux.c: Return static array when fetching default
2790	YCbCrCoefficients (another problem, reported a the
2791	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
2792
27932006-02-03  Andrey Kiselev  <[email protected]>
2794
2795	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
2796	YCbCrSubsampling and DotRange tags as per bugs
2797
2798	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
2799	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
2800
2801	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
2802	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
2803
2804	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
2805
28062006-01-23  Andrey Kiselev  <[email protected]>
2807
2808	* libtool related stuff updated from the 2.1a branch.
2809
28102006-01-11  Frank Warmerdam  <[email protected]>
2811
2812	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
2813	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
2814	properly as per bug:
2815	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
2816
28172006-01-09  Bob Friesenhahn  <[email protected]>
2818
2819	* configure.ac: Fix with_default_strip_size comparison as reported
2820	by Norihiko Murase.
2821
28222006-01-08  Bob Friesenhahn  <[email protected]>
2823
2824	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
2825	incorrectly, tests were not actually testing the uninstalled
2826	libtiff.  Now they are.
2827
28282006-01-04  Andrey Kiselev  <[email protected]>
2829
2830	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
2831	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
2832	should be uint32 value.
2833
28342006-01-02  Bob Friesenhahn  <[email protected]>
2835
2836	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
2837	be used if build directory is not the same as source directory.
2838	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
2839	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
2840	and re-sorted tag names in alphabetical order.
2841
28422005-12-29  Andrey Kiselev  <[email protected]>
2843
2844	* libtiff 3.8.0 released.
2845
28462005-12-28  Bob Friesenhahn  <[email protected]>
2847
2848	* tools/bmp2tiff.c (main): Fixed warning regarding returning
2849	inconsistent types from a condition.
2850	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
2851	format.
2852	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
2853
28542005-12-28  Joris Van Damme  <[email protected]>
2855
2856	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
2857
28582005-12-27  Andrey Kiselev  <[email protected]>
2859
2860	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
2861	windows.h, to reduce the compile time.
2862
28632005-12-26  Bob Friesenhahn  <[email protected]>
2864
2865	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
2866
28672005-12-26  Andrey Kiselev  <[email protected]>
2868
2869	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
2870	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
2871	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
2872	private functions to retrieve FieldInfo arrays.
2873
28742005-12-24  Bob Friesenhahn  <[email protected]>
2875
2876	* html/build.html: Added some additional instructions for when
2877	building using MSVC under Windows.  Also fixed two HTML syntax
2878	errors and used HTML Tidy to tidy up the HTML syntax and
2879	formatting.
2880
28812005-12-24  Andrey Kiselev  <[email protected]>
2882
2883	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
2884	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
2885	StoNits tags custom.
2886
28872005-12-23  Andrey Kiselev  <[email protected]>
2888
2889	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
2890	WhitePoint tag custom.
2891
2892	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
2893
28942005-12-23  Joris Van Damme  <[email protected]>
2895
2896	* libtiff/tiffio.h: fixed typo that potentially resulted in
2897	redefininition of USE_WIN32_FILEIO
2898
2899	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
2900	calls in core LibTiff.
2901
29022005-12-21  Andrey Kiselev  <[email protected]>
2903
2904	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
2905	Photoshop and ICCProfile tags custom.
2906
29072005-12-21  Joris Van Damme  <[email protected]>
2908
2909	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
2910	newer code to get context indicator in error handler and still
2911	remain compatible with older code: Done TIFFError calls everywhere
2912	except in tools
2913
29142005-12-20  Andrey Kiselev  <[email protected]>
2915
2916	* tools/tiffcp.c: Added many error reporting messages; fixed integer
2917	overflow as per bug
2918
2919	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
2920
29212005-12-16  Frank Warmerdam  <[email protected]>
2922
2923	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
2924	YCbCr images in jpeg compressed TIFF files.
2925
29262005-12-14  Andrey Kiselev  <[email protected]>
2927
2928	* tools/tiffcp.c: Return non-zero status when reading fails (again).
2929
29302005-12-13  Andrey Kiselev  <[email protected]>
2931
2932	* tools/tiffcp.c: Return non-zero status when reading fails.
2933
29342005-12-12  Andrey Kiselev  <[email protected]>
2935
2936	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
2937
29382005-12-09  Andrey Kiselev  <[email protected]>
2939
2940	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
2941	custom.
2942
2943	* tools/tiffinfo.c: Print EXIF directory contents if exist.
2944
2945	* libtiff/tiff.h: Few EXIF tag numbers added.
2946
2947	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
2948	tiffio.h}: Preliminary support to read custom directories. New
2949	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
2950
29512005-12-07  Andrey Kiselev  <[email protected]>
2952
2953	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
2954	More work to implement custom directory read support.
2955
2956	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
2957	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
2958	tags custom.
2959
29602005-12-05  Andrey Kiselev  <[email protected]>
2961
2962	* libtiff/tif_dirread.c: One more workaround for broken
2963	StripByteCounts tag. Handle the case when StripByteCounts array filled
2964	with completely wrong values.
2965
29662005-11-30  Andrey Kiselev  <[email protected]>
2967
2968	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
2969	in the TIFFOpenW() function as per bug
2970
2971	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
2972
2973	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
2974	functions as per bug
2975
2976	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
2977
29782005-11-20  Frank Warmerdam  <[email protected]>
2979
2980	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
2981	for MS MDI format.
2982	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
2983
2984	* .cvsignore: many files added, and a few update according
2985	to suggestion of Brad HArds on tiff mailing list.
2986
29872005-11-03  Frank Warmerdam  <[email protected]>
2988
2989	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
2990	public.
2991
29922005-10-31  Andrey Kiselev  <[email protected]>
2993
2994	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
2995	as per bug
2996
2997	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
2998
2999	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
3000	as per bug
3001
3002	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
3003
3004	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
3005	problem as per bug
3006
3007	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
3008
3009	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
3010
3011	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
3012
3013	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
3014	ResolutionUnit tags modifiable during write process. As per bug
3015
3016	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
3017
3018	* tools/tiffsplit.c: Copy fax related fields over splitted parts
3019	as per bug
3020
3021	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
3022
30232005-10-21  Frank Warmerdam  <[email protected]>
3024
3025	* tif_dirread.c: Don't try and split single strips into "0" strips
3026	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
3027	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
3028
30292005-10-20  Joris Van Damme  <[email protected]>
3030
3031	* tif_fax3.c: changed 'at scanline ...' style warning/errors
3032	with incorrect use of tif_row, to 'at line ... of
3033	strip/tile ...' style
3034
30352005-10-15  Frank Warmerdam  <[email protected]>
3036
3037	* tif_write.c: fixed setting of planarconfig as per bug report
3038	on the mailing list from Joris.
3039
30402005-10-07  Andrey Kiselev  <[email protected]>
3041
3042	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
3043	tif_dirread.c}: Make the default strip size configurable via the
3044	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
3045
30462005-09-30  Bob Friesenhahn  <[email protected]>
3047
3048	* html/support.html: Fixed link to documentation on Greg Ward's
3049	LogLuv TIFF format.
3050
30512005-09-28  Andrey Kiselev  <[email protected]>
3052
3053	* tools/tiffdump.c: Fixed crash when reading malformed tags.
3054
30552005-09-20  Andrey Kiselev  <[email protected]>
3056
3057	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
3058	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
3059
30602005-09-12  Andrey Kiselev  <[email protected]>
3061
3062	* libtiff 3.7.4 released.
3063
3064	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
3065	from Patrick Welche (all scripts moved in the 'config' and 'm4'
3066	directories).
3067
30682005-09-12  Frank Warmerdam  <[email protected]>
3069
3070	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
3071
30722005-09-05  Frank Warmerdam  <[email protected]>
3073
3074	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
3075	also set it to NULL to avoid double free when re-setting custom
3076	string fields as per:
3077
3078	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
3079
30802005-08-12  Frank Warmerdam  <[email protected]>
3081
3082	* libtiff/tif_print.c: avoid signed/unsigned warning.
3083
3084	* libtiff/tif_dirread.c: removed unused variable.
3085
30862005-07-30  Frank Warmerdam  <[email protected]>
3087
3088	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
3089	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
3090	pass on bigendian (macosx) system.
3091
30922005-07-28  Andrey Kiselev  <[email protected]>
3093
3094	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
3095	CheckMalloc() function to _TIFFCheckMalloc() and make it available
3096	globally as an internal helper routine.
3097
30982005-07-27  Andrey Kiselev  <[email protected]>
3099
3100	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
3101	the custom tags handling code.
3102
31032005-07-26  Andrey Kiselev  <[email protected]>
3104
3105	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
3106	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
3107	function, use TIFFFetchNormalTag() instead as per bug
3108
3109	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3110
3111	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
3112	instead.
3113
3114	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3115
3116	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3117
31182005-07-25  Andrey Kiselev  <[email protected]>
3119
3120	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3121
3122	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3123
31242005-07-21  Andrey Kiselev  <[email protected]>
3125
3126	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3127	the TIFFWriteCheck() function in case of single band images (as per
3128	TIFF spec).
3129
31302005-07-12  Andrey Kiselev  <[email protected]>
3131
3132	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3133	support for SCons software building tool (http://www.scons.org/).
3134	This is experimental infrastructure and it will exist along with the
3135	autotools mechanics.
3136
31372005-07-07  Andrey Kiselev  <[email protected]>
3138
3139	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3140	the NetBSD source tree (the old	4-clause BSD license changed to
3141	the new 3-clause one).
3142
3143	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3144	replacement module.
3145
3146	* port/dummy.c: Make the dummy function static.
3147
31482005-07-06  Andrey Kiselev  <[email protected]>
3149
3150	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3151
3152	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3153	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3154	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3155
31562005-07-04  Andrey Kiselev  <[email protected]>
3157
3158	* libtiff 3.7.3 released.
3159
3160	* configure, configure.ac: Do not use empty -R option when linking
3161	with --enable-rpath.
3162
31632005-07-01  Andrey Kiselev  <[email protected]>
3164
3165	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3166	reading the first IFD when needed. As per bug
3167
3168	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3169
3170	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3171	effects.
3172
31732005-06-23  Andrey Kiselev  <[email protected]>
3174
3175	* tools/tiff2pdf.c: Print two characters per loop in the
3176	t2p_write_pdf_trailer(). As per bug
3177
3178	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3179
3180	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3181	per bug
3182
3183	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3184
3185	* acinclude.m4: Updated to latest OpenGL test macros versions.
3186
3187	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3188	platform. As per bug
3189
3190	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3191
31922005-06-14  Andrey Kiselev  <[email protected]>
3193
3194	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3195	and YClipPathUnits tags.
3196
31972005-06-07  Andrey Kiselev  <[email protected]>
3198
3199	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3200	use pixel sized shift in contigous case.
3201
32022005-06-06  Andrey Kiselev  <[email protected]>
3203
3204	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3205	Make overviews working for contiguos images.
3206
32072005-06-03  Andrey Kiselev  <[email protected]>
3208
3209	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3210	time one.
3211
3212	* libtiff/tif_predict.c: Floating point predictor now works on
3213	big-endian hosts.
3214
32152005-06-01  Andrey Kiselev  <[email protected]>
3216
3217	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3218	ASCII values.
3219
3220	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3221	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3222	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3223	TargetPrinter tags custom.
3224
3225	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3226	TIFF_CODERSETUP flag (to fix memry leaks).
3227
3228	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3229	allocating.
3230
32312005-05-26  Andrey Kiselev  <[email protected]>
3232
3233	* configure.ac, libtiff/Makefile.am: Added workaround for
3234	OpenBSD/MirOS soname problem as per bug
3235
3236	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3237
3238	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3239	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3240	per bug
3241
3242	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3243
32442005-05-25  Andrey Kiselev  <[email protected]>
3245
3246	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3247	the fscanf() function. As per bug
3248
3249	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3250
3251	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3252	uint16 array when fetching the BYTE and SBYTE filds, so we should
3253	consider result as pointer to uint16 array and not as array of chars.
3254	As per bug
3255
3256	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3257
3258	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3259
3260	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3261
3262	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3263	mode in CreateFile() call as per bug
3264
3265	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3266
3267	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3268	libtiffxx libraries as per bug
3269
3270	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3271
3272	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3273	GDAL.
3274
32752005-05-23  Frank Warmerdam  <[email protected]>
3276
3277	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3278	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3279	in directory.
3280
32812005-05-22  Frank Warmerdam  <[email protected]>
3282
3283	* libtiff/tif_dirread.c: Changed the code that computes
3284	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3285	zero. This is a common case with GDAL indicating a "null" tile/strip.
3286
32872005-05-17  Andrey Kiselev  <[email protected]>
3288
3289	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
3290
32912005-05-06  Frank Warmerdam  <[email protected]>
3292
3293	* libtiff/tif_dirread.c: Applied similar change to
3294	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
3295
3296	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3297
3298	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
3299
33002005-05-06  Andrey Kiselev  <[email protected]>
3301	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
3302	added new option '-b' to use interpolation in output PDF files (Bruno
3303	Ledoux).
3304
33052005-05-05  Frank Warmerdam  <[email protected]>
3306
3307	* libtiff/tif_dirread.c: Ensure that broken files with too many
3308	values in PerSampleShorts work ok instead of crashing.
3309
3310	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3311
33122005-04-27  Andrey Kiselev  <[email protected]>
3313
3314	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
3315	input file.
3316
33172005-04-15  Andrey Kiselev  <[email protected]>
3318
3319	* libtiff/tif_predict.c: Added ability to encode floating point
3320	predictor, as per TIFF Technical Note 3.
3321
33222005-04-14  Andrey Kiselev  <[email protected]>
3323
3324	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
3325	floating point predictor, as per TIFF Technical Note 3.
3326
33272005-04-13  Andrey Kiselev  <[email protected]>
3328
3329	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
3330	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
3331	swap 24-bit floating point values.
3332
3333	* libtiff/tiff.h: Added predictor constants.
3334
33352005-04-08  Andrey Kiselev  <[email protected]>
3336
3337	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
3338	values in _TIFFVSetField() function. Inspired by the bug
3339
3340	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3341
3342	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
3343	as per bug
3344
3345	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3346
33472005-03-30  Andrey Kiselev  <[email protected]>
3348
3349	* libtiff/tif_open.c: Do not read header in case the output file
3350	should be truncated (Ron).
3351
3352	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
3353	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
3354
3355	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
3356
33572005-03-22  Andrey Kiselev  <[email protected]>
3358
3359	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
3360	rpath option.
3361
33622005-03-21  Andrey Kiselev  <[email protected]>
3363
3364	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
3365	tags.
3366
33672005-03-18  Andrey Kiselev  <[email protected]>
3368
3369	* libtiff/dirinfo.c: Added DNG tags.
3370
3371	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
3372	handling code.
3373
3374	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
3375	added DNG 1.1.0.0 tags.
3376
3377	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
3378	bug
3379
3380	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
3381
3382	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
3383
33842005-03-17  Andrey Kiselev  <[email protected]>
3385
3386	* nmake.opt: Build with Win32 CRT library by default.
3387
3388	* tools/tiff2ps.c: Fixed typo in page size handling code.
3389
3390	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
3391	by value.
3392
3393	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
3394
33952005-03-15  Andrey Kiselev  <[email protected]>
3396
3397	* libtiff 3.7.2 released.
3398
33992005-03-09  Andrey Kiselev  <[email protected]>
3400
3401	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
3402	floating point data; complain on unsupported bit depths.
3403
34042005-03-05  Andrey Kiselev  <[email protected]>
3405
3406	* tif_stream.cxx: Use ios namespace instead of ios_base to support
3407	GCC 2.95.
3408
3409	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
3410	Lee Howard for HylaFax DCS tag
3411	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
3412
34132005-03-04  Andrey Kiselev  <[email protected]>
3414
3415	* configure, configure.ac: Use -rpath option instead of -R as per bug
3416
3417	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
3418
3419	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
3420	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
3421	software. As per bug
3422
3423	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
3424
3425	* nmake.opt, html/build.html: Add more comments, change the config
3426	file organization a bit as per bug
3427
3428	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
3429
3430	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
3431	as per bug
3432
3433	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
3434
34352005-03-03  Andrey Kiselev  <[email protected]>
3436
3437	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
3438	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3439
3440	* tools/fax2ps.c: Replace insecure mktemp() function with the
3441	tmpfile() as per bug
3442
3443	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
3444
34452005-02-04  Andrey Kiselev  <[email protected]>
3446
3447	* libtiff/tiff.h: Changed the int8 definition to be always signed char
3448	as per bug
3449
3450	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3451
3452	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
3453	block as per bug
3454
3455	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
3456
34572005-02-03  Bob Friesenhahn  <[email protected]>
3458
3459	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
3460	display more correctly.  Images display brighter than they should
3461	on a Sun workstation.
3462
34632005-02-03  Andrey Kiselev  <[email protected]>
3464
3465	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
3466	suspicious values in the tags. As per bugs
3467
3468	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3469
3470	and
3471
3472	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
3473
3474	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
3475
3476	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
3477
34782005-01-31  Bob Friesenhahn  <[email protected]>
3479
3480	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
3481	(TIFFTAG_TILELENGTH): Corrected description.
3482
34832005-01-30  Andrey Kiselev  <[email protected]>
3484
3485	* configure.ac: Fixes for --with-docdir option as per bug
3486
3487	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
3488
3489	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
3490	bug
3491
3492	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
3493
3494	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
3495	Michael Rinne and Edward Lam.
3496
34972005-01-15  Andrey Kiselev  <[email protected]>
3498
3499	* configure.ac: Make the documentation directory location configurable
3500	via the --with-docdir option (as suggested by Jeremy C. Reed).
3501
3502	* libtiff/tif_color.c: Use double as the second argument of pow()
3503	function in TIFFCIELabToRGBInit(). As per bug
3504
3505	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
3506
3507	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
3508	integer as per bug
3509
3510	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
3511
3512	* libtiff/tif_getimage.c: Always fill the error message buffer in
3513	TIFFRGBAImageBegin() as per bug
3514
3515	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
3516
35172005-01-12  Andrey Kiselev  <[email protected]>
3518
3519	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
3520	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
3521	tags as per bug
3522
3523	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
3524
3525	* libtiff/tif_win32.c: Fixed message formatting in functions
3526	Win32WarningHandler() and Win32ErrorHandler() as per bug
3527
3528	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
3529
3530	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
3531	per bug
3532
3533	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
3534
35352005-01-11  Andrey Kiselev  <[email protected]>
3536
3537	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
3538	"C"' section as per bug
3539
3540	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3541
3542	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
3543	compiler to avoid double definition of BSD types as per bug
3544
3545	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3546
3547	* libtiff/Makefile.am: Place the C++ stream API in the separate
3548	library called libtiffxx to avoid unneeded dependencies. Probably
3549	there will be more C++ API in the future. As per bugs
3550
3551	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
3552
3553	and
3554
3555	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3556
35572005-01-05  Andrey Kiselev  <[email protected]>
3558
3559	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
3560	wrong tag counts (Dmitry V. Levin, Martin Pitt).
3561
3562	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
3563	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3564
35652004-12-25  Andrey Kiselev  <[email protected]>
3566
3567	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
3568	RGB-images as per bug
3569
3570	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3571
3572
3573	* tools/tiffset.c: Convert character option to integer value as per
3574	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
3575
35762004-12-20  Andrey Kiselev  <[email protected]>
3577
3578	* libtiff 3.7.1 released.
3579
3580	* html/tiffset.1.html: Add missed manual page as per bug
3581
3582	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3583
3584	* libtiff/tiff.h: Revert back libtiff data type definitions as per
3585	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
3586
35872004-12-19  Andrey Kiselev  <[email protected]>
3588
3589	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
3590	checking for tag count in TIFFReadDirectory() function. As per bug
3591
3592	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3593
3594	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
3595	CheckMallock() function.
3596
3597	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
3598	RGB-images as per bug
3599
3600	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
3601
36022004-12-15  Frank Warmerdam  <[email protected]>
3603
3604	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
3605	SunPro compiler.
3606
36072004-12-11  Bob Friesenhahn  <[email protected]>
3608
3609	* autogen.sh: aclocal and autoheader should be executed after
3610	libtoolize.  Also add '-I .' to aclocal invocation to check
3611	current directory for macros.
3612
36132004-12-10  Andrey Kiselev  <[email protected]>
3614
3615	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
3616	as per bugs
3617
3618	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
3619
3620	and
3621
3622	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
3623
36242004-12-04  Andrey Kiselev  <[email protected]>
3625
3626	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
3627
3628	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3629
3630	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
3631	mode as per bug
3632
3633	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3634
3635	* libtiff/tif_config.in.vc: Removed unneded definitions for
3636	read/open/close/lseek functions to fix the
3637
3638	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
3639
36402004-12-03  Andrey Kiselev  <[email protected]>
3641
3642	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
3643	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
3644	must be removed in the future, as it was never used properly. As per
3645	bug
3646
3647	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
3648
36492004-11-30  Bob Friesenhahn  <[email protected]>
3650
3651	* libtiff/tif_jpeg.c: Added a work-around in order to allow
3652	compilation with the heavily modified version of libjpeg delivered
3653	with Cygwin.
3654
36552004-11-29  Andrey Kiselev  <[email protected]>
3656
3657	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
3658	counts. As per bug
3659
3660	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
3661
3662	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
3663
3664	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
3665
36662004-11-28  Andrey Kiselev  <[email protected]>
3667
3668	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
3669	on Windows.
3670
3671	* nmake.opt: Add missed DLLNAME variable.
3672
36732004-11-26  Frank Warmerdam  <[email protected]>
3674
3675	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
3676
36772004-11-24  Andrey Kiselev  <[email protected]>
3678
3679	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
3680	per bug
3681
3682	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
3683
3684	* man/tiffset.1: Added manual page for tiffset tool written by Jay
3685	Berkenbilt. As per bug
3686
3687	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3688
36892004-11-23  Frank Warmerdam  <[email protected]>
3690
3691	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
3692
36932004-11-21  Frank Warmerdam  <[email protected]>
3694
3695	* html/document.html: Updated Adobe web links as per email from Joris.
3696
36972004-11-21  Andrey Kiselev  <[email protected]>
3698
3699	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
3700	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
3701	use C++ streams should #include <tiffio.hxx>.
3702
37032004-11-13  Andrey Kiselev  <[email protected]>
3704
3705	* libtiff/tiff.h: Added Adobe DNG tags.
3706
3707	* libtiff/tif_win32.c: Typo fixed.
3708
3709	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
3710	be compliant with the latest standard. Appropriate additions in
3711	makefiles now completed.
3712
37132004-11-11  Andrey Kiselev  <[email protected]>
3714
3715	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
3716	different tag types. As per bug
3717
3718	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
3719
37202004-11-10  Andrey Kiselev  <[email protected]>
3721
3722	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
3723	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
3724
37252004-11-09  Andrey Kiselev  <[email protected]>
3726
3727	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
3728
37292004-11-07  Andrey Kiselev  <[email protected]>
3730
3731	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
3732	contributed by Edward Lam (see
3733	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
3734	Though no changes in any makefiles yet.
3735
37362004-11-05  Frank Warmerdam  <[email protected]>
3737
3738	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
3739	is bad. This is the callers responsibility.
3740	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
3741
37422004-11-05  Andrey Kiselev  <[email protected]>
3743
3744	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
3745	function to work with the double byte strings (used to represent
3746	filenames in some locales). As per bug
3747
3748	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
3749
3750	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
3751	Compression tags of type LONG from broken TIFFS as per bug
3752
3753	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3754
3755	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
3756	the writecount should have uint32 type. As per bug
3757
3758	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3759
3760	* libtiff/tif_write.c: Fixed wrong if() statement in
3761	TIFFAppendToStrip() function as per bug
3762
3763	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
3764
37652004-11-04  Andrey Kiselev  <[email protected]>
3766
3767	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
3768	field. The caller should supply a count when setting this field. As
3769	per bug
3770
3771	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
3772
3773	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
3774	uint32 count. Use this type everywhere.
3775
37762004-11-03  Frank Warmerdam  <[email protected]>
3777
3778	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
3779
37802004-11-02  Frank Warmerdam  <[email protected]>
3781
3782	* tools/tiff2rgba.c: removed extra newlines in usage message.
3783
37842004-10-30  Andrey Kiselev  <[email protected]>
3785
3786	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
3787
3788	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
3789	tags (Tristan Hill).
3790
37912004-10-30  Frank Warmerdam  <[email protected]>
3792
3793	* libtiff/tiffiop.h: added fallback definition of assert() if we
3794	don't have assert.h.
3795
37962004-10-29  Andrey Kiselev  <[email protected]>
3797
3798	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
3799	choosing when the incorrect Group4Options tag set. As per bug
3800
3801	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
3802
3803	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
3804	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
3805	TIFFWriteNormalTag().
3806
38072004-10-28  Andrey Kiselev  <[email protected]>
3808
3809	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
3810	tags (Peter Fales).
3811
3812	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
3813
38142004-10-28  Frank Warmerdam  <[email protected]>
3815
3816	* tools/tiff2pdf.c: added casts to avoid warnings.
3817
3818	* libtiff/libtiff.def: Added several more entry points required
3819	to link fax2tiff.c against the DLL on windows.
3820
38212004-10-27  Andrey Kiselev  <[email protected]>
3822
3823	* configure, configure.ac: Added --enable-rpath option to embed linker
3824	paths into library binary.
3825
38262004-10-26  Andrey Kiselev  <[email protected]>
3827
3828	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
3829
3830	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
3831	(Vladimir Nadvornik, Dmitry V. Levin).
3832
38332004-10-16  Andrey Kiselev  <[email protected]>
3834
3835	* libtiff 3.7.0 released.
3836
38372004-10-15  Bob Friesenhahn  <[email protected]>
3838
3839	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
3840	in this file so its inclusion is removed.  Including stdio.h
3841	sometimes incurs an INT32 typedef conflict between MinGW's
3842	basetsd.h and libjpeg's jmorecfg.h.
3843
38442004-10-15  Andrey Kiselev  <[email protected]>
3845
3846	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
3847
38482004-10-13  Bob Friesenhahn  <[email protected]>
3849
3850	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
3851	conflict noticed under MinGW.
3852	* ltmain.sh: Fix for MinGW compilation.
3853
38542004-10-13  Frank Warmerdam  <[email protected]>
3855
3856	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
3857	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
3858
38592004-10-12  Andrey Kiselev  <[email protected]>
3860
3861	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
3862	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
3863	properly (Dmitry V. Levin, Marcus Meissner).
3864
38652004-10-11  Andrey Kiselev  <[email protected]>
3866
3867	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
3868	to TIFF_IFD.
3869
38702004-10-10  Andrey Kiselev  <[email protected]>
3871
3872	* tools/bmp2tif.c: Check the space allocation results.
3873
38742004-10-09  Andrey Kiselev  <[email protected]>
3875
3876	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
3877	of the TIFFDirectory structure with the 0 instead of -1 to avoid
3878	confusing integer overflows in TIFFTileRowSize() for striped images.
3879
3880	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
3881	by Ross A. Finlayson.
3882
3883	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
3884
3885	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
3886
38872004-10-08  Frank Warmerdam  <[email protected]>
3888
3889	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
3890	of tif_fieldinfo.
3891
3892	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
3893
38942004-10-04  Bob Friesenhahn  <[email protected]>
3895
3896	* contrib/iptcutil/README: Added the missing README which goes
3897	along with iptcutil.
3898
38992004-10-03  Andrey Kiselev  <[email protected]>
3900
3901	* libtiff/tif_compress.c: Improved error reporting in
3902	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
3903
39042004-10-02  Andrey Kiselev  <[email protected]>
3905
3906	* libtiff 3.7.0beta2 released.
3907
3908	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
3909	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
3910	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
3911	allocations and	integer overflows (Dmitry V. Levin).
3912
3913	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
3914
39152004-10-01  Frank Warmerdam  <[email protected]>
3916
3917	* libtiff/tif_open.c: added a more informative message if a BigTIFF
3918	file is opened.
3919
39202004-09-30  Frank Warmerdam  <[email protected]>
3921
3922	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
3923	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
3924	in the Adobe XMP Specification.
3925
39262004-09-29  Andrey Kiselev  <[email protected]>
3927
3928	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
3929	memset().
3930
3931	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
3932	from Dmitry V. Levin to fix possible integer overflow problems.
3933
39342004-09-28  Andrey Kiselev  <[email protected]>
3935
3936	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
3937	(Dmitry V. Levin).
3938
39392004-09-26  Andrey Kiselev  <[email protected]>
3940
3941	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
3942	Optimize checking for the strip bounds.
3943
3944	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
3945	TIFFRasterScanlineSize() functions report zero in the case of integer
3946	overflow now. Properly handle this case in TIFFReadDirectory()
3947	(patches from Dmitry V. Levin).
3948
39492004-09-25  Andrey Kiselev  <[email protected]>
3950
3951	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
3952	macro where appropriate.
3953
3954	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
3955	noted by Gennady Khokhorin.
3956
3957	* libtiff/tif_dirread.c: Always check the return values, returned
3958	by the _TIFFmalloc() (Dmitry V. Levin).
3959
3960	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
3961	functions (Dmitry V. Levin).
3962
3963	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
3964	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
3965	TIFFGrowStrips() (found by Dmitry V. Levin).
3966
39672004-09-24  Andrey Kiselev  <[email protected]>
3968
3969	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
3970	to get the list of configured codecs.
3971
3972	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
3973	Dmitry V. Levin.
3974
39752004-09-23  Andrey Kiselev  <[email protected]>
3976
3977	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
3978	possible integer overflow in CheckMalloc() function.
3979
39802004-09-22  Andrey Kiselev  <[email protected]>
3981
3982	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
3983	of plain TIFFhowmany() where appropriate.
3984
39852004-09-21  Andrey Kiselev  <[email protected]>
3986
3987	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
3988
39892004-09-19  Andrey Kiselev  <[email protected]>
3990
3991	* libtiff 3.7.0beta released.
3992
3993	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
3994	overruns fixed, as noted by Chris Evans.
3995
39962004-09-14  Bob Friesenhahn  <[email protected]>
3997
3998	* commit: Added a script to make it more convenient to commit
3999	updates.  The CVS commit message is extracted from this ChangeLog
4000	file.
4001
40022004-09-14  Andrey Kiselev  <[email protected]>
4003
4004	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
4005	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
4006	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
4007	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
4008	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
4009	tif_config.h.in, tiffiop.h}:
4010	Get rid of BSD data types (u_char, u_short, u_int, u_long).
4011
40122004-09-13  Bob Friesenhahn  <[email protected]>
4013
4014	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
4015	specification. Reference libtiff bug tracking system to submit
4016	private tag additions.
4017
40182004-09-12  Bob Friesenhahn  <[email protected]>
4019
4020	* tools/tiffgt.c: Include "tif_config.h".
4021
4022	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
4023	tiffgt.  This results in the 'compile' script being added to the
4024	project.
4025
4026	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
4027	required to find OpenGL headers necessary to build tiffgt.  Also
4028	ensure that the libtiff that we built is used rather than some other
4029	libtiff installed on the system.
4030
40312004-09-12  Andrey Kiselev  <[email protected]>
4032
4033	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
4034	libraries.
4035
40362004-09-11  Bob Friesenhahn  <[email protected]>
4037
4038	* configure.ac: Pass library configuration defines via
4039	tif_config.h rather than extending CPPFLAGS. Configure a
4040	libtiff/tiffconf.h in order to satisfy application requirements
4041	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
4042	this causes failure to build on systems which properly respect
4043	this request.
4044
4045	* libtiff/tiffconf.h.in: New file to act as the template for the
4046	configured tiffconf.h
4047
4048	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
4049
40502004-09-10  Frank Warmerdam  <[email protected]>
4051
4052	* html/internals.html: Split off a discussion of adding new tags
4053	into addingtags.html.
4054
40552004-09-10  Andrey Kiselev  <[email protected]>
4056
4057	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
4058
4059	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
4060
4061	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4062
4063	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
4064
4065	* libtiff/tif_dirread.c: Don't reject to read tags of the
4066	SamplesPerPixel size when the tag count is greater than number of
4067	samples as per bug
4068
4069	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
4070
4071	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
4072	defining int8/uint8/... etc. types. As per bug
4073
4074	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
4075
40762004-09-09  Frank Warmerdam  <[email protected]>
4077
4078	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
4079	to avoid compile warnings about getopt() and a few other things.
4080
40812004-09-02  Andrey Kiselev  <[email protected]>
4082
4083	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
4084	assigning magic in TIFFFetchFloat().
4085
40862004-09-01  Andrey Kiselev  <[email protected]>
4087
4088	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
4089	to avoid requirement for tiffiop.h inclusion in some applications. See
4090	here
4091
4092	http://www.asmail.be/msg0054799560.html
4093
4094	for details.
4095
4096	* tools/fax2tiff.c: Use the new functions in the code.
4097
40982004-08-25  Andrey Kiselev  <[email protected]>
4099
4100	* tools/tiff2pdf.c: Initialize arrays properly.
4101
4102	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
4103	properly initialize array in PSDataBW().
4104
41052004-08-24  Andrey Kiselev  <[email protected]>
4106
4107	* tools/tiff2pdf.c: More fixes for bug
4108
4109	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4110
4111	from Ross Finlayson.
4112
41132004-08-23  Andrey Kiselev  <[email protected]>
4114
4115	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4116
4117	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4118	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4119
4120	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4121
4122	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4123
41242004-08-20  Andrey Kiselev  <[email protected]>
4125
4126	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4127	that the input file has compression, photometric interpretation,
4128	etcetra, tags or if not than a more descriptive error is returned.
4129
4130	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4131	code, responsible for tag data type checking.
4132
41332004-08-19  Andrey Kiselev  <[email protected]>
4134
4135	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4136	variable as per bug
4137
4138	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4139
41402004-08-16  Andrey Kiselev  <[email protected]>
4141
4142	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4143	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4144
41452004-08-01  Andrey Kiselev  <[email protected]>
4146
4147	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4148	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4149
41502004-07-24  Andrey Kiselev  <[email protected]>
4151
4152	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4153	separate package. All libtiff tools are updated to not advertise an
4154	abcence of LZW support.
4155
41562004-07-12  Andrey Kiselev  <[email protected]>
4157
4158	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4159
41602004-07-11  Andrey Kiselev  <[email protected]>
4161
4162	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4163	messages, as suggested by Bernd Herd.
4164
41652004-07-03  Andrey Kiselev  <[email protected]>
4166
4167	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4168	when setting custom tags by value. Reported by Eric Fieleke.
4169
41702004-06-14  Andrey Kiselev  <[email protected]>
4171
4172	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4173
41742004-06-08  Andrey Kiselev  <[email protected]>
4175
4176	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4177	into TIFFs.
4178
41792004-06-07  Andrey Kiselev  <[email protected]>
4180
4181	* libtiff 3.7.0alpha released.
4182
41832004-06-06  Andrey Kiselev  <[email protected]>
4184
4185	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4186	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4187	ones :-).
4188
4189	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4190	problems in 64-bit environment).
4191
41922004-06-05  Andrey Kiselev  <[email protected]>
4193
4194	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4195	Tags can be supplied by the mnemonic name or number.
4196
4197	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4198	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4199
42002004-05-27  Andrey Kiselev  <[email protected]>
4201
4202	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4203	markers as per bug
4204
4205	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4206
42072004-05-24  Andrey Kiselev  <[email protected]>
4208
4209	* tools/tiffsplit.c: Don't forget to copy Photometric
4210	Interpretation tag.
4211
42122004-05-20  Andrey Kiselev  <[email protected]>
4213
4214	* libtiff/{tif_open.c, tiffio.h}: New function added:
4215	TIFFIsBigEndian(). Function returns nonzero if given was file written
4216	in big-endian order.
4217
4218	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4219	files. Now output files will be written using the same byte order
4220	flag as	in the input image. See
4221
4222	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4223
4224	for details.
4225
42262004-05-19  Frank Warmerdam  <[email protected]>
4227
4228	* libtiff/tif_print.c: added (untested) support for printing
4229	SSHORT, SLONG and SRATIONAL fields.
4230
4231	* tools/tiffcp.c: close output file on normal exit.
4232
42332004-05-17  Andrey Kiselev  <[email protected]>
4234
4235	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4236	if compression type mismatches. See
4237
4238	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4239
42402004-04-30  Andrey Kiselev  <[email protected]>
4241
4242	* libtiff/tif_strip.c: Never return 0 from the
4243	TIFFNumberOfStrips().
4244
42452004-04-29  Andrey Kiselev  <[email protected]>
4246
4247	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4248	store single SampleFormat value for multisampled images. See
4249
4250	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4251
42522004-04-25  Andrey Kiselev  <[email protected]>
4253
4254	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4255	int16 and int32 types to avoid complains on some compilers. Details at
4256
4257	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4258
42592004-04-20  Andrey Kiselev  <[email protected]>
4260
4261	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4262
4263	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4264
42652004-04-14  Andrey Kiselev  <[email protected]>
4266
4267	* libtiff/tif_write.c: Allow in-place updating of the compressed
4268	images (don't work properly with all codecs). For details see GDAL bug
4269
4270	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4271
42722004-04-06  Andrey Kiselev  <[email protected]>
4273
4274	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4275	in the Intergarph JPEG compressed TIFF images as per bug:
4276
4277	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4278
42792004-04-04  Frank Warmerdam  <[email protected]>
4280
4281	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4282	via bad2.
4283
42842004-03-26  Andrey Kiselev  <[email protected]>
4285
4286	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4287	JPEG compression of grayscale images.
4288
4289	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
4290	present in the input image.
4291
42922004-03-19  Andrey Kiselev  <[email protected]>
4293
4294	* {many}: The first attempt to switch to autotools.
4295
42962004-03-03  Andrey Kiselev  <[email protected]>
4297
4298	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
4299	TIFFClientOpen() when the appropriate client functions was not
4300	supplied by user.
4301
43022004-03-02  Frank Warmerdam  <[email protected]>
4303
4304	* tools/ycbcr.c: fixed main() declaration as per:
4305	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
4306
43072004-02-26  Andrey Kiselev  <[email protected]>
4308
4309	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
4310	images. Reported by Artem Mirolubov.
4311
4312	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
4313	tag type in TIFFFetchNormalTag() as per bug
4314
4315	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
4316
43172004-02-17  Frank Warmerdam  <[email protected]>
4318
4319	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
4320	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
4321
43222004-02-05  Andrey Kiselev  <[email protected]>
4323
4324	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
4325	bug
4326
4327	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
4328
4329	But we need more work on fax codec to support update mode.
4330
43312004-01-30  Frank Warmerdam  <[email protected]>
4332
4333	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
4334	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
4335	Scott Reynolds.
4336
43372004-01-29  Andrey Kiselev  <[email protected]>
4338
4339	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
4340	and TIFFTAG_INDEXED as per bug
4341
4342	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
4343
4344	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
4345	NULL before proceeding further as per bug
4346
4347	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
4348
4349	Check results, returned by the TIFFFdOpen() before returning and close
4350	file if TIFFFdOpen() failed as per bug
4351
4352	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4353
4354	* libtiff/tif_open.c: More fixes for
4355
4356	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4357
43582004-01-28  Andrey Kiselev  <[email protected]>
4359
4360	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
4361	TIFFCleanup() from the TIFFClose() in order to fix the bug
4362
4363	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4364
4365	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
4366	InkNames tag as per bug
4367
4368	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
4369
4370	Memory leak fixed.
4371
43722004-01-21  Frank Warmerdam  <[email protected]>
4373
4374	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
4375	are field_passcount=TRUE properly.  Arguably anonymous custom tags
4376	should be declared as passcount=FALSE, but I don't want to change
4377	that without a careful review.
4378
43792004-01-20  Andrey Kiselev  <[email protected]>
4380
4381	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
4382	stripped image in TIFFWriteBufferSetup(). As per bug
4383
4384	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
4385
43862004-01-11  Andrey Kiselev  <[email protected]>
4387
4388	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
4389	patch from Gerben Koopmans.
4390
4391	* libtiff/tif_dirread.c: Check field_passcount value before setting
4392	the value of undefined type, patch from Gerben Koopmans.
4393
43942004-01-02  Andrey Kiselev  <[email protected]>
4395
4396	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
4397	non-RGB images.
4398
43992003-12-31  Andrey Kiselev  <[email protected]>
4400
4401	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
4402	pointer passed. Patch supplied by Larry Grill.
4403
4404	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
4405	suggested by Jeremy C. Reed.
4406
44072003-12-26  Andrey Kiselev  <[email protected]>
4408
4409	* libtiff 3.6.1 released.
4410
44112003-12-24  Andrey Kiselev  <[email protected]>
4412
4413	* config.guess, config.sub: Updated from the recent upstream.
4414
44152003-12-22  Andrey Kiselev  <[email protected]>
4416
4417	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
4418	More cleanups in color conversion interface, added appropriate manual
4419	page.
4420
44212003-12-19  Andrey Kiselev  <[email protected]>
4422
4423	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
4424	per bug
4425
4426	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4427
4428	* tools/tiff2ps.c: Added support for alpha channel. Fixes
4429
4430	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
4431
4432	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
4433	Interface for Lab->RGB color conversion is finally cleaned up.
4434	Added support for ReferenceBlackWhite tag handling when converted from
4435	YCbCr color space. The latter closes
4436
4437	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
4438
44392003-12-07  Andrey Kiselev  <[email protected]>
4440
4441	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
4442
4443	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
4444	library.
4445
44462003-12-06  Andrey Kiselev  <[email protected]>
4447
4448	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
4449	file and properly use it for CIE Lab->RGB transform.
4450
44512003-12-04  Andrey Kiselev  <[email protected]>
4452
4453	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
4454	conversion routines now in the tif_color.c module. New function
4455	TIFFYCbCrtoRGB() available in TIFF API.
4456
4457	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
4458
44592003-12-03  Andrey Kiselev  <[email protected]>
4460
4461	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
4462	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
4463	module.
4464
4465	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
4466	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
4467	Finally resolved problems with orientation handling. TIFFRGBAImage
4468	interface now properly supports all possible orientations, i.e. images
4469	will be flipped both in horizontal and vertical directions if
4470	required. 'Known bugs' section now removed from the appropriate manual
4471	pages. Closed bug entry:
4472
4473	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4474
44752003-12-02  Andrey Kiselev  <[email protected]>
4476
4477	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
4478	function calls as per bug
4479
4480	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
4481
44822003-11-28 Ross Finlayson  <[email protected]>
4483
4484	* tools/tiff2pdf.c:  Some bugs fixed.
4485
44862003-11-27  Andrey Kiselev  <[email protected]>
4487
4488	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
4489	reported by Antonio Scuri.
4490
4491	* man/tiff2pdf.1: Few improvements in page layout.
4492
4493	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
4494	 Added support fpr tiff2pdf manual page.
4495
44962003-11-26 Ross Finlayson  <[email protected]>
4497
4498	* /man/tiff2pdf.1:  File added to repository.
4499
45002003-11-26  Andrey Kiselev  <[email protected]>
4501
4502	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
4503	 Added support fpr tiff2pdf utility.
4504
45052003-11-25  Ross Finlayson  <[email protected]>
4506
4507	* /tools/tiff2pdf.c:  File added to repository.
4508
45092003-11-22  Andrey Kiselev  <[email protected]>
4510
4511	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
4512
45132003-11-21  Andrey Kiselev  <[email protected]>
4514
4515	* /tools/raw2tiff.c: #include <getopt.h> removed.
4516
4517	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
4518	sgigt utility removed and replaced with the completely rewritten
4519	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
4520	there is a lot of things to improve.
4521
4522	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
4523	extract the fields from the OJPEG files. Patch supplied by Ross
4524	Finlayson.
4525
4526	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
4527	Added new function TIFFIsCODECConfigured(), suggested by Ross
4528	Finlayson.
4529
45302003-11-18  Andrey Kiselev  <[email protected]>
4531
4532	* libtiff/tif_dirinfo.c: Implemented binary search in
4533	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
4534
4535	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
4536	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
4537
45382003-11-17  Frank Warmerdam  <[email protected]>
4539
4540	* tif_dirread.c: do not mark all anonymously defined tags to be
4541	IGNOREd.
4542
45432003-11-17  Andrey Kiselev  <[email protected]>
4544
4545	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
4546	TIFFDataWidth() function insted of tiffDataWidth array.
4547
45482003-11-16  Andrey Kiselev  <[email protected]>
4549
4550	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
4551	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
4552
45532003-11-15  Frank Warmerdam  <[email protected]>
4554
4555	* Makefile.in: fixed missing backslash for tif_color.c in list.
4556
45572003-11-13  Andrey Kiselev  <[email protected]>
4558
4559	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
4560	New color space conversion code: CIE L*a*b* 1976 images now supported
4561	by the TIFFRGBAImage interface. All introduced routines go to new
4562	module tif_color.c. Eventually all color conversion functions should
4563	be moved there.
4564
45652003-11-12  Andrey Kiselev  <[email protected]>
4566
4567	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
4568	with the reverse byte order (it is reported by the magic header
4569	field). Problem reported by Andreas Wiesmann.
4570
4571	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
4572	calculation function. Guessing mechanics now documented in manual page.
4573
45742003-11-11  Andrey Kiselev  <[email protected]>
4575
4576	* tools/raw2tiff.c: Implemented image size guessing using
4577	correlation coefficient calculation between two neighbour lines.
4578
45792003-11-09  Frank Warmerdam  <[email protected]>
4580
4581	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
4582	planarconfig_contig case in TIFFComputeTile().
4583
4584	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
4585
45862003-11-09  Andrey Kiselev  <[email protected]>
4587
4588	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
4589
45902003-11-07  Andrey Kiselev  <[email protected]>
4591
4592	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
4593	Added TIFFRawStripSize() function as suggested by Chris Hanson.
4594
45952003-11-03  Andrey Kiselev  <[email protected]>
4596
4597	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
4598	per bug
4599
4600	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
4601
46022003-10-29  Andrey Kiselev  <[email protected]>
4603
4604	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
4605
4606	* html/build.html: Added note about GNU make requirement.
4607
46082003-10-25  Andrey Kiselev  <[email protected]>
4609
4610	* Makefile.in: Fixes in using MAKEFLAGS as per bug
4611
4612	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
4613
4614	* port/install.sh.in: Option -p added to the mkdir command to create
4615	all directory tree structure before installing.
4616
46172003-10-18  Andrey Kiselev  <[email protected]>
4618
4619	* /tools/tiff2ps.c: #include <strings.h> replaced with the
4620	#include <string.h>.
4621
46222003-10-16  Andrey Kiselev  <[email protected]>
4623
4624	* Makefile.in: Add an absolute path to the test_pics.sh call.
4625
46262003-10-12  Andrey Kiselev  <[email protected]>
4627
4628	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
4629	typedefs.
4630
46312003-10-09  Andrey Kiselev  <[email protected]>
4632
4633	* configure, libtiff/{Makefile.in, mkversion.c}:
4634	Relative buildings fixed.
4635
4636	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
4637	rule.
4638
46392003-10-07  Andrey Kiselev  <[email protected]>
4640
4641	* Makefile.in: Added missed v3.6.0.html.
4642
4643	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
4644	ORIENTATION_BOTLEFT.
4645
46462003-10-04  Andrey Kiselev  <[email protected]>
4647
4648	* 3.6.0 final release.
4649
46502003-10-03  Andrey Kiselev  <[email protected]>
4651
4652	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
4653	function TIFFReadRGBAImageOriented() implemented to retrieve raster
4654	array with user-specified origin position as suggested by Jason Frank.
4655	See
4656
4657	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4658
4659	for details.
4660
4661	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
4662	instead of TIFFReadRGBAImage().
4663
4664	* tools/tiff2ps.c: Fixed possible endless loop as per bug
4665
4666	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
4667
46682003-09-30  Andrey Kiselev  <[email protected]>
4669
4670	* libtiff/tif_dirread.c: Check field counter against number of fields
4671	in order to fix
4672
4673	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
4674
4675	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
4676
4677	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
4678
46792003-09-25  Andrey Kiselev  <[email protected]>
4680
4681	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
4682	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
4683
4684	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
4685
46862003-09-23  Andrey Kiselev  <[email protected]>
4687
4688	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
4689
4690	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4691
46922003-08-21  Andrey Kiselev  <[email protected]>
4693
4694	* tools/tiffmedian.c: int declaration replaced with the uint32 to
4695	support large images as per bug
4696
4697	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
4698
46992003-08-12  Andrey Kiselev  <[email protected]>
4700
4701 	* libtiff/Makefile.in: Fixed problem with building in different
4702	directory.
4703
4704	* tools/tiff2ps.c: Added missing #include <strings.h>.
4705
4706	* libtiff/tif_dirwrite.c: More fixes for custom tags code
4707	from Ashley Dreier.
4708
47092003-08-07  Andrey Kiselev  <[email protected]>
4710
4711	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
4712	Patch submitted by Balatoni Denes (with corrections from Tom
4713	Kacvinsky).
4714
4715	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
4716	being used. Reported by Tom Kacvinsky.
4717
4718	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
4719	reported by Ashley Dreier.
4720
4721	* libtiff/tif_print.c: Fixed problem with float tags reading, support
4722	for printing RATIONAL and BYTE tags added.
4723
47242003-08-05  Andrey Kiselev  <[email protected]>
4725
4726	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
4727	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
4728	problems with predictor initialization. Remove O_RDONLY check during
4729	state block allocation to be able open LZW compressed files in update
4730	mode.
4731
4732	Problem exist for libtiff version of the tif_lzw.c module. One from
4733	lzw-compression-kit hasn't such troubles.
4734
47352003-08-04  Frank Warmerdam  <[email protected]>
4736
4737	* libtiff/tif_write.c: modified tif_write.c so that the various
4738	encoded write functions use tif_postdecode() to apply byte order
4739	swapping (swab) to the application passed data buffer if the same
4740	would be done when reading.  This allows us to write pixel data with
4741	more than 8 bits per sample to existing files of a non-native byte
4742	order.  One side effect of this change is the applications buffer
4743	itself is altered in this case by the act of writing.
4744
4745	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
4746
47472003-07-25  Frank Warmerdam  <[email protected]>
4748
4749	* libtiff/tif_open.c: avoid signed/unsigned casting warning
4750	initializing typemask as per patch from J.A. Strother.
4751
4752	* tools/tiffcp.c: fixed signed/unsigned casting warning.
4753
4754	* libtiff/tif_print.c: dos2unix conversion.
4755
4756	* tools/tiffsplit.c: increased the maximum number of pages that
4757	can be split.  Patch provided by Andrew J. Montalenti.
4758
47592003-07-11  Andrey Kiselev  <[email protected]>
4760
4761	* tools/raw2tiff.c: Added option `-p' to explicitly select color
4762	space of input image data. Closes
4763
4764	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
4765
47662003-07-08  Frank Warmerdam  <[email protected]>
4767
4768	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
4769	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
4770	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
4771	avoid casting warning at /W4.
4772
47732003-07-03  Andrey Kiselev  <[email protected]>
4774
4775	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
4776
47772003-06-30  Andrey Kiselev  <[email protected]>
4778
4779	* libtiff/tif_pixarlog.c: Unused variables removed.
4780
4781	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
4782	EstimateStripByteCounts() as per bug
4783
4784	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4785
4786	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
4787	64-bit architectures as per bug
4788
4789	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4790
4791	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
4792	unknown data type.
4793
47942003-06-19  Frank Warmerdam  <[email protected]>
4795
4796	* libtiff/tif_print.c: fixed some serious bugs when printing
4797	custom tags ... almost certain to crash.
4798
4799	* libtiff/tif_dirread.c: Don't ignore custom fields that are
4800	autodefined.  Not sure how this got to be like this.
4801
48022003-06-18  Andrey Kiselev  <[email protected]>
4803
4804	* 3.6.0 Beta2 released.
4805
4806	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
4807	comparing as per bug
4808
4809	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
4810
4811	`-z' option now can be used to set the number of reported different
4812	bytes.
4813
48142003-06-09  Andrey Kiselev  <[email protected]>
4815
4816	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
4817	to -r option to get the entire image as one strip. See
4818
4819	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4820
4821	for details.
4822
48232003-06-04  Andrey Kiselev  <[email protected]>
4824
4825	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
4826	values as per bug
4827
4828	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4829
48302003-05-27  Frank Warmerdam  <[email protected]>
4831
4832	* libtiff/tif_jpeg.c: modified segment_height calculation to always
4833	be a full height tile for tiled images.  Also changed error to just
4834	be a warning.
4835
48362003-05-25  Andrey Kiselev  <[email protected]>
4837
4838	* tools/fax2tiff.c: Page numbering fixed, as per bug
4839
4840	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
4841
48422003-05-20  Andrey Kiselev  <[email protected]>
4843
4844	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4845	configure, Makefile.in:	Switched back to the old behaviour. Likely
4846	better solution should be found for OJPEG support.
4847
48482003-05-11  Andrey Kiselev  <[email protected]>
4849
4850	* libtiff/mkversion.c: Fixed problem with wrong string size when
4851	reading RELEASE-DATE file.
4852
48532003-05-07  Andrey Kiselev  <[email protected]>
4854
4855	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
4856	index was out of range.
4857
48582003-05-06  Andrey Kiselev  <[email protected]>
4859
4860	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4861	configure, Makefile.in:	Improved libtiff compilation with OJPEG
4862	support. Now no need for patching IJG JPEG library, hack requred by
4863	libtiff will be compiled and used in-place. Implemented with
4864	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
4865
4866	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
4867	TIFFVGetFieldDefaulted() function.
4868
48692003-05-05  Andrey Kiselev  <[email protected]>
4870
4871	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
4872	comments.
4873
4874	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
4875	was not copied from source image.
4876
4877	* libtiff/getimage.c: Workaround for some images without correct
4878	info about alpha channel as per bug
4879
4880	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
4881
48822003-04-29  Andrey Kiselev  <[email protected]>
4883
4884	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
4885	It basically allows one to use the /flateDecode filter for ZIP
4886	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
4887
4888	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
4889
4890	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
4891	as per bug
4892
4893	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
4894
48952003-04-17  Andrey Kiselev  <[email protected]>
4896
4897	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
4898	due to problems with multidirectory images. Quality of error messages
4899	improved.
4900
49012003-04-16  Andrey Kiselev  <[email protected]>
4902
4903	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
4904	encoded images. See bug entries
4905
4906	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
4907
4908	and
4909
4910	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
4911
4912	* libtiff/tif_dirread.c: Additional check for StripByteCounts
4913	correctness. Fixes
4914
4915	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
4916
49172003-03-12  Andrey Kiselev  <[email protected]>
4918
4919	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
4920	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
4921	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
4922	tiffmedian.c}: Added library version reporting facility to all tools.
4923
49242003-03-06  Frank Warmerdam  <[email protected]>
4925
4926	* port/install.sh.in: Fixed problems with install producing paths
4927	like ///usr/local/lib on cygwin.
4928
49292003-02-27  Andrey Kiselev  <[email protected]>
4930
4931	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
4932	raw input page. Patch supplied by Julien Gaulmin. See
4933
4934	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
4935
4936	for details.
4937
49382003-02-26  Frank Warmerdam  <[email protected]>
4939
4940	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
4941	responsible for byte swapping complex image data.
4942
4943	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
4944	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
4945
49462003-02-07  Andrey Kiselev  <[email protected]>
4947
4948	* tools/ppm2tiff.c: Fixed problem with too many arguments.
4949
49502003-02-04  Andrey Kiselev  <[email protected]>
4951
4952	* tools/raw2tiff.c: Memory leak fixed.
4953
49542003-02-03  Andrey Kiselev  <[email protected]>
4955
4956	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
4957	(thanks, Julien!). More switches for fax2tiff tool for better control
4958	of input and output. Details at
4959
4960	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
4961
49622003-02-03  Frank Warmerdam  <[email protected]>
4963
4964	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
4965	library so that we can check if there is already any tile/strip data
4966	before deciding between creating a compressor or a decompressor.
4967
49682003-01-31  Frank Warmerdam  <[email protected]>
4969
4970	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
4971	a pre-existing compressed image.  That is, image writing to
4972	pre-existing compressed images is not allowed.
4973
4974	* libtiff/tif_open.c: Removed error if opening a compressed file
4975	in update mode.
4976
4977	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
4978
49792003-01-31  Andrey Kiselev  <[email protected]>
4980
4981	* config.guess, config.sub: Updated to recent upstream versions.
4982
49832003-01-15  Frank Warmerdam  <[email protected]>
4984
4985	* cut 3.6.0 Beta release.
4986
49872002-12-20  Andrey Kiselev  <[email protected]>
4988
4989	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
4990	in wrong way as per bug
4991
4992	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
4993
49942002-12-17  Frank Warmerdam  <[email protected]>
4995
4996	* libtiff/tif_dirread.c: Allow wrong sized arrays in
4997	TIFFFetchStripThing().
4998
4999	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
5000
50012002-12-02  Frank Warmerdam  <[email protected]>
5002
5003	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
5004	Was using realloc even first time.  Fix by Igor Venevtsev.
5005
50062002-11-30  Frank Warmerdam  <[email protected]>
5007
5008	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
5009	field value.
5010
5011	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
5012	tags in TIFFVGetField() ... added missing break.
5013
50142002-10-14  Frank Warmerdam  <[email protected]>
5015
5016	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
5017	the scanline buffer long enough when writing rgb triplets.
5018	The scanline needs to be 3 X the number of dots or else it will
5019	contain	an incomplete triplet and programs that try to separate
5020	the eps by redefining the colorimage operator will get messed up.
5021	Patch supplied by William Bader.
5022
5023	* Makefile.in: added tif_extension.c to file list as per
5024	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
5025
50262002-10-11  Andrey Kiselev  <[email protected]>
5027
5028	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
5029	large files (>2GiB) supporting. New option in the config.site:
5030	LARGEFILE="yes". Should be enough for I/O of the large files.
5031
50322002-10-10  Frank Warmerdam  <[email protected]>
5033
5034	* libtiff/html/v3.6.0.html: new release notes.
5035
5036	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
5037	link for Andrey.  Pointer to v3.6.0.html.
5038
5039	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
5040
50412002-10-07  Andrey Kiselev  <[email protected]>
5042	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
5043	(thanks, Sebastian!). New switches:
5044	-b # for a bottom margin of # inches
5045	-c   center image
5046	-l # for a left margin of # inches
5047	-r   rotate the image by 180 degrees
5048	New features merged with code for shrinking/overlapping.
5049	Previously added -c and -n switches (for overriding PS units) renamed
5050	in -x and -y respectively.
5051
5052	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
5053
5054	* html/man/*.html: Updated from actual manual pages.
5055
50562002-10-06  Frank Warmerdam  <[email protected]>
5057
5058	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
5059	size on windows.  Use #define boolean hack.
5060
5061	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
5062
5063	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
5064	USING_VISUALAGE is defined.
5065
5066	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5067
50682002-10-03  Frank Warmerdam  <[email protected]>
5069
5070	* libtiff/tiff.h: added COMPRESSION_JP2000.
5071
50722002-10-02  Andrey Kiselev  <[email protected]>
5073
5074	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
5075	by the TIFFFetchByteArray() function. Should finally resolve
5076
5077	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5078
5079	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
5080
5081	* html/Makefile.in: New targets added: html and groffhtml for
5082	producing HTML representations of the manual pages automatically.
5083	html target uses man2html tool, groffhtml uses groff tool.
5084
50852002-09-29  Frank Warmerdam  <[email protected]>
5086
5087	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
5088	from John H. DuBois III.
5089
50902002-09-15  Andrey Kiselev  <[email protected]>
5091
5092	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
5093	manual page for raw2tiff(1) tool.
5094
50952002-09-12  Andrey Kiselev  <[email protected]>
5096
5097	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
5098	the tiffio.h header file.
5099
5100	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
5101	manual page for TIFFDataWidth() function
5102
51032002-09-08  Frank Warmerdam  <[email protected]>
5104
5105	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
5106	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
5107
5108	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
5109	since we are unable to properly include the amount to skip.
5110
5111	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
5112
51132002-09-02  Andrey Kiselev  <[email protected]>
5114
5115	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5116	in TIFFFetchByteArray(). Problem described at
5117	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5118
51192002-08-22  Andrey Kiselev  <[email protected]>
5120
5121	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5122	in _TIFFSetupFieldInfo() function.
5123	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5124
5125	* /libtiff/tif_lzw.c: Additional consistency checking added in
5126	LZWDecode() and LZWDecodeCompat().
5127	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5128	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5129
5130	* /libtiff/tif_lzw.c:
5131	Added check for valid code lengths in LZWDecode() and
5132	LZWDecodeCompat(). Fixes
5133	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5134
51352002-08-16  Andrey Kiselev  <[email protected]>
5136
5137	* /libtiff/{Makefile.vc, libtiff.def}:
5138	Missed declarations added.
5139
51402002-08-15  Frank Warmerdam  <[email protected]>
5141
5142	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5143	return code from the underlying pick function.
5144
5145	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5146
5147	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5148	with FIELD_CUSTOM as mentioned in bug 169.
5149
5150	* tif_close.c: added logic to free dynamically created anonymous
5151	field definitions to correct a small memory leak.
5152
5153	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5154
51552002-08-10  Andrey Kiselev  <[email protected]>
5156
5157	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5158	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5159
51602002-07-31  Frank Warmerdam  <[email protected]>
5161
5162	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5163	JPEGDecode() as per bugzilla bug (issue 1):
5164
5165	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5166
5167	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5168	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5169	present in the tiff tags.
5170
5171	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5172
5173	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5174	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5175	fooled with the value.
5176
5177	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5178
51792002-06-22  Andrey Kiselev  <[email protected]>
5180
5181	* /tools/tiff2ps.c: Added workaround for some software that may crash
5182	when last strip of image contains fewer number of scanlines than
5183	specified by the `/Height' variable. See
5184	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5185	for explanation.
5186
51872002-06-21  Andrey Kiselev  <[email protected]>
5188
5189	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5190	splitting long images in several pages. See
5191	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5192	Patch granted by John Williams <[email protected]>.
5193
51942002-06-11  Frank Warmerdam  <[email protected]>
5195
5196	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5197	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5198	This one is described in:
5199
5200	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5201
5202	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5203
5204	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5205
52062002-05-10  Andrey Kiselev  <[email protected]>
5207
5208	* tools/tiff2ps: New commandline switches to override resolution
5209	units obtained from the input file. Closes
5210	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5211
52122002-04-26  Andrey Kiselev  <[email protected]>
5213
5214	* libtiff/libtiff.def: Added missed declaration.
5215
52162002-04-22  Andrey Kiselev  <[email protected]>
5217
5218	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5219	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5220
52212002-04-20  Andrey Kiselev  <[email protected]>
5222
5223	* libtiff/tif_open.c: Pointers to custom procedures
5224	in TIFFClientOpen() are checked to be not NULL-pointers.
5225
52262002-04-18  Andrey Kiselev  <[email protected]>
5227
5228	* libtiff/libtiff.def: Added missed declarations.
5229
5230	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5231
52322002-04-16  Andrey Kiselev  <[email protected]>
5233
5234	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5235	Should finally close
5236	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5237
52382002-04-10  Andrey Kiselev  <[email protected]>
5239
5240	* tools/tiff2ps: Division by zero fixed.
5241	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5242
52432002-04-09  Andrey Kiselev  <[email protected]>
5244
5245	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5246	TIFFCheckpointDirectory() routine added.
5247	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5248
5249	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5250	for the new function.
5251
52522002-04-08  Andrey Kiselev  <[email protected]>
5253
5254	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5255	additional members tif->tif_decodestatus and tif->tif_encodestatus
5256	for correct handling of unconfigured codecs (we should not try to read
5257	data or to define data size without correct codecs).
5258
5259	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5260	changed. Now it has used tif->tif_decodestatus and
5261	tif->tif_encodestatus.
5262	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5263	case of __cvs_8.tif test image).
5264
5265	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5266	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5267	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5268	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5269
52702002-04-04  Andrey Kiselev  <[email protected]>
5271
5272	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5273	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5274	files by skipping bad strips.
5275	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5276
52772002-04-03  Frank Warmerdam  <[email protected]>
5278
5279	* libtiff/tif_dirwrite.c: Removed some dead code.
5280
5281	* libtiff/*: Cleanup some warnings.
5282
5283	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5284	for variable length FIELD_CUSTOM values.  Was int * but should be
5285	u_short *.
5286
52872002-04-01  Andrey Kiselev  <[email protected]>
5288
5289	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
5290	utility (at cpStripToTile routine).
5291
52922002-03-27  Frank Warmerdam  <[email protected]>
5293
5294	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
5295
5296	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
5297
5298	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
5299	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
5300
5301	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
5302	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
5303
53042002-03-26  Dwight Kelly  <[email protected]>
5305
5306	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5307	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
5308	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
5309	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
5310	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
5311	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
5312
53132002-03-26  Andrey Kiselev  <[email protected]>
5314
5315	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
5316	now also uses TIFFRGBAImageOK before reading. This is additional fix
5317	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5318
53192002-03-25  Andrey Kiselev  <[email protected]>
5320
5321	* libtiff/: tif_getimage.c: Additional check for supported
5322	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
5323	TIFFRGBAImageOK before reading.
5324	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5325
53262002-03-15  Andrey Kiselev  <[email protected]>
5327
5328	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5329	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
5330	TIFFDataType sizes instead of working with tiffDataWidth array
5331	directly. Should prevent out-of-borders bugs in case of unknown or
5332	broken data types.  EstimateStripByteCounts routine modified, so it
5333	won't work when tags with uknown sizes founded.
5334	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
5335
53362002-03-13  Andrey Kiselev  <[email protected]>
5337
5338	* libtiff/tif_getimage.c: Added support for correct handling
5339	`Orientation' tag in gtTileContig. Should be added in other gt*
5340	functions as well, but I have not images for testing yet. Partially
5341	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5342
53432002-03-10  Andrey Kiselev  <[email protected]>
5344
5345	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
5346	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
5347	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
5348	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
5349
53502002-03-08  Andrey Kiselev  <[email protected]>
5351
5352	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
5353	be stripped when installing, utility binaries will do.	Closes
5354	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5355
53562002-02-28  Frank Warmerdam  <[email protected]>
5357
5358	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
5359
5360	* man/libtiff.3t: added copyright tag info.
5361
53622002-02-11  Frank Warmerdam  <[email protected]>
5363
5364	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
5365
5366	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5367
5368	* man/Makefile.in: Patch DESTDIR handling
5369
5370	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
5371
5372	* configure: OpenBSD changes for Sparc64 and DSO version.
5373
5374	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
5375
53762002-02-05  Frank Warmerdam  <[email protected]>
5377
5378	* config.site/configure: added support for OJPEG=yes option to enable
5379	OJPEG support from config.site.
5380
53812002-01-27  Frank Warmerdam  <[email protected]>
5382
5383	* html/document.html: fixed links for TIFf 6 docs.
5384
53852002-01-18  Frank Warmerdam  <[email protected]>
5386
5387	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
5388
5389	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
5390	decodestrip function returns anything not greater than zero as per
5391	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
5392
5393	* configure: Modify CheckForBigEndian so it can work in a cross
5394	compiled situation.
5395
53962002-01-16  Frank Warmerdam  <[email protected]>
5397
5398	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
5399
5400	* tools/tiffset.c: fix bug in error reporting.
5401
5402	* tools/tiffcp.c: fix several warnings that show up with -Wall.
5403
54042002-01-04  Frank Warmerdam  <[email protected]>
5405
5406	* libtiff/tif_jpeg.c: fixed computation of segment_width for
5407	tiles files to avoid error about it not matching the
5408	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
5409	size.") for ITIFF files.  Apparently the problem was incorporated since
5410	3.5.5, presumably during the OJPEG/JPEG work recently.
5411
54122001-12-15  Frank Warmerdam  <[email protected]>
5413
5414	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
5415
5416	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5417
5418	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
5419	(defined in tiffconf.h - 1 by default) then the RGBA interface
5420	will assume that a fourth extra sample is ASSOCALPHA if the
5421	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
5422	the library, but makes it work better with RGBA files produced by
5423	lots of applications that don't mark the alpha values properly.
5424
5425	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5426	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
5427
54282001-12-12  Frank Warmerdam  <[email protected]>
5429
5430	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
5431	override those from tiff directory.  This makes this work with
5432	ImageGear generated files.
5433
54342001-12-07  Frank Warmerdam  <[email protected]>
5435
5436	* html/Makefile.in: added missing images per bug 92.
5437
5438	* port/Makefile.in: fixed clean target per bug 92.
5439
54402001-11-28  Frank Warmerdam  <[email protected]>
5441
5442	* Reissue 3.5.7 release.
5443
5444	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
5445	YYYYMMDD so that it is increasing over time.
5446
5447	* Makefile.in: Ensure that tiffvers.h is regenerated in the
5448	make release target.
5449
5450	* Makefile.in: added libtiff/tiffvers.h to the release file list.
5451
54522001-11-23  Frank Warmerdam  <[email protected]>
5453
5454	* added html/v3.5.7.html, updated html/index.html.
5455
5456	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
5457
54582001-11-15  Frank Warmerdam  <[email protected]>
5459
5460	* configure: fixed test for -lm.
5461
54622001-11-02  Frank Warmerdam  <[email protected]>
5463
5464	* Added PHOTOMETRIC_ITULAB as per bug 90.
5465
5466	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
5467
54682001-10-10  Frank Warmerdam  <[email protected]>
5469
5470	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
5471	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
5472	in keeping with TIFF 6.0 standard in tiff.h
5473
5474	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
5475
54762001-09-26  Frank Warmerdam  <[email protected]>
5477
5478	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
5479	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
5480
54812001-09-24  Frank Warmerdam  <[email protected]>
5482
5483	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
5484
5485	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
5486
5487	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
5488	error about LZW not being available.
5489
5490	* libtiff/tif_dir.c: propagate failure to initialize compression
5491	back from TIFFSetField() as an error status, so applications can
5492	detect failure.
5493
5494	* libtiff/tif_dir.c: removed the auto replacement of
5495	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
5496
5497	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
5498	from CVS as they are all supposed to be auto-generated by configure.
5499
55002001-09-22  Frank Warmerdam  <[email protected]>
5501
5502	* libtiff/tif_ojpeg.c: new update from Scott.
5503
55042001-09-09  Frank Warmerdam  <[email protected]>
5505
5506	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
5507	always use the "safe" version, even if there is a very slight
5508	cost in performance.
5509
5510	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
5511
5512	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
5513	in two places.
5514
5515	* libtiff/tif_getimage.c: Fixed problem with reading strips or
5516	tiles that don't start on a tile boundary.  Fix contributed by
5517	Josep Vallverdu (from HP), and further described in bug 47.
5518
5519	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
5520
5521	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
5522
5523	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
5524
55252001-09-06  Frank Warmerdam  <[email protected]>
5526
5527	* libtiff/tif_packbits.c: fixed memory overrun error.
5528
5529	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
5530
55312001-08-31  Frank Warmerdam  <[email protected]>
5532
5533	* libtiff/tif_getimage.c: relax handling of contig case where
5534	there are extra samples that are supposed to be ignored.  This
5535	should now work for 8bit greyscale or palletted images.
5536
5537	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
5538
55392001-08-28  Frank Warmerdam  <[email protected]>
5540
5541	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
5542	images with more than four samples per pixel.  See:
5543
5544	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
5545
55462001-08-10  Frank Warmerdam  <[email protected]>
5547
5548	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
5549	in TIFFReadRGBATile() to avoid issues in cases of overlapping
5550	buffers.  See Bug 69 in Bugzilla.
5551
5552	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
5553
5554	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
5555
55562001-08-09  Frank Warmerdam  <[email protected]>
5557
5558	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
5559	when checking for 64 bit architectures as per bugzilla bug 67.
5560
55612001-07-27  Frank Warmerdam  <[email protected]>
5562
5563	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
5564	bug 66.
5565
55662001-07-20  Frank Warmerdam  <[email protected]>
5567
5568	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
5569	has been included.
5570
55712001-07-19  Frank Warmerdam  <[email protected]>
5572
5573	* libtiff/tif_open.c: Seek back to zero after failed read,
5574	before writing header.
5575
55762001-07-18  Frank Warmerdam  <[email protected]>
5577
5578	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
5579	much better.  Now depends on having patched libjpeg as per
5580	patch in contrib/ojpeg/*.
5581
55822001-07-17  Frank Warmerdam  <[email protected]>
5583
5584	* */Makefile.in: added DESTDIR support.
5585
5586	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
5587
55882001-07-16  Frank Warmerdam  <[email protected]>
5589
5590	* configure, libtiff/Makefile.in: applied OpenBSD patches
5591	as per:
5592
5593	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
5594
55952001-06-28  Frank Warmerdam  <[email protected]>
5596
5597	* libtiff/tif_getimage.c: Fixed so that failure is properly
5598	reported by gtTileContig, gtStripContig, gtTileSeparate and
5599	gtStripSeparate.
5600
5601	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
5602
5603	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
5604	Updated bug section of tiffcmp.1 to note tiled file issues.
5605
5606	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
5607
56082001-06-22  Frank Warmerdam  <[email protected]>
5609
5610	* configure: Changes for DSO generation on AIX provided by
5611	John Marquart <[email protected]>.
5612
5613	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
5614	on Darwin thanks to Robert Krajewski ([email protected]) and
5615	Keisuke Fujii ([email protected]).
5616
56172001-06-13  Frank Warmerdam  <[email protected]>
5618
5619	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
5620
5621	* man/tiff2rgba.1: new
5622
56232001-05-22  Frank Warmerdam  <[email protected]>
5624
5625	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
5626
56272001-05-13  Frank Warmerdam  <[email protected]>
5628
5629	* libtiff/tools/thumbnail.c: changed default output compression
5630	to packbits from LZW since LZW isn't generally available.
5631
56322001-05-12  Frank Warmerdam  <[email protected]>
5633
5634	* libtiff/tif_ojpeg.c: New.
5635	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
5636	to OJPEG support.
5637
5638	Scott Marovich <[email protected]> supplied OJPEG support.
5639
56402001-05-11  Frank Warmerdam  <[email protected]>
5641
5642	* tiff.h: removed, it duplicates libtiff/tiff.h.
5643
56442001-05-08  Frank Warmerdam  <[email protected]>
5645
5646	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
5647	ensure everything is in order.
5648
5649	* libtiff/libtiff.def: added TIFFCreateDirectory and
5650	TIFFDefaultStripSize as per:
5651
5652	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
5653
56542001-05-02  Frank Warmerdam  <[email protected]>
5655
5656	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
5657	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
5658	force use of uint32 counts instead of short counts.
5659
5660	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
5661	case of writing TIFF_BYTE/TIFF_SBYTE fields.
5662
5663	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
5664
56652001-05-01  Frank Warmerdam  <[email protected]>
5666
5667	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
5668	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
5669
56702001-04-05  Frank Warmerdam  <[email protected]>
5671
5672	* tiffio.h: removed C++ style comment.
5673
5674	* configure: fixed up SCRIPT_SH/SHELL handling.
5675
5676	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
5677
5678	* config.guess: documented more variables as per bug 40.
5679
56802001-04-03  Frank Warmerdam  <[email protected]>
5681
5682	* configure, *Makefile.in: Various changes to improve configuration
5683	for HP/UX specifically, and also in general.  They include:
5684	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
5685	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
5686	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
5687	 - Use -${MAKEFLAGS} in sub makes from makefiles.
5688
5689	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
5690
56912001-04-02  Frank Warmerdam  <[email protected]>
5692
5693	* libtiff/tiff.h: Applied hac to try and resolve the problem
5694	with the inttypes.h include file on AIX.
5695
5696	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5697
5698	* VERSION: update to 3.5.7 beta in preparation for release.
5699
5700	* configure/config.site: modified to check if -lm is needed for
5701	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
5702
5703	* config.guess: updated wholesale to an FSF version apparently
5704	from 1998 (as opposed to 1994).  This is mainly inspired by
5705	providing for MacOS X support.
5706
57072001-03-29  Frank Warmerdam  <[email protected]>
5708
5709	* configure, Makefile.in, etc: added support for OPTIMIZER being
5710	set from config.site.
5711
57122001-03-28  Frank Warmerdam  <[email protected]>
5713
5714	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
5715
5716	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
5717	sizes. It fixes two problems:
5718
5719	Without	scaling (-S) the fax is now centered on the page size specified
5720	with -H	and/or -W. Before, fax2ps was using an obscure and practially
5721	useless algorithm to allocate the image relative to Letter sized paper
5722	which sometime sled to useless whitespace on the paper, while at the
5723	same time cutting of the faxes printable area at the opposite border.
5724
5725	Second, scaling now preserves aspect ratio, which makes unusual faxes
5726	(in particular short ones) print properly.
5727
5728	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
5729
5730	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
5731	Bruce A. Mallett.  See check message for detailed information
5732	on all the changes, including a faster encoder, fixes for level
5733	2 PostScript, and support for the imagemask operator.
5734
57352001-03-27  Frank Warmerdam  <[email protected]>
5736
5737	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
5738	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
5739
5740	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5741
57422001-03-16  Frank Warmerdam  <[email protected]>
5743
5744	* tif_dirinfo.c: moved definition of copyright tag in field list.
5745	Apparently they have to be in sorted order by tag id.
5746
57472001-03-13  Frank Warmerdam  <[email protected]>
5748
5749	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
5750	images in RGBA interface.
5751
57522001-03-02  Frank Warmerdam  <[email protected]>
5753
5754	* Added TIFFTAG_COPYRIGHT support.
5755
57562001-02-19  Frank Warmerdam  <[email protected]>
5757
5758	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
5759	with support for extracting subimages with the ,n syntax, and also
5760	adding the -b bias removal flag.
5761
57622001-02-16  Frank Warmerdam  <[email protected]>
5763
5764	* libtiff/libtiff.def: Brent Roman submitted new version adding
5765	serveral missing entry points.
5766
5767	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
5768	Some sort of weird VMS thing.
5769
5770	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
5771
5772	* tif_luv.c/tiff.h/tiffio.h:
5773	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
5774	([email protected]).  He writes:
5775
5776	1) I improved the gamut-mapping function in tif_luv.c for imaginary
5777	colors, because some images were being super-saturated on the input
5778	side and this resulted in some strange color shifts in the output.
5779
5780	2) I added a psuedotag in tiff.h to control random dithering during
5781	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
5782	on for 24-bit LogLuv output.  Dithering improves the average color
5783	accuracy over the image.
5784
5785	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
5786	tiffio.h, to expose internal routines for converting between LogLuv and
5787	XYZ coordinates.  This is helpful for writing more efficient,
5788	specialized conversion routines, especially for reading LogLuv files.
5789
5790	Changes applied with minor edits.
5791
57922001-01-23  Frank Warmerdam  <[email protected]>
5793
5794	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
5795	whether we are encoding or decoding.  This is to ensure graceful
5796	recovery if TIFFClientOpen() discovers an attempt to open a compressed
5797	file for "r+" access, and subsequently close it, as it resets the
5798	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
5799	compressor's concept of whether it is in encode or decode mode.
5800
58012001-01-08  Mike Welles <[email protected]>
5802
5803	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
5804
58052001-01-07  Frank Warmerdam  <[email protected]>
5806
5807	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
5808	as per bug report by Patrick Connor.
5809
58102000-12-28  Frank Warmerdam  <[email protected]>
5811
5812	* Added RELEASE-DATE file to release file list.
5813
5814	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
5815
58162000-12-22  Mike Welles <[email protected]>
5817        * added link to CVS mirror from index.html
5818
5819	* updated html/internals.html to note that LZW compression is
5820	  not supported by default.
5821
58222000-12-22  Frank Warmerdam  <[email protected]>
5823
5824	* updated html/libtiff.html to not point at Niles' old JPL web site
5825	for the man pages, point at www.libtiff.org.
5826
58272000-12-21  Frank Warmerdam  <[email protected]>
5828
5829	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
5830	Leonard Rosenthol <[email protected]>.  May interfere
5831	with correct building on older systems.  If so, please let me know.
5832
58332000-12-19 Mike Welles <[email protected]>
5834
5835	* Took out LZW Encoding from tif_lzw.c
5836
5837	* Created HOWTO-RELEASE
5838
5839	* Created html/v3.5.6.html
5840
5841	* updated index.html
5842
58432000-12-01  Frank Warmerdam  <[email protected]>
5844
5845	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
5846	Patches supplied by Frank Cringle <[email protected]>
5847	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
5848
58492000-11-24  Frank Warmerdam  <[email protected]>
5850
5851	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
5852	target so that the private headers required by libgeotiff can be
5853	installed with the others.  They are not installed by default.
5854
5855	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
5856	targets so libtiff.so will be built with an explicit dependency
5857	on libm.so.
5858
5859	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
5860	libtiff.so.3.5.5.
5861
5862	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
5863	file, or ALPHA version logic.  Added stuff about DIST_POINT in
5864	place of DIST_TYPE and the alpha release number stuff.
5865
58662000-11-22  Frank Warmerdam  <[email protected]>
5867
5868	* I have applied a patch from Steffen Moeller <[email protected]> to
5869	the configure script so that it now accepts the --prefix, and
5870	--exec-prefix directives.
5871
58722000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
5873
5874	* I have made a variety of modifications in an effort to ensure the
5875	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
5876	file which seems to be updated regularly.
5877
5878	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
5879	   version include file.
5880	 o renamed version.h to tiffvers.h because we now have to install it
5881	   with the public libtiff include files.
5882	 o include tiffvers.h in tiffio.h.
5883	 o updated tif_version.c to use tiffvers.h.
5884	 o Updated Makefile.in accordingly.
5885
5886	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
5887	I have updated the win32 detection rules in tiffcomp.h.
5888
58892000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
5890
5891	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
5892	the strip/tile width and height aren't multiples of the sampling size.
5893	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
5894	Some patches from Rick LaMont of Dot C Software.
5895
5896	* Modified tif_packbits.c encoder to avoid compressing more
5897	data than provided if rowsize doesn't factor into provided data
5898	(such as occurs for YCbCr).
5899
59002000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
5901
5902	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
5903	roundup if rows_per_strip not a multiple of vertical sample size.
5904
59052000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
5906
5907	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
5908	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5909	from [email protected].
5910
5911	* Modified tif_packbits.c decoding to avoid overrunning the
5912	output buffer, and to issue a warning if data needs to be
5913	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5914
59152000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
5916
5917	* Modified tiff2bw to ensure portions add to 100%, and that
5918	white is properly recovered.
5919
5920	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
5921	Patch c/o Stanislav Brabec <[email protected]>
5922
59232000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
5924
5925	* Modified TIFFClientOpen() to emit an error on an attempt to
5926	open a comperessed file for update (O_RDWR/r+) access.  This is
5927	because the compressor/decompressor code gets very confused when
5928	the mode is O_RDWR, assuming this means writing only.  See
5929	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
5930
59312000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
5932
5933	* Added GNULDdso target an`d switched linux and freebsd to use it.
5934
59352000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
5936
5937	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
5938	of EXPAND1D() as per bug 11 (from Roman).
5939
59402000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
5941	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
5942	cygwin compatibility.
5943
5944	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
5945	be a proper fix to the buffer sizing problem.  See
5946	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
5947
5948	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
5949	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
5950	Thanks to Nick Lamb <[email protected]> for reporting the
5951	bug and proving the patch.
5952
59532000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
5954
5955	* Fixed tif_jpeg.c so avoid destroying the decompressor before
5956	we are done access data thanks to bug report from:
5957	Michael Eckstein <[email protected]>.
5958
5959	* Reverted tif_flush change.
5960
59612000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
5962
5963	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
5964	error when TIFF_BEENWRITING is not set.  This ensures that the
5965	directory contents can still be flushed by TIFFFlush().
5966
59672000-08-14  Frank Warmerdam  <[email protected]>
5968
5969	* tif_open.c: Don't set MMAP for O_RDWR files.
5970
5971	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
5972	so that files opened for update can be strip chopped too.
5973
5974	* tif_read.c: fixed up bug with files missing rowsperstrip and
5975	the strips per separation fix done a few weeks ago.
5976
59772000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
5978
5979	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
5980	SAMPLEFORMAT_COMPLEXINT.
5981
59822000-07-13  Mike Welles <[email protected]>
5983
5984	* index.html, bugs.html: added bugzilla info.
5985
59862000-07-12  Frank Warmerdam  <[email protected]>
5987
5988	* tif_read.c: fix subtle bug with determining the number of
5989	rows for strips that are the last strip in a separation but
5990	not the last strip of all in TIFFReadEncodedStrip().
5991
5992	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
5993	Peter Skarpetis <[email protected]>
5994
59952000-06-15  Frank Warmerdam  <[email protected]>
5996
5997	* Modified tiffio.h logic with regard to including windows.h.  It
5998	won't include it when building with __CYGWIN__.
5999
60002000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
6001
6002	* README: update to mention www.libtiff.org, don't list Sam's old
6003	email address.
6004
6005	* configure: Fixed DSO test for Linux as per patch from
6006	  Jan Van Buggenhout <[email protected]>.
6007
60082000-04-21  Frank Warmerdam  <[email protected]>
6009
6010	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
6011	one tile/strip images with an offset, and byte count of zero. These
6012	could be "unpopulated" images.
6013
60142000-04-18  Frank Warmerdam  <[email protected]>
6015
6016	* contrib/addtiffo: Added "averaging" resampling option.
6017
6018	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
6019
6020Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
6021
6022	* tools/Makefile.in: Modified to install properly on SGI.
6023
60242000-04-12  Mike Welles	     <[email protected]>
6025	* configure:  Fixed stupid mistake in libc6 test on Linux
6026
60272000-04-04  Mike Welles	     <[email protected]>
6028	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
6029	  caught by BoundsChecker.  From Arvan Pritchard
6030	  <[email protected]>  (untested).
6031
6032	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
6033	  Arvan Pritchard <[email protected]>
6034
6035	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
6036	  Arvan Pritchard <[email protected]>
6037
60382000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
6039
6040	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
6041
60422000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
6043
6044	* fax2ps: Fixed mixup of width and height in bounding box statement
6045	as per submission by Nalin Dahyabhai <[email protected]>.
6046
60472000-03-27  Mike Welles	     <[email protected]>
6048
6049	* fax2ps:  Modified printruns to take uint32 instead of uint16.
6050	Patch courtesy of Bernt Herd <[email protected]>
6051
60522000-03-20  Mike Welles	     <[email protected]>
6053
6054	* configure: added test for libc6 for linux targets.  Bug reported by
6055        Stanislav Brabec <[email protected]>
6056
6057	* Added 3.5 docs to html/Makefile.in.
6058	Thanks to  Stanislav Brabec <[email protected]>
6059
6060	* configure: fixed bugs in sed scripts
6061	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
6062	fix submitted to Stanislav Brabec <[email protected]>
6063
6064	* tools/iptcutil was not in files list, and wasn't being
6065	added to tar archive.  Updated Makefile.in.
6066
60672000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
6068
6069	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
6070	conversion for the run arrays.
6071
60722000-03-03  Frank Warmerdam  <[email protected]>
6073
6074	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
6075	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
6076
60772000-03-02  Frank Warmerdam  <[email protected]>
6078
6079	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
6080
6081	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
6082	to avoid overruns encountered with frle_bug.tif.
6083
6084Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
6085
6086	* Fixed tools/tiffcmp so that stopondiff testing works.
6087	  Patch care of Joseph Orost <[email protected]>.
6088
60892000-01-28    <warmerda@CS46980-B>
6090
6091	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
6092	  set to 1, and added default (off) setting in tiffconf.h.  This
6093	  should eventually be set by the configure script somehow.
6094
6095	  The original work on all these 2-4GB changes was done by
6096	  Peter Smith ([email protected]).
6097
6098	* Modified tif_win32.c to support 2-4GB seeks.
6099
6100	* tentatively changed toff_t to be unsigned instead of signed to
6101	  facilitate support for 2-4GB files.
6102
6103	* Updated a variety of files to use toff_t.  Fixed some mixups
6104	  between toff_t and tsize_t.
6105
6106Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
6107
6108	* Largely reimplemented contrib/addtiffo to avoid temp files,
6109	updating the TIFF file in place.  Fixed a few other bugs to.
6110
6111	* Set tif_rawdatasize to zero when freeing raw data buffer in
6112	TIFFWriteDirectory().
6113
6114	* Enabled "REWRITE_HACK" in tif_write.c by default.
6115
6116	* Fix bug in tif_write.c when switching between reading one directory
6117	and writing to another.
6118
6119	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6120
6121Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6122
6123	* Added TIFFmemory(3t) functions to libtiff.def.
6124
6125Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6126
6127	* Added libtiff/libtiff.def to TIFFILES distribution list.
6128
6129Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6130
6131	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6132
6133	* Altered descriptions in tools to reflect "by default" lzw not supported
6134
6135	* Updated index.html to note lzw compression kit.
6136
6137Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6138
6139	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6140
6141Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6142
6143	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6144
6145	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6146	  when LZW compression invoked.
6147
6148	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6149	  in tools to reflect removal of LZW compression
6150
6151Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6152
6153        * Fixed bug that caused LZW (non) compression to segfault. Added
6154	  warning about LZW compression removed being removed, and why.
6155
6156	* Added nostrip to install in tools/Makefile.in so that debugging
6157	  symbols are kept.
6158
6159Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6160
6161	* Added patch from Ivo Penzar <[email protected]>,
6162	  supporting Adobe ZIP deflate.  Untested.
6163
6164Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6165
6166	* Made Packbits the default compression in tools/tiff2rgba.c instead
6167	of LZW.
6168
6169Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6170
6171	* Added tif_luv to contrib/djgpp/Makefile.lib.
6172
6173Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6174
6175        * Added zip creation to relase makefile target
6176
6177	* Added html for TIFFWriteTile.3t man page.
6178
6179Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6180
6181	* Added some changes to tif_write.c to support rewriting existing
6182	fixed sized tiles and strips.  Code mods disabled by default, only
6183	enabled if REWRITE_HACK is defined for now.
6184
6185Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6186
6187	* Added TIFFWriteTile.3t man page.
6188
6189Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6190
6191	* Added notes on use of makefile.vc in build.html, and fixed
6192	email subscription address.
6193
6194199-11-28  Mike Welles <[email protected]>
6195
6196	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6197
6198	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6199	   from Bruce Carmeron <[email protected]> -- modifications of
6200	   changes made by Frank (sun cc still complained on cast).
6201
6202	*  Added tiffconf.h to install target per request from Bill
6203	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6204 	   know features have been compiled into the TIFF library in order to
6205	   handle things properly".
6206
6207Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6208
6209	* fixed various VC++ warnings as suggested by Gilles Vollant
6210	<[email protected]>.
6211
6212Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6213
6214	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6215	not imply applications are responsible for image data swapping.
6216
62171999-11-22  Mike Welles <[email protected]>
6218	*  HTML-ized the man pages, added to html/man
6219
6220	*  Removed LZW Compression to comply with Unisys patent extortion.
6221
62221999-09-29  Mike Welles		<[email protected]>
6223	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6224	   From Ivo Penzar <[email protected].
6225
6226	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6227	   memory mapped files. <[email protected]>
6228
62291999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6230	* Corrected alpha versioning.
6231
6232	* Removed distinction between  alpha and release targets in Makefile.in.
6233
6234	* added release.stamp target, which tags cvs tree, and updates
6235	  "RELEASE-DATE"
6236
6237	* added releasediff target, which diffs tree with source as of
6238	  date in "RELEASE-DATE"
6239
6240	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6241	  away from alpha/non-alpha distinctions).
6242
6243	* updated html to reflect release
6244
62451999-09-23    <warmerda@CS46980-B>
6246
6247	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6248
6249	* Added CYGWIN case in configure.
6250
6251Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6252
6253	* Applied Francois Dagand's patch to handle fax decompression bug.
6254	  (sizes >= 65536 were failing)
6255
6256Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6257
6258	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6259	  by Christopher Lawton <[email protected]>
6260
6261Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6262
6263	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6264	  Albert Chin-A-Young <[email protected]>
6265
6266	* Added TIFFReassignTagToIgnore() API on behalf of
6267	  Bruce Cameron <[email protected]>.  Man page still pending.
6268
6269Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6270
6271	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6272	files to provide for a rudimentary testsuite.
6273
6274	* Added contrib/tags back from old distribution ... fixed up a bit.
6275
62761999-08-16    <warmerda@CS46980-B>
6277
6278	* Added simple makefile.vc makefiles for building with MS VC++
6279	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6280	better solutions for some users.
6281
6282Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6283
6284	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6285	put it in tools since part of it is in C++.
6286
62871999-08-16  Michael L. Welles  <[email protected]>
6288
6289	* Updated html/index.html with anon CVS instructions.
6290
6291Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
6292
6293	* pre-remove so link before softlink in LINUXdso action in
6294	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
6295	the first.
6296
6297	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
6298	colormaps owned by the TIFF handle itself when trying to fixup wrong
6299	(eight bit) colormaps.  Corrected by maintaining a private copy of
6300	the colormap.
6301
6302	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
6303	tif_getimage.c.
6304
6305	* CVS Repository placed at remotesensing.org.  ChangeLog added.
6306