xref: /libtiff-4.0.7/ChangeLog (revision a17a6e5e)
12015-01-26  Even Rouault  <[email protected]>
2
3	* automake: updated to 1.15
4	* libtool: updated to 2.4.5
5
62015-01-22  Even Rouault  <[email protected]>
7
8	* tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
9
102015-01-05  Frank Warmerdam  <[email protected]>
11
12	* html/bugs.html: remove note about needing to email the tiff mailing
13	list administrator about being approved for membership, this appears
14	not to be true.
15
162015-01-05  Olivier Paquet  <[email protected]>
17
18	* tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
19
202015-01-03  Even Rouault  <[email protected]>
21
22	* libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
23	when reading more than 65535 directories, and effectively error out when
24	reaching that limit.
25
262014-12-29  Even Rouault  <[email protected]>
27
28	* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
29	markers to avoid emitting a warning (even if, according to the TechNote,
30	there are admitedly unusual/not recommended or even forbidden variants, but
31	they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
32	SOF9 and SOF10).
33	Define in_color_space and input_components to the right values in
34	JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
35	libjpeg API documentation, so as to be compatible with mozjpeg library.
36	Note: the default settings of mozjpeg will produce progressive scans, which
37	is forbidden by the TechNote.
38
392014-12-29  Even Rouault  <[email protected]>
40
41	* libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
42	to avoid buffer leak (fix previous fix, found by Coverity scan)
43
442014-12-29  Even Rouault  <[email protected]>
45
46	* libtiff/tif_next.c: add new tests to check that we don't read outside of
47	the compressed input stream buffer.
48
49	* libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
50    in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
51    putcontig8bitYCbCr21tile cases.
52
532014-12-27  Even Rouault  <[email protected]>
54
55	* libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
56	extented tags installed by user code through the extender mechaninm before
57	calling the extender callback (GDAL #5054)
58
592014-12-26  Bob Friesenhahn  <[email protected]>
60
61	* tools/tiffcrop.c: Fix warnings about variables set but not used.
62
63	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
64	but not used.
65
66	* tools/tiffgt.c: Fix warnings about unused parameters.
67
68	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
69
702014-12-25  Even Rouault  <[email protected]>
71
72	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
73	various typos found by Debian lintian tool (GDAL #5756)
74
752014-12-24  Even Rouault  <[email protected]>
76
77	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
78	http://bugzilla.maptools.org/show_bug.cgi?id=2235
79
802014-12-24  Even Rouault  <[email protected]>
81
82	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
83	http://bugzilla.maptools.org/show_bug.cgi?id=2445
84
852014-12-24  Even Rouault  <[email protected]>
86
87	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
88	Derived from patch by Petr Gajdos,
89	http://bugzilla.maptools.org/show_bug.cgi?id=2443
90
912014-12-23  Even Rouault  <[email protected]>
92
93	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
94	of _TIFFFillStriles(). This solves crashing bug on corrupted
95	images generated by afl.
96
972014-12-23  Even Rouault  <[email protected]>
98
99	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
100	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
101	images generated by afl.
102
1032014-12-21  Bob Friesenhahn  <[email protected]>
104
105	* tools/tiffdump.c: Guard against arithmetic overflow when
106	calculating allocation buffer sizes.
107
1082014-12-21  Even Rouault  <[email protected]>
109
110	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
111	SamplesPerPixel = 3. Enforce that
112	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
113
1142014-12-21  Even Rouault  <[email protected]>
115
116	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
117	copying. The right fix would be to properly copy it, but not worth the burden
118	for those esoteric utilities.
119	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
120
1212014-12-21  Even Rouault  <[email protected]>
122
123	* tools/thumbnail.c: fix out-of-buffer write
124	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
125
1262014-12-21  Even Rouault  <[email protected]>
127
128	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
129	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
130	COMPRESSION_CCITTFAX4
131	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
132
1332014-12-21  Even Rouault  <[email protected]>
134
135	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
136	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
137
1382014-12-21  Even Rouault  <[email protected]>
139
140	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
141	TIFFTAG_SAMPLESPERPIXEL
142
1432014-12-21  Even Rouault  <[email protected]>
144
145	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
146	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
147	Description: fix for Debian bug #741451
148	tiffcp crashes when converting JPEG-encoded TIFF to a different
149	encoding (like none or lzw). For example this will probably fail:
150	tiffcp -c none jpeg_encoded_file.tif output.tif
151	The reason is that when the input file contains JPEG data,
152	the tiffcp code forces conversion to RGB space. However,
153	the output normally inherits YCbCr subsampling parameters
154	from the input, which leads to a smaller working buffer
155	than necessary. The buffer is subsequently overrun inside
156	cpStripToTile() (called from writeBufferToContigTiles).
157	Note that the resulting TIFF file would be scrambled even
158	if tiffcp wouldn't crash, since the output file would contain
159	RGB data intepreted as subsampled YCbCr values.
160	This patch fixes the problem by forcing RGB space on the output
161	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
162	Author: Tomasz Buchert <[email protected]>
163
1642014-12-21  Even Rouault  <[email protected]>
165
166	Fix various crasher bugs on fuzzed images.
167	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
168	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
169	the directory
170	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
171	TransferFunction if BitsPerSample has not yet been read, otherwise reading
172	it later will cause user code to crash if BitsPerSample > 1
173	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
174	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
175	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
176	instead of imagewidth to avoid crash
177	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
178	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
179	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
180	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
181	* tools/tiffdump.c: fix crash due to overflow of entry count.
182
1832014-12-15  Even Rouault  <[email protected]>
184
185	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
186	all tiles/strips to include quantization tables even when the jpegtablesmode
187	had the JPEGTABLESMODE_QUANT bit set.
188	Also add explicit removal of Huffman tables when jpegtablesmode has the
189	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
190	first tile/strip (only useful in update scenarios. create-only was
191	fine)
192
1932014-12-09  Bob Friesenhahn  <[email protected]>
194
195	* tools/tiff2pdf.c: Assure that memory size calculations for
196	_TIFFmalloc() do not overflow the range of tmsize_t.
197
1982014-12-07  Even Rouault  <[email protected]>
199
200	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
201	Valgrind and Address Sanitizer on test suite
202
2032014-12-07  Bob Friesenhahn  <[email protected]>
204
205	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
206	tag can return one channel, with the other two channels set to
207	NULL.  The tiff2pdf code was expecting that other two channels
208	were duplicate pointers in the case where there is only one
209	channel.  Detect this condition in order to avoid a crash, and
210	presumably perform correctly with just one channel.
211
2122014-12-06  Bob Friesenhahn  <[email protected]>
213
214	* tools/tiffdump.c: Fix double-free bug.
215
2162014-11-27  Even Rouault  <[email protected]>
217
218	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
219	Visual Studio 2015 aka VC 14 aka MSVC 1900
220
2212014-11-20  Even Rouault  <[email protected]>
222
223	* libtiff/tif_lzw.c: prevent potential null dereference of
224	sp->dec_codetab in LZWPreDecode (bug #2459)
225
226	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
227	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
228
229	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
230
231	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
232	Coverity happier (not a bug, #2459)
233
234	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
235	(not a bug, #2459)
236
237	* tools/tiff2pdf.c: close PDF file (bug #2479)
238
239	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
240
241	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
242	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
243
244	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
245	(bug #2459) and add missing va_end in dump_info (#2459)
246
247	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
248
2492014-11-20  Even Rouault  <[email protected]>
250	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
251	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
252
2532014-11-20  Even Rouault  <[email protected]>
254	* automake: updated to 1.14.1
255	* libtool: updated to 2.4.3
256	* HOWTO-RELEASE: small update about autotools building order
257
2582014-10-20  Olivier Paquet  <[email protected]>
259	* tools/tiff2pdf.c: Preserve input file directory order when pages
260	are tagged with the same page number.
261
2622014-08-31  Bob Friesenhahn  <[email protected]>
263
264	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
265	count for tag should be a warning rather than an error since
266	errors terminate processing.
267
2682014-06-07  Bob Friesenhahn  <[email protected]>
269
270	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
271	was wrongly described.  Fix suggested by Miguel Medalha.
272
2732014-05-06  Bob Friesenhahn  <[email protected]>
274
275	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
276	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
277	Reviewed and forwarded by Lee Howard.
278
2792013-11-30  Frank Warmerdam  <[email protected]>
280
281	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
282
2832013-10-21  Frank Warmerdam  <[email protected]>
284
285	* libtiff/tif_dir.c: generate error in case of directory count
286	overflow.
287
2882013-10-01  Frank Warmerdam  <[email protected]>
289
290	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
291	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
292
2932013-09-12  Bob Friesenhahn  <[email protected]>
294
295	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
296	be defective, then set it to zero before returning error in order
297	to terminate processing of truncated TIFF.  Issue found and fix
298	suggested by Richard Nolde.
299
3002013-08-14  Frank Warmerdam  <[email protected]>
301
302	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
303
3042013-08-13  Frank Warmerdam  <[email protected]>
305
306	* tools/gif2tiff.c: Be more careful about corrupt or
307	hostile input files (#2450, CVE-2013-4231)
308
309	* tools/tiff2pdf.c: terminate after failure of allocating
310	ycbcr buffer (bug #2449, CVE-2013-4232)
311
3122013-07-09  Frank Warmerdam  <[email protected]>
313
314	* tools/tiffinfo.c: Default various values fetched with
315	TIFFGetField() to avoid being uninitialized.
316
3172013-05-02  Tom Lane  <[email protected]>
318
319	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
320	t2p_process_jpeg_strip to be at least marginally competent.  The
321	approach is still fundamentally flawed, but at least now it won't
322	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
323
3242013-05-02  Tom Lane  <[email protected]>
325
326	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
327 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
328 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
329 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
330 	large enough, and eliminate substantially all uses of sprintf(buf,
331 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
332 	protect against overflow of fixed-size buffers.  This responds in
333 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
334 	t2p_write_pdf_page(), but in general it seems like a good idea to
335 	deprecate use of sprintf().
336
3372013-03-29  Bob Friesenhahn  <[email protected]>
338
339	* configure.ac: Applied patch by Brad Smith to improve pkg-config
340	static linking by adding -lm to Libs.private when needed.
341
3422013-03-05  Tom Lane  <[email protected]>
343
344	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
345 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
346 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
347 	tools/tiffdither.c: Sync tool usage printouts and man pages with
348 	reality (quite a few options had escaped being documented in one
349 	or both places).  Per an old report from Miroslav Vadkerti.
350
3512013-01-25  Bob Friesenhahn  <[email protected]>
352
353	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
354	rotation angle was set by the auto rotate check, it was retained
355	for all pages that followed instead ofa being retested for each
356	page.  Patch by Richard Nolde.
357
3582013-01-18  Frank Warmerdam  <[email protected]>
359
360	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
361	64bit linux.
362
363	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
364	http://bugzilla.maptools.org/show_bug.cgi?id=2427
365
3662012-12-20  Tom Lane  <[email protected]>
367
368	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
369	it will pass with more versions of libjpeg.  (There are at least
370	three in active use now, and JPEG_LIB_VERSION doesn't tell us
371	enough to uniquely identify expected results.)
372
3732012-12-12  Tom Lane  <[email protected]>
374
375	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
376	field_passcount fields: it had the TIFF_VARIABLE and
377	TIFF_VARIABLE2 cases backwards.
378
3792012-12-10  Tom Lane  <[email protected]>
380
381	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
382 	check the linebytes calculation too, get the max() calculation
383 	straight, avoid redundant error messages, check for malloc
384 	failure.
385
3862012-12-10  Tom Lane  <[email protected]>
387
388	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
389 	(to enlarge tbuf for possible partial stride at end) so that
390 	overflow in the integer addition is detected.  Per gripe from
391 	Huzaifa Sidhpurwala.
392
3932012-12-03  Bob Friesenhahn  <[email protected]>
394
395	* tools/tiffset.c: tiffset now supports a -u option to unset a
396	tag.  Patch by Zach Baker. See
397	http://bugzilla.maptools.org/show_bug.cgi?id=2419
398
3992012-11-18  Bob Friesenhahn  <[email protected]>
400
401	* automake: Update Automake to 1.12.5 release.
402
403	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
404	require malloc() to return NULL pointer if requested allocation
405	size is zero.  Assure that _TIFFmalloc does.
406
4072012-11-01  Frank Warmerdam  <[email protected]>
408
409	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
410	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
411	Red Hat Security Response team for the fix.
412
4132012-10-18  Frank Warmerdam  <[email protected]>
414
415	* tif_zip.c: Avoid crash on NULL error messages.
416
4172012-09-22  Bob Friesenhahn  <[email protected]>
418
419	* libtiff 4.0.3 released.
420
4212012-09-20  Bob Friesenhahn  <[email protected]>
422
423	* Makefile.am: Update to Automake 1.12.4
424
4252012-08-19  Bob Friesenhahn  <[email protected]>
426
427	* Makefile.in: Update to Automake 1.12.3
428
429	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
430	some TIFF/FX support in libtiff.  Add the tag definitions to
431	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
432	and also fixes an error in a comment.  Adds the photometric values
433	to tif_print.c, and fixes a bug.  These changes are by Steve
434	Underwood.
435
4362012-08-13  Frank Warmerdam  <[email protected]>
437
438	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
439	compressed file: http://trac.osgeo.org/gdal/ticket/4771
440
4412012-08-02  Frank Warmerdam  <[email protected]>
442
443	* libtiff/tif_dirread.c: report error in case of mismatch value
444	counts for tags (ie. DotRange).
445
4462012-07-26  Tom Lane  <[email protected]>
447
448	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
449 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
450	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
451	as external accessors for the opaque type TIFFField.
452
453	* tools/tiffset.c: Make tiffset use the above functions instead of
454	relying on library private headers.
455
4562012-07-19  Tom Lane  <[email protected]>
457
458	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
459	after a malloc failure.  No crash risk AFAICS, but the program
460	might not report exit code 1 as desired.  h/t [email protected]
461
4622012-07-18  Tom Lane  <[email protected]>
463
464	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
465	prevents core dumps or perhaps even arbitrary code execution when
466	processing a corrupt input file (CVE-2012-3401).
467
4682012-07-06  Bob Friesenhahn  <[email protected]>
469
470	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
471	IJG JPEG 7+ uses a different upsampling algorithm which produces
472	different numeric results.
473
474	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
475	work with IJG JPEG 7+.
476
4772012-07-04  Bob Friesenhahn  <[email protected]>
478
479	* test/raw_decode.c: Add changes so that test can run with build
480	directory outside of source directory.
481
4822012-07-02  Frank Warmerdam  <[email protected]>
483
484	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
485	imagery (http://trac.osgeo.org/gdal/ticket/4732)
486
4872012-06-20  Frank Warmerdam  <[email protected]>
488
489	* libtiff/tif_fax3.c: fix memory initialization of runs, only
490	partly done.
491
492	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
493	full "stride" past the end.
494
4952012-06-19  Frank Warmerdam  <[email protected]>
496
497	* libtiff/tif_packbits.c: fix read past end of data buffer.
498
4992012-06-15  Frank Warmerdam  <[email protected]>
500
501	*  libtiff 4.0.2 released.
502
503	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
504	warnings with clang.
505
5062012-06-15  Tom Lane  <[email protected]>
507
508	* tools/tiff2pdf.c: Defend against integer overflows while
509	calculating required buffer sizes (CVE-2012-2113).
510
5112012-06-12  Frank Warmerdam  <[email protected]>
512
513	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
514
515	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
516
5172012-06-07  Frank Warmerdam  <[email protected]>
518
519	* libtiff/tif_print.c: avoid pretty printing other fields when
520	we don't have the proper amount and type of data or if the field
521	is actually autodefined.
522
5232012-06-05  Frank Warmerdam  <[email protected]>
524
525	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
526	ycbcrsubsampling values result in a runtime error, not just an
527	assertion.
528
529	* tests/custom_dir.c: Add testing of EXIF and custom directory
530	reading and writing.
531
532	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
533	and TIFFCreateEXIFDirectory() functions.
534
535	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
536	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
537	differently.  This is to avoid using special TIFFGetField/TIFFSetField
538	rules for these fields in non-image directories (like EXIF).
539
5402012-06-04  Frank Warmerdam  <[email protected]>
541
542	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
543	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
544	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
545
5462012-06-01  Frank Warmerdam  <[email protected]>
547
548	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
549
550	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
551	http://bugzilla.maptools.org/show_bug.cgi?id=2379
552
553	* libtiff/tif_unix.c: use strerror() to return a more specific error message
554	on failed open.
555	http://bugzilla.maptools.org/show_bug.cgi?id=2341
556
557	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
558	http://bugzilla.maptools.org/show_bug.cgi?id=2386
559
560	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
561	for testing jpeg in tiff image decoding including the "raw" decode interface.
562
5632012-05-31  Frank Warmerdam  <[email protected]>
564
565	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
566	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
567	sampling values.
568
569	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
570
571	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
572	http://bugzilla.maptools.org/show_bug.cgi?id=2398
573
5742012-05-29  Frank Warmerdam  <[email protected]>
575
576	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
577	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
578	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
579	to get/set functions for different tags!
580
581	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
582	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
583
5842012-05-24  Frank Warmerdam  <[email protected]>
585
586	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
587	accumulate" and overwrite the end by one word in at least some cases.
588
5892012-05-23  Frank Warmerdam  <[email protected]>
590
591	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
592
593	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
594
595	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
596	the same image.
597
598	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
599	stripbytecounts or stripoffsets or where loading these fails.
600
601	* libtiff/tif_print.c: be careful about whether min/max values are singular
602	or one per sample.
603
604	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
605	May affect things like ISOSpeedRatings.
606
607	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
608	in some cases.
609
6102012-05-19  Bob Friesenhahn  <[email protected]>
611
612	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
613	example for how to retreive the value of unsupported tags.
614
6152012-03-30  Frank Warmerdam  <[email protected]>
616
617	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
618	care of Tom Lane @ Red Hat.
619
6202012-02-18  Bob Friesenhahn  <[email protected]>
621
622	* libtiff 4.0.1 released.
623
624	* Update automake used to 1.11.3.
625
626	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
627	attribute specification to lessen the risk of accidental macro
628	substitution.  Patch from Vincent Torri.
629
6302012-01-31  Frank Warmerdam  <[email protected]>
631
632	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
633	assumption tag fetching is always successful.
634
635	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
636
6372012-01-22  Bob Friesenhahn  <[email protected]>
638
639	* configure.ac: Add support for using library symbol versioning on
640	ELF systems with the GNU linker.  Support is enabled via
641	--enable-ld-version-script.  Disabled by default for now until
642	there is a decision for how to deploy a libtiff with versioned
643	symbols after libtiff 4.0.0 was already released.
644
6452011-12-22  Bob Friesenhahn  <[email protected]>
646
647	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
648
649	tif_win32.c.  Patch by Edward Lam.
650
651	* configure.ac: Add libtiff private dependency on -llzma for
652	pkg-config.  Patch by Mark Brand.
653	Updated Automake to 1.11.2.
654
6552011-12-21  Bob Friesenhahn  <[email protected]>
656
657	* libtiff 4.0.0 released.
658
6592011-12-08  Frank Warmerdam  <[email protected]>
660
661	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
662	of _TIFFFillStriles() results (#gdal 4372)
663
6642011-12-07  Frank Warmerdam  <[email protected]>
665
666	* libtiff/tif_dirread.c: fixes to deal with invalid files where
667	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
668
669	* libtiff/tif_dirread.c: fix error reporting when there is no
670	tag information struct and name (gdal #4373)
671
6722011-10-22  Bob Friesenhahn  <[email protected]>
673
674	* Update GNU libtool to 2.4.2.
675
676	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
677	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
678	Deroulers.
679
6802011-06-21  Frank Warmerdam  <[email protected]>
681
682	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
683
6842011-05-31  Jim Meyering  <[email protected]>
685
686	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
687	upon failure to allocate "resizeddata".
688	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
689	allocation failure, not before.
690	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
691	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
692	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
693	NULL-deref and possible overflow
694	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
695	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
696	and set of otherwise unused local, data_is_empty.
697	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
698	Diagnose out-of-memory failure and return 0 rather than
699	dereferencing NULL.
700
7012011-05-24  Frank Warmerdam  <[email protected]>
702
703	* libtiff/tif_dirread.c: produce special error message for zero tag
704	directories instead of error out on the malloc(0) failure.
705
7062011-05-16  Frank Warmerdam  <[email protected]>
707
708	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
709	related declarations as they are in active use by libraries
710	such as libgeotiff, and work just fine.  (#2315)
711
7122011-04-20  Frank Warmerdam  <[email protected]>
713
714	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
715	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
716	http://bugzilla.maptools.org/show_bug.cgi?id=2315
717
718	* libtiff/libtiff.def: add some missing (64bit) APIs.
719	http://bugzilla.maptools.org/show_bug.cgi?id=2316
720
7212011-04-09  Bob Friesenhahn  <[email protected]>
722
723	* libtiff 4.0.0beta7 released.
724
7252011-04-09  Bob Friesenhahn  <[email protected]>
726
727	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
728	the run-time target whereas target is used to specify the final
729	output target if the package is a build tool (like a compiler),
730	which libtiff is not.  Resolves libtiff bug 2307 "Use
731	AC_CANONICAL_HOST macro".
732
7332011-04-02  Bob Friesenhahn  <[email protected]>
734
735	* configure.ac: Support configuring TIFF_INT64_FORMAT and
736	TIFF_UINT64_FORMAT appropriately for MinGW32.
737
738	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
739	printf conventions for 64-bit types because it uses the WIN32 CRT.
740
741	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
742	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
743	printf conventions for 64-bit types because it uses the WIN32 CRT.
744
745	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
746	understood by WIN32 CRT.
747
748	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
749
750	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
751	it is much more portable.  Tmpfile is included in ISO/IEC
752	9899:1990 and the WIN32 CRT.
753
7542011-03-26  Frank Warmerdam  <[email protected]>
755
756	* tools/tiffset.c: add -d and -sd switches to allow operation on
757	a particular directory, not just the first (jef).
758
7592011-03-21  Frank Warmerdam  <[email protected]>
760
761	* libtiff/tif_thunder.c: Correct potential buffer overflow with
762	thunder encoded files with wrong bitspersample set.  The libtiff
763	development team would like to thank Marin Barbella and TippingPoint's
764	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
765	CVE-2011-1167).
766	http://bugzilla.maptools.org/show_bug.cgi?id=2300
767
7682011-03-10  Frank Warmerdam  <[email protected]>
769
770	* libtiff/tif_fax3.h: Fix to last change allowing zero length
771	runs at the start of a scanline - needed for legal cases.
772
7732011-03-02  Frank Warmerdam  <[email protected]>
774
775	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
776	a move left.  Without this, a malicious input file can generate an
777	indefinitely large series of runs without a0 ever reaching the right
778	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
779	This is a modified version of a patch proposed by Drew Yao of Apple
780	Product Security.  It adds an unexpected() report, and disallows the
781	equality case, since emitting a run without increasing a0 still allows
782	buffer overrun.
783
7842011-02-23  Frank Warmerdam  <[email protected]>
785
786	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
787
788	* tools/tiff2rgba.c: close source file on error to make leak
789	detection easier.
790
791	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
792
793	http://bugzilla.maptools.org/show_bug.cgi?id=2295
794
7952011-02-22  Frank Warmerdam  <[email protected]>
796
797	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
798	_SUPPORT)
799
8002011-02-18  Frank Warmerdam  <[email protected]>
801
802	* configure.ac, configure: Added support for --enable-chunky-strip-read
803	configure option to enable the experimental feature from a couple
804	months ago for reading big strips in chunks.
805
806	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
807	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
808	Implement optional support for deferring the load of strip/tile
809	offset and size tags for optimized scanning of directories.  Enabled
810	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
811	#define in tif_config.h).
812
8132011-02-11  Frank Warmerdam  <[email protected]>
814
815	* libtiff/tif_print.c: remove unused variable.
816
8172011-02-09  Frank Warmerdam  <[email protected]>
818
819	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
820	with non-console (popup message) builds on win32.
821
822	http://bugzilla.maptools.org/show_bug.cgi?id=2293
823
8242011-01-24  Olivier Paquet  <[email protected]>
825
826	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
827	tif_print.c, tiff.h, tiffiop.h} : Added support for
828	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
829	values for each sample. Presents the min/max of all samples by default for
830	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
831	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
832	http://www.asmail.be/msg0055458208.html
833
8342011-01-06  Frank Warmerdam  <[email protected]>
835
836	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
837	maintained.
838
839	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
840	for CHUNKY_STRIP_READ_SUPPORT.
841
842	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
843	during JPEGPreDecode and JPEGDecode calls.
844	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
845	as compression formats like JPEG keep 16 lines interleaved in a sense
846	and might need to touch	quite a bit of data.
847
848	http://trac.osgeo.org/gdal/ticket/3894
849
8502011-01-03  Lee Howard <[email protected]>
851
852	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
853	caused by commit on 2010-12-14.  Submitted by e-mail from
854	Even Rouault <[email protected]>
855
8562010-12-31  Olivier Paquet  <[email protected]>
857
858	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
859	http://bugzilla.maptools.org/show_bug.cgi?id=2266
860
8612010-12-23  Andrey Kiselev  <[email protected]>
862
863	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
864	compression level parameter (preset) for Deflate and LZMA encoders,
865	e.g "-c lzma:p1" or "-c zip:p9".
866
867	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
868	(preset) in LZMAVSetField().
869
8702010-12-18  Bob Friesenhahn  <[email protected]>
871
872	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
873	Makefile.
874
8752010-12-14  Andrey Kiselev  <[email protected]>
876
877	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
878	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
879	TIFF compression scheme LZMA reserving a new value 34925 for
880	Compression tag. As per
881	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
882
8832010-12-14  Lee Howard <[email protected]>
884
885	* libtiff/tif_dirread.c: tolerate some cases where
886	FIELD_COLORMAP is missing
887	http://bugzilla.maptools.org/show_bug.cgi?id=2189
888
8892010-12-14  Lee Howard <[email protected]>
890
891	* libtiff/tif_read.c: change read_ahead to tmsize_t
892	http://bugzilla.maptools.org/show_bug.cgi?id=2222
893
8942010-12-14  Lee Howard <[email protected]>
895
896	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
897	Windows except on Cygwin
898	http://bugzilla.maptools.org/show_bug.cgi?id=2224
899
9002010-12-14  Lee Howard <[email protected]>
901
902	* tools/gif2tiff.c: fix buffer overrun
903	http://bugzilla.maptools.org/show_bug.cgi?id=2270
904
9052010-12-14  Lee Howard <[email protected]>
906
907	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
908	to improve compatibility with various viewers
909	submitted by e-mail from Dwight Kelly <[email protected]>
910
9112010-12-13  Lee Howard <[email protected]>
912
913	* tools/fax2ps.c: be consistent with page-numbering
914	http://bugzilla.maptools.org/show_bug.cgi?id=2225
915
9162010-12-13  Lee Howard <[email protected]>
917
918	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
919	resolves CVE-2010-2595
920	http://bugzilla.maptools.org/show_bug.cgi?id=2208
921
9222010-12-13  Lee Howard <[email protected]>
923
924	* tools/tiffcrop.c: new release by Richard Nolde
925	http://bugzilla.maptools.org/show_bug.cgi?id=2004
926
9272010-12-12  Lee Howard <[email protected]>
928
929	* tools/tiff2pdf.c: fix colors for images with RGBA
930	interleaved data
931	http://bugzilla.maptools.org/show_bug.cgi?id=2250
932
9332010-12-12  Lee Howard <[email protected]>
934
935	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
936	http://bugzilla.maptools.org/show_bug.cgi?id=2164
937
9382010-12-11  Lee Howard <[email protected]>
939
940	* tools/tiff2pdf.c: remove invalid duplication for Lab
941	http://bugzilla.maptools.org/show_bug.cgi?id=2162
942
9432010-12-11  Lee Howard <[email protected]>
944
945	* libtiff/tif_jpeg.c: fix use of clumplines calculation
946	http://bugzilla.maptools.org/show_bug.cgi?id=2149
947
9482010-12-11  Lee Howard <[email protected]>
949
950	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
951	http://bugzilla.maptools.org/show_bug.cgi?id=2118
952
9532010-12-11  Lee Howard <[email protected]>
954
955	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
956	  libtiff/tif_zip.c: fix build errors for VC6
957	http://bugzilla.maptools.org/show_bug.cgi?id=2105
958
9592010-12-11  Lee Howard <[email protected]>
960
961	* libtiff/tif_stream.cxx: warnings cleanup
962	http://bugzilla.maptools.org/show_bug.cgi?id=2091
963	* libtiff/tif_dirread.c: warnings cleanup
964	http://bugzilla.maptools.org/show_bug.cgi?id=2092
965
9662010-12-11  Lee Howard <[email protected]>
967
968	* tools/tiff2pdf.c: add fill-page option
969	http://bugzilla.maptools.org/show_bug.cgi?id=2051
970
9712010-12-11  Lee Howard <[email protected]>
972
973	* libtiff/tif_dirread.c: modify warnings
974	http://bugzilla.maptools.org/show_bug.cgi?id=2016
975
9762010-12-11  Lee Howard <[email protected]>
977
978	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
979        http://bugzilla.maptools.org/show_bug.cgi?id=1999
980
9812010-12-11  Lee Howard <[email protected]>
982
983	* tools/tiffinfoce.c: strip byte counts are uint64* now
984
9852010-12-11  Lee Howard <[email protected]>
986
987        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
988        or missing byte-count tag
989        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
990        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
991
9922010-12-08  Lee Howard <[email protected]>
993
994        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
995        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
996
9972010-12-06  Lee Howard <[email protected]>
998
999        * libtiff/tif_open.c: Fix mode check before opening a file.
1000        http://bugzilla.maptools.org/show_bug.cgi?id=1906
1001
10022010-11-27  Bob Friesenhahn  <[email protected]>
1003
1004	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
1005	Patch by Vincent Torri.
1006
10072010-10-21  Frank Warmerdam  <[email protected]>
1008
1009	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
1010
1011	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
1012
1013	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
1014
10152010-09-25  Lee Howard <[email protected]>
1016
1017	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
1018	with additional command line options for Document Title,
1019	Document Creator, and Page Orientation
1020
10212010-07-13  Bob Friesenhahn  <[email protected]>
1022
1023	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
1024	potentially unterminated buffer due to using an exceptionally long
1025	file name.
1026
10272010-07-08  Andrey Kiselev  <[email protected]>
1028
1029	* tools/tiff2pdf.c: Fixed ID buffer filling in
1030	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
1031
10322010-07-07  Andrey Kiselev  <[email protected]>
1033
1034	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
1035	to expected value as the warning message suggests. As per bug
1036	http://bugzilla.maptools.org/show_bug.cgi?id=1963
1037
10382010-07-06  Andrey Kiselev  <[email protected]>
1039
1040	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
1041	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
1042	which should be set by value.
1043
1044	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
1045	and _TIFFFieldWithName() if the tag is not found in the tag table.
1046	This should be normal situation and returned NULL value should be
1047	properly handled by the caller.
1048
10492010-07-02  Andrey Kiselev  <[email protected]>
1050
1051	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
1052	integer type conversions. As per bug
1053	http://bugzilla.maptools.org/show_bug.cgi?id=2207
1054
1055	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
1056	WhitePoint tag as per bug
1057	http://bugzilla.maptools.org/show_bug.cgi?id=2042
1058
1059	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1060	working with YCbCr image in PickContigCase(). As per bug
1061	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1062
1063	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1064	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1065	we don't need any post-processing. That helps to reset the hook if we
1066	previously set this field to some other value and the hook was
1067	initialized accordingly. As per bug
1068	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1069
10702010-07-01  Andrey Kiselev  <[email protected]>
1071
1072	* tools/tiffgt.c: Properly check the raster buffer allocations for
1073	integer overflows. As per bug
1074	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1075
1076	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1077	upstream.
1078
1079	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1080	multiply_32() and multiply_64() functions into tif_aux.c file and
1081	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1082
10832010-06-30  Andrey Kiselev  <[email protected]>
1084
1085	* tools/tiff2pdf.c: Better generation of ID field in
1086	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1087
1088	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1089	converting JPEG encoded tiles.
1090
1091	* tools/tiff2pdf.c: Better handling of string fields, use static
1092	string buffers instead of dynamically allocated, use strncpy() instead
1093	of strcpy(), control the string lengths.
1094
10952010-06-25  Andrey Kiselev  <[email protected]>
1096
1097	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1098	referencing to uninitialized memory in some cases (e.g. when tile size
1099	set bigger than the image size).
1100
11012010-06-15  Bob Friesenhahn  <[email protected]>
1102
1103	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1104	subsampled data since tiffcrop currently doesn't support it.  Fix
1105	JPEG support.
1106
11072010-06-13  Frank Warmerdam  <[email protected]>
1108
1109	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1110
1111	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1112	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1113	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1114	size is larger.  Also, there are a bunch of places that try to
1115	memset() a malloc'd buffer before checking for malloc failure, which
1116	would result in core dump if there actually were a failure. (#2211)
1117
11182010-06-11  Bob Friesenhahn  <[email protected]>
1119
1120	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1121	avoid compiler warnings if parameter types are not sign
1122	consistent.
1123
1124	* libtiff 4.0.0alpha6 released.
1125
1126	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1127	European page size dimensions.  Added an option to allow the user
1128	to specify a custom page size on the command line.  Fix the case
1129	where a page size specified with a fractional part was being
1130	coerced to an integer by retyping the variables that define the
1131	paper size.
1132
1133	* html/index.html: Update for the 3.9.3 release.
1134
1135	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1136	YCbCr subsampled data since tiffcp currently doesn't support it.
1137	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1138
1139	* Update libtool to version 2.2.10.
1140
11412010-06-10  Bob Friesenhahn  <[email protected]>
1142
1143	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1144	multiplier is zero.
1145
11462010-06-09  Bob Friesenhahn  <[email protected]>
1147
1148	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1149	CVE-2010-1411 was not complete.
1150
1151	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1152	multiply two integers.  Returns zero if there is an integer
1153	overflow.
1154
1155	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1156	is reported when reading the input file.
1157
11582010-06-08  Bob Friesenhahn  <[email protected]>
1159
1160	* Update libtool to version 2.2.8.
1161
1162	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1163	buffer due to integer overflow in TIFFroundup() and several other
1164	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1165	fixes CVE-2010-1411.
1166
1167	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1168	result in an integer overflow. This causes TIFFroundup() to also
1169	return zero if there would be an integer overflow.
1170
1171	* contrib: Add an emacs formatting mode footer to all source files
1172	so that emacs can be effectively used.
1173
11742010-06-03  Oliver Chen Feng <[email protected]>
1175
1176	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1177	file PAGENUMBER value in sequence for users who care the page
1178	sequence, this will also prevent tiff2pdf from creating pdf file from
1179	the merged tiff file with wrong page sequence.
1180
11812010-05-08  Olivier Paquet  <[email protected]>
1182
1183	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1184	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1185	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1186	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1187	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1188
11892010-05-07  Frank Warmerdam  <[email protected]>
1190
1191	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1192	JPEGPreEncode(), not just when we want to output local tables.
1193	Otherwise the quality used during compression may not be right and
1194	might not match the tables in the tables tag.   This bug only occurs
1195	when seeking between directories in the midst of writing blocks.
1196	http://trac.osgeo.org/gdal/ticket/3539
1197
11982010-05-06  Andrey Kiselev  <[email protected]>
1199
1200	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1201	Regenerated from the source.
1202
12032010-05-05  Olivier Paquet  <[email protected]>
1204
1205	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1206	had stopped working. Also made it always print 6 floats instead of
1207	2*SamplesPerPixel.
1208	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1209	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1210	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1211	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1212
12132010-05-05  Frank Warmerdam  <[email protected]>
1214
1215	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1216	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1217
12182010-04-21  Frank Warmerdam  <[email protected]>
1219
1220	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1221	JPEGSetupEncode() is called if the tables already seem to be
1222	established.  This prevents spurious updates and rewriting of
1223	directories with jpegtables when doing updates to existing images.
1224	http://trac.osgeo.org/gdal/ticket/3539
1225
12262010-04-20  Olivier Paquet  <[email protected]>
1227
1228	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1229	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1230	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1231	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1232	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1233
12342010-04-10  Bob Friesenhahn  <[email protected]>
1235
1236	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
1237	when the tag count value is zero.  Error handling is still a
1238	regression since in 3.9.2, empty tags are skipped (with a warning)
1239	rather than returning a hard error and refusing to read the file.
1240
1241	* tools/ppm2tiff.c (main): While case for parsing comment line
1242	requires extra parenthesis to work as expected.  Reported by
1243	Thomas Sinclair.
1244
12452010-04-02  Frank Warmerdam  <[email protected]>
1246
1247	* libtiff/tif_read.c (primarily): Add support for
1248	CHUNKY_STRIP_READ_SUPPORT where large strips are
1249	read in chunks for applications using TIFFReadScanline().
1250	This is intended to make it more practical work with very
1251	large compressed one-strip files.   Feature is off by default.
1252	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
1253	http://trac.osgeo.org/gdal/ticket/3514
1254
12552010-03-31  Frank Warmerdam  <[email protected]>
1256
1257	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
1258	directories so previously placed directories will be migrated to
1259	the end of file if needed.
1260
12612010-03-30  Frank Warmerdam  <[email protected]>
1262
1263	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
1264	to support operating on strips/tiles of more than 256MB.
1265	http://trac.osgeo.org/gdal/ticket/3512
1266
12672010-03-10  Bob Friesenhahn  <[email protected]>
1268
1269	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
1270	that it is clearly a memory allocation error message, and also
1271	includes the size of the allocation request.
1272
12732010-02-22  Lee Howard  <[email protected]>
1274
1275	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
1276	the JPEG TIFF as is is not required in order to prevent it from
1277	being unused and filled with invalid data.  (Leave it to be
1278	generated by later activity.)
1279	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1280	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
1281	data rather than skipping them.  This fixes the ability to view in
1282	Acrobat Reader, Evince, and Ghostscript.
1283	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1284	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
1285	strips.
1286	http://bugzilla.maptools.org/show_bug.cgi?id=2029
1287
12882009-12-03  Frank Warmerdam  <[email protected]>
1289
1290	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
1291	Made so that when working with downsampled images a stub function
1292	reporting an error is used for tif_decoderow.  We cannot meaningfully
1293	support reading scanlines in this situation.  (#1936)
1294
1295	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
1296	resetting of the upsampling values (gdal:#3259).
1297	http://bugzilla.maptools.org/show_bug.cgi?id=1936
1298
12992009-11-30  Frank Warmerdam  <[email protected]>
1300
1301	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
1302	tools/ras2tiff.c: Fix resource leaks on error.
1303	http://bugzilla.maptools.org/show_bug.cgi?id=2121
1304
1305	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
1306	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
1307	of as a custom(generic) field to avoid a potential reentrancy problem.
1308	http://bugzilla.maptools.org/show_bug.cgi?id=2125
1309
1310	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
1311	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
1312	const, and display_sRGB static and const.
1313	http://bugzilla.maptools.org/show_bug.cgi?id=2124
1314
13152009-11-04  Bob Friesenhahn  <[email protected]>
1316
1317	* libtiff 4.0.0alpha5 released.
1318
13192009-11-03  Bob Friesenhahn  <[email protected]>
1320
1321	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
1322	version has undergone substantial testing with arbitrary sample
1323	bit depths.  Also eliminates GCC compilation warnings.
1324
13252009-11-02  Bob Friesenhahn  <[email protected]>
1326
1327	* port/libport.h: Add extern declarations for getopt standard
1328	globals.
1329
13302009-10-31  Bob Friesenhahn  <[email protected]>
1331
1332	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
1333	noticed in 64-bit build of libtiff with Visual Studio 2005.
1334	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
1335	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
1336
1337	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
1338	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
1339	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
1340	http://bugzilla.maptools.org/show_bug.cgi?id=2068
1341
13422009-10-29  Bob Friesenhahn  <[email protected]>
1343
1344	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
1345	pointer" warnings.
1346
13472009-10-28  Bob Friesenhahn  <[email protected]>
1348
1349	* html/tools.html: Add manual page links, and a summary
1350	description of tiffcrop.
1351
13522009-10-07  Bob Friesenhahn  <[email protected]>
1353
1354	* configure.ac: x86_64 should use the same fill order as i386.
1355
13562009-09-24  Bob Friesenhahn  <[email protected]>
1357
1358	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
1359	Nolde.  Major updates to add significant functionality for reading
1360	and writing tile based images with bit depths not a multiple of 8
1361	which cannot be handled by tiffcp.
1362
13632009-09-03  Bob Friesenhahn  <[email protected]>
1364
1365	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
1366	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
1367	"Bug 2090 - OJPEG crash with libjpeg v7".
1368	http://bugzilla.maptools.org/show_bug.cgi?id=2090
1369
13702009-09-03  Frank Warmerdam  <[email protected]>
1371
1372	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
1373	interface when stoponerror is set.
1374	http://bugzilla.maptools.org/show_bug.cgi?id=2071
1375
13762009-08-30  Bob Friesenhahn  <[email protected]>
1377
1378	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
1379	fix build with gcc when using the "-Wformat
1380	-Werror=format-security" flags.
1381
13822009-08-29  Bob Friesenhahn  <[email protected]>
1383
1384	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
1385	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
1386	utilities tests.
1387
13882009-08-28  Bob Friesenhahn  <[email protected]>
1389
1390	* tools/tiffinfo.c: tiffinfo should return error status to the
1391	caller.  Register a private error callback to accomplish that.
1392
1393	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
1394	PNM formats so that we will be able to test more of the tools.
1395	While adding these test images I notice that bmp2tiff and gif2tiff
1396	only support ancient versions of their respective formats.
1397
13982009-08-27  Bob Friesenhahn  <[email protected]>
1399
1400	* libtiff 4.0.0alpha4 released.
1401
1402	* HOWTO-RELEASE: Improved release instructions.
1403
14042009-08-24  Bob Friesenhahn  <[email protected]>
1405
1406	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
1407	fixes for "Bug 2023 - nroff errors in manual pages".
1408	http://bugzilla.maptools.org/show_bug.cgi?id=2023
1409
1410	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
1411	CVE-2009-2347 libtiff: integer overflows in various inter-color
1412	space conversion tools".
1413	http://bugzilla.maptools.org/show_bug.cgi?id=2079
1414
1415	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
1416	Berkenbilt for "Bug 2024 - possible null pointer dereference with
1417	one-line fix".
1418	http://bugzilla.maptools.org/show_bug.cgi?id=2024
1419
1420	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
1421	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
1422	segfault after setting tdir_tag = IGNORE".
1423	http://bugzilla.maptools.org/show_bug.cgi?id=1895
1424
14252009-08-23  Bob Friesenhahn  <[email protected]>
1426
1427	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
1428	tiffcrop.sh into a collection of many specific tests.  Re-wrote
1429	all of the existing tests to be based on some simple shell
1430	functions.  Make distcheck works again.
1431
1432	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
1433	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
1434	tests under valgrind.
1435
14362009-08-21  Bob Friesenhahn  <[email protected]>
1437
1438	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
1439	build.
1440
1441	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
1442	actually activated since it needed to be enabled in this
1443	Makefile.am.  Also activated parallel-tests mode since it offers
1444	useful features such as per-test .log files and a summary test
1445	report .log file.
1446
14472009-08-20  Bob Friesenhahn  <[email protected]>
1448
1449	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
1450	libtool 2.2.6.  Enabled support for silent build rules
1451	(--enable-silent-rules or 'make V=0') and colorized tests.
1452
1453	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
1454
14552009-06-30  Frank Warmerdam  <[email protected]>
1456
1457	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
1458
1459	* tools/tiffcp.c: add -c sgilog support.
1460
1461	* libtiff/tif_luv.c: correct return codes from encoderow to be
1462	1 on success instead of zero.
1463	http://bugzilla.maptools.org/show_bug.cgi?id=2069
1464
1465	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
1466	#1085 for a better underflow fix that errors properly.
1467	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1468	http://bugzilla.maptools.org/show_bug.cgi?id=1985
1469
14702009-06-26  Frank Warmerdam  <[email protected]>
1471
1472	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
1473	fails on oddly sized 12bit jpeg compressed ycbcr images.
1474
14752009-06-22  Frank Warmerdam  <[email protected]>
1476
1477	* libtiff/tif_lzw.c: Fix buffer underflow bug.
1478	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1479
14802009-06-21  Frank Warmerdam  <[email protected]>
1481
1482	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
1483	for dual mode 8/12 bit jpeg support.
1484
14852009-06-03  Frank Warmerdam  <[email protected]>
1486
1487	* libtiff/tif_write.c: do not override the planar configuration to be
1488	contig for one sample files if planar configuration is already set.
1489	http://bugzilla.maptools.org/show_bug.cgi?id=2057
1490
14912009-06-02  Frank Warmerdam  <[email protected]>
1492
1493	* libtiff/libtiff.def: Add TIFFUnsetField.
1494
14952009-05-03  Frank Warmerdam  <[email protected]>
1496
1497	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
1498	error reports to use "%s" as format string.
1499	http://trac.osgeo.org/gdal/ticket/2976
1500
15012009-03-12  Frank Warmerdam  <[email protected]>
1502
1503	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
1504	for some codecs (#2020).
1505
15062009-02-12  Frank Warmerdam  <[email protected]>
1507
1508	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
1509	http://bugzilla.maptools.org/show_bug.cgi?id=2005
1510
15112009-02-09  Frank Warmerdam  <[email protected]>
1512
1513	* libtiff/tif_dirread.c: Improve allocation safety when allocated
1514	buffer for large tags.  (#1998)  Related to (#1993)
1515
15162009-02-06  Frank Warmerdam  <[email protected]>
1517
1518	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
1519	test suite should pass.
1520
15212009-02-05  Frank Warmerdam  <[email protected]>
1522
1523	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
1524	but at the 2GB boundary to avoid overflow on 32bit systems.
1525	http://bugzilla.maptools.org/show_bug.cgi?id=1993
1526
1527	* libtiff/tif_dirread.c: Remove some assertions that blow due to
1528	corrupt files rather than in response to library internal
1529	inconsistencies.
1530	http://bugzilla.maptools.org/show_bug.cgi?id=1995
1531	http://bugzilla.maptools.org/show_bug.cgi?id=1991
1532
1533	* libtiff/tif_dirread.c: Fixed testing for failed result from
1534	TIFFReadDirectoryFindFieldInfo().
1535	http://bugzilla.maptools.org/show_bug.cgi?id=1992
1536
15372009-01-23  Frank Warmerdam  <[email protected]>
1538
1539	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
1540	http://bugzilla.maptools.org/show_bug.cgi?id=1911
1541
1542	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
1543
1544	http://bugzilla.maptools.org/show_bug.cgi?id=1924
1545
1546	* tools/tiffcrop.c: initialize xres/yres values.
1547
1548	* test/*.sh - default ${srcdir} to local directory.
1549
1550	* test/common.sh - start verbose mode after common settings.
1551
1552	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
1553	avoid type mismatches on different platforms.
1554	http://bugzilla.maptools.org/show_bug.cgi?id=1889
1555
15562009-01-22  Frank Warmerdam  <[email protected]>
1557
1558	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
1559	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
1560
1561	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
1562	defined, primarily to reduce prototype warnings on windows.
1563
1564	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
1565	about unused parameters, and uninitialized variables.
1566
15672009-01-21  Bob Friesenhahn  <[email protected]>
1568
1569	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
1570	order to trace full execution detail while executing the test suite.
1571
15722009-01-20  Frank Warmerdam  <[email protected]>
1573
1574	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
1575
15762009-01-20  Bob Friesenhahn  <[email protected]>
1577
1578	* test/Makefile.am (CLEANFILES): Make sure that test output files
1579	are removed by 'make clean'
1580
1581	* Update autotools for 4.0.0 beta3
1582
1583	* 4.0.0 beta3 produced.
1584
15852009-01-12  Bob Friesenhahn  <[email protected]>
1586
1587	* test/tiffcrop.sh: New test script for tiffcrop from Richard
1588	Nolde.
1589
1590	* tools/tiff2ps.c: Remove spurious message to stderr.
1591
15922009-01-11  Bob Friesenhahn  <[email protected]>
1593
1594	* tools/tiff2ps.c: Incorporated significant functionality update
1595	from Richard Nolde.  In particular, support for rotating the image
1596	by 90, 180, 270, and 'auto' has been added.
1597
1598	* man/tiffcrop.1: Incorporated documentation updates from Richard
1599	Nolde.
1600
1601	* tools/tiffcrop.c: Incorporated significant functionality update
1602	from Richard Nolde.
1603
16042008-12-31  Bob Friesenhahn  <[email protected]>
1605
1606	* libtiff/tiffio.h: GCC will now validate format specifications
1607	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
1608	TIFFWarningExt() in order to reveal bugs.
1609
1610	* Many fixes throughout to work better as a 64-bit build.
1611
16122008-12-30  Bob Friesenhahn  <[email protected]>
1613
1614	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
1615	tags now require 64-bit parameter rather than 32-bit.
1616
1617	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
1618	64-bit values.
1619
1620	* tools/thumbnail.c: Eliminate crash noticed while running test
1621	suite.
1622
16232008-12-29  Bob Friesenhahn  <[email protected]>
1624
1625	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
1626	Initialize stack variables to avoid compiler warning.
1627
1628	* tools/tiffinfoce.c (main): Use toff_t for offset type when
1629	retrieving offset of EXIF IFD.
1630
1631	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
1632	TIFFClientOpen() callback and other external function definitions.
1633
1634	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
1635	type now.  Fixes crash when dumping files containing an EXIF IFD.
1636
1637	* m4/libtool.m4: Update to libtool 2.2.6.
1638
16392008-12-21  Frank Warmerdam  <[email protected]>
1640
1641	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
1642
1643	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
1644	strip for the last partial strip in a jpeg compressed file.
1645	http://bugzilla.maptools.org/show_bug.cgi?id=1981
1646
16472008-10-29  Frank Warmerdam  <[email protected]>
1648
1649	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
1650	we take the shortcut to only update the strip/tile offsets in place.
1651	http://trac.osgeo.org/gdal/ticket/2621
1652
16532008-10-21  Andrey Kiselev  <[email protected]>
1654
1655	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
1656	the older versions retained).
1657
16582008-10-09  Frank Warmerdam  <[email protected]>
1659
1660	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
1661	IPP enabled version of libjpeg from Intel.
1662	http://bugzilla.maptools.org/show_bug.cgi?id=1951
1663
16642008-09-05  Andrey Kiselev  <[email protected]>
1665
1666	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
1667	Required for libtiff 4.0.
1668
1669	* tools/tiffsplit.c: Use dynamically allocated array instead of static
1670	when constructing output file names.
1671
16722008-09-03  Andrey Kiselev  <[email protected]>
1673
1674	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
1675	doing the filename/path construction.
1676
1677	* tools/tiff2pdf.c: More appropriate format string in
1678	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
1679
1680	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
1681
1682	http://bugzilla.maptools.org/show_bug.cgi?id=1929
1683
1684	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
1685	CVE-2008-2327 security issue.
1686
16872008-09-01  Frank Warmerdam  <[email protected]>
1688
1689	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
1690
1691	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
1692	depending on whether the file is bigtiff or classic tiff.
1693	http://bugzilla.maptools.org/show_bug.cgi?id=1917
1694
16952008-08-12  Edward Lam  <[email protected]>
1696
1697	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
1698	consistent (__int64) casting when testing if _lseeki64 has
1699	successfully seeked as requested.  This is necessary for large
1700	file support to work since off_t is only 32-bit.
1701
17022008-07-29  Frank Warmerdam  <[email protected]>
1703
1704	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
1705	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
1706	with control logic to return runtime errors (c/o Even Rouault) (#1927).
1707
17082008-06-17  Frank Warmerdam  <[email protected]>
1709
1710	* tools/tiffcrop.c: Fix some portability problems.
1711
1712	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
1713	used in tif_jpeg.c.
1714
1715	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
1716	as TIFFOpen().
1717
17182008-06-01  Frank Warmerdam  <[email protected]>
1719
1720	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
1721	like Sparc/Solaris.
1722	http://bugzilla.maptools.org/show_bug.cgi?id=1892
1723
17242008-05-27  Frank Warmerdam  <[email protected]>
1725
1726	* libtiff.def: Add TIFFFindField
1727	http://bugzilla.maptools.org/show_bug.cgi?id=1891
1728
17292008-05-26  Frank Warmerdam  <[email protected]>
1730
1731	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
1732
1733	* li2008-04-15  Andrey Kiselev  <[email protected]>
1734
1735btiff/tif_win32.c: Replace custom Win32 memory api with generic
1736	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
1737	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
1738
1739	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
1740	in windows version (care of Edward Lam).
1741
17422008-05-24  Frank Warmerdam  <[email protected]>
1743
1744	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
1745	compression codec codes.
1746
1747	* tif_dirwrite.c: fix potential memory leak.
1748
1749	* tif_dirread.c: Fix unchecked malloc result.
1750
17512008-05-24  Bob Friesenhahn  <[email protected]>
1752
1753	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
1754	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
1755	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
1756	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
1757	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
1758	suggestions from Lee Howard posted to the tiff list on 13 Sep
1759	2007.
1760
17612008-05-23  Frank Warmerdam  <[email protected]>
1762
1763	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
1764	possible runtime problem reported by coverity.
1765
1766	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
1767
1768	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
1769	http://bugzilla.maptools.org/show_bug.cgi?id=1888
1770
1771	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
1772
1773	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
1774
1775	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
1776	Cleanup scanline allocation to avoid coverity warning.
1777
1778	* tools/thumbnail.c: Check for TIFFOpen() failure.
1779
17802008-05-18  Frank Warmerdam  <[email protected]>
1781
1782	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
1783	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
1784	why this is needed.
1785
17862008-05-09  Bob Friesenhahn  <[email protected]>
1787
1788	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
1789	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
1790
17912008-04-15  Andrey Kiselev  <[email protected]>
1792
1793	* test/: Test suite updated. Everything is passed now.
1794
1795	* libtiff/tif_dirinfo.c: Fixed description of the
1796	TIFFTAG_NUMBEROFINKS tag.
1797
17982008-04-14  Andrey Kiselev  <[email protected]>
1799
1800	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
1801	Get rid of some of "dereferencing type-punned" warnings by converting
1802	tdir_offset field of TIFFDirEntry structure into union.
1803
18042008-04-10  Andrey Kiselev  <[email protected]>
1805
1806	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
1807	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
1808	from the public interface. Type of its 'count' parameter changed
1809	from uint32 to tmsize_t.
1810
1811	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
1812	of the tiff structure have the size_t type instead of uint32.
1813
18142008-04-09  Andrey Kiselev  <[email protected]>
1815
1816	* tools/tiffdump.c: Added support for MSVS 6.0.
1817
1818	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
1819	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
1820	point values on MSVS 6.0 platform.
1821
18222008-03-14  Frank Warmerdam  <[email protected]>
1823
1824	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
1825	TIFFReadDirEntryArray() since they are interfering with seemingly
1826	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
1827
18282008-02-09  Joris Van Damme  <[email protected]>
1829
1830	* tif_dirread.c: Added handling for the case of number of values for
1831	PageNumber tag different from 2 (previously resulted in an assert
1832	indicating lack of handling and was forgotten about)
1833
18342008-02-01  Frank Warmerdam  <[email protected]>
1835
1836	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
1837	the actual jpeg data stream if the first strip/tile has zero size.
1838	This is the case when GDAL creates a new file with zero sizes, closes
1839	and reopens it.
1840
18412008-01-07  Frank Warmerdam  <[email protected]>
1842
1843	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
1844
18452008-01-01  Frank Warmerdam  <[email protected]>
1846
1847	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
1848
1849	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
1850	targets.
1851
1852	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
1853	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
1854	(x64).
1855
1856	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
1857	and TIFFFieldWithName() now return TIFFField pointers instead of
1858	TIFFFieldInfo pointers.
1859
1860	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
1861	exist. This makes it compile again on Windows
1862
1863	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
1864	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
1865
1866	* test/rewrite_tag.c: New test for TIFFRewriteField().
1867
18682007-12-31  Frank Warmerdam  <[email protected]>
1869
1870	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
1871	rewrites one field "on disk" updating an existing directory
1872	entry.  Lots of limitations still...
1873
1874	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
1875	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
1876	the strip offset/size values are dirty but nothing else about the
1877	directory is dirty.  In flush handle "just stripmaps dirty" as a
1878	special case that just rewrites these values without otherwise
1879	modifying the directory on disk using TIFFRewriteField().
1880
1881	We also modify logic so that in update mode the directory is not
1882	marked dirty on read, but only when something is changed.  This
1883	means we need to keep track of updates to the stripmap stuff in
1884	TIFFAppendToStrip().
1885
18862007-12-10  Frank Warmerdam  <[email protected]>
1887
1888	* tif_jpeg.c: Improve ability to switch between encoding and decoding
1889	in the jpeg code (gdal bug #2033).
1890
18912007-11-23  Frank Warmerdam  <[email protected]>
1892
1893	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
1894	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
1895	rawcp/rawcc buffer are for writing and thus may require flushing.
1896	Necessary to distinguish whether they need to be written to disk when
1897	in mixed read/write mode and doing a mixture of writing followed by
1898	reading.  http://trac.osgeo.org/gdal/ticket/1758
1899
19002007-11-23  Andrey Kiselev  <[email protected]>
1901
1902	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
1903	from Alexey Chupahin.
1904
19052007-11-02  Frank Warmerdam  <[email protected]>
1906
1907	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
1908	establishing if an existing tile can be rewritten to the same location
1909	by comparing the current size to all the other blocks in the same
1910	directory.  This is dangerous in many situations and can easily
1911	corrupt a file.  (observed in esoteric GDAL situation that's hard to
1912	document).  This change involves leaving the stripbytecount[] values
1913	unaltered till TIFFAppendToStrip().  Now we only write a block back
1914	to the same location it used to be at if the new data is the same
1915	size or smaller - otherwise we move it to the end of file.
1916
1917	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
1918	data when writing the directory just because we have BEENWRITING at
1919	some point in the past.  This was causing odd junk to be written out
1920	in a tile of data when a single tile had an interleaving of reading
1921	and writing with reading last.  (highlighted by gdal
1922	autotest/gcore/tif_write.py test 7.
1923
1924	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
1925	modifying callers buffer.
1926	http://trac.osgeo.org/gdal/ticket/1965
1927
1928	* tif_predict.c/h: more fixes related to last item, keeping a
1929	distinct pfunc for encode and decode cases as these were getting
1930	mixed up sometimes.
1931	http://trac.osgeo.org/gdal/ticket/1948
1932
19332007-11-01  Frank Warmerdam  <[email protected]>
1934
1935	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
1936	predictor based encoding and decoding works in read-write update
1937	mode properly.
1938	http://trac.osgeo.org/gdal/ticket/1948
1939
19402007-10-24  Joris Van Damme  <[email protected]>
1941
1942	* tif_dirread.c: Fixed problem with bogus file triggering
1943	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
1944	ChopUpSingleUncompressedStrip
1945
19462007-10-22  Joris Van Damme  <[email protected]>
1947
1948	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
1949	at best, access violation at worst, when subsampled JPEG compressed imagery
1950	is decoded without the JPEG_COLORMODE feature
1951
19522007-10-11  Frank Warmerdam  <[email protected]>
1953
1954	* html/index.html: Update "people responsible" section.
1955
19562007-10-05  Frank Warmerdam  <[email protected]>
1957
1958	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
1959	as reported on the mailing list.
1960
19612007-10-01  Joris Van Damme  <[email protected]>
1962
1963	* changed some more incorrect %lud printf flags to %lu
1964
19652007-09-29  Joris Van Damme  <[email protected]>
1966
1967	* tif_dirread.c: Strip chopping interfered badly with uncompressed
1968	subsampled images because it tried to divide subsampled rowblocks,
1969	leading to all sorts of errors throughout the library for these
1970	images. Fixed by making strip chopping divide in row counts that
1971	are a multiple of vertical subsampling value.
1972
19732007-09-28  Joris Van Damme  <[email protected]>
1974
1975	* tif_dirread.c: Logical cast working around compiler warning
1976
1977	* tif_read.c: Correction of some error flags and parameter lists
1978
19792007-09-27  Joris Van Damme  <[email protected]>
1980
1981	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
1982	when dealing with large bitspersample values, shutting up purification
1983	tools that warn about truncation, though it remains incorrect and
1984	indicates a conceptual problem there.
1985
1986	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
1987	of first IFD) to proper place because it badly interfered with memory
1988	mapping, resulting in mapping flag even with dummy mapping functions
1989	that returned 0 whilst at the same time the mapping tif_size wasn't
1990	set, thus resulting in continuous incorrect beyond-eof errors.
1991
19922007-09-24  Joris Van Damme  <[email protected]>
1993
1994	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
1995	inconsistent use of const in tiffFields and exifFields definition
1996
19972007-09-20  Frank Warmerdam  <[email protected]>
1998
1999	* tif_dirwrite.c: Always write tile/strip offsets and sizes
2000	using LONG8 type when output format is BigTIFF.  The
2001	TIFFWriteDirectoryTagLongLong8Array() function was restructured
2002	accordingly.
2003
2004	* tif_dirread.c: Improvements to error reporting text in
2005	TIFFFetchDirectory().
2006
20072007-09-19  Bob Friesenhahn  <[email protected]>
2008
2009	* test/images: Added a small collection of test images for use by
2010	test programs and scripts.
2011	* test/tiffinfo.sh: A trivial example test script.
2012	* test/common.sh: Added small script for setting the environment
2013	used by script-based tests.
2014
20152007-08-24  Frank Warmerdam  <[email protected]>
2016
2017	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
2018	zero when writing directory contents to preserve the ability to
2019	rewrite directories in place, even in the middle of a directory
2020	chain.
2021
2022	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
2023	definitions that are missing.  Existing definitions are silently
2024	ignored.
2025
2026	* tif_dirread.c: Add runtime error for fields for which no definition
2027	is found (in addition to an assert for developers) in
2028	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
2029	prudent.
2030
20312007-08-10  Joris Van Damme  <[email protected]>
2032
2033	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
2034	from _TIFFRGBAImage structure to revert unwanted ABI change.
2035
20362007-08-10  Joris Van Damme  <[email protected]>
2037
2038	* libtiff/tif_win32.c: use SetFilePointer instead of
2039	SetFilePointerEx, as per bug
2040
2041	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
2042
20432007-07-19  Andrey Kiselev  <[email protected]>
2044
2045	* libtiff/tif_stream.cxx: Put all callback functions declarations
2046	inside extern "C" block.
2047
2048	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
2049	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
2050	formatter instead of "%lld" with MSVC compiler.
2051
2052	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
2053	_TIFFUInt64ToDouble() functions.
2054
20552007-07-18  Andrey Kiselev  <[email protected]>
2056
2057	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
2058	integer constants.
2059
2060	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2061	remove tif_config.h/tiffconf.h during cleaning. As per bug
2062
2063	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2064
2065	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2066
2067	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2068
20692007-07-13  Andrey Kiselev  <[email protected]>
2070
2071	* libtiff 4.0.0alpha released.
2072
20732007-07-12  Andrey Kiselev  <[email protected]>
2074
2075	* tools/tiff2pdf.c: Added missed extern optind as per bug
2076
2077	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2078
2079	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2080	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2081	extending scheme completed.
2082
20832007-07-11  Bob Friesenhahn  <[email protected]>
2084
2085	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2086	use standard C++ library size types and attempt to detect overflow
2087	cases.
2088
20892007-07-08  Andrey Kiselev  <[email protected]>
2090
2091	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2092	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2093	tag extending scheme. Use the new scheme everywhere.
2094
2095	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2096	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2097	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2098	TIFFFIeldInfo structure replaced with TIFFField structure.
2099	TIFFFieldInfo retained for the backward compatibility.
2100
21012007-07-05  Bob Friesenhahn  <[email protected]>
2102
2103	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2104	defined.
2105
21062007-07-04  Andrey Kiselev  <[email protected]>
2107
2108	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2109	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2110	removed.
2111
2112	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2113	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2114	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2115	These tags are not codec-specific and relate to image content, so
2116	process them as other normal tags.
2117
2118	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2119	public tiffio.h to private tif_dir.h.
2120
2121	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2122	outdated.
2123
21242007-07-03  Andrey Kiselev  <[email protected]>
2125
2126	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2127	tif_win3.c}: Obsoleted portability stuff removed.
2128
2129	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2130
2131	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2132
2133	Patch from William Bader.
2134
2135	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2136	significant upgrade of the whole utility as per bug
2137
2138	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2139
2140	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2141	PDF file using TIFFClientOpen() machinery as it is implemented
2142	by Leon Bottou.
2143
21442007-06-26  Bob Friesenhahn  <[email protected]>
2145
2146	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2147	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2148	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2149	allow returning -1 for errors.
2150	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2151
21522007-06-25  Bob Friesenhahn  <[email protected]>
2153
2154	* port/strtoull.c: New porting function in case strtoull() is not
2155	available on the target system.
2156	* configure.ac: Add configure support for determining sized types
2157	in a portable way and performing necessary substitutions in
2158	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2159	definitions.
2160
21612007-04-27  Andrey Kiselev  <[email protected]>
2162
2163	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2164
2165	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2166
21672007-04-07  Andrey Kiselev  <[email protected]>
2168
2169	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2170	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2171	tif_predict.c, tif_zip.c}: Finally fix bug
2172
2173	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2174
2175	by introducing _TIFFMergeFieldInfo() returning integer error status
2176	instead of void in case of problems with field merging (e.g., if the
2177	field with such a tag already registered). TIFFMergeFieldInfo() in
2178	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2179	check returned value.
2180
21812007-04-07  Frank Warmerdam  <[email protected]>
2182
2183	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2184	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2185
21862007-04-06  Frank Warmerdam  <[email protected]>
2187
2188	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2189	will convert from decompressor to compressor or compress to decompress
2190	if required by the force arguments.  This works around a problem in
2191	where the JPEGFixupTestSubsampling() may cause a decompressor to
2192	be setup on a directory when later a compressor is required with the
2193	force flag set.  Occurs with the addtiffo program for instance.
2194
21952007-04-06  Andrey Kiselev  <[email protected]>
2196
2197	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2198	functionality from Richard Nolde. As per bug
2199
2200	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2201
22022007-03-28  Frank Warmerdam  <[email protected]>
2203
2204	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2205
22062007-03-17  Joris Van Damme  <[email protected]>
2207
2208	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2209
22102007-03-07  Joris Van Damme  <[email protected]>
2211
2212	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2213	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2214	factor. This bug is mentioned in:
2215	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2216	http://www.asmail.be/msg0054766825.html
2217
22182007-03-07  Joris Van Damme  <[email protected]>
2219
2220	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2221
2222	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2223	unused arguments by standard C indication for the same
2224
22252007-02-27  Andrey Kiselev  <[email protected]>
2226
2227	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2228	counters in TIFFFetchData(). Should finally fix the issue
2229
2230	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2231
22322007-02-24  Andrey Kiselev  <[email protected]>
2233
2234	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
2235	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2236
2237	* libtiff/tif_dirread.c: Added special function to handle
2238	SubjectDistance EXIF tag as per bug
2239
2240	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
2241
2242	* tools/tiff2pdf.c: Do not assume inches when the resolution units
2243	do not specified. As per bug
2244
2245	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2246
2247	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
2248	it was set as infinite. As per bug
2249
2250	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2251
2252	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
2253	by Richard Nolde. As per bug
2254
2255	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
2256
22572007-02-22  Andrey Kiselev  <[email protected]>
2258
2259	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
2260	ExtraSamples == 999 produced by Corel Draw. As per bug
2261
2262	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
2263
2264	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
2265	changed from tsize_t to uint32 to be able to work with data arrays
2266	larger than 2GB. Fixes bug
2267
2268	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2269
2270	Idea submitted by Matt Hancher.
2271
22722007-01-31  Andrey Kiselev  <[email protected]>
2273
2274	* tools/tif2rgba.c: This utility does not work properly on big-endian
2275	architectures. It was fixed including the bug
2276
2277	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
2278
22792007-01-15  Mateusz Loskot <[email protected]>
2280
2281	* Submitted libtiff port for Windows CE platform
2282	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
2283	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
2284	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
2285	functons from tif_win32.c.
2286	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
2287	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
2288	standard header files for Windows CE build.
2289	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
2290
22912006-11-19  Frank Warmerdam  <[email protected]>
2292
2293	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
2294	we move a strip.
2295	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
2296
22972006-10-13  Andrey Kiselev  <[email protected]>
2298
2299	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
2300	in Gentoo bug ():
2301
2302	http://bugs.gentoo.org/show_bug.cgi?id=142383
2303
2304	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
2305	Though it is still far from the state of being working and useful.
2306
23072006-10-12  Andrey Kiselev  <[email protected]>
2308
2309	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
2310	method.
2311
2312	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
2313	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
2314
2315	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
2316	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
2317
2318	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
2319	vulnerabilities, reported in Gentoo bug ():
2320
2321	http://bugs.gentoo.org/show_bug.cgi?id=142383
2322
23232006-09-28  Andrey Kiselev  <[email protected]>
2324
2325	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
2326	vulnerabilities, as per	Gentoo bug ():
2327
2328	http://bugs.gentoo.org/show_bug.cgi?id=142383
2329
23302006-09-27  Frank Warmerdam  <[email protected]>
2331
2332	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
2333	encoding and decoding on the same read-write TIFF handle.  The LZW
2334	code can now maintain encode and decode state at the same time. The
2335	ZIP code will switch back and forth as needed.
2336	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
2337
23382006-09-20  Frank Warmerdam  <[email protected]>
2339
2340	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
2341	tif_config.vc.h for easier identification by folks using an IDE.
2342
23432006-07-25  Frank Warmerdam  <[email protected]>
2344
2345	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
2346
23472006-07-19  Frank Warmerdam  <[email protected]>
2348
2349	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
2350	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
2351	to bug report by Peng Gao with black strip at bottom of images.
2352
23532006-07-12  Frank Warmerdam  <[email protected]>
2354
2355	* tif_dirwrite.c: make sure to use uint32 for wordcount in
2356	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
2357	It already seems to have been done for other field types.  Needed
2358	for "tiffset" on files with geotiff ascii text.
2359
23602006-07-04  Bob Friesenhahn  <[email protected]>
2361
2362	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
2363	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
2364	its use does not appear to be required, so use it only when it is
2365	available.
2366
23672006-06-24  Andrey Kiselev  <[email protected]>
2368
2369	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
2370
2371	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
2372	function TIFFFetchDirectory() avoiding code duplication in
2373	TIFFReadDirectory() and TIFFReadCustomDirectory().
2374
23752006-06-19  Frank Warmerdam  <[email protected]>
2376
2377	* tools/tiff2pdf.c: Fix handling of -q values.
2378	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
2379
23802006-06-17  Frank Warmerdam  <[email protected]>
2381
2382	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
2383	files.  Modified TIFFReadDirectory() to not invoke
2384	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
2385	but one of them is zero.
2386	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
2387
23882006-06-08  Andrey Kiselev  <[email protected]>
2389
2390	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
2391	checking code in the separate function TIFFCheckDirOffset().
2392
2393	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
2394
2395	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
2396
2397	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
2398
2399	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
2400
2401	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
2402
2403	* tools/tiff2pdf.c: Fixed buffer overflow condition in
2404	t2p_write_pdf_string() as per bug
2405
2406	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
2407
24082006-06-07  Andrey Kiselev  <[email protected]>
2409
2410	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
2411	support for JBIG compression scheme (34661 code) contributed by Lee
2412	Howard. As per bug
2413
2414	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
2415
2416	* configure, configure.ac: OJPEG support enabled by default.
2417
2418	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
2419
24202006-06-03  Bob Friesenhahn  <[email protected]>
2421
2422	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
2423	TIFFPrintDirectory().  Joris Van Damme authored the fix.
2424
24252006-04-21  Andrey Kiselev  <[email protected]>
2426
2427	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
2428	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
2429
2430	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
2431	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
2432	Added support for OpenVMS by Alexey Chupahin, [email protected].
2433
24342006-04-20  Andrey Kiselev  <[email protected]>
2435
2436	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
2437	Properly set the binary mode for stdin stream as per bug
2438	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
2439
2440	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
2441	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
2442	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
2443	tiffset.1}: Improvements in page formatting as per bug
2444	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
2445
2446	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
2447	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
2448
24492006-04-18  Frank Warmerdam  <[email protected]>
2450
2451	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
2452	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
2453
24542006-04-12  Joris Van Damme  <[email protected]>
2455
2456	* libtiff/tif_getimage.c: Added support for planarconfig separate
2457	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
2458
24592006-04-11  Joris Van Damme  <[email protected]>
2460
2461	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
2462	- Conversion of unassociated alpha to associated alpha now done with
2463	  more performant LUT, and calculation more correct
2464	- Conversion of 16bit data to 8bit data now done with
2465	  more performant LUT, and calculation more correct
2466	- Bugfix of handling of 16bit RGB with unassociated alpha
2467
24682006-04-11  Joris Van Damme  <[email protected]>
2469
2470	* libtiff/tif_getimage.c:
2471	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
2472	  buffer for alpha strile and filled it, only to never read it back.
2473	  Removed allocation and fill.
2474	- Minor rename of vars in gtTileSeparate and gtStripSeparate
2475	  anticipating planned functionality extension
2476
24772006-04-08  Joris Van Damme  <[email protected]>
2478
2479	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
2480	and pickTileSeparateCase to PickSeparateCase as both work on strips as
2481	well
2482
2483	* libtiff/tif_getimage.c: moved img->get selection from
2484	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
2485	logical hook for planned functionality extension
2486
24872006-04-08  Joris Van Damme  <[email protected]>
2488
2489	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
2490	of inappropriate use of jpeg_abort instead of jpeg_destroy
2491
24922006-04-07  Joris Van Damme  <[email protected]>
2493
2494	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
2495	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
2496	on subsampled images - this ought to get sorted when we feel brave
2497	enough to replace TIFFScanlineSize alltogether
2498
2499	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
2500
25012006-04-04  Joris Van Damme  <[email protected]>
2502
2503	* libtiff/tiffio.h: added new type tstrile_t
2504
2505	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
2506	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
2507	toff_t*
2508
2509	* libtiff/tif_ojpeg.c: totally new implementation
2510
2511	* libtiff/tif_dirread.c: added several hacks to suit new support of
2512	OJPEG
2513
2514	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
2515	of OJPEG images in favor of tif_getimage.c native handling of
2516	YCbCr and desubsampling
2517
25182006-03-29  Frank Warmerdam  <[email protected]>
2519
2520	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
2521	interpretation causes the "upsampled" flag to be recomputed.  Fixes
2522	peculiar bug where photometric flag had to be set before jpegcolormode
2523	flag.
2524
25252006-03-25  Joris Van Damme  <[email protected]>
2526
2527	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
2528
2529	* libtiff/tif_strip.c: temporarilly added two new versions of
2530	TIFFScanlineSize
2531	  - TIFFNewScanlineSize: proposed new version, after all related
2532	    issues and side-effects are sorted out
2533	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
2534	This needs further sorting out.
2535
25362006-03-25  Joris Van Damme  <[email protected]>
2537
2538	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
2539	of last truncated strip data to TIFFWriteEncodedStrip
2540
25412006-03-25  Joris Van Damme  <[email protected]>
2542
2543	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
2544
25452006-03-25  Joris Van Damme  <[email protected]>
2546
2547	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
2548
2549	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
2550
2551	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
2552	prepare	the path for new tif_ojpeg.c
2553
25542006-03-23  Andrey Kiselev  <[email protected]>
2555
2556	* libtiff 3.8.2 released.
2557
2558	* tools/Makefile.am: Use runtime paths linker flags when rpath
2559	option enabled.
2560
25612006-03-21  Andrey Kiselev  <[email protected]>
2562
2563	* libtiff/libtiff.def: Added missed exports as per bug
2564	http://bugzilla.remotesensing.org/attachment.cgi?id=337
2565
2566	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
2567	tools/Makefile.vc: Makefiles improvements as per bug
2568	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
2569
2570	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
2571	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
2572	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
2573
2574	* libtiff/tif_strip.c: Take subsampling in account when calculating
2575	TIFFScanlineSize().
2576
2577	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
2578
25792006-03-17  Andrey Kiselev  <[email protected]>
2580
2581	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
2582	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
2583
2584	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
2585	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
2586
25872006-03-16  Andrey Kiselev  <[email protected]>
2588
2589	* libtiff/tiffiop.h: Added decalration for
2590	_TIFFSetDefaultCompressionState().
2591
2592	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
2593	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
2594	codec cleanup methods. As per bug
2595
2596	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
2597
25982006-03-15  Andrey Kiselev  <[email protected]>
2599
2600	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
2601	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
2602
2603	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
2604	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
2605
2606	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
2607	removed; move here the STRIP_SIZE_DEFAULT macro definition.
2608
2609	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
2610	macro definition.
2611
2612	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
2613
26142006-03-14  Andrey Kiselev  <[email protected]>
2615
2616	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
2617	in TIFFReadDirectory, because it is always set at the start of
2618	function and we allow TIFFs without that tag set.
2619
26202005-03-13  Andrey Kiselev  <[email protected]>
2621
2622	* libtiff 3.8.1 released.
2623
26242006-03-07  Andrey Kiselev  <[email protected]>
2625
2626	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
2627	function as per bug
2628	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2629
2630	* libtiff/tif_dirread.c: More wise check for integer overflow
2631	condition as per bug
2632	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2633
2634	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
2635	Properly restore setfield/getfield methods in cleanup functions. As
2636	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2637
26382006-03-03  Andrey Kiselev  <[email protected]>
2639
2640	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
2641	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
2642
2643	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
2644	TIFFPredictorCleanup() in codec cleanup methods. As per bug
2645
2646	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2647
2648	* libtiff/tif_dirread.c: Fixed integer overflow condition in
2649	TIFFFetchData() function. As per bug
2650
2651	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2652
26532006-03-01  Andrey Kiselev  <[email protected]>
2654
2655	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
2656	TIFFSetField() method, not directly. As per bug
2657
2658	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
2659
2660	* tools/ppm2tiff.c: Added support for PBM files as per bug
2661	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
2662
26632006-02-27  Andrey Kiselev  <[email protected]>
2664
2665	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
2666	to avoid crash as per bug
2667
2668	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
2669
26702006-02-26  Andrey Kiselev  <[email protected]>
2671
2672	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
2673	t2p_sample_rgba_to_rgb() was used in place of each other, that was
2674	resulted in problems with RGBA images with associated alpha.
2675	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
2676
26772006-02-23  Andrey Kiselev  <[email protected]>
2678
2679	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
2680	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2681
2682	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
2683	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
2684	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2685
2686	* tools/tiff2ps.c: Properly scale all the pages when converting
2687	multipage TIFF with /width/height/center options set. As per bug
2688
2689	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
2690
26912006-02-15  Andrey Kiselev  <[email protected]>
2692
2693	* tools/tiff2pdf.c: Do not create output file until all option checks
2694	will be done. As per bug
2695
2696	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
2697
2698	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
2699	list of input files as per bug:
2700
2701	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
2702
27032006-02-09  Andrey Kiselev  <[email protected]>
2704
2705	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
2706	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
2707
2708	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
2709	TIFFRGBAImage interface.
2710
2711	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
2712	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
2713
27142006-02-07  Frank Warmerdam  <[email protected]>
2715
2716	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
2717	compressed TIFF files, per submission from Dan Cobra.
2718
27192006-02-07  Andrey Kiselev  <[email protected]>
2720
2721	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
2722	cast values to avoid warnings. As per bug
2723	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2724
2725	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
2726	appropriate. As per bug
2727	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2728
2729	* libtiff/tif_aux.c: Fixed type of temporary variable in
2730	_TIFFCheckMalloc() as per bug
2731	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2732
27332006-02-06  Andrey Kiselev  <[email protected]>
2734
2735	* libtiff/tif_aux.c: Return static array when fetching default
2736	YCbCrCoefficients (another problem, reported a the
2737	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
2738
27392006-02-03  Andrey Kiselev  <[email protected]>
2740
2741	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
2742	YCbCrSubsampling and DotRange tags as per bugs
2743
2744	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
2745	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
2746
2747	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
2748	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
2749
2750	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
2751
27522006-01-23  Andrey Kiselev  <[email protected]>
2753
2754	* libtool related stuff updated from the 2.1a branch.
2755
27562006-01-11  Frank Warmerdam  <[email protected]>
2757
2758	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
2759	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
2760	properly as per bug:
2761	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
2762
27632006-01-09  Bob Friesenhahn  <[email protected]>
2764
2765	* configure.ac: Fix with_default_strip_size comparison as reported
2766	by Norihiko Murase.
2767
27682006-01-08  Bob Friesenhahn  <[email protected]>
2769
2770	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
2771	incorrectly, tests were not actually testing the uninstalled
2772	libtiff.  Now they are.
2773
27742006-01-04  Andrey Kiselev  <[email protected]>
2775
2776	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
2777	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
2778	should be uint32 value.
2779
27802006-01-02  Bob Friesenhahn  <[email protected]>
2781
2782	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
2783	be used if build directory is not the same as source directory.
2784	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
2785	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
2786	and re-sorted tag names in alphabetical order.
2787
27882005-12-29  Andrey Kiselev  <[email protected]>
2789
2790	* libtiff 3.8.0 released.
2791
27922005-12-28  Bob Friesenhahn  <[email protected]>
2793
2794	* tools/bmp2tiff.c (main): Fixed warning regarding returning
2795	inconsistent types from a condition.
2796	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
2797	format.
2798	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
2799
28002005-12-28  Joris Van Damme  <[email protected]>
2801
2802	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
2803
28042005-12-27  Andrey Kiselev  <[email protected]>
2805
2806	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
2807	windows.h, to reduce the compile time.
2808
28092005-12-26  Bob Friesenhahn  <[email protected]>
2810
2811	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
2812
28132005-12-26  Andrey Kiselev  <[email protected]>
2814
2815	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
2816	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
2817	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
2818	private functions to retrieve FieldInfo arrays.
2819
28202005-12-24  Bob Friesenhahn  <[email protected]>
2821
2822	* html/build.html: Added some additional instructions for when
2823	building using MSVC under Windows.  Also fixed two HTML syntax
2824	errors and used HTML Tidy to tidy up the HTML syntax and
2825	formatting.
2826
28272005-12-24  Andrey Kiselev  <[email protected]>
2828
2829	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
2830	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
2831	StoNits tags custom.
2832
28332005-12-23  Andrey Kiselev  <[email protected]>
2834
2835	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
2836	WhitePoint tag custom.
2837
2838	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
2839
28402005-12-23  Joris Van Damme  <[email protected]>
2841
2842	* libtiff/tiffio.h: fixed typo that potentially resulted in
2843	redefininition of USE_WIN32_FILEIO
2844
2845	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
2846	calls in core LibTiff.
2847
28482005-12-21  Andrey Kiselev  <[email protected]>
2849
2850	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
2851	Photoshop and ICCProfile tags custom.
2852
28532005-12-21  Joris Van Damme  <[email protected]>
2854
2855	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
2856	newer code to get context indicator in error handler and still
2857	remain compatible with older code: Done TIFFError calls everywhere
2858	except in tools
2859
28602005-12-20  Andrey Kiselev  <[email protected]>
2861
2862	* tools/tiffcp.c: Added many error reporting messages; fixed integer
2863	overflow as per bug
2864
2865	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
2866
28672005-12-16  Frank Warmerdam  <[email protected]>
2868
2869	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
2870	YCbCr images in jpeg compressed TIFF files.
2871
28722005-12-14  Andrey Kiselev  <[email protected]>
2873
2874	* tools/tiffcp.c: Return non-zero status when reading fails (again).
2875
28762005-12-13  Andrey Kiselev  <[email protected]>
2877
2878	* tools/tiffcp.c: Return non-zero status when reading fails.
2879
28802005-12-12  Andrey Kiselev  <[email protected]>
2881
2882	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
2883
28842005-12-09  Andrey Kiselev  <[email protected]>
2885
2886	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
2887	custom.
2888
2889	* tools/tiffinfo.c: Print EXIF directory contents if exist.
2890
2891	* libtiff/tiff.h: Few EXIF tag numbers added.
2892
2893	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
2894	tiffio.h}: Preliminary support to read custom directories. New
2895	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
2896
28972005-12-07  Andrey Kiselev  <[email protected]>
2898
2899	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
2900	More work to implement custom directory read support.
2901
2902	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
2903	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
2904	tags custom.
2905
29062005-12-05  Andrey Kiselev  <[email protected]>
2907
2908	* libtiff/tif_dirread.c: One more workaround for broken
2909	StripByteCounts tag. Handle the case when StripByteCounts array filled
2910	with completely wrong values.
2911
29122005-11-30  Andrey Kiselev  <[email protected]>
2913
2914	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
2915	in the TIFFOpenW() function as per bug
2916
2917	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
2918
2919	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
2920	functions as per bug
2921
2922	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
2923
29242005-11-20  Frank Warmerdam  <[email protected]>
2925
2926	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
2927	for MS MDI format.
2928	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
2929
2930	* .cvsignore: many files added, and a few update according
2931	to suggestion of Brad HArds on tiff mailing list.
2932
29332005-11-03  Frank Warmerdam  <[email protected]>
2934
2935	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
2936	public.
2937
29382005-10-31  Andrey Kiselev  <[email protected]>
2939
2940	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
2941	as per bug
2942
2943	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
2944
2945	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
2946	as per bug
2947
2948	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
2949
2950	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
2951	problem as per bug
2952
2953	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
2954
2955	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
2956
2957	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
2958
2959	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
2960	ResolutionUnit tags modifiable during write process. As per bug
2961
2962	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
2963
2964	* tools/tiffsplit.c: Copy fax related fields over splitted parts
2965	as per bug
2966
2967	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
2968
29692005-10-21  Frank Warmerdam  <[email protected]>
2970
2971	* tif_dirread.c: Don't try and split single strips into "0" strips
2972	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
2973	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
2974
29752005-10-20  Joris Van Damme  <[email protected]>
2976
2977	* tif_fax3.c: changed 'at scanline ...' style warning/errors
2978	with incorrect use of tif_row, to 'at line ... of
2979	strip/tile ...' style
2980
29812005-10-15  Frank Warmerdam  <[email protected]>
2982
2983	* tif_write.c: fixed setting of planarconfig as per bug report
2984	on the mailing list from Joris.
2985
29862005-10-07  Andrey Kiselev  <[email protected]>
2987
2988	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
2989	tif_dirread.c}: Make the default strip size configurable via the
2990	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
2991
29922005-09-30  Bob Friesenhahn  <[email protected]>
2993
2994	* html/support.html: Fixed link to documentation on Greg Ward's
2995	LogLuv TIFF format.
2996
29972005-09-28  Andrey Kiselev  <[email protected]>
2998
2999	* tools/tiffdump.c: Fixed crash when reading malformed tags.
3000
30012005-09-20  Andrey Kiselev  <[email protected]>
3002
3003	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
3004	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
3005
30062005-09-12  Andrey Kiselev  <[email protected]>
3007
3008	* libtiff 3.7.4 released.
3009
3010	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
3011	from Patrick Welche (all scripts moved in the 'config' and 'm4'
3012	directories).
3013
30142005-09-12  Frank Warmerdam  <[email protected]>
3015
3016	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
3017
30182005-09-05  Frank Warmerdam  <[email protected]>
3019
3020	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
3021	also set it to NULL to avoid double free when re-setting custom
3022	string fields as per:
3023
3024	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
3025
30262005-08-12  Frank Warmerdam  <[email protected]>
3027
3028	* libtiff/tif_print.c: avoid signed/unsigned warning.
3029
3030	* libtiff/tif_dirread.c: removed unused variable.
3031
30322005-07-30  Frank Warmerdam  <[email protected]>
3033
3034	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
3035	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
3036	pass on bigendian (macosx) system.
3037
30382005-07-28  Andrey Kiselev  <[email protected]>
3039
3040	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
3041	CheckMalloc() function to _TIFFCheckMalloc() and make it available
3042	globally as an internal helper routine.
3043
30442005-07-27  Andrey Kiselev  <[email protected]>
3045
3046	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
3047	the custom tags handling code.
3048
30492005-07-26  Andrey Kiselev  <[email protected]>
3050
3051	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
3052	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
3053	function, use TIFFFetchNormalTag() instead as per bug
3054
3055	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3056
3057	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
3058	instead.
3059
3060	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3061
3062	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3063
30642005-07-25  Andrey Kiselev  <[email protected]>
3065
3066	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3067
3068	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3069
30702005-07-21  Andrey Kiselev  <[email protected]>
3071
3072	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3073	the TIFFWriteCheck() function in case of single band images (as per
3074	TIFF spec).
3075
30762005-07-12  Andrey Kiselev  <[email protected]>
3077
3078	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3079	support for SCons software building tool (http://www.scons.org/).
3080	This is experimental infrastructure and it will exist along with the
3081	autotools mechanics.
3082
30832005-07-07  Andrey Kiselev  <[email protected]>
3084
3085	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3086	the NetBSD source tree (the old	4-clause BSD license changed to
3087	the new 3-clause one).
3088
3089	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3090	replacement module.
3091
3092	* port/dummy.c: Make the dummy function static.
3093
30942005-07-06  Andrey Kiselev  <[email protected]>
3095
3096	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3097
3098	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3099	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3100	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3101
31022005-07-04  Andrey Kiselev  <[email protected]>
3103
3104	* libtiff 3.7.3 released.
3105
3106	* configure, configure.ac: Do not use empty -R option when linking
3107	with --enable-rpath.
3108
31092005-07-01  Andrey Kiselev  <[email protected]>
3110
3111	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3112	reading the first IFD when needed. As per bug
3113
3114	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3115
3116	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3117	effects.
3118
31192005-06-23  Andrey Kiselev  <[email protected]>
3120
3121	* tools/tiff2pdf.c: Print two characters per loop in the
3122	t2p_write_pdf_trailer(). As per bug
3123
3124	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3125
3126	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3127	per bug
3128
3129	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3130
3131	* acinclude.m4: Updated to latest OpenGL test macros versions.
3132
3133	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3134	platform. As per bug
3135
3136	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3137
31382005-06-14  Andrey Kiselev  <[email protected]>
3139
3140	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3141	and YClipPathUnits tags.
3142
31432005-06-07  Andrey Kiselev  <[email protected]>
3144
3145	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3146	use pixel sized shift in contigous case.
3147
31482005-06-06  Andrey Kiselev  <[email protected]>
3149
3150	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3151	Make overviews working for contiguos images.
3152
31532005-06-03  Andrey Kiselev  <[email protected]>
3154
3155	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3156	time one.
3157
3158	* libtiff/tif_predict.c: Floating point predictor now works on
3159	big-endian hosts.
3160
31612005-06-01  Andrey Kiselev  <[email protected]>
3162
3163	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3164	ASCII values.
3165
3166	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3167	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3168	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3169	TargetPrinter tags custom.
3170
3171	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3172	TIFF_CODERSETUP flag (to fix memry leaks).
3173
3174	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3175	allocating.
3176
31772005-05-26  Andrey Kiselev  <[email protected]>
3178
3179	* configure.ac, libtiff/Makefile.am: Added workaround for
3180	OpenBSD/MirOS soname problem as per bug
3181
3182	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3183
3184	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3185	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3186	per bug
3187
3188	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3189
31902005-05-25  Andrey Kiselev  <[email protected]>
3191
3192	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3193	the fscanf() function. As per bug
3194
3195	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3196
3197	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3198	uint16 array when fetching the BYTE and SBYTE filds, so we should
3199	consider result as pointer to uint16 array and not as array of chars.
3200	As per bug
3201
3202	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3203
3204	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3205
3206	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3207
3208	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3209	mode in CreateFile() call as per bug
3210
3211	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3212
3213	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3214	libtiffxx libraries as per bug
3215
3216	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3217
3218	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3219	GDAL.
3220
32212005-05-23  Frank Warmerdam  <[email protected]>
3222
3223	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3224	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3225	in directory.
3226
32272005-05-22  Frank Warmerdam  <[email protected]>
3228
3229	* libtiff/tif_dirread.c: Changed the code that computes
3230	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3231	zero. This is a common case with GDAL indicating a "null" tile/strip.
3232
32332005-05-17  Andrey Kiselev  <[email protected]>
3234
3235	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
3236
32372005-05-06  Frank Warmerdam  <[email protected]>
3238
3239	* libtiff/tif_dirread.c: Applied similar change to
3240	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
3241
3242	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3243
3244	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
3245
32462005-05-06  Andrey Kiselev  <[email protected]>
3247	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
3248	added new option '-b' to use interpolation in output PDF files (Bruno
3249	Ledoux).
3250
32512005-05-05  Frank Warmerdam  <[email protected]>
3252
3253	* libtiff/tif_dirread.c: Ensure that broken files with too many
3254	values in PerSampleShorts work ok instead of crashing.
3255
3256	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3257
32582005-04-27  Andrey Kiselev  <[email protected]>
3259
3260	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
3261	input file.
3262
32632005-04-15  Andrey Kiselev  <[email protected]>
3264
3265	* libtiff/tif_predict.c: Added ability to encode floating point
3266	predictor, as per TIFF Technical Note 3.
3267
32682005-04-14  Andrey Kiselev  <[email protected]>
3269
3270	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
3271	floating point predictor, as per TIFF Technical Note 3.
3272
32732005-04-13  Andrey Kiselev  <[email protected]>
3274
3275	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
3276	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
3277	swap 24-bit floating point values.
3278
3279	* libtiff/tiff.h: Added predictor constants.
3280
32812005-04-08  Andrey Kiselev  <[email protected]>
3282
3283	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
3284	values in _TIFFVSetField() function. Inspired by the bug
3285
3286	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3287
3288	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
3289	as per bug
3290
3291	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3292
32932005-03-30  Andrey Kiselev  <[email protected]>
3294
3295	* libtiff/tif_open.c: Do not read header in case the output file
3296	should be truncated (Ron).
3297
3298	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
3299	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
3300
3301	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
3302
33032005-03-22  Andrey Kiselev  <[email protected]>
3304
3305	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
3306	rpath option.
3307
33082005-03-21  Andrey Kiselev  <[email protected]>
3309
3310	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
3311	tags.
3312
33132005-03-18  Andrey Kiselev  <[email protected]>
3314
3315	* libtiff/dirinfo.c: Added DNG tags.
3316
3317	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
3318	handling code.
3319
3320	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
3321	added DNG 1.1.0.0 tags.
3322
3323	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
3324	bug
3325
3326	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
3327
3328	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
3329
33302005-03-17  Andrey Kiselev  <[email protected]>
3331
3332	* nmake.opt: Build with Win32 CRT library by default.
3333
3334	* tools/tiff2ps.c: Fixed typo in page size handling code.
3335
3336	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
3337	by value.
3338
3339	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
3340
33412005-03-15  Andrey Kiselev  <[email protected]>
3342
3343	* libtiff 3.7.2 released.
3344
33452005-03-09  Andrey Kiselev  <[email protected]>
3346
3347	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
3348	floating point data; complain on unsupported bit depths.
3349
33502005-03-05  Andrey Kiselev  <[email protected]>
3351
3352	* tif_stream.cxx: Use ios namespace instead of ios_base to support
3353	GCC 2.95.
3354
3355	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
3356	Lee Howard for HylaFax DCS tag
3357	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
3358
33592005-03-04  Andrey Kiselev  <[email protected]>
3360
3361	* configure, configure.ac: Use -rpath option instead of -R as per bug
3362
3363	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
3364
3365	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
3366	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
3367	software. As per bug
3368
3369	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
3370
3371	* nmake.opt, html/build.html: Add more comments, change the config
3372	file organization a bit as per bug
3373
3374	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
3375
3376	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
3377	as per bug
3378
3379	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
3380
33812005-03-03  Andrey Kiselev  <[email protected]>
3382
3383	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
3384	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3385
3386	* tools/fax2ps.c: Replace insecure mktemp() function with the
3387	tmpfile() as per bug
3388
3389	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
3390
33912005-02-04  Andrey Kiselev  <[email protected]>
3392
3393	* libtiff/tiff.h: Changed the int8 definition to be always signed char
3394	as per bug
3395
3396	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3397
3398	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
3399	block as per bug
3400
3401	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
3402
34032005-02-03  Bob Friesenhahn  <[email protected]>
3404
3405	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
3406	display more correctly.  Images display brighter than they should
3407	on a Sun workstation.
3408
34092005-02-03  Andrey Kiselev  <[email protected]>
3410
3411	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
3412	suspicious values in the tags. As per bugs
3413
3414	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3415
3416	and
3417
3418	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
3419
3420	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
3421
3422	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
3423
34242005-01-31  Bob Friesenhahn  <[email protected]>
3425
3426	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
3427	(TIFFTAG_TILELENGTH): Corrected description.
3428
34292005-01-30  Andrey Kiselev  <[email protected]>
3430
3431	* configure.ac: Fixes for --with-docdir option as per bug
3432
3433	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
3434
3435	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
3436	bug
3437
3438	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
3439
3440	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
3441	Michael Rinne and Edward Lam.
3442
34432005-01-15  Andrey Kiselev  <[email protected]>
3444
3445	* configure.ac: Make the documentation directory location configurable
3446	via the --with-docdir option (as suggested by Jeremy C. Reed).
3447
3448	* libtiff/tif_color.c: Use double as the second argument of pow()
3449	function in TIFFCIELabToRGBInit(). As per bug
3450
3451	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
3452
3453	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
3454	integer as per bug
3455
3456	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
3457
3458	* libtiff/tif_getimage.c: Always fill the error message buffer in
3459	TIFFRGBAImageBegin() as per bug
3460
3461	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
3462
34632005-01-12  Andrey Kiselev  <[email protected]>
3464
3465	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
3466	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
3467	tags as per bug
3468
3469	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
3470
3471	* libtiff/tif_win32.c: Fixed message formatting in functions
3472	Win32WarningHandler() and Win32ErrorHandler() as per bug
3473
3474	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
3475
3476	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
3477	per bug
3478
3479	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
3480
34812005-01-11  Andrey Kiselev  <[email protected]>
3482
3483	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
3484	"C"' section as per bug
3485
3486	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3487
3488	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
3489	compiler to avoid double definition of BSD types as per bug
3490
3491	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3492
3493	* libtiff/Makefile.am: Place the C++ stream API in the separate
3494	library called libtiffxx to avoid unneeded dependencies. Probably
3495	there will be more C++ API in the future. As per bugs
3496
3497	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
3498
3499	and
3500
3501	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3502
35032005-01-05  Andrey Kiselev  <[email protected]>
3504
3505	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
3506	wrong tag counts (Dmitry V. Levin, Martin Pitt).
3507
3508	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
3509	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3510
35112004-12-25  Andrey Kiselev  <[email protected]>
3512
3513	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
3514	RGB-images as per bug
3515
3516	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3517
3518
3519	* tools/tiffset.c: Convert character option to integer value as per
3520	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
3521
35222004-12-20  Andrey Kiselev  <[email protected]>
3523
3524	* libtiff 3.7.1 released.
3525
3526	* html/tiffset.1.html: Add missed manual page as per bug
3527
3528	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3529
3530	* libtiff/tiff.h: Revert back libtiff data type definitions as per
3531	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
3532
35332004-12-19  Andrey Kiselev  <[email protected]>
3534
3535	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
3536	checking for tag count in TIFFReadDirectory() function. As per bug
3537
3538	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3539
3540	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
3541	CheckMallock() function.
3542
3543	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
3544	RGB-images as per bug
3545
3546	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
3547
35482004-12-15  Frank Warmerdam  <[email protected]>
3549
3550	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
3551	SunPro compiler.
3552
35532004-12-11  Bob Friesenhahn  <[email protected]>
3554
3555	* autogen.sh: aclocal and autoheader should be executed after
3556	libtoolize.  Also add '-I .' to aclocal invocation to check
3557	current directory for macros.
3558
35592004-12-10  Andrey Kiselev  <[email protected]>
3560
3561	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
3562	as per bugs
3563
3564	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
3565
3566	and
3567
3568	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
3569
35702004-12-04  Andrey Kiselev  <[email protected]>
3571
3572	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
3573
3574	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3575
3576	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
3577	mode as per bug
3578
3579	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3580
3581	* libtiff/tif_config.in.vc: Removed unneded definitions for
3582	read/open/close/lseek functions to fix the
3583
3584	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
3585
35862004-12-03  Andrey Kiselev  <[email protected]>
3587
3588	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
3589	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
3590	must be removed in the future, as it was never used properly. As per
3591	bug
3592
3593	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
3594
35952004-11-30  Bob Friesenhahn  <[email protected]>
3596
3597	* libtiff/tif_jpeg.c: Added a work-around in order to allow
3598	compilation with the heavily modified version of libjpeg delivered
3599	with Cygwin.
3600
36012004-11-29  Andrey Kiselev  <[email protected]>
3602
3603	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
3604	counts. As per bug
3605
3606	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
3607
3608	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
3609
3610	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
3611
36122004-11-28  Andrey Kiselev  <[email protected]>
3613
3614	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
3615	on Windows.
3616
3617	* nmake.opt: Add missed DLLNAME variable.
3618
36192004-11-26  Frank Warmerdam  <[email protected]>
3620
3621	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
3622
36232004-11-24  Andrey Kiselev  <[email protected]>
3624
3625	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
3626	per bug
3627
3628	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
3629
3630	* man/tiffset.1: Added manual page for tiffset tool written by Jay
3631	Berkenbilt. As per bug
3632
3633	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3634
36352004-11-23  Frank Warmerdam  <[email protected]>
3636
3637	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
3638
36392004-11-21  Frank Warmerdam  <[email protected]>
3640
3641	* html/document.html: Updated Adobe web links as per email from Joris.
3642
36432004-11-21  Andrey Kiselev  <[email protected]>
3644
3645	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
3646	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
3647	use C++ streams should #include <tiffio.hxx>.
3648
36492004-11-13  Andrey Kiselev  <[email protected]>
3650
3651	* libtiff/tiff.h: Added Adobe DNG tags.
3652
3653	* libtiff/tif_win32.c: Typo fixed.
3654
3655	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
3656	be compliant with the latest standard. Appropriate additions in
3657	makefiles now completed.
3658
36592004-11-11  Andrey Kiselev  <[email protected]>
3660
3661	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
3662	different tag types. As per bug
3663
3664	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
3665
36662004-11-10  Andrey Kiselev  <[email protected]>
3667
3668	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
3669	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
3670
36712004-11-09  Andrey Kiselev  <[email protected]>
3672
3673	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
3674
36752004-11-07  Andrey Kiselev  <[email protected]>
3676
3677	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
3678	contributed by Edward Lam (see
3679	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
3680	Though no changes in any makefiles yet.
3681
36822004-11-05  Frank Warmerdam  <[email protected]>
3683
3684	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
3685	is bad. This is the callers responsibility.
3686	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
3687
36882004-11-05  Andrey Kiselev  <[email protected]>
3689
3690	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
3691	function to work with the double byte strings (used to represent
3692	filenames in some locales). As per bug
3693
3694	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
3695
3696	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
3697	Compression tags of type LONG from broken TIFFS as per bug
3698
3699	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3700
3701	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
3702	the writecount should have uint32 type. As per bug
3703
3704	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3705
3706	* libtiff/tif_write.c: Fixed wrong if() statement in
3707	TIFFAppendToStrip() function as per bug
3708
3709	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
3710
37112004-11-04  Andrey Kiselev  <[email protected]>
3712
3713	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
3714	field. The caller should supply a count when setting this field. As
3715	per bug
3716
3717	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
3718
3719	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
3720	uint32 count. Use this type everywhere.
3721
37222004-11-03  Frank Warmerdam  <[email protected]>
3723
3724	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
3725
37262004-11-02  Frank Warmerdam  <[email protected]>
3727
3728	* tools/tiff2rgba.c: removed extra newlines in usage message.
3729
37302004-10-30  Andrey Kiselev  <[email protected]>
3731
3732	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
3733
3734	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
3735	tags (Tristan Hill).
3736
37372004-10-30  Frank Warmerdam  <[email protected]>
3738
3739	* libtiff/tiffiop.h: added fallback definition of assert() if we
3740	don't have assert.h.
3741
37422004-10-29  Andrey Kiselev  <[email protected]>
3743
3744	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
3745	choosing when the incorrect Group4Options tag set. As per bug
3746
3747	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
3748
3749	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
3750	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
3751	TIFFWriteNormalTag().
3752
37532004-10-28  Andrey Kiselev  <[email protected]>
3754
3755	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
3756	tags (Peter Fales).
3757
3758	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
3759
37602004-10-28  Frank Warmerdam  <[email protected]>
3761
3762	* tools/tiff2pdf.c: added casts to avoid warnings.
3763
3764	* libtiff/libtiff.def: Added several more entry points required
3765	to link fax2tiff.c against the DLL on windows.
3766
37672004-10-27  Andrey Kiselev  <[email protected]>
3768
3769	* configure, configure.ac: Added --enable-rpath option to embed linker
3770	paths into library binary.
3771
37722004-10-26  Andrey Kiselev  <[email protected]>
3773
3774	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
3775
3776	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
3777	(Vladimir Nadvornik, Dmitry V. Levin).
3778
37792004-10-16  Andrey Kiselev  <[email protected]>
3780
3781	* libtiff 3.7.0 released.
3782
37832004-10-15  Bob Friesenhahn  <[email protected]>
3784
3785	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
3786	in this file so its inclusion is removed.  Including stdio.h
3787	sometimes incurs an INT32 typedef conflict between MinGW's
3788	basetsd.h and libjpeg's jmorecfg.h.
3789
37902004-10-15  Andrey Kiselev  <[email protected]>
3791
3792	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
3793
37942004-10-13  Bob Friesenhahn  <[email protected]>
3795
3796	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
3797	conflict noticed under MinGW.
3798	* ltmain.sh: Fix for MinGW compilation.
3799
38002004-10-13  Frank Warmerdam  <[email protected]>
3801
3802	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
3803	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
3804
38052004-10-12  Andrey Kiselev  <[email protected]>
3806
3807	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
3808	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
3809	properly (Dmitry V. Levin, Marcus Meissner).
3810
38112004-10-11  Andrey Kiselev  <[email protected]>
3812
3813	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
3814	to TIFF_IFD.
3815
38162004-10-10  Andrey Kiselev  <[email protected]>
3817
3818	* tools/bmp2tif.c: Check the space allocation results.
3819
38202004-10-09  Andrey Kiselev  <[email protected]>
3821
3822	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
3823	of the TIFFDirectory structure with the 0 instead of -1 to avoid
3824	confusing integer overflows in TIFFTileRowSize() for striped images.
3825
3826	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
3827	by Ross A. Finlayson.
3828
3829	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
3830
3831	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
3832
38332004-10-08  Frank Warmerdam  <[email protected]>
3834
3835	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
3836	of tif_fieldinfo.
3837
3838	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
3839
38402004-10-04  Bob Friesenhahn  <[email protected]>
3841
3842	* contrib/iptcutil/README: Added the missing README which goes
3843	along with iptcutil.
3844
38452004-10-03  Andrey Kiselev  <[email protected]>
3846
3847	* libtiff/tif_compress.c: Improved error reporting in
3848	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
3849
38502004-10-02  Andrey Kiselev  <[email protected]>
3851
3852	* libtiff 3.7.0beta2 released.
3853
3854	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
3855	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
3856	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
3857	allocations and	integer overflows (Dmitry V. Levin).
3858
3859	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
3860
38612004-10-01  Frank Warmerdam  <[email protected]>
3862
3863	* libtiff/tif_open.c: added a more informative message if a BigTIFF
3864	file is opened.
3865
38662004-09-30  Frank Warmerdam  <[email protected]>
3867
3868	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
3869	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
3870	in the Adobe XMP Specification.
3871
38722004-09-29  Andrey Kiselev  <[email protected]>
3873
3874	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
3875	memset().
3876
3877	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
3878	from Dmitry V. Levin to fix possible integer overflow problems.
3879
38802004-09-28  Andrey Kiselev  <[email protected]>
3881
3882	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
3883	(Dmitry V. Levin).
3884
38852004-09-26  Andrey Kiselev  <[email protected]>
3886
3887	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
3888	Optimize checking for the strip bounds.
3889
3890	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
3891	TIFFRasterScanlineSize() functions report zero in the case of integer
3892	overflow now. Properly handle this case in TIFFReadDirectory()
3893	(patches from Dmitry V. Levin).
3894
38952004-09-25  Andrey Kiselev  <[email protected]>
3896
3897	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
3898	macro where appropriate.
3899
3900	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
3901	noted by Gennady Khokhorin.
3902
3903	* libtiff/tif_dirread.c: Always check the return values, returned
3904	by the _TIFFmalloc() (Dmitry V. Levin).
3905
3906	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
3907	functions (Dmitry V. Levin).
3908
3909	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
3910	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
3911	TIFFGrowStrips() (found by Dmitry V. Levin).
3912
39132004-09-24  Andrey Kiselev  <[email protected]>
3914
3915	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
3916	to get the list of configured codecs.
3917
3918	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
3919	Dmitry V. Levin.
3920
39212004-09-23  Andrey Kiselev  <[email protected]>
3922
3923	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
3924	possible integer overflow in CheckMalloc() function.
3925
39262004-09-22  Andrey Kiselev  <[email protected]>
3927
3928	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
3929	of plain TIFFhowmany() where appropriate.
3930
39312004-09-21  Andrey Kiselev  <[email protected]>
3932
3933	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
3934
39352004-09-19  Andrey Kiselev  <[email protected]>
3936
3937	* libtiff 3.7.0beta released.
3938
3939	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
3940	overruns fixed, as noted by Chris Evans.
3941
39422004-09-14  Bob Friesenhahn  <[email protected]>
3943
3944	* commit: Added a script to make it more convenient to commit
3945	updates.  The CVS commit message is extracted from this ChangeLog
3946	file.
3947
39482004-09-14  Andrey Kiselev  <[email protected]>
3949
3950	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
3951	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
3952	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
3953	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
3954	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
3955	tif_config.h.in, tiffiop.h}:
3956	Get rid of BSD data types (u_char, u_short, u_int, u_long).
3957
39582004-09-13  Bob Friesenhahn  <[email protected]>
3959
3960	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
3961	specification. Reference libtiff bug tracking system to submit
3962	private tag additions.
3963
39642004-09-12  Bob Friesenhahn  <[email protected]>
3965
3966	* tools/tiffgt.c: Include "tif_config.h".
3967
3968	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
3969	tiffgt.  This results in the 'compile' script being added to the
3970	project.
3971
3972	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
3973	required to find OpenGL headers necessary to build tiffgt.  Also
3974	ensure that the libtiff that we built is used rather than some other
3975	libtiff installed on the system.
3976
39772004-09-12  Andrey Kiselev  <[email protected]>
3978
3979	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
3980	libraries.
3981
39822004-09-11  Bob Friesenhahn  <[email protected]>
3983
3984	* configure.ac: Pass library configuration defines via
3985	tif_config.h rather than extending CPPFLAGS. Configure a
3986	libtiff/tiffconf.h in order to satisfy application requirements
3987	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
3988	this causes failure to build on systems which properly respect
3989	this request.
3990
3991	* libtiff/tiffconf.h.in: New file to act as the template for the
3992	configured tiffconf.h
3993
3994	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
3995
39962004-09-10  Frank Warmerdam  <[email protected]>
3997
3998	* html/internals.html: Split off a discussion of adding new tags
3999	into addingtags.html.
4000
40012004-09-10  Andrey Kiselev  <[email protected]>
4002
4003	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
4004
4005	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
4006
4007	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4008
4009	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
4010
4011	* libtiff/tif_dirread.c: Don't reject to read tags of the
4012	SamplesPerPixel size when the tag count is greater than number of
4013	samples as per bug
4014
4015	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
4016
4017	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
4018	defining int8/uint8/... etc. types. As per bug
4019
4020	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
4021
40222004-09-09  Frank Warmerdam  <[email protected]>
4023
4024	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
4025	to avoid compile warnings about getopt() and a few other things.
4026
40272004-09-02  Andrey Kiselev  <[email protected]>
4028
4029	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
4030	assigning magic in TIFFFetchFloat().
4031
40322004-09-01  Andrey Kiselev  <[email protected]>
4033
4034	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
4035	to avoid requirement for tiffiop.h inclusion in some applications. See
4036	here
4037
4038	http://www.asmail.be/msg0054799560.html
4039
4040	for details.
4041
4042	* tools/fax2tiff.c: Use the new functions in the code.
4043
40442004-08-25  Andrey Kiselev  <[email protected]>
4045
4046	* tools/tiff2pdf.c: Initialize arrays properly.
4047
4048	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
4049	properly initialize array in PSDataBW().
4050
40512004-08-24  Andrey Kiselev  <[email protected]>
4052
4053	* tools/tiff2pdf.c: More fixes for bug
4054
4055	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4056
4057	from Ross Finlayson.
4058
40592004-08-23  Andrey Kiselev  <[email protected]>
4060
4061	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4062
4063	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4064	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4065
4066	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4067
4068	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4069
40702004-08-20  Andrey Kiselev  <[email protected]>
4071
4072	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4073	that the input file has compression, photometric interpretation,
4074	etcetra, tags or if not than a more descriptive error is returned.
4075
4076	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4077	code, responsible for tag data type checking.
4078
40792004-08-19  Andrey Kiselev  <[email protected]>
4080
4081	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4082	variable as per bug
4083
4084	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4085
40862004-08-16  Andrey Kiselev  <[email protected]>
4087
4088	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4089	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4090
40912004-08-01  Andrey Kiselev  <[email protected]>
4092
4093	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4094	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4095
40962004-07-24  Andrey Kiselev  <[email protected]>
4097
4098	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4099	separate package. All libtiff tools are updated to not advertise an
4100	abcence of LZW support.
4101
41022004-07-12  Andrey Kiselev  <[email protected]>
4103
4104	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4105
41062004-07-11  Andrey Kiselev  <[email protected]>
4107
4108	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4109	messages, as suggested by Bernd Herd.
4110
41112004-07-03  Andrey Kiselev  <[email protected]>
4112
4113	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4114	when setting custom tags by value. Reported by Eric Fieleke.
4115
41162004-06-14  Andrey Kiselev  <[email protected]>
4117
4118	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4119
41202004-06-08  Andrey Kiselev  <[email protected]>
4121
4122	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4123	into TIFFs.
4124
41252004-06-07  Andrey Kiselev  <[email protected]>
4126
4127	* libtiff 3.7.0alpha released.
4128
41292004-06-06  Andrey Kiselev  <[email protected]>
4130
4131	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4132	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4133	ones :-).
4134
4135	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4136	problems in 64-bit environment).
4137
41382004-06-05  Andrey Kiselev  <[email protected]>
4139
4140	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4141	Tags can be supplied by the mnemonic name or number.
4142
4143	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4144	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4145
41462004-05-27  Andrey Kiselev  <[email protected]>
4147
4148	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4149	markers as per bug
4150
4151	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4152
41532004-05-24  Andrey Kiselev  <[email protected]>
4154
4155	* tools/tiffsplit.c: Don't forget to copy Photometric
4156	Interpretation tag.
4157
41582004-05-20  Andrey Kiselev  <[email protected]>
4159
4160	* libtiff/{tif_open.c, tiffio.h}: New function added:
4161	TIFFIsBigEndian(). Function returns nonzero if given was file written
4162	in big-endian order.
4163
4164	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4165	files. Now output files will be written using the same byte order
4166	flag as	in the input image. See
4167
4168	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4169
4170	for details.
4171
41722004-05-19  Frank Warmerdam  <[email protected]>
4173
4174	* libtiff/tif_print.c: added (untested) support for printing
4175	SSHORT, SLONG and SRATIONAL fields.
4176
4177	* tools/tiffcp.c: close output file on normal exit.
4178
41792004-05-17  Andrey Kiselev  <[email protected]>
4180
4181	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4182	if compression type mismatches. See
4183
4184	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4185
41862004-04-30  Andrey Kiselev  <[email protected]>
4187
4188	* libtiff/tif_strip.c: Never return 0 from the
4189	TIFFNumberOfStrips().
4190
41912004-04-29  Andrey Kiselev  <[email protected]>
4192
4193	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4194	store single SampleFormat value for multisampled images. See
4195
4196	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4197
41982004-04-25  Andrey Kiselev  <[email protected]>
4199
4200	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4201	int16 and int32 types to avoid complains on some compilers. Details at
4202
4203	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4204
42052004-04-20  Andrey Kiselev  <[email protected]>
4206
4207	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4208
4209	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4210
42112004-04-14  Andrey Kiselev  <[email protected]>
4212
4213	* libtiff/tif_write.c: Allow in-place updating of the compressed
4214	images (don't work properly with all codecs). For details see GDAL bug
4215
4216	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4217
42182004-04-06  Andrey Kiselev  <[email protected]>
4219
4220	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4221	in the Intergarph JPEG compressed TIFF images as per bug:
4222
4223	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4224
42252004-04-04  Frank Warmerdam  <[email protected]>
4226
4227	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4228	via bad2.
4229
42302004-03-26  Andrey Kiselev  <[email protected]>
4231
4232	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4233	JPEG compression of grayscale images.
4234
4235	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
4236	present in the input image.
4237
42382004-03-19  Andrey Kiselev  <[email protected]>
4239
4240	* {many}: The first attempt to switch to autotools.
4241
42422004-03-03  Andrey Kiselev  <[email protected]>
4243
4244	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
4245	TIFFClientOpen() when the appropriate client functions was not
4246	supplied by user.
4247
42482004-03-02  Frank Warmerdam  <[email protected]>
4249
4250	* tools/ycbcr.c: fixed main() declaration as per:
4251	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
4252
42532004-02-26  Andrey Kiselev  <[email protected]>
4254
4255	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
4256	images. Reported by Artem Mirolubov.
4257
4258	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
4259	tag type in TIFFFetchNormalTag() as per bug
4260
4261	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
4262
42632004-02-17  Frank Warmerdam  <[email protected]>
4264
4265	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
4266	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
4267
42682004-02-05  Andrey Kiselev  <[email protected]>
4269
4270	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
4271	bug
4272
4273	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
4274
4275	But we need more work on fax codec to support update mode.
4276
42772004-01-30  Frank Warmerdam  <[email protected]>
4278
4279	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
4280	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
4281	Scott Reynolds.
4282
42832004-01-29  Andrey Kiselev  <[email protected]>
4284
4285	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
4286	and TIFFTAG_INDEXED as per bug
4287
4288	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
4289
4290	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
4291	NULL before proceeding further as per bug
4292
4293	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
4294
4295	Check results, returned by the TIFFFdOpen() before returning and close
4296	file if TIFFFdOpen() failed as per bug
4297
4298	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4299
4300	* libtiff/tif_open.c: More fixes for
4301
4302	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4303
43042004-01-28  Andrey Kiselev  <[email protected]>
4305
4306	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
4307	TIFFCleanup() from the TIFFClose() in order to fix the bug
4308
4309	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4310
4311	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
4312	InkNames tag as per bug
4313
4314	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
4315
4316	Memory leak fixed.
4317
43182004-01-21  Frank Warmerdam  <[email protected]>
4319
4320	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
4321	are field_passcount=TRUE properly.  Arguably anonymous custom tags
4322	should be declared as passcount=FALSE, but I don't want to change
4323	that without a careful review.
4324
43252004-01-20  Andrey Kiselev  <[email protected]>
4326
4327	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
4328	stripped image in TIFFWriteBufferSetup(). As per bug
4329
4330	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
4331
43322004-01-11  Andrey Kiselev  <[email protected]>
4333
4334	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
4335	patch from Gerben Koopmans.
4336
4337	* libtiff/tif_dirread.c: Check field_passcount value before setting
4338	the value of undefined type, patch from Gerben Koopmans.
4339
43402004-01-02  Andrey Kiselev  <[email protected]>
4341
4342	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
4343	non-RGB images.
4344
43452003-12-31  Andrey Kiselev  <[email protected]>
4346
4347	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
4348	pointer passed. Patch supplied by Larry Grill.
4349
4350	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
4351	suggested by Jeremy C. Reed.
4352
43532003-12-26  Andrey Kiselev  <[email protected]>
4354
4355	* libtiff 3.6.1 released.
4356
43572003-12-24  Andrey Kiselev  <[email protected]>
4358
4359	* config.guess, config.sub: Updated from the recent upstream.
4360
43612003-12-22  Andrey Kiselev  <[email protected]>
4362
4363	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
4364	More cleanups in color conversion interface, added appropriate manual
4365	page.
4366
43672003-12-19  Andrey Kiselev  <[email protected]>
4368
4369	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
4370	per bug
4371
4372	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4373
4374	* tools/tiff2ps.c: Added support for alpha channel. Fixes
4375
4376	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
4377
4378	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
4379	Interface for Lab->RGB color conversion is finally cleaned up.
4380	Added support for ReferenceBlackWhite tag handling when converted from
4381	YCbCr color space. The latter closes
4382
4383	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
4384
43852003-12-07  Andrey Kiselev  <[email protected]>
4386
4387	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
4388
4389	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
4390	library.
4391
43922003-12-06  Andrey Kiselev  <[email protected]>
4393
4394	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
4395	file and properly use it for CIE Lab->RGB transform.
4396
43972003-12-04  Andrey Kiselev  <[email protected]>
4398
4399	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
4400	conversion routines now in the tif_color.c module. New function
4401	TIFFYCbCrtoRGB() available in TIFF API.
4402
4403	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
4404
44052003-12-03  Andrey Kiselev  <[email protected]>
4406
4407	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
4408	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
4409	module.
4410
4411	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
4412	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
4413	Finally resolved problems with orientation handling. TIFFRGBAImage
4414	interface now properly supports all possible orientations, i.e. images
4415	will be flipped both in horizontal and vertical directions if
4416	required. 'Known bugs' section now removed from the appropriate manual
4417	pages. Closed bug entry:
4418
4419	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4420
44212003-12-02  Andrey Kiselev  <[email protected]>
4422
4423	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
4424	function calls as per bug
4425
4426	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
4427
44282003-11-28 Ross Finlayson  <[email protected]>
4429
4430	* tools/tiff2pdf.c:  Some bugs fixed.
4431
44322003-11-27  Andrey Kiselev  <[email protected]>
4433
4434	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
4435	reported by Antonio Scuri.
4436
4437	* man/tiff2pdf.1: Few improvements in page layout.
4438
4439	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
4440	 Added support fpr tiff2pdf manual page.
4441
44422003-11-26 Ross Finlayson  <[email protected]>
4443
4444	* /man/tiff2pdf.1:  File added to repository.
4445
44462003-11-26  Andrey Kiselev  <[email protected]>
4447
4448	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
4449	 Added support fpr tiff2pdf utility.
4450
44512003-11-25  Ross Finlayson  <[email protected]>
4452
4453	* /tools/tiff2pdf.c:  File added to repository.
4454
44552003-11-22  Andrey Kiselev  <[email protected]>
4456
4457	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
4458
44592003-11-21  Andrey Kiselev  <[email protected]>
4460
4461	* /tools/raw2tiff.c: #include <getopt.h> removed.
4462
4463	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
4464	sgigt utility removed and replaced with the completely rewritten
4465	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
4466	there is a lot of things to improve.
4467
4468	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
4469	extract the fields from the OJPEG files. Patch supplied by Ross
4470	Finlayson.
4471
4472	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
4473	Added new function TIFFIsCODECConfigured(), suggested by Ross
4474	Finlayson.
4475
44762003-11-18  Andrey Kiselev  <[email protected]>
4477
4478	* libtiff/tif_dirinfo.c: Implemented binary search in
4479	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
4480
4481	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
4482	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
4483
44842003-11-17  Frank Warmerdam  <[email protected]>
4485
4486	* tif_dirread.c: do not mark all anonymously defined tags to be
4487	IGNOREd.
4488
44892003-11-17  Andrey Kiselev  <[email protected]>
4490
4491	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
4492	TIFFDataWidth() function insted of tiffDataWidth array.
4493
44942003-11-16  Andrey Kiselev  <[email protected]>
4495
4496	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
4497	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
4498
44992003-11-15  Frank Warmerdam  <[email protected]>
4500
4501	* Makefile.in: fixed missing backslash for tif_color.c in list.
4502
45032003-11-13  Andrey Kiselev  <[email protected]>
4504
4505	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
4506	New color space conversion code: CIE L*a*b* 1976 images now supported
4507	by the TIFFRGBAImage interface. All introduced routines go to new
4508	module tif_color.c. Eventually all color conversion functions should
4509	be moved there.
4510
45112003-11-12  Andrey Kiselev  <[email protected]>
4512
4513	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
4514	with the reverse byte order (it is reported by the magic header
4515	field). Problem reported by Andreas Wiesmann.
4516
4517	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
4518	calculation function. Guessing mechanics now documented in manual page.
4519
45202003-11-11  Andrey Kiselev  <[email protected]>
4521
4522	* tools/raw2tiff.c: Implemented image size guessing using
4523	correlation coefficient calculation between two neighbour lines.
4524
45252003-11-09  Frank Warmerdam  <[email protected]>
4526
4527	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
4528	planarconfig_contig case in TIFFComputeTile().
4529
4530	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
4531
45322003-11-09  Andrey Kiselev  <[email protected]>
4533
4534	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
4535
45362003-11-07  Andrey Kiselev  <[email protected]>
4537
4538	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
4539	Added TIFFRawStripSize() function as suggested by Chris Hanson.
4540
45412003-11-03  Andrey Kiselev  <[email protected]>
4542
4543	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
4544	per bug
4545
4546	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
4547
45482003-10-29  Andrey Kiselev  <[email protected]>
4549
4550	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
4551
4552	* html/build.html: Added note about GNU make requirement.
4553
45542003-10-25  Andrey Kiselev  <[email protected]>
4555
4556	* Makefile.in: Fixes in using MAKEFLAGS as per bug
4557
4558	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
4559
4560	* port/install.sh.in: Option -p added to the mkdir command to create
4561	all directory tree structure before installing.
4562
45632003-10-18  Andrey Kiselev  <[email protected]>
4564
4565	* /tools/tiff2ps.c: #include <strings.h> replaced with the
4566	#include <string.h>.
4567
45682003-10-16  Andrey Kiselev  <[email protected]>
4569
4570	* Makefile.in: Add an absolute path to the test_pics.sh call.
4571
45722003-10-12  Andrey Kiselev  <[email protected]>
4573
4574	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
4575	typedefs.
4576
45772003-10-09  Andrey Kiselev  <[email protected]>
4578
4579	* configure, libtiff/{Makefile.in, mkversion.c}:
4580	Relative buildings fixed.
4581
4582	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
4583	rule.
4584
45852003-10-07  Andrey Kiselev  <[email protected]>
4586
4587	* Makefile.in: Added missed v3.6.0.html.
4588
4589	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
4590	ORIENTATION_BOTLEFT.
4591
45922003-10-04  Andrey Kiselev  <[email protected]>
4593
4594	* 3.6.0 final release.
4595
45962003-10-03  Andrey Kiselev  <[email protected]>
4597
4598	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
4599	function TIFFReadRGBAImageOriented() implemented to retrieve raster
4600	array with user-specified origin position as suggested by Jason Frank.
4601	See
4602
4603	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4604
4605	for details.
4606
4607	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
4608	instead of TIFFReadRGBAImage().
4609
4610	* tools/tiff2ps.c: Fixed possible endless loop as per bug
4611
4612	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
4613
46142003-09-30  Andrey Kiselev  <[email protected]>
4615
4616	* libtiff/tif_dirread.c: Check field counter against number of fields
4617	in order to fix
4618
4619	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
4620
4621	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
4622
4623	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
4624
46252003-09-25  Andrey Kiselev  <[email protected]>
4626
4627	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
4628	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
4629
4630	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
4631
46322003-09-23  Andrey Kiselev  <[email protected]>
4633
4634	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
4635
4636	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4637
46382003-08-21  Andrey Kiselev  <[email protected]>
4639
4640	* tools/tiffmedian.c: int declaration replaced with the uint32 to
4641	support large images as per bug
4642
4643	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
4644
46452003-08-12  Andrey Kiselev  <[email protected]>
4646
4647 	* libtiff/Makefile.in: Fixed problem with building in different
4648	directory.
4649
4650	* tools/tiff2ps.c: Added missing #include <strings.h>.
4651
4652	* libtiff/tif_dirwrite.c: More fixes for custom tags code
4653	from Ashley Dreier.
4654
46552003-08-07  Andrey Kiselev  <[email protected]>
4656
4657	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
4658	Patch submitted by Balatoni Denes (with corrections from Tom
4659	Kacvinsky).
4660
4661	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
4662	being used. Reported by Tom Kacvinsky.
4663
4664	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
4665	reported by Ashley Dreier.
4666
4667	* libtiff/tif_print.c: Fixed problem with float tags reading, support
4668	for printing RATIONAL and BYTE tags added.
4669
46702003-08-05  Andrey Kiselev  <[email protected]>
4671
4672	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
4673	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
4674	problems with predictor initialization. Remove O_RDONLY check during
4675	state block allocation to be able open LZW compressed files in update
4676	mode.
4677
4678	Problem exist for libtiff version of the tif_lzw.c module. One from
4679	lzw-compression-kit hasn't such troubles.
4680
46812003-08-04  Frank Warmerdam  <[email protected]>
4682
4683	* libtiff/tif_write.c: modified tif_write.c so that the various
4684	encoded write functions use tif_postdecode() to apply byte order
4685	swapping (swab) to the application passed data buffer if the same
4686	would be done when reading.  This allows us to write pixel data with
4687	more than 8 bits per sample to existing files of a non-native byte
4688	order.  One side effect of this change is the applications buffer
4689	itself is altered in this case by the act of writing.
4690
4691	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
4692
46932003-07-25  Frank Warmerdam  <[email protected]>
4694
4695	* libtiff/tif_open.c: avoid signed/unsigned casting warning
4696	initializing typemask as per patch from J.A. Strother.
4697
4698	* tools/tiffcp.c: fixed signed/unsigned casting warning.
4699
4700	* libtiff/tif_print.c: dos2unix conversion.
4701
4702	* tools/tiffsplit.c: increased the maximum number of pages that
4703	can be split.  Patch provided by Andrew J. Montalenti.
4704
47052003-07-11  Andrey Kiselev  <[email protected]>
4706
4707	* tools/raw2tiff.c: Added option `-p' to explicitly select color
4708	space of input image data. Closes
4709
4710	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
4711
47122003-07-08  Frank Warmerdam  <[email protected]>
4713
4714	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
4715	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
4716	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
4717	avoid casting warning at /W4.
4718
47192003-07-03  Andrey Kiselev  <[email protected]>
4720
4721	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
4722
47232003-06-30  Andrey Kiselev  <[email protected]>
4724
4725	* libtiff/tif_pixarlog.c: Unused variables removed.
4726
4727	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
4728	EstimateStripByteCounts() as per bug
4729
4730	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4731
4732	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
4733	64-bit architectures as per bug
4734
4735	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4736
4737	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
4738	unknown data type.
4739
47402003-06-19  Frank Warmerdam  <[email protected]>
4741
4742	* libtiff/tif_print.c: fixed some serious bugs when printing
4743	custom tags ... almost certain to crash.
4744
4745	* libtiff/tif_dirread.c: Don't ignore custom fields that are
4746	autodefined.  Not sure how this got to be like this.
4747
47482003-06-18  Andrey Kiselev  <[email protected]>
4749
4750	* 3.6.0 Beta2 released.
4751
4752	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
4753	comparing as per bug
4754
4755	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
4756
4757	`-z' option now can be used to set the number of reported different
4758	bytes.
4759
47602003-06-09  Andrey Kiselev  <[email protected]>
4761
4762	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
4763	to -r option to get the entire image as one strip. See
4764
4765	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4766
4767	for details.
4768
47692003-06-04  Andrey Kiselev  <[email protected]>
4770
4771	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
4772	values as per bug
4773
4774	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4775
47762003-05-27  Frank Warmerdam  <[email protected]>
4777
4778	* libtiff/tif_jpeg.c: modified segment_height calculation to always
4779	be a full height tile for tiled images.  Also changed error to just
4780	be a warning.
4781
47822003-05-25  Andrey Kiselev  <[email protected]>
4783
4784	* tools/fax2tiff.c: Page numbering fixed, as per bug
4785
4786	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
4787
47882003-05-20  Andrey Kiselev  <[email protected]>
4789
4790	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4791	configure, Makefile.in:	Switched back to the old behaviour. Likely
4792	better solution should be found for OJPEG support.
4793
47942003-05-11  Andrey Kiselev  <[email protected]>
4795
4796	* libtiff/mkversion.c: Fixed problem with wrong string size when
4797	reading RELEASE-DATE file.
4798
47992003-05-07  Andrey Kiselev  <[email protected]>
4800
4801	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
4802	index was out of range.
4803
48042003-05-06  Andrey Kiselev  <[email protected]>
4805
4806	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4807	configure, Makefile.in:	Improved libtiff compilation with OJPEG
4808	support. Now no need for patching IJG JPEG library, hack requred by
4809	libtiff will be compiled and used in-place. Implemented with
4810	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
4811
4812	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
4813	TIFFVGetFieldDefaulted() function.
4814
48152003-05-05  Andrey Kiselev  <[email protected]>
4816
4817	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
4818	comments.
4819
4820	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
4821	was not copied from source image.
4822
4823	* libtiff/getimage.c: Workaround for some images without correct
4824	info about alpha channel as per bug
4825
4826	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
4827
48282003-04-29  Andrey Kiselev  <[email protected]>
4829
4830	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
4831	It basically allows one to use the /flateDecode filter for ZIP
4832	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
4833
4834	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
4835
4836	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
4837	as per bug
4838
4839	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
4840
48412003-04-17  Andrey Kiselev  <[email protected]>
4842
4843	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
4844	due to problems with multidirectory images. Quality of error messages
4845	improved.
4846
48472003-04-16  Andrey Kiselev  <[email protected]>
4848
4849	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
4850	encoded images. See bug entries
4851
4852	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
4853
4854	and
4855
4856	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
4857
4858	* libtiff/tif_dirread.c: Additional check for StripByteCounts
4859	correctness. Fixes
4860
4861	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
4862
48632003-03-12  Andrey Kiselev  <[email protected]>
4864
4865	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
4866	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
4867	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
4868	tiffmedian.c}: Added library version reporting facility to all tools.
4869
48702003-03-06  Frank Warmerdam  <[email protected]>
4871
4872	* port/install.sh.in: Fixed problems with install producing paths
4873	like ///usr/local/lib on cygwin.
4874
48752003-02-27  Andrey Kiselev  <[email protected]>
4876
4877	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
4878	raw input page. Patch supplied by Julien Gaulmin. See
4879
4880	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
4881
4882	for details.
4883
48842003-02-26  Frank Warmerdam  <[email protected]>
4885
4886	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
4887	responsible for byte swapping complex image data.
4888
4889	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
4890	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
4891
48922003-02-07  Andrey Kiselev  <[email protected]>
4893
4894	* tools/ppm2tiff.c: Fixed problem with too many arguments.
4895
48962003-02-04  Andrey Kiselev  <[email protected]>
4897
4898	* tools/raw2tiff.c: Memory leak fixed.
4899
49002003-02-03  Andrey Kiselev  <[email protected]>
4901
4902	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
4903	(thanks, Julien!). More switches for fax2tiff tool for better control
4904	of input and output. Details at
4905
4906	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
4907
49082003-02-03  Frank Warmerdam  <[email protected]>
4909
4910	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
4911	library so that we can check if there is already any tile/strip data
4912	before deciding between creating a compressor or a decompressor.
4913
49142003-01-31  Frank Warmerdam  <[email protected]>
4915
4916	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
4917	a pre-existing compressed image.  That is, image writing to
4918	pre-existing compressed images is not allowed.
4919
4920	* libtiff/tif_open.c: Removed error if opening a compressed file
4921	in update mode.
4922
4923	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
4924
49252003-01-31  Andrey Kiselev  <[email protected]>
4926
4927	* config.guess, config.sub: Updated to recent upstream versions.
4928
49292003-01-15  Frank Warmerdam  <[email protected]>
4930
4931	* cut 3.6.0 Beta release.
4932
49332002-12-20  Andrey Kiselev  <[email protected]>
4934
4935	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
4936	in wrong way as per bug
4937
4938	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
4939
49402002-12-17  Frank Warmerdam  <[email protected]>
4941
4942	* libtiff/tif_dirread.c: Allow wrong sized arrays in
4943	TIFFFetchStripThing().
4944
4945	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
4946
49472002-12-02  Frank Warmerdam  <[email protected]>
4948
4949	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
4950	Was using realloc even first time.  Fix by Igor Venevtsev.
4951
49522002-11-30  Frank Warmerdam  <[email protected]>
4953
4954	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
4955	field value.
4956
4957	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
4958	tags in TIFFVGetField() ... added missing break.
4959
49602002-10-14  Frank Warmerdam  <[email protected]>
4961
4962	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
4963	the scanline buffer long enough when writing rgb triplets.
4964	The scanline needs to be 3 X the number of dots or else it will
4965	contain	an incomplete triplet and programs that try to separate
4966	the eps by redefining the colorimage operator will get messed up.
4967	Patch supplied by William Bader.
4968
4969	* Makefile.in: added tif_extension.c to file list as per
4970	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
4971
49722002-10-11  Andrey Kiselev  <[email protected]>
4973
4974	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
4975	large files (>2GiB) supporting. New option in the config.site:
4976	LARGEFILE="yes". Should be enough for I/O of the large files.
4977
49782002-10-10  Frank Warmerdam  <[email protected]>
4979
4980	* libtiff/html/v3.6.0.html: new release notes.
4981
4982	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
4983	link for Andrey.  Pointer to v3.6.0.html.
4984
4985	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
4986
49872002-10-07  Andrey Kiselev  <[email protected]>
4988	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
4989	(thanks, Sebastian!). New switches:
4990	-b # for a bottom margin of # inches
4991	-c   center image
4992	-l # for a left margin of # inches
4993	-r   rotate the image by 180 degrees
4994	New features merged with code for shrinking/overlapping.
4995	Previously added -c and -n switches (for overriding PS units) renamed
4996	in -x and -y respectively.
4997
4998	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
4999
5000	* html/man/*.html: Updated from actual manual pages.
5001
50022002-10-06  Frank Warmerdam  <[email protected]>
5003
5004	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
5005	size on windows.  Use #define boolean hack.
5006
5007	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
5008
5009	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
5010	USING_VISUALAGE is defined.
5011
5012	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5013
50142002-10-03  Frank Warmerdam  <[email protected]>
5015
5016	* libtiff/tiff.h: added COMPRESSION_JP2000.
5017
50182002-10-02  Andrey Kiselev  <[email protected]>
5019
5020	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
5021	by the TIFFFetchByteArray() function. Should finally resolve
5022
5023	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5024
5025	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
5026
5027	* html/Makefile.in: New targets added: html and groffhtml for
5028	producing HTML representations of the manual pages automatically.
5029	html target uses man2html tool, groffhtml uses groff tool.
5030
50312002-09-29  Frank Warmerdam  <[email protected]>
5032
5033	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
5034	from John H. DuBois III.
5035
50362002-09-15  Andrey Kiselev  <[email protected]>
5037
5038	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
5039	manual page for raw2tiff(1) tool.
5040
50412002-09-12  Andrey Kiselev  <[email protected]>
5042
5043	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
5044	the tiffio.h header file.
5045
5046	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
5047	manual page for TIFFDataWidth() function
5048
50492002-09-08  Frank Warmerdam  <[email protected]>
5050
5051	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
5052	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
5053
5054	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
5055	since we are unable to properly include the amount to skip.
5056
5057	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
5058
50592002-09-02  Andrey Kiselev  <[email protected]>
5060
5061	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5062	in TIFFFetchByteArray(). Problem described at
5063	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5064
50652002-08-22  Andrey Kiselev  <[email protected]>
5066
5067	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5068	in _TIFFSetupFieldInfo() function.
5069	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5070
5071	* /libtiff/tif_lzw.c: Additional consistency checking added in
5072	LZWDecode() and LZWDecodeCompat().
5073	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5074	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5075
5076	* /libtiff/tif_lzw.c:
5077	Added check for valid code lengths in LZWDecode() and
5078	LZWDecodeCompat(). Fixes
5079	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5080
50812002-08-16  Andrey Kiselev  <[email protected]>
5082
5083	* /libtiff/{Makefile.vc, libtiff.def}:
5084	Missed declarations added.
5085
50862002-08-15  Frank Warmerdam  <[email protected]>
5087
5088	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5089	return code from the underlying pick function.
5090
5091	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5092
5093	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5094	with FIELD_CUSTOM as mentioned in bug 169.
5095
5096	* tif_close.c: added logic to free dynamically created anonymous
5097	field definitions to correct a small memory leak.
5098
5099	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5100
51012002-08-10  Andrey Kiselev  <[email protected]>
5102
5103	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5104	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5105
51062002-07-31  Frank Warmerdam  <[email protected]>
5107
5108	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5109	JPEGDecode() as per bugzilla bug (issue 1):
5110
5111	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5112
5113	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5114	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5115	present in the tiff tags.
5116
5117	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5118
5119	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5120	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5121	fooled with the value.
5122
5123	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5124
51252002-06-22  Andrey Kiselev  <[email protected]>
5126
5127	* /tools/tiff2ps.c: Added workaround for some software that may crash
5128	when last strip of image contains fewer number of scanlines than
5129	specified by the `/Height' variable. See
5130	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5131	for explanation.
5132
51332002-06-21  Andrey Kiselev  <[email protected]>
5134
5135	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5136	splitting long images in several pages. See
5137	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5138	Patch granted by John Williams <[email protected]>.
5139
51402002-06-11  Frank Warmerdam  <[email protected]>
5141
5142	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5143	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5144	This one is described in:
5145
5146	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5147
5148	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5149
5150	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5151
51522002-05-10  Andrey Kiselev  <[email protected]>
5153
5154	* tools/tiff2ps: New commandline switches to override resolution
5155	units obtained from the input file. Closes
5156	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5157
51582002-04-26  Andrey Kiselev  <[email protected]>
5159
5160	* libtiff/libtiff.def: Added missed declaration.
5161
51622002-04-22  Andrey Kiselev  <[email protected]>
5163
5164	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5165	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5166
51672002-04-20  Andrey Kiselev  <[email protected]>
5168
5169	* libtiff/tif_open.c: Pointers to custom procedures
5170	in TIFFClientOpen() are checked to be not NULL-pointers.
5171
51722002-04-18  Andrey Kiselev  <[email protected]>
5173
5174	* libtiff/libtiff.def: Added missed declarations.
5175
5176	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5177
51782002-04-16  Andrey Kiselev  <[email protected]>
5179
5180	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5181	Should finally close
5182	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5183
51842002-04-10  Andrey Kiselev  <[email protected]>
5185
5186	* tools/tiff2ps: Division by zero fixed.
5187	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5188
51892002-04-09  Andrey Kiselev  <[email protected]>
5190
5191	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5192	TIFFCheckpointDirectory() routine added.
5193	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5194
5195	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5196	for the new function.
5197
51982002-04-08  Andrey Kiselev  <[email protected]>
5199
5200	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5201	additional members tif->tif_decodestatus and tif->tif_encodestatus
5202	for correct handling of unconfigured codecs (we should not try to read
5203	data or to define data size without correct codecs).
5204
5205	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5206	changed. Now it has used tif->tif_decodestatus and
5207	tif->tif_encodestatus.
5208	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5209	case of __cvs_8.tif test image).
5210
5211	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5212	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5213	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5214	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5215
52162002-04-04  Andrey Kiselev  <[email protected]>
5217
5218	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5219	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5220	files by skipping bad strips.
5221	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5222
52232002-04-03  Frank Warmerdam  <[email protected]>
5224
5225	* libtiff/tif_dirwrite.c: Removed some dead code.
5226
5227	* libtiff/*: Cleanup some warnings.
5228
5229	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5230	for variable length FIELD_CUSTOM values.  Was int * but should be
5231	u_short *.
5232
52332002-04-01  Andrey Kiselev  <[email protected]>
5234
5235	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
5236	utility (at cpStripToTile routine).
5237
52382002-03-27  Frank Warmerdam  <[email protected]>
5239
5240	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
5241
5242	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
5243
5244	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
5245	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
5246
5247	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
5248	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
5249
52502002-03-26  Dwight Kelly  <[email protected]>
5251
5252	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5253	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
5254	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
5255	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
5256	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
5257	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
5258
52592002-03-26  Andrey Kiselev  <[email protected]>
5260
5261	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
5262	now also uses TIFFRGBAImageOK before reading. This is additional fix
5263	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5264
52652002-03-25  Andrey Kiselev  <[email protected]>
5266
5267	* libtiff/: tif_getimage.c: Additional check for supported
5268	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
5269	TIFFRGBAImageOK before reading.
5270	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5271
52722002-03-15  Andrey Kiselev  <[email protected]>
5273
5274	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5275	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
5276	TIFFDataType sizes instead of working with tiffDataWidth array
5277	directly. Should prevent out-of-borders bugs in case of unknown or
5278	broken data types.  EstimateStripByteCounts routine modified, so it
5279	won't work when tags with uknown sizes founded.
5280	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
5281
52822002-03-13  Andrey Kiselev  <[email protected]>
5283
5284	* libtiff/tif_getimage.c: Added support for correct handling
5285	`Orientation' tag in gtTileContig. Should be added in other gt*
5286	functions as well, but I have not images for testing yet. Partially
5287	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5288
52892002-03-10  Andrey Kiselev  <[email protected]>
5290
5291	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
5292	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
5293	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
5294	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
5295
52962002-03-08  Andrey Kiselev  <[email protected]>
5297
5298	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
5299	be stripped when installing, utility binaries will do.	Closes
5300	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5301
53022002-02-28  Frank Warmerdam  <[email protected]>
5303
5304	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
5305
5306	* man/libtiff.3t: added copyright tag info.
5307
53082002-02-11  Frank Warmerdam  <[email protected]>
5309
5310	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
5311
5312	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5313
5314	* man/Makefile.in: Patch DESTDIR handling
5315
5316	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
5317
5318	* configure: OpenBSD changes for Sparc64 and DSO version.
5319
5320	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
5321
53222002-02-05  Frank Warmerdam  <[email protected]>
5323
5324	* config.site/configure: added support for OJPEG=yes option to enable
5325	OJPEG support from config.site.
5326
53272002-01-27  Frank Warmerdam  <[email protected]>
5328
5329	* html/document.html: fixed links for TIFf 6 docs.
5330
53312002-01-18  Frank Warmerdam  <[email protected]>
5332
5333	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
5334
5335	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
5336	decodestrip function returns anything not greater than zero as per
5337	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
5338
5339	* configure: Modify CheckForBigEndian so it can work in a cross
5340	compiled situation.
5341
53422002-01-16  Frank Warmerdam  <[email protected]>
5343
5344	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
5345
5346	* tools/tiffset.c: fix bug in error reporting.
5347
5348	* tools/tiffcp.c: fix several warnings that show up with -Wall.
5349
53502002-01-04  Frank Warmerdam  <[email protected]>
5351
5352	* libtiff/tif_jpeg.c: fixed computation of segment_width for
5353	tiles files to avoid error about it not matching the
5354	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
5355	size.") for ITIFF files.  Apparently the problem was incorporated since
5356	3.5.5, presumably during the OJPEG/JPEG work recently.
5357
53582001-12-15  Frank Warmerdam  <[email protected]>
5359
5360	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
5361
5362	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5363
5364	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
5365	(defined in tiffconf.h - 1 by default) then the RGBA interface
5366	will assume that a fourth extra sample is ASSOCALPHA if the
5367	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
5368	the library, but makes it work better with RGBA files produced by
5369	lots of applications that don't mark the alpha values properly.
5370
5371	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5372	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
5373
53742001-12-12  Frank Warmerdam  <[email protected]>
5375
5376	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
5377	override those from tiff directory.  This makes this work with
5378	ImageGear generated files.
5379
53802001-12-07  Frank Warmerdam  <[email protected]>
5381
5382	* html/Makefile.in: added missing images per bug 92.
5383
5384	* port/Makefile.in: fixed clean target per bug 92.
5385
53862001-11-28  Frank Warmerdam  <[email protected]>
5387
5388	* Reissue 3.5.7 release.
5389
5390	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
5391	YYYYMMDD so that it is increasing over time.
5392
5393	* Makefile.in: Ensure that tiffvers.h is regenerated in the
5394	make release target.
5395
5396	* Makefile.in: added libtiff/tiffvers.h to the release file list.
5397
53982001-11-23  Frank Warmerdam  <[email protected]>
5399
5400	* added html/v3.5.7.html, updated html/index.html.
5401
5402	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
5403
54042001-11-15  Frank Warmerdam  <[email protected]>
5405
5406	* configure: fixed test for -lm.
5407
54082001-11-02  Frank Warmerdam  <[email protected]>
5409
5410	* Added PHOTOMETRIC_ITULAB as per bug 90.
5411
5412	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
5413
54142001-10-10  Frank Warmerdam  <[email protected]>
5415
5416	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
5417	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
5418	in keeping with TIFF 6.0 standard in tiff.h
5419
5420	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
5421
54222001-09-26  Frank Warmerdam  <[email protected]>
5423
5424	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
5425	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
5426
54272001-09-24  Frank Warmerdam  <[email protected]>
5428
5429	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
5430
5431	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
5432
5433	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
5434	error about LZW not being available.
5435
5436	* libtiff/tif_dir.c: propagate failure to initialize compression
5437	back from TIFFSetField() as an error status, so applications can
5438	detect failure.
5439
5440	* libtiff/tif_dir.c: removed the auto replacement of
5441	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
5442
5443	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
5444	from CVS as they are all supposed to be auto-generated by configure.
5445
54462001-09-22  Frank Warmerdam  <[email protected]>
5447
5448	* libtiff/tif_ojpeg.c: new update from Scott.
5449
54502001-09-09  Frank Warmerdam  <[email protected]>
5451
5452	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
5453	always use the "safe" version, even if there is a very slight
5454	cost in performance.
5455
5456	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
5457
5458	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
5459	in two places.
5460
5461	* libtiff/tif_getimage.c: Fixed problem with reading strips or
5462	tiles that don't start on a tile boundary.  Fix contributed by
5463	Josep Vallverdu (from HP), and further described in bug 47.
5464
5465	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
5466
5467	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
5468
5469	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
5470
54712001-09-06  Frank Warmerdam  <[email protected]>
5472
5473	* libtiff/tif_packbits.c: fixed memory overrun error.
5474
5475	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
5476
54772001-08-31  Frank Warmerdam  <[email protected]>
5478
5479	* libtiff/tif_getimage.c: relax handling of contig case where
5480	there are extra samples that are supposed to be ignored.  This
5481	should now work for 8bit greyscale or palletted images.
5482
5483	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
5484
54852001-08-28  Frank Warmerdam  <[email protected]>
5486
5487	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
5488	images with more than four samples per pixel.  See:
5489
5490	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
5491
54922001-08-10  Frank Warmerdam  <[email protected]>
5493
5494	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
5495	in TIFFReadRGBATile() to avoid issues in cases of overlapping
5496	buffers.  See Bug 69 in Bugzilla.
5497
5498	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
5499
5500	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
5501
55022001-08-09  Frank Warmerdam  <[email protected]>
5503
5504	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
5505	when checking for 64 bit architectures as per bugzilla bug 67.
5506
55072001-07-27  Frank Warmerdam  <[email protected]>
5508
5509	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
5510	bug 66.
5511
55122001-07-20  Frank Warmerdam  <[email protected]>
5513
5514	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
5515	has been included.
5516
55172001-07-19  Frank Warmerdam  <[email protected]>
5518
5519	* libtiff/tif_open.c: Seek back to zero after failed read,
5520	before writing header.
5521
55222001-07-18  Frank Warmerdam  <[email protected]>
5523
5524	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
5525	much better.  Now depends on having patched libjpeg as per
5526	patch in contrib/ojpeg/*.
5527
55282001-07-17  Frank Warmerdam  <[email protected]>
5529
5530	* */Makefile.in: added DESTDIR support.
5531
5532	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
5533
55342001-07-16  Frank Warmerdam  <[email protected]>
5535
5536	* configure, libtiff/Makefile.in: applied OpenBSD patches
5537	as per:
5538
5539	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
5540
55412001-06-28  Frank Warmerdam  <[email protected]>
5542
5543	* libtiff/tif_getimage.c: Fixed so that failure is properly
5544	reported by gtTileContig, gtStripContig, gtTileSeparate and
5545	gtStripSeparate.
5546
5547	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
5548
5549	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
5550	Updated bug section of tiffcmp.1 to note tiled file issues.
5551
5552	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
5553
55542001-06-22  Frank Warmerdam  <[email protected]>
5555
5556	* configure: Changes for DSO generation on AIX provided by
5557	John Marquart <[email protected]>.
5558
5559	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
5560	on Darwin thanks to Robert Krajewski ([email protected]) and
5561	Keisuke Fujii ([email protected]).
5562
55632001-06-13  Frank Warmerdam  <[email protected]>
5564
5565	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
5566
5567	* man/tiff2rgba.1: new
5568
55692001-05-22  Frank Warmerdam  <[email protected]>
5570
5571	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
5572
55732001-05-13  Frank Warmerdam  <[email protected]>
5574
5575	* libtiff/tools/thumbnail.c: changed default output compression
5576	to packbits from LZW since LZW isn't generally available.
5577
55782001-05-12  Frank Warmerdam  <[email protected]>
5579
5580	* libtiff/tif_ojpeg.c: New.
5581	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
5582	to OJPEG support.
5583
5584	Scott Marovich <[email protected]> supplied OJPEG support.
5585
55862001-05-11  Frank Warmerdam  <[email protected]>
5587
5588	* tiff.h: removed, it duplicates libtiff/tiff.h.
5589
55902001-05-08  Frank Warmerdam  <[email protected]>
5591
5592	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
5593	ensure everything is in order.
5594
5595	* libtiff/libtiff.def: added TIFFCreateDirectory and
5596	TIFFDefaultStripSize as per:
5597
5598	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
5599
56002001-05-02  Frank Warmerdam  <[email protected]>
5601
5602	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
5603	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
5604	force use of uint32 counts instead of short counts.
5605
5606	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
5607	case of writing TIFF_BYTE/TIFF_SBYTE fields.
5608
5609	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
5610
56112001-05-01  Frank Warmerdam  <[email protected]>
5612
5613	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
5614	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
5615
56162001-04-05  Frank Warmerdam  <[email protected]>
5617
5618	* tiffio.h: removed C++ style comment.
5619
5620	* configure: fixed up SCRIPT_SH/SHELL handling.
5621
5622	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
5623
5624	* config.guess: documented more variables as per bug 40.
5625
56262001-04-03  Frank Warmerdam  <[email protected]>
5627
5628	* configure, *Makefile.in: Various changes to improve configuration
5629	for HP/UX specifically, and also in general.  They include:
5630	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
5631	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
5632	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
5633	 - Use -${MAKEFLAGS} in sub makes from makefiles.
5634
5635	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
5636
56372001-04-02  Frank Warmerdam  <[email protected]>
5638
5639	* libtiff/tiff.h: Applied hac to try and resolve the problem
5640	with the inttypes.h include file on AIX.
5641
5642	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5643
5644	* VERSION: update to 3.5.7 beta in preparation for release.
5645
5646	* configure/config.site: modified to check if -lm is needed for
5647	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
5648
5649	* config.guess: updated wholesale to an FSF version apparently
5650	from 1998 (as opposed to 1994).  This is mainly inspired by
5651	providing for MacOS X support.
5652
56532001-03-29  Frank Warmerdam  <[email protected]>
5654
5655	* configure, Makefile.in, etc: added support for OPTIMIZER being
5656	set from config.site.
5657
56582001-03-28  Frank Warmerdam  <[email protected]>
5659
5660	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
5661
5662	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
5663	sizes. It fixes two problems:
5664
5665	Without	scaling (-S) the fax is now centered on the page size specified
5666	with -H	and/or -W. Before, fax2ps was using an obscure and practially
5667	useless algorithm to allocate the image relative to Letter sized paper
5668	which sometime sled to useless whitespace on the paper, while at the
5669	same time cutting of the faxes printable area at the opposite border.
5670
5671	Second, scaling now preserves aspect ratio, which makes unusual faxes
5672	(in particular short ones) print properly.
5673
5674	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
5675
5676	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
5677	Bruce A. Mallett.  See check message for detailed information
5678	on all the changes, including a faster encoder, fixes for level
5679	2 PostScript, and support for the imagemask operator.
5680
56812001-03-27  Frank Warmerdam  <[email protected]>
5682
5683	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
5684	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
5685
5686	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5687
56882001-03-16  Frank Warmerdam  <[email protected]>
5689
5690	* tif_dirinfo.c: moved definition of copyright tag in field list.
5691	Apparently they have to be in sorted order by tag id.
5692
56932001-03-13  Frank Warmerdam  <[email protected]>
5694
5695	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
5696	images in RGBA interface.
5697
56982001-03-02  Frank Warmerdam  <[email protected]>
5699
5700	* Added TIFFTAG_COPYRIGHT support.
5701
57022001-02-19  Frank Warmerdam  <[email protected]>
5703
5704	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
5705	with support for extracting subimages with the ,n syntax, and also
5706	adding the -b bias removal flag.
5707
57082001-02-16  Frank Warmerdam  <[email protected]>
5709
5710	* libtiff/libtiff.def: Brent Roman submitted new version adding
5711	serveral missing entry points.
5712
5713	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
5714	Some sort of weird VMS thing.
5715
5716	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
5717
5718	* tif_luv.c/tiff.h/tiffio.h:
5719	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
5720	([email protected]).  He writes:
5721
5722	1) I improved the gamut-mapping function in tif_luv.c for imaginary
5723	colors, because some images were being super-saturated on the input
5724	side and this resulted in some strange color shifts in the output.
5725
5726	2) I added a psuedotag in tiff.h to control random dithering during
5727	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
5728	on for 24-bit LogLuv output.  Dithering improves the average color
5729	accuracy over the image.
5730
5731	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
5732	tiffio.h, to expose internal routines for converting between LogLuv and
5733	XYZ coordinates.  This is helpful for writing more efficient,
5734	specialized conversion routines, especially for reading LogLuv files.
5735
5736	Changes applied with minor edits.
5737
57382001-01-23  Frank Warmerdam  <[email protected]>
5739
5740	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
5741	whether we are encoding or decoding.  This is to ensure graceful
5742	recovery if TIFFClientOpen() discovers an attempt to open a compressed
5743	file for "r+" access, and subsequently close it, as it resets the
5744	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
5745	compressor's concept of whether it is in encode or decode mode.
5746
57472001-01-08  Mike Welles <[email protected]>
5748
5749	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
5750
57512001-01-07  Frank Warmerdam  <[email protected]>
5752
5753	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
5754	as per bug report by Patrick Connor.
5755
57562000-12-28  Frank Warmerdam  <[email protected]>
5757
5758	* Added RELEASE-DATE file to release file list.
5759
5760	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
5761
57622000-12-22  Mike Welles <[email protected]>
5763        * added link to CVS mirror from index.html
5764
5765	* updated html/internals.html to note that LZW compression is
5766	  not supported by default.
5767
57682000-12-22  Frank Warmerdam  <[email protected]>
5769
5770	* updated html/libtiff.html to not point at Niles' old JPL web site
5771	for the man pages, point at www.libtiff.org.
5772
57732000-12-21  Frank Warmerdam  <[email protected]>
5774
5775	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
5776	Leonard Rosenthol <[email protected]>.  May interfere
5777	with correct building on older systems.  If so, please let me know.
5778
57792000-12-19 Mike Welles <[email protected]>
5780
5781	* Took out LZW Encoding from tif_lzw.c
5782
5783	* Created HOWTO-RELEASE
5784
5785	* Created html/v3.5.6.html
5786
5787	* updated index.html
5788
57892000-12-01  Frank Warmerdam  <[email protected]>
5790
5791	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
5792	Patches supplied by Frank Cringle <[email protected]>
5793	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
5794
57952000-11-24  Frank Warmerdam  <[email protected]>
5796
5797	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
5798	target so that the private headers required by libgeotiff can be
5799	installed with the others.  They are not installed by default.
5800
5801	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
5802	targets so libtiff.so will be built with an explicit dependency
5803	on libm.so.
5804
5805	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
5806	libtiff.so.3.5.5.
5807
5808	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
5809	file, or ALPHA version logic.  Added stuff about DIST_POINT in
5810	place of DIST_TYPE and the alpha release number stuff.
5811
58122000-11-22  Frank Warmerdam  <[email protected]>
5813
5814	* I have applied a patch from Steffen Moeller <[email protected]> to
5815	the configure script so that it now accepts the --prefix, and
5816	--exec-prefix directives.
5817
58182000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
5819
5820	* I have made a variety of modifications in an effort to ensure the
5821	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
5822	file which seems to be updated regularly.
5823
5824	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
5825	   version include file.
5826	 o renamed version.h to tiffvers.h because we now have to install it
5827	   with the public libtiff include files.
5828	 o include tiffvers.h in tiffio.h.
5829	 o updated tif_version.c to use tiffvers.h.
5830	 o Updated Makefile.in accordingly.
5831
5832	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
5833	I have updated the win32 detection rules in tiffcomp.h.
5834
58352000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
5836
5837	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
5838	the strip/tile width and height aren't multiples of the sampling size.
5839	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
5840	Some patches from Rick LaMont of Dot C Software.
5841
5842	* Modified tif_packbits.c encoder to avoid compressing more
5843	data than provided if rowsize doesn't factor into provided data
5844	(such as occurs for YCbCr).
5845
58462000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
5847
5848	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
5849	roundup if rows_per_strip not a multiple of vertical sample size.
5850
58512000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
5852
5853	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
5854	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5855	from [email protected].
5856
5857	* Modified tif_packbits.c decoding to avoid overrunning the
5858	output buffer, and to issue a warning if data needs to be
5859	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5860
58612000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
5862
5863	* Modified tiff2bw to ensure portions add to 100%, and that
5864	white is properly recovered.
5865
5866	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
5867	Patch c/o Stanislav Brabec <[email protected]>
5868
58692000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
5870
5871	* Modified TIFFClientOpen() to emit an error on an attempt to
5872	open a comperessed file for update (O_RDWR/r+) access.  This is
5873	because the compressor/decompressor code gets very confused when
5874	the mode is O_RDWR, assuming this means writing only.  See
5875	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
5876
58772000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
5878
5879	* Added GNULDdso target an`d switched linux and freebsd to use it.
5880
58812000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
5882
5883	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
5884	of EXPAND1D() as per bug 11 (from Roman).
5885
58862000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
5887	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
5888	cygwin compatibility.
5889
5890	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
5891	be a proper fix to the buffer sizing problem.  See
5892	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
5893
5894	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
5895	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
5896	Thanks to Nick Lamb <[email protected]> for reporting the
5897	bug and proving the patch.
5898
58992000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
5900
5901	* Fixed tif_jpeg.c so avoid destroying the decompressor before
5902	we are done access data thanks to bug report from:
5903	Michael Eckstein <[email protected]>.
5904
5905	* Reverted tif_flush change.
5906
59072000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
5908
5909	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
5910	error when TIFF_BEENWRITING is not set.  This ensures that the
5911	directory contents can still be flushed by TIFFFlush().
5912
59132000-08-14  Frank Warmerdam  <[email protected]>
5914
5915	* tif_open.c: Don't set MMAP for O_RDWR files.
5916
5917	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
5918	so that files opened for update can be strip chopped too.
5919
5920	* tif_read.c: fixed up bug with files missing rowsperstrip and
5921	the strips per separation fix done a few weeks ago.
5922
59232000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
5924
5925	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
5926	SAMPLEFORMAT_COMPLEXINT.
5927
59282000-07-13  Mike Welles <[email protected]>
5929
5930	* index.html, bugs.html: added bugzilla info.
5931
59322000-07-12  Frank Warmerdam  <[email protected]>
5933
5934	* tif_read.c: fix subtle bug with determining the number of
5935	rows for strips that are the last strip in a separation but
5936	not the last strip of all in TIFFReadEncodedStrip().
5937
5938	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
5939	Peter Skarpetis <[email protected]>
5940
59412000-06-15  Frank Warmerdam  <[email protected]>
5942
5943	* Modified tiffio.h logic with regard to including windows.h.  It
5944	won't include it when building with __CYGWIN__.
5945
59462000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
5947
5948	* README: update to mention www.libtiff.org, don't list Sam's old
5949	email address.
5950
5951	* configure: Fixed DSO test for Linux as per patch from
5952	  Jan Van Buggenhout <[email protected]>.
5953
59542000-04-21  Frank Warmerdam  <[email protected]>
5955
5956	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
5957	one tile/strip images with an offset, and byte count of zero. These
5958	could be "unpopulated" images.
5959
59602000-04-18  Frank Warmerdam  <[email protected]>
5961
5962	* contrib/addtiffo: Added "averaging" resampling option.
5963
5964	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
5965
5966Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
5967
5968	* tools/Makefile.in: Modified to install properly on SGI.
5969
59702000-04-12  Mike Welles	     <[email protected]>
5971	* configure:  Fixed stupid mistake in libc6 test on Linux
5972
59732000-04-04  Mike Welles	     <[email protected]>
5974	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
5975	  caught by BoundsChecker.  From Arvan Pritchard
5976	  <[email protected]>  (untested).
5977
5978	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
5979	  Arvan Pritchard <[email protected]>
5980
5981	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
5982	  Arvan Pritchard <[email protected]>
5983
59842000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
5985
5986	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
5987
59882000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
5989
5990	* fax2ps: Fixed mixup of width and height in bounding box statement
5991	as per submission by Nalin Dahyabhai <[email protected]>.
5992
59932000-03-27  Mike Welles	     <[email protected]>
5994
5995	* fax2ps:  Modified printruns to take uint32 instead of uint16.
5996	Patch courtesy of Bernt Herd <[email protected]>
5997
59982000-03-20  Mike Welles	     <[email protected]>
5999
6000	* configure: added test for libc6 for linux targets.  Bug reported by
6001        Stanislav Brabec <[email protected]>
6002
6003	* Added 3.5 docs to html/Makefile.in.
6004	Thanks to  Stanislav Brabec <[email protected]>
6005
6006	* configure: fixed bugs in sed scripts
6007	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
6008	fix submitted to Stanislav Brabec <[email protected]>
6009
6010	* tools/iptcutil was not in files list, and wasn't being
6011	added to tar archive.  Updated Makefile.in.
6012
60132000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
6014
6015	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
6016	conversion for the run arrays.
6017
60182000-03-03  Frank Warmerdam  <[email protected]>
6019
6020	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
6021	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
6022
60232000-03-02  Frank Warmerdam  <[email protected]>
6024
6025	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
6026
6027	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
6028	to avoid overruns encountered with frle_bug.tif.
6029
6030Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
6031
6032	* Fixed tools/tiffcmp so that stopondiff testing works.
6033	  Patch care of Joseph Orost <[email protected]>.
6034
60352000-01-28    <warmerda@CS46980-B>
6036
6037	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
6038	  set to 1, and added default (off) setting in tiffconf.h.  This
6039	  should eventually be set by the configure script somehow.
6040
6041	  The original work on all these 2-4GB changes was done by
6042	  Peter Smith ([email protected]).
6043
6044	* Modified tif_win32.c to support 2-4GB seeks.
6045
6046	* tentatively changed toff_t to be unsigned instead of signed to
6047	  facilitate support for 2-4GB files.
6048
6049	* Updated a variety of files to use toff_t.  Fixed some mixups
6050	  between toff_t and tsize_t.
6051
6052Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
6053
6054	* Largely reimplemented contrib/addtiffo to avoid temp files,
6055	updating the TIFF file in place.  Fixed a few other bugs to.
6056
6057	* Set tif_rawdatasize to zero when freeing raw data buffer in
6058	TIFFWriteDirectory().
6059
6060	* Enabled "REWRITE_HACK" in tif_write.c by default.
6061
6062	* Fix bug in tif_write.c when switching between reading one directory
6063	and writing to another.
6064
6065	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6066
6067Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6068
6069	* Added TIFFmemory(3t) functions to libtiff.def.
6070
6071Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6072
6073	* Added libtiff/libtiff.def to TIFFILES distribution list.
6074
6075Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6076
6077	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6078
6079	* Altered descriptions in tools to reflect "by default" lzw not supported
6080
6081	* Updated index.html to note lzw compression kit.
6082
6083Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6084
6085	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6086
6087Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6088
6089	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6090
6091	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6092	  when LZW compression invoked.
6093
6094	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6095	  in tools to reflect removal of LZW compression
6096
6097Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6098
6099        * Fixed bug that caused LZW (non) compression to segfault. Added
6100	  warning about LZW compression removed being removed, and why.
6101
6102	* Added nostrip to install in tools/Makefile.in so that debugging
6103	  symbols are kept.
6104
6105Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6106
6107	* Added patch from Ivo Penzar <[email protected]>,
6108	  supporting Adobe ZIP deflate.  Untested.
6109
6110Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6111
6112	* Made Packbits the default compression in tools/tiff2rgba.c instead
6113	of LZW.
6114
6115Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6116
6117	* Added tif_luv to contrib/djgpp/Makefile.lib.
6118
6119Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6120
6121        * Added zip creation to relase makefile target
6122
6123	* Added html for TIFFWriteTile.3t man page.
6124
6125Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6126
6127	* Added some changes to tif_write.c to support rewriting existing
6128	fixed sized tiles and strips.  Code mods disabled by default, only
6129	enabled if REWRITE_HACK is defined for now.
6130
6131Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6132
6133	* Added TIFFWriteTile.3t man page.
6134
6135Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6136
6137	* Added notes on use of makefile.vc in build.html, and fixed
6138	email subscription address.
6139
6140199-11-28  Mike Welles <[email protected]>
6141
6142	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6143
6144	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6145	   from Bruce Carmeron <[email protected]> -- modifications of
6146	   changes made by Frank (sun cc still complained on cast).
6147
6148	*  Added tiffconf.h to install target per request from Bill
6149	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6150 	   know features have been compiled into the TIFF library in order to
6151	   handle things properly".
6152
6153Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6154
6155	* fixed various VC++ warnings as suggested by Gilles Vollant
6156	<[email protected]>.
6157
6158Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6159
6160	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6161	not imply applications are responsible for image data swapping.
6162
61631999-11-22  Mike Welles <[email protected]>
6164	*  HTML-ized the man pages, added to html/man
6165
6166	*  Removed LZW Compression to comply with Unisys patent extortion.
6167
61681999-09-29  Mike Welles		<[email protected]>
6169	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6170	   From Ivo Penzar <[email protected].
6171
6172	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6173	   memory mapped files. <[email protected]>
6174
61751999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6176	* Corrected alpha versioning.
6177
6178	* Removed distinction between  alpha and release targets in Makefile.in.
6179
6180	* added release.stamp target, which tags cvs tree, and updates
6181	  "RELEASE-DATE"
6182
6183	* added releasediff target, which diffs tree with source as of
6184	  date in "RELEASE-DATE"
6185
6186	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6187	  away from alpha/non-alpha distinctions).
6188
6189	* updated html to reflect release
6190
61911999-09-23    <warmerda@CS46980-B>
6192
6193	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6194
6195	* Added CYGWIN case in configure.
6196
6197Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6198
6199	* Applied Francois Dagand's patch to handle fax decompression bug.
6200	  (sizes >= 65536 were failing)
6201
6202Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6203
6204	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6205	  by Christopher Lawton <[email protected]>
6206
6207Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6208
6209	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6210	  Albert Chin-A-Young <[email protected]>
6211
6212	* Added TIFFReassignTagToIgnore() API on behalf of
6213	  Bruce Cameron <[email protected]>.  Man page still pending.
6214
6215Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6216
6217	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6218	files to provide for a rudimentary testsuite.
6219
6220	* Added contrib/tags back from old distribution ... fixed up a bit.
6221
62221999-08-16    <warmerda@CS46980-B>
6223
6224	* Added simple makefile.vc makefiles for building with MS VC++
6225	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6226	better solutions for some users.
6227
6228Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6229
6230	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6231	put it in tools since part of it is in C++.
6232
62331999-08-16  Michael L. Welles  <[email protected]>
6234
6235	* Updated html/index.html with anon CVS instructions.
6236
6237Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
6238
6239	* pre-remove so link before softlink in LINUXdso action in
6240	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
6241	the first.
6242
6243	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
6244	colormaps owned by the TIFF handle itself when trying to fixup wrong
6245	(eight bit) colormaps.  Corrected by maintaining a private copy of
6246	the colormap.
6247
6248	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
6249	tif_getimage.c.
6250
6251	* CVS Repository placed at remotesensing.org.  ChangeLog added.
6252