xref: /libtiff-4.0.7/ChangeLog (revision 1752529e)
12015-05-27  Bob Friesenhahn  <[email protected]>
2
3	* tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical
4	vs. bitwise operator".
5
62015-03-02  Even Rouault  <[email protected]>
7
8	* tools/tiffdither.c: check memory allocations to avoid writing to
9	NULL pointer. Also check multiplication overflow. Fixes #2501,
10	CVE-2014-8128. Derived from patch by Petr Gajdos.
11
122015-01-26  Even Rouault  <[email protected]>
13
14	* add html/v4.0.4beta.html under version control
15	* HOWTO-RELEASE: write that cvs add html/vX.X.html must be used
16
172015-01-26  Even Rouault  <[email protected]>
18
19	* libtiff 4.0.4beta released
20
212015-01-26  Even Rouault  <[email protected]>
22
23	* automake: updated to 1.15
24	* libtool: updated to 2.4.5
25
262015-01-22  Even Rouault  <[email protected]>
27
28	* tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
29
302015-01-05  Frank Warmerdam  <[email protected]>
31
32	* html/bugs.html: remove note about needing to email the tiff mailing
33	list administrator about being approved for membership, this appears
34	not to be true.
35
362015-01-05  Olivier Paquet  <[email protected]>
37
38	* tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
39
402015-01-03  Even Rouault  <[email protected]>
41
42	* libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
43	when reading more than 65535 directories, and effectively error out when
44	reaching that limit.
45
462014-12-29  Even Rouault  <[email protected]>
47
48	* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
49	markers to avoid emitting a warning (even if, according to the TechNote,
50	there are admitedly unusual/not recommended or even forbidden variants, but
51	they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
52	SOF9 and SOF10).
53	Define in_color_space and input_components to the right values in
54	JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
55	libjpeg API documentation, so as to be compatible with mozjpeg library.
56	Note: the default settings of mozjpeg will produce progressive scans, which
57	is forbidden by the TechNote.
58
592014-12-29  Even Rouault  <[email protected]>
60
61	* libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
62	to avoid buffer leak (fix previous fix, found by Coverity scan)
63
642014-12-29  Even Rouault  <[email protected]>
65
66	* libtiff/tif_next.c: add new tests to check that we don't read outside of
67	the compressed input stream buffer.
68
69	* libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
70    in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
71    putcontig8bitYCbCr21tile cases.
72
732014-12-27  Even Rouault  <[email protected]>
74
75	* libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
76	extented tags installed by user code through the extender mechaninm before
77	calling the extender callback (GDAL #5054)
78
792014-12-26  Bob Friesenhahn  <[email protected]>
80
81	* tools/tiffcrop.c: Fix warnings about variables set but not used.
82
83	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
84	but not used.
85
86	* tools/tiffgt.c: Fix warnings about unused parameters.
87
88	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
89
902014-12-25  Even Rouault  <[email protected]>
91
92	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
93	various typos found by Debian lintian tool (GDAL #5756)
94
952014-12-24  Even Rouault  <[email protected]>
96
97	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
98	http://bugzilla.maptools.org/show_bug.cgi?id=2235
99
1002014-12-24  Even Rouault  <[email protected]>
101
102	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
103	http://bugzilla.maptools.org/show_bug.cgi?id=2445
104
1052014-12-24  Even Rouault  <[email protected]>
106
107	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
108	Derived from patch by Petr Gajdos,
109	http://bugzilla.maptools.org/show_bug.cgi?id=2443
110
1112014-12-23  Even Rouault  <[email protected]>
112
113	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
114	of _TIFFFillStriles(). This solves crashing bug on corrupted
115	images generated by afl.
116
1172014-12-23  Even Rouault  <[email protected]>
118
119	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
120	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
121	images generated by afl.
122
1232014-12-21  Bob Friesenhahn  <[email protected]>
124
125	* tools/tiffdump.c: Guard against arithmetic overflow when
126	calculating allocation buffer sizes.
127
1282014-12-21  Even Rouault  <[email protected]>
129
130	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
131	SamplesPerPixel = 3. Enforce that
132	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
133
1342014-12-21  Even Rouault  <[email protected]>
135
136	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
137	copying. The right fix would be to properly copy it, but not worth the burden
138	for those esoteric utilities.
139	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
140
1412014-12-21  Even Rouault  <[email protected]>
142
143	* tools/thumbnail.c: fix out-of-buffer write
144	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
145
1462014-12-21  Even Rouault  <[email protected]>
147
148	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
149	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
150	COMPRESSION_CCITTFAX4
151	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
152
1532014-12-21  Even Rouault  <[email protected]>
154
155	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
156	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
157
1582014-12-21  Even Rouault  <[email protected]>
159
160	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
161	TIFFTAG_SAMPLESPERPIXEL
162
1632014-12-21  Even Rouault  <[email protected]>
164
165	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
166	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
167	Description: fix for Debian bug #741451
168	tiffcp crashes when converting JPEG-encoded TIFF to a different
169	encoding (like none or lzw). For example this will probably fail:
170	tiffcp -c none jpeg_encoded_file.tif output.tif
171	The reason is that when the input file contains JPEG data,
172	the tiffcp code forces conversion to RGB space. However,
173	the output normally inherits YCbCr subsampling parameters
174	from the input, which leads to a smaller working buffer
175	than necessary. The buffer is subsequently overrun inside
176	cpStripToTile() (called from writeBufferToContigTiles).
177	Note that the resulting TIFF file would be scrambled even
178	if tiffcp wouldn't crash, since the output file would contain
179	RGB data intepreted as subsampled YCbCr values.
180	This patch fixes the problem by forcing RGB space on the output
181	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
182	Author: Tomasz Buchert <[email protected]>
183
1842014-12-21  Even Rouault  <[email protected]>
185
186	Fix various crasher bugs on fuzzed images.
187	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
188	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
189	the directory
190	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
191	TransferFunction if BitsPerSample has not yet been read, otherwise reading
192	it later will cause user code to crash if BitsPerSample > 1
193	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
194	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
195	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
196	instead of imagewidth to avoid crash
197	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
198	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
199	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
200	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
201	* tools/tiffdump.c: fix crash due to overflow of entry count.
202
2032014-12-15  Even Rouault  <[email protected]>
204
205	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
206	all tiles/strips to include quantization tables even when the jpegtablesmode
207	had the JPEGTABLESMODE_QUANT bit set.
208	Also add explicit removal of Huffman tables when jpegtablesmode has the
209	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
210	first tile/strip (only useful in update scenarios. create-only was
211	fine)
212
2132014-12-09  Bob Friesenhahn  <[email protected]>
214
215	* tools/tiff2pdf.c: Assure that memory size calculations for
216	_TIFFmalloc() do not overflow the range of tmsize_t.
217
2182014-12-07  Even Rouault  <[email protected]>
219
220	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
221	Valgrind and Address Sanitizer on test suite
222
2232014-12-07  Bob Friesenhahn  <[email protected]>
224
225	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
226	tag can return one channel, with the other two channels set to
227	NULL.  The tiff2pdf code was expecting that other two channels
228	were duplicate pointers in the case where there is only one
229	channel.  Detect this condition in order to avoid a crash, and
230	presumably perform correctly with just one channel.
231
2322014-12-06  Bob Friesenhahn  <[email protected]>
233
234	* tools/tiffdump.c: Fix double-free bug.
235
2362014-11-27  Even Rouault  <[email protected]>
237
238	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
239	Visual Studio 2015 aka VC 14 aka MSVC 1900
240
2412014-11-20  Even Rouault  <[email protected]>
242
243	* libtiff/tif_lzw.c: prevent potential null dereference of
244	sp->dec_codetab in LZWPreDecode (bug #2459)
245
246	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
247	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
248
249	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
250
251	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
252	Coverity happier (not a bug, #2459)
253
254	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
255	(not a bug, #2459)
256
257	* tools/tiff2pdf.c: close PDF file (bug #2479)
258
259	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
260
261	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
262	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
263
264	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
265	(bug #2459) and add missing va_end in dump_info (#2459)
266
267	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
268
2692014-11-20  Even Rouault  <[email protected]>
270	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
271	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
272
2732014-11-20  Even Rouault  <[email protected]>
274	* automake: updated to 1.14.1
275	* libtool: updated to 2.4.3
276	* HOWTO-RELEASE: small update about autotools building order
277
2782014-10-20  Olivier Paquet  <[email protected]>
279	* tools/tiff2pdf.c: Preserve input file directory order when pages
280	are tagged with the same page number.
281
2822014-08-31  Bob Friesenhahn  <[email protected]>
283
284	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
285	count for tag should be a warning rather than an error since
286	errors terminate processing.
287
2882014-06-07  Bob Friesenhahn  <[email protected]>
289
290	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
291	was wrongly described.  Fix suggested by Miguel Medalha.
292
2932014-05-06  Bob Friesenhahn  <[email protected]>
294
295	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
296	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
297	Reviewed and forwarded by Lee Howard.
298
2992013-11-30  Frank Warmerdam  <[email protected]>
300
301	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
302
3032013-10-21  Frank Warmerdam  <[email protected]>
304
305	* libtiff/tif_dir.c: generate error in case of directory count
306	overflow.
307
3082013-10-01  Frank Warmerdam  <[email protected]>
309
310	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
311	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
312
3132013-09-12  Bob Friesenhahn  <[email protected]>
314
315	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
316	be defective, then set it to zero before returning error in order
317	to terminate processing of truncated TIFF.  Issue found and fix
318	suggested by Richard Nolde.
319
3202013-08-14  Frank Warmerdam  <[email protected]>
321
322	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
323
3242013-08-13  Frank Warmerdam  <[email protected]>
325
326	* tools/gif2tiff.c: Be more careful about corrupt or
327	hostile input files (#2450, CVE-2013-4231)
328
329	* tools/tiff2pdf.c: terminate after failure of allocating
330	ycbcr buffer (bug #2449, CVE-2013-4232)
331
3322013-07-09  Frank Warmerdam  <[email protected]>
333
334	* tools/tiffinfo.c: Default various values fetched with
335	TIFFGetField() to avoid being uninitialized.
336
3372013-05-02  Tom Lane  <[email protected]>
338
339	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
340	t2p_process_jpeg_strip to be at least marginally competent.  The
341	approach is still fundamentally flawed, but at least now it won't
342	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
343
3442013-05-02  Tom Lane  <[email protected]>
345
346	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
347 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
348 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
349 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
350 	large enough, and eliminate substantially all uses of sprintf(buf,
351 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
352 	protect against overflow of fixed-size buffers.  This responds in
353 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
354 	t2p_write_pdf_page(), but in general it seems like a good idea to
355 	deprecate use of sprintf().
356
3572013-03-29  Bob Friesenhahn  <[email protected]>
358
359	* configure.ac: Applied patch by Brad Smith to improve pkg-config
360	static linking by adding -lm to Libs.private when needed.
361
3622013-03-05  Tom Lane  <[email protected]>
363
364	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
365 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
366 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
367 	tools/tiffdither.c: Sync tool usage printouts and man pages with
368 	reality (quite a few options had escaped being documented in one
369 	or both places).  Per an old report from Miroslav Vadkerti.
370
3712013-01-25  Bob Friesenhahn  <[email protected]>
372
373	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
374	rotation angle was set by the auto rotate check, it was retained
375	for all pages that followed instead ofa being retested for each
376	page.  Patch by Richard Nolde.
377
3782013-01-18  Frank Warmerdam  <[email protected]>
379
380	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
381	64bit linux.
382
383	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
384	http://bugzilla.maptools.org/show_bug.cgi?id=2427
385
3862012-12-20  Tom Lane  <[email protected]>
387
388	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
389	it will pass with more versions of libjpeg.  (There are at least
390	three in active use now, and JPEG_LIB_VERSION doesn't tell us
391	enough to uniquely identify expected results.)
392
3932012-12-12  Tom Lane  <[email protected]>
394
395	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
396	field_passcount fields: it had the TIFF_VARIABLE and
397	TIFF_VARIABLE2 cases backwards.
398
3992012-12-10  Tom Lane  <[email protected]>
400
401	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
402 	check the linebytes calculation too, get the max() calculation
403 	straight, avoid redundant error messages, check for malloc
404 	failure.
405
4062012-12-10  Tom Lane  <[email protected]>
407
408	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
409 	(to enlarge tbuf for possible partial stride at end) so that
410 	overflow in the integer addition is detected.  Per gripe from
411 	Huzaifa Sidhpurwala.
412
4132012-12-03  Bob Friesenhahn  <[email protected]>
414
415	* tools/tiffset.c: tiffset now supports a -u option to unset a
416	tag.  Patch by Zach Baker. See
417	http://bugzilla.maptools.org/show_bug.cgi?id=2419
418
4192012-11-18  Bob Friesenhahn  <[email protected]>
420
421	* automake: Update Automake to 1.12.5 release.
422
423	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
424	require malloc() to return NULL pointer if requested allocation
425	size is zero.  Assure that _TIFFmalloc does.
426
4272012-11-01  Frank Warmerdam  <[email protected]>
428
429	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
430	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
431	Red Hat Security Response team for the fix.
432
4332012-10-18  Frank Warmerdam  <[email protected]>
434
435	* tif_zip.c: Avoid crash on NULL error messages.
436
4372012-09-22  Bob Friesenhahn  <[email protected]>
438
439	* libtiff 4.0.3 released.
440
4412012-09-20  Bob Friesenhahn  <[email protected]>
442
443	* Makefile.am: Update to Automake 1.12.4
444
4452012-08-19  Bob Friesenhahn  <[email protected]>
446
447	* Makefile.in: Update to Automake 1.12.3
448
449	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
450	some TIFF/FX support in libtiff.  Add the tag definitions to
451	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
452	and also fixes an error in a comment.  Adds the photometric values
453	to tif_print.c, and fixes a bug.  These changes are by Steve
454	Underwood.
455
4562012-08-13  Frank Warmerdam  <[email protected]>
457
458	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
459	compressed file: http://trac.osgeo.org/gdal/ticket/4771
460
4612012-08-02  Frank Warmerdam  <[email protected]>
462
463	* libtiff/tif_dirread.c: report error in case of mismatch value
464	counts for tags (ie. DotRange).
465
4662012-07-26  Tom Lane  <[email protected]>
467
468	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
469 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
470	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
471	as external accessors for the opaque type TIFFField.
472
473	* tools/tiffset.c: Make tiffset use the above functions instead of
474	relying on library private headers.
475
4762012-07-19  Tom Lane  <[email protected]>
477
478	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
479	after a malloc failure.  No crash risk AFAICS, but the program
480	might not report exit code 1 as desired.  h/t [email protected]
481
4822012-07-18  Tom Lane  <[email protected]>
483
484	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
485	prevents core dumps or perhaps even arbitrary code execution when
486	processing a corrupt input file (CVE-2012-3401).
487
4882012-07-06  Bob Friesenhahn  <[email protected]>
489
490	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
491	IJG JPEG 7+ uses a different upsampling algorithm which produces
492	different numeric results.
493
494	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
495	work with IJG JPEG 7+.
496
4972012-07-04  Bob Friesenhahn  <[email protected]>
498
499	* test/raw_decode.c: Add changes so that test can run with build
500	directory outside of source directory.
501
5022012-07-02  Frank Warmerdam  <[email protected]>
503
504	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
505	imagery (http://trac.osgeo.org/gdal/ticket/4732)
506
5072012-06-20  Frank Warmerdam  <[email protected]>
508
509	* libtiff/tif_fax3.c: fix memory initialization of runs, only
510	partly done.
511
512	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
513	full "stride" past the end.
514
5152012-06-19  Frank Warmerdam  <[email protected]>
516
517	* libtiff/tif_packbits.c: fix read past end of data buffer.
518
5192012-06-15  Frank Warmerdam  <[email protected]>
520
521	*  libtiff 4.0.2 released.
522
523	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
524	warnings with clang.
525
5262012-06-15  Tom Lane  <[email protected]>
527
528	* tools/tiff2pdf.c: Defend against integer overflows while
529	calculating required buffer sizes (CVE-2012-2113).
530
5312012-06-12  Frank Warmerdam  <[email protected]>
532
533	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
534
535	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
536
5372012-06-07  Frank Warmerdam  <[email protected]>
538
539	* libtiff/tif_print.c: avoid pretty printing other fields when
540	we don't have the proper amount and type of data or if the field
541	is actually autodefined.
542
5432012-06-05  Frank Warmerdam  <[email protected]>
544
545	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
546	ycbcrsubsampling values result in a runtime error, not just an
547	assertion.
548
549	* tests/custom_dir.c: Add testing of EXIF and custom directory
550	reading and writing.
551
552	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
553	and TIFFCreateEXIFDirectory() functions.
554
555	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
556	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
557	differently.  This is to avoid using special TIFFGetField/TIFFSetField
558	rules for these fields in non-image directories (like EXIF).
559
5602012-06-04  Frank Warmerdam  <[email protected]>
561
562	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
563	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
564	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
565
5662012-06-01  Frank Warmerdam  <[email protected]>
567
568	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
569
570	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
571	http://bugzilla.maptools.org/show_bug.cgi?id=2379
572
573	* libtiff/tif_unix.c: use strerror() to return a more specific error message
574	on failed open.
575	http://bugzilla.maptools.org/show_bug.cgi?id=2341
576
577	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
578	http://bugzilla.maptools.org/show_bug.cgi?id=2386
579
580	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
581	for testing jpeg in tiff image decoding including the "raw" decode interface.
582
5832012-05-31  Frank Warmerdam  <[email protected]>
584
585	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
586	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
587	sampling values.
588
589	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
590
591	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
592	http://bugzilla.maptools.org/show_bug.cgi?id=2398
593
5942012-05-29  Frank Warmerdam  <[email protected]>
595
596	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
597	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
598	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
599	to get/set functions for different tags!
600
601	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
602	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
603
6042012-05-24  Frank Warmerdam  <[email protected]>
605
606	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
607	accumulate" and overwrite the end by one word in at least some cases.
608
6092012-05-23  Frank Warmerdam  <[email protected]>
610
611	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
612
613	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
614
615	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
616	the same image.
617
618	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
619	stripbytecounts or stripoffsets or where loading these fails.
620
621	* libtiff/tif_print.c: be careful about whether min/max values are singular
622	or one per sample.
623
624	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
625	May affect things like ISOSpeedRatings.
626
627	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
628	in some cases.
629
6302012-05-19  Bob Friesenhahn  <[email protected]>
631
632	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
633	example for how to retreive the value of unsupported tags.
634
6352012-03-30  Frank Warmerdam  <[email protected]>
636
637	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
638	care of Tom Lane @ Red Hat.
639
6402012-02-18  Bob Friesenhahn  <[email protected]>
641
642	* libtiff 4.0.1 released.
643
644	* Update automake used to 1.11.3.
645
646	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
647	attribute specification to lessen the risk of accidental macro
648	substitution.  Patch from Vincent Torri.
649
6502012-01-31  Frank Warmerdam  <[email protected]>
651
652	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
653	assumption tag fetching is always successful.
654
655	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
656
6572012-01-22  Bob Friesenhahn  <[email protected]>
658
659	* configure.ac: Add support for using library symbol versioning on
660	ELF systems with the GNU linker.  Support is enabled via
661	--enable-ld-version-script.  Disabled by default for now until
662	there is a decision for how to deploy a libtiff with versioned
663	symbols after libtiff 4.0.0 was already released.
664
6652011-12-22  Bob Friesenhahn  <[email protected]>
666
667	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
668
669	tif_win32.c.  Patch by Edward Lam.
670
671	* configure.ac: Add libtiff private dependency on -llzma for
672	pkg-config.  Patch by Mark Brand.
673	Updated Automake to 1.11.2.
674
6752011-12-21  Bob Friesenhahn  <[email protected]>
676
677	* libtiff 4.0.0 released.
678
6792011-12-08  Frank Warmerdam  <[email protected]>
680
681	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
682	of _TIFFFillStriles() results (#gdal 4372)
683
6842011-12-07  Frank Warmerdam  <[email protected]>
685
686	* libtiff/tif_dirread.c: fixes to deal with invalid files where
687	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
688
689	* libtiff/tif_dirread.c: fix error reporting when there is no
690	tag information struct and name (gdal #4373)
691
6922011-10-22  Bob Friesenhahn  <[email protected]>
693
694	* Update GNU libtool to 2.4.2.
695
696	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
697	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
698	Deroulers.
699
7002011-06-21  Frank Warmerdam  <[email protected]>
701
702	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
703
7042011-05-31  Jim Meyering  <[email protected]>
705
706	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
707	upon failure to allocate "resizeddata".
708	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
709	allocation failure, not before.
710	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
711	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
712	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
713	NULL-deref and possible overflow
714	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
715	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
716	and set of otherwise unused local, data_is_empty.
717	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
718	Diagnose out-of-memory failure and return 0 rather than
719	dereferencing NULL.
720
7212011-05-24  Frank Warmerdam  <[email protected]>
722
723	* libtiff/tif_dirread.c: produce special error message for zero tag
724	directories instead of error out on the malloc(0) failure.
725
7262011-05-16  Frank Warmerdam  <[email protected]>
727
728	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
729	related declarations as they are in active use by libraries
730	such as libgeotiff, and work just fine.  (#2315)
731
7322011-04-20  Frank Warmerdam  <[email protected]>
733
734	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
735	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
736	http://bugzilla.maptools.org/show_bug.cgi?id=2315
737
738	* libtiff/libtiff.def: add some missing (64bit) APIs.
739	http://bugzilla.maptools.org/show_bug.cgi?id=2316
740
7412011-04-09  Bob Friesenhahn  <[email protected]>
742
743	* libtiff 4.0.0beta7 released.
744
7452011-04-09  Bob Friesenhahn  <[email protected]>
746
747	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
748	the run-time target whereas target is used to specify the final
749	output target if the package is a build tool (like a compiler),
750	which libtiff is not.  Resolves libtiff bug 2307 "Use
751	AC_CANONICAL_HOST macro".
752
7532011-04-02  Bob Friesenhahn  <[email protected]>
754
755	* configure.ac: Support configuring TIFF_INT64_FORMAT and
756	TIFF_UINT64_FORMAT appropriately for MinGW32.
757
758	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
759	printf conventions for 64-bit types because it uses the WIN32 CRT.
760
761	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
762	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
763	printf conventions for 64-bit types because it uses the WIN32 CRT.
764
765	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
766	understood by WIN32 CRT.
767
768	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
769
770	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
771	it is much more portable.  Tmpfile is included in ISO/IEC
772	9899:1990 and the WIN32 CRT.
773
7742011-03-26  Frank Warmerdam  <[email protected]>
775
776	* tools/tiffset.c: add -d and -sd switches to allow operation on
777	a particular directory, not just the first (jef).
778
7792011-03-21  Frank Warmerdam  <[email protected]>
780
781	* libtiff/tif_thunder.c: Correct potential buffer overflow with
782	thunder encoded files with wrong bitspersample set.  The libtiff
783	development team would like to thank Marin Barbella and TippingPoint's
784	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
785	CVE-2011-1167).
786	http://bugzilla.maptools.org/show_bug.cgi?id=2300
787
7882011-03-10  Frank Warmerdam  <[email protected]>
789
790	* libtiff/tif_fax3.h: Fix to last change allowing zero length
791	runs at the start of a scanline - needed for legal cases.
792
7932011-03-02  Frank Warmerdam  <[email protected]>
794
795	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
796	a move left.  Without this, a malicious input file can generate an
797	indefinitely large series of runs without a0 ever reaching the right
798	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
799	This is a modified version of a patch proposed by Drew Yao of Apple
800	Product Security.  It adds an unexpected() report, and disallows the
801	equality case, since emitting a run without increasing a0 still allows
802	buffer overrun.
803
8042011-02-23  Frank Warmerdam  <[email protected]>
805
806	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
807
808	* tools/tiff2rgba.c: close source file on error to make leak
809	detection easier.
810
811	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
812
813	http://bugzilla.maptools.org/show_bug.cgi?id=2295
814
8152011-02-22  Frank Warmerdam  <[email protected]>
816
817	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
818	_SUPPORT)
819
8202011-02-18  Frank Warmerdam  <[email protected]>
821
822	* configure.ac, configure: Added support for --enable-chunky-strip-read
823	configure option to enable the experimental feature from a couple
824	months ago for reading big strips in chunks.
825
826	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
827	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
828	Implement optional support for deferring the load of strip/tile
829	offset and size tags for optimized scanning of directories.  Enabled
830	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
831	#define in tif_config.h).
832
8332011-02-11  Frank Warmerdam  <[email protected]>
834
835	* libtiff/tif_print.c: remove unused variable.
836
8372011-02-09  Frank Warmerdam  <[email protected]>
838
839	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
840	with non-console (popup message) builds on win32.
841
842	http://bugzilla.maptools.org/show_bug.cgi?id=2293
843
8442011-01-24  Olivier Paquet  <[email protected]>
845
846	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
847	tif_print.c, tiff.h, tiffiop.h} : Added support for
848	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
849	values for each sample. Presents the min/max of all samples by default for
850	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
851	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
852	http://www.asmail.be/msg0055458208.html
853
8542011-01-06  Frank Warmerdam  <[email protected]>
855
856	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
857	maintained.
858
859	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
860	for CHUNKY_STRIP_READ_SUPPORT.
861
862	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
863	during JPEGPreDecode and JPEGDecode calls.
864	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
865	as compression formats like JPEG keep 16 lines interleaved in a sense
866	and might need to touch	quite a bit of data.
867
868	http://trac.osgeo.org/gdal/ticket/3894
869
8702011-01-03  Lee Howard <[email protected]>
871
872	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
873	caused by commit on 2010-12-14.  Submitted by e-mail from
874	Even Rouault <[email protected]>
875
8762010-12-31  Olivier Paquet  <[email protected]>
877
878	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
879	http://bugzilla.maptools.org/show_bug.cgi?id=2266
880
8812010-12-23  Andrey Kiselev  <[email protected]>
882
883	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
884	compression level parameter (preset) for Deflate and LZMA encoders,
885	e.g "-c lzma:p1" or "-c zip:p9".
886
887	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
888	(preset) in LZMAVSetField().
889
8902010-12-18  Bob Friesenhahn  <[email protected]>
891
892	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
893	Makefile.
894
8952010-12-14  Andrey Kiselev  <[email protected]>
896
897	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
898	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
899	TIFF compression scheme LZMA reserving a new value 34925 for
900	Compression tag. As per
901	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
902
9032010-12-14  Lee Howard <[email protected]>
904
905	* libtiff/tif_dirread.c: tolerate some cases where
906	FIELD_COLORMAP is missing
907	http://bugzilla.maptools.org/show_bug.cgi?id=2189
908
9092010-12-14  Lee Howard <[email protected]>
910
911	* libtiff/tif_read.c: change read_ahead to tmsize_t
912	http://bugzilla.maptools.org/show_bug.cgi?id=2222
913
9142010-12-14  Lee Howard <[email protected]>
915
916	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
917	Windows except on Cygwin
918	http://bugzilla.maptools.org/show_bug.cgi?id=2224
919
9202010-12-14  Lee Howard <[email protected]>
921
922	* tools/gif2tiff.c: fix buffer overrun
923	http://bugzilla.maptools.org/show_bug.cgi?id=2270
924
9252010-12-14  Lee Howard <[email protected]>
926
927	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
928	to improve compatibility with various viewers
929	submitted by e-mail from Dwight Kelly <[email protected]>
930
9312010-12-13  Lee Howard <[email protected]>
932
933	* tools/fax2ps.c: be consistent with page-numbering
934	http://bugzilla.maptools.org/show_bug.cgi?id=2225
935
9362010-12-13  Lee Howard <[email protected]>
937
938	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
939	resolves CVE-2010-2595
940	http://bugzilla.maptools.org/show_bug.cgi?id=2208
941
9422010-12-13  Lee Howard <[email protected]>
943
944	* tools/tiffcrop.c: new release by Richard Nolde
945	http://bugzilla.maptools.org/show_bug.cgi?id=2004
946
9472010-12-12  Lee Howard <[email protected]>
948
949	* tools/tiff2pdf.c: fix colors for images with RGBA
950	interleaved data
951	http://bugzilla.maptools.org/show_bug.cgi?id=2250
952
9532010-12-12  Lee Howard <[email protected]>
954
955	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
956	http://bugzilla.maptools.org/show_bug.cgi?id=2164
957
9582010-12-11  Lee Howard <[email protected]>
959
960	* tools/tiff2pdf.c: remove invalid duplication for Lab
961	http://bugzilla.maptools.org/show_bug.cgi?id=2162
962
9632010-12-11  Lee Howard <[email protected]>
964
965	* libtiff/tif_jpeg.c: fix use of clumplines calculation
966	http://bugzilla.maptools.org/show_bug.cgi?id=2149
967
9682010-12-11  Lee Howard <[email protected]>
969
970	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
971	http://bugzilla.maptools.org/show_bug.cgi?id=2118
972
9732010-12-11  Lee Howard <[email protected]>
974
975	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
976	  libtiff/tif_zip.c: fix build errors for VC6
977	http://bugzilla.maptools.org/show_bug.cgi?id=2105
978
9792010-12-11  Lee Howard <[email protected]>
980
981	* libtiff/tif_stream.cxx: warnings cleanup
982	http://bugzilla.maptools.org/show_bug.cgi?id=2091
983	* libtiff/tif_dirread.c: warnings cleanup
984	http://bugzilla.maptools.org/show_bug.cgi?id=2092
985
9862010-12-11  Lee Howard <[email protected]>
987
988	* tools/tiff2pdf.c: add fill-page option
989	http://bugzilla.maptools.org/show_bug.cgi?id=2051
990
9912010-12-11  Lee Howard <[email protected]>
992
993	* libtiff/tif_dirread.c: modify warnings
994	http://bugzilla.maptools.org/show_bug.cgi?id=2016
995
9962010-12-11  Lee Howard <[email protected]>
997
998	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
999        http://bugzilla.maptools.org/show_bug.cgi?id=1999
1000
10012010-12-11  Lee Howard <[email protected]>
1002
1003	* tools/tiffinfoce.c: strip byte counts are uint64* now
1004
10052010-12-11  Lee Howard <[email protected]>
1006
1007        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
1008        or missing byte-count tag
1009        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
1010        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
1011
10122010-12-08  Lee Howard <[email protected]>
1013
1014        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
1015        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
1016
10172010-12-06  Lee Howard <[email protected]>
1018
1019        * libtiff/tif_open.c: Fix mode check before opening a file.
1020        http://bugzilla.maptools.org/show_bug.cgi?id=1906
1021
10222010-11-27  Bob Friesenhahn  <[email protected]>
1023
1024	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
1025	Patch by Vincent Torri.
1026
10272010-10-21  Frank Warmerdam  <[email protected]>
1028
1029	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
1030
1031	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
1032
1033	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
1034
10352010-09-25  Lee Howard <[email protected]>
1036
1037	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
1038	with additional command line options for Document Title,
1039	Document Creator, and Page Orientation
1040
10412010-07-13  Bob Friesenhahn  <[email protected]>
1042
1043	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
1044	potentially unterminated buffer due to using an exceptionally long
1045	file name.
1046
10472010-07-08  Andrey Kiselev  <[email protected]>
1048
1049	* tools/tiff2pdf.c: Fixed ID buffer filling in
1050	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
1051
10522010-07-07  Andrey Kiselev  <[email protected]>
1053
1054	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
1055	to expected value as the warning message suggests. As per bug
1056	http://bugzilla.maptools.org/show_bug.cgi?id=1963
1057
10582010-07-06  Andrey Kiselev  <[email protected]>
1059
1060	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
1061	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
1062	which should be set by value.
1063
1064	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
1065	and _TIFFFieldWithName() if the tag is not found in the tag table.
1066	This should be normal situation and returned NULL value should be
1067	properly handled by the caller.
1068
10692010-07-02  Andrey Kiselev  <[email protected]>
1070
1071	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
1072	integer type conversions. As per bug
1073	http://bugzilla.maptools.org/show_bug.cgi?id=2207
1074
1075	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
1076	WhitePoint tag as per bug
1077	http://bugzilla.maptools.org/show_bug.cgi?id=2042
1078
1079	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1080	working with YCbCr image in PickContigCase(). As per bug
1081	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1082
1083	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1084	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1085	we don't need any post-processing. That helps to reset the hook if we
1086	previously set this field to some other value and the hook was
1087	initialized accordingly. As per bug
1088	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1089
10902010-07-01  Andrey Kiselev  <[email protected]>
1091
1092	* tools/tiffgt.c: Properly check the raster buffer allocations for
1093	integer overflows. As per bug
1094	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1095
1096	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1097	upstream.
1098
1099	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1100	multiply_32() and multiply_64() functions into tif_aux.c file and
1101	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1102
11032010-06-30  Andrey Kiselev  <[email protected]>
1104
1105	* tools/tiff2pdf.c: Better generation of ID field in
1106	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1107
1108	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1109	converting JPEG encoded tiles.
1110
1111	* tools/tiff2pdf.c: Better handling of string fields, use static
1112	string buffers instead of dynamically allocated, use strncpy() instead
1113	of strcpy(), control the string lengths.
1114
11152010-06-25  Andrey Kiselev  <[email protected]>
1116
1117	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1118	referencing to uninitialized memory in some cases (e.g. when tile size
1119	set bigger than the image size).
1120
11212010-06-15  Bob Friesenhahn  <[email protected]>
1122
1123	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1124	subsampled data since tiffcrop currently doesn't support it.  Fix
1125	JPEG support.
1126
11272010-06-13  Frank Warmerdam  <[email protected]>
1128
1129	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1130
1131	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1132	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1133	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1134	size is larger.  Also, there are a bunch of places that try to
1135	memset() a malloc'd buffer before checking for malloc failure, which
1136	would result in core dump if there actually were a failure. (#2211)
1137
11382010-06-11  Bob Friesenhahn  <[email protected]>
1139
1140	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1141	avoid compiler warnings if parameter types are not sign
1142	consistent.
1143
1144	* libtiff 4.0.0alpha6 released.
1145
1146	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1147	European page size dimensions.  Added an option to allow the user
1148	to specify a custom page size on the command line.  Fix the case
1149	where a page size specified with a fractional part was being
1150	coerced to an integer by retyping the variables that define the
1151	paper size.
1152
1153	* html/index.html: Update for the 3.9.3 release.
1154
1155	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1156	YCbCr subsampled data since tiffcp currently doesn't support it.
1157	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1158
1159	* Update libtool to version 2.2.10.
1160
11612010-06-10  Bob Friesenhahn  <[email protected]>
1162
1163	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1164	multiplier is zero.
1165
11662010-06-09  Bob Friesenhahn  <[email protected]>
1167
1168	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1169	CVE-2010-1411 was not complete.
1170
1171	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1172	multiply two integers.  Returns zero if there is an integer
1173	overflow.
1174
1175	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1176	is reported when reading the input file.
1177
11782010-06-08  Bob Friesenhahn  <[email protected]>
1179
1180	* Update libtool to version 2.2.8.
1181
1182	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1183	buffer due to integer overflow in TIFFroundup() and several other
1184	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1185	fixes CVE-2010-1411.
1186
1187	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1188	result in an integer overflow. This causes TIFFroundup() to also
1189	return zero if there would be an integer overflow.
1190
1191	* contrib: Add an emacs formatting mode footer to all source files
1192	so that emacs can be effectively used.
1193
11942010-06-03  Oliver Chen Feng <[email protected]>
1195
1196	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1197	file PAGENUMBER value in sequence for users who care the page
1198	sequence, this will also prevent tiff2pdf from creating pdf file from
1199	the merged tiff file with wrong page sequence.
1200
12012010-05-08  Olivier Paquet  <[email protected]>
1202
1203	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1204	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1205	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1206	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1207	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1208
12092010-05-07  Frank Warmerdam  <[email protected]>
1210
1211	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1212	JPEGPreEncode(), not just when we want to output local tables.
1213	Otherwise the quality used during compression may not be right and
1214	might not match the tables in the tables tag.   This bug only occurs
1215	when seeking between directories in the midst of writing blocks.
1216	http://trac.osgeo.org/gdal/ticket/3539
1217
12182010-05-06  Andrey Kiselev  <[email protected]>
1219
1220	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1221	Regenerated from the source.
1222
12232010-05-05  Olivier Paquet  <[email protected]>
1224
1225	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1226	had stopped working. Also made it always print 6 floats instead of
1227	2*SamplesPerPixel.
1228	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1229	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1230	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1231	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1232
12332010-05-05  Frank Warmerdam  <[email protected]>
1234
1235	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1236	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1237
12382010-04-21  Frank Warmerdam  <[email protected]>
1239
1240	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1241	JPEGSetupEncode() is called if the tables already seem to be
1242	established.  This prevents spurious updates and rewriting of
1243	directories with jpegtables when doing updates to existing images.
1244	http://trac.osgeo.org/gdal/ticket/3539
1245
12462010-04-20  Olivier Paquet  <[email protected]>
1247
1248	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1249	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1250	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1251	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1252	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1253
12542010-04-10  Bob Friesenhahn  <[email protected]>
1255
1256	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
1257	when the tag count value is zero.  Error handling is still a
1258	regression since in 3.9.2, empty tags are skipped (with a warning)
1259	rather than returning a hard error and refusing to read the file.
1260
1261	* tools/ppm2tiff.c (main): While case for parsing comment line
1262	requires extra parenthesis to work as expected.  Reported by
1263	Thomas Sinclair.
1264
12652010-04-02  Frank Warmerdam  <[email protected]>
1266
1267	* libtiff/tif_read.c (primarily): Add support for
1268	CHUNKY_STRIP_READ_SUPPORT where large strips are
1269	read in chunks for applications using TIFFReadScanline().
1270	This is intended to make it more practical work with very
1271	large compressed one-strip files.   Feature is off by default.
1272	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
1273	http://trac.osgeo.org/gdal/ticket/3514
1274
12752010-03-31  Frank Warmerdam  <[email protected]>
1276
1277	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
1278	directories so previously placed directories will be migrated to
1279	the end of file if needed.
1280
12812010-03-30  Frank Warmerdam  <[email protected]>
1282
1283	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
1284	to support operating on strips/tiles of more than 256MB.
1285	http://trac.osgeo.org/gdal/ticket/3512
1286
12872010-03-10  Bob Friesenhahn  <[email protected]>
1288
1289	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
1290	that it is clearly a memory allocation error message, and also
1291	includes the size of the allocation request.
1292
12932010-02-22  Lee Howard  <[email protected]>
1294
1295	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
1296	the JPEG TIFF as is is not required in order to prevent it from
1297	being unused and filled with invalid data.  (Leave it to be
1298	generated by later activity.)
1299	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1300	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
1301	data rather than skipping them.  This fixes the ability to view in
1302	Acrobat Reader, Evince, and Ghostscript.
1303	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1304	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
1305	strips.
1306	http://bugzilla.maptools.org/show_bug.cgi?id=2029
1307
13082009-12-03  Frank Warmerdam  <[email protected]>
1309
1310	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
1311	Made so that when working with downsampled images a stub function
1312	reporting an error is used for tif_decoderow.  We cannot meaningfully
1313	support reading scanlines in this situation.  (#1936)
1314
1315	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
1316	resetting of the upsampling values (gdal:#3259).
1317	http://bugzilla.maptools.org/show_bug.cgi?id=1936
1318
13192009-11-30  Frank Warmerdam  <[email protected]>
1320
1321	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
1322	tools/ras2tiff.c: Fix resource leaks on error.
1323	http://bugzilla.maptools.org/show_bug.cgi?id=2121
1324
1325	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
1326	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
1327	of as a custom(generic) field to avoid a potential reentrancy problem.
1328	http://bugzilla.maptools.org/show_bug.cgi?id=2125
1329
1330	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
1331	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
1332	const, and display_sRGB static and const.
1333	http://bugzilla.maptools.org/show_bug.cgi?id=2124
1334
13352009-11-04  Bob Friesenhahn  <[email protected]>
1336
1337	* libtiff 4.0.0alpha5 released.
1338
13392009-11-03  Bob Friesenhahn  <[email protected]>
1340
1341	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
1342	version has undergone substantial testing with arbitrary sample
1343	bit depths.  Also eliminates GCC compilation warnings.
1344
13452009-11-02  Bob Friesenhahn  <[email protected]>
1346
1347	* port/libport.h: Add extern declarations for getopt standard
1348	globals.
1349
13502009-10-31  Bob Friesenhahn  <[email protected]>
1351
1352	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
1353	noticed in 64-bit build of libtiff with Visual Studio 2005.
1354	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
1355	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
1356
1357	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
1358	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
1359	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
1360	http://bugzilla.maptools.org/show_bug.cgi?id=2068
1361
13622009-10-29  Bob Friesenhahn  <[email protected]>
1363
1364	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
1365	pointer" warnings.
1366
13672009-10-28  Bob Friesenhahn  <[email protected]>
1368
1369	* html/tools.html: Add manual page links, and a summary
1370	description of tiffcrop.
1371
13722009-10-07  Bob Friesenhahn  <[email protected]>
1373
1374	* configure.ac: x86_64 should use the same fill order as i386.
1375
13762009-09-24  Bob Friesenhahn  <[email protected]>
1377
1378	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
1379	Nolde.  Major updates to add significant functionality for reading
1380	and writing tile based images with bit depths not a multiple of 8
1381	which cannot be handled by tiffcp.
1382
13832009-09-03  Bob Friesenhahn  <[email protected]>
1384
1385	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
1386	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
1387	"Bug 2090 - OJPEG crash with libjpeg v7".
1388	http://bugzilla.maptools.org/show_bug.cgi?id=2090
1389
13902009-09-03  Frank Warmerdam  <[email protected]>
1391
1392	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
1393	interface when stoponerror is set.
1394	http://bugzilla.maptools.org/show_bug.cgi?id=2071
1395
13962009-08-30  Bob Friesenhahn  <[email protected]>
1397
1398	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
1399	fix build with gcc when using the "-Wformat
1400	-Werror=format-security" flags.
1401
14022009-08-29  Bob Friesenhahn  <[email protected]>
1403
1404	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
1405	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
1406	utilities tests.
1407
14082009-08-28  Bob Friesenhahn  <[email protected]>
1409
1410	* tools/tiffinfo.c: tiffinfo should return error status to the
1411	caller.  Register a private error callback to accomplish that.
1412
1413	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
1414	PNM formats so that we will be able to test more of the tools.
1415	While adding these test images I notice that bmp2tiff and gif2tiff
1416	only support ancient versions of their respective formats.
1417
14182009-08-27  Bob Friesenhahn  <[email protected]>
1419
1420	* libtiff 4.0.0alpha4 released.
1421
1422	* HOWTO-RELEASE: Improved release instructions.
1423
14242009-08-24  Bob Friesenhahn  <[email protected]>
1425
1426	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
1427	fixes for "Bug 2023 - nroff errors in manual pages".
1428	http://bugzilla.maptools.org/show_bug.cgi?id=2023
1429
1430	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
1431	CVE-2009-2347 libtiff: integer overflows in various inter-color
1432	space conversion tools".
1433	http://bugzilla.maptools.org/show_bug.cgi?id=2079
1434
1435	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
1436	Berkenbilt for "Bug 2024 - possible null pointer dereference with
1437	one-line fix".
1438	http://bugzilla.maptools.org/show_bug.cgi?id=2024
1439
1440	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
1441	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
1442	segfault after setting tdir_tag = IGNORE".
1443	http://bugzilla.maptools.org/show_bug.cgi?id=1895
1444
14452009-08-23  Bob Friesenhahn  <[email protected]>
1446
1447	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
1448	tiffcrop.sh into a collection of many specific tests.  Re-wrote
1449	all of the existing tests to be based on some simple shell
1450	functions.  Make distcheck works again.
1451
1452	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
1453	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
1454	tests under valgrind.
1455
14562009-08-21  Bob Friesenhahn  <[email protected]>
1457
1458	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
1459	build.
1460
1461	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
1462	actually activated since it needed to be enabled in this
1463	Makefile.am.  Also activated parallel-tests mode since it offers
1464	useful features such as per-test .log files and a summary test
1465	report .log file.
1466
14672009-08-20  Bob Friesenhahn  <[email protected]>
1468
1469	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
1470	libtool 2.2.6.  Enabled support for silent build rules
1471	(--enable-silent-rules or 'make V=0') and colorized tests.
1472
1473	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
1474
14752009-06-30  Frank Warmerdam  <[email protected]>
1476
1477	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
1478
1479	* tools/tiffcp.c: add -c sgilog support.
1480
1481	* libtiff/tif_luv.c: correct return codes from encoderow to be
1482	1 on success instead of zero.
1483	http://bugzilla.maptools.org/show_bug.cgi?id=2069
1484
1485	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
1486	#1085 for a better underflow fix that errors properly.
1487	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1488	http://bugzilla.maptools.org/show_bug.cgi?id=1985
1489
14902009-06-26  Frank Warmerdam  <[email protected]>
1491
1492	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
1493	fails on oddly sized 12bit jpeg compressed ycbcr images.
1494
14952009-06-22  Frank Warmerdam  <[email protected]>
1496
1497	* libtiff/tif_lzw.c: Fix buffer underflow bug.
1498	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1499
15002009-06-21  Frank Warmerdam  <[email protected]>
1501
1502	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
1503	for dual mode 8/12 bit jpeg support.
1504
15052009-06-03  Frank Warmerdam  <[email protected]>
1506
1507	* libtiff/tif_write.c: do not override the planar configuration to be
1508	contig for one sample files if planar configuration is already set.
1509	http://bugzilla.maptools.org/show_bug.cgi?id=2057
1510
15112009-06-02  Frank Warmerdam  <[email protected]>
1512
1513	* libtiff/libtiff.def: Add TIFFUnsetField.
1514
15152009-05-03  Frank Warmerdam  <[email protected]>
1516
1517	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
1518	error reports to use "%s" as format string.
1519	http://trac.osgeo.org/gdal/ticket/2976
1520
15212009-03-12  Frank Warmerdam  <[email protected]>
1522
1523	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
1524	for some codecs (#2020).
1525
15262009-02-12  Frank Warmerdam  <[email protected]>
1527
1528	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
1529	http://bugzilla.maptools.org/show_bug.cgi?id=2005
1530
15312009-02-09  Frank Warmerdam  <[email protected]>
1532
1533	* libtiff/tif_dirread.c: Improve allocation safety when allocated
1534	buffer for large tags.  (#1998)  Related to (#1993)
1535
15362009-02-06  Frank Warmerdam  <[email protected]>
1537
1538	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
1539	test suite should pass.
1540
15412009-02-05  Frank Warmerdam  <[email protected]>
1542
1543	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
1544	but at the 2GB boundary to avoid overflow on 32bit systems.
1545	http://bugzilla.maptools.org/show_bug.cgi?id=1993
1546
1547	* libtiff/tif_dirread.c: Remove some assertions that blow due to
1548	corrupt files rather than in response to library internal
1549	inconsistencies.
1550	http://bugzilla.maptools.org/show_bug.cgi?id=1995
1551	http://bugzilla.maptools.org/show_bug.cgi?id=1991
1552
1553	* libtiff/tif_dirread.c: Fixed testing for failed result from
1554	TIFFReadDirectoryFindFieldInfo().
1555	http://bugzilla.maptools.org/show_bug.cgi?id=1992
1556
15572009-01-23  Frank Warmerdam  <[email protected]>
1558
1559	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
1560	http://bugzilla.maptools.org/show_bug.cgi?id=1911
1561
1562	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
1563
1564	http://bugzilla.maptools.org/show_bug.cgi?id=1924
1565
1566	* tools/tiffcrop.c: initialize xres/yres values.
1567
1568	* test/*.sh - default ${srcdir} to local directory.
1569
1570	* test/common.sh - start verbose mode after common settings.
1571
1572	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
1573	avoid type mismatches on different platforms.
1574	http://bugzilla.maptools.org/show_bug.cgi?id=1889
1575
15762009-01-22  Frank Warmerdam  <[email protected]>
1577
1578	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
1579	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
1580
1581	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
1582	defined, primarily to reduce prototype warnings on windows.
1583
1584	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
1585	about unused parameters, and uninitialized variables.
1586
15872009-01-21  Bob Friesenhahn  <[email protected]>
1588
1589	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
1590	order to trace full execution detail while executing the test suite.
1591
15922009-01-20  Frank Warmerdam  <[email protected]>
1593
1594	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
1595
15962009-01-20  Bob Friesenhahn  <[email protected]>
1597
1598	* test/Makefile.am (CLEANFILES): Make sure that test output files
1599	are removed by 'make clean'
1600
1601	* Update autotools for 4.0.0 beta3
1602
1603	* 4.0.0 beta3 produced.
1604
16052009-01-12  Bob Friesenhahn  <[email protected]>
1606
1607	* test/tiffcrop.sh: New test script for tiffcrop from Richard
1608	Nolde.
1609
1610	* tools/tiff2ps.c: Remove spurious message to stderr.
1611
16122009-01-11  Bob Friesenhahn  <[email protected]>
1613
1614	* tools/tiff2ps.c: Incorporated significant functionality update
1615	from Richard Nolde.  In particular, support for rotating the image
1616	by 90, 180, 270, and 'auto' has been added.
1617
1618	* man/tiffcrop.1: Incorporated documentation updates from Richard
1619	Nolde.
1620
1621	* tools/tiffcrop.c: Incorporated significant functionality update
1622	from Richard Nolde.
1623
16242008-12-31  Bob Friesenhahn  <[email protected]>
1625
1626	* libtiff/tiffio.h: GCC will now validate format specifications
1627	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
1628	TIFFWarningExt() in order to reveal bugs.
1629
1630	* Many fixes throughout to work better as a 64-bit build.
1631
16322008-12-30  Bob Friesenhahn  <[email protected]>
1633
1634	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
1635	tags now require 64-bit parameter rather than 32-bit.
1636
1637	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
1638	64-bit values.
1639
1640	* tools/thumbnail.c: Eliminate crash noticed while running test
1641	suite.
1642
16432008-12-29  Bob Friesenhahn  <[email protected]>
1644
1645	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
1646	Initialize stack variables to avoid compiler warning.
1647
1648	* tools/tiffinfoce.c (main): Use toff_t for offset type when
1649	retrieving offset of EXIF IFD.
1650
1651	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
1652	TIFFClientOpen() callback and other external function definitions.
1653
1654	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
1655	type now.  Fixes crash when dumping files containing an EXIF IFD.
1656
1657	* m4/libtool.m4: Update to libtool 2.2.6.
1658
16592008-12-21  Frank Warmerdam  <[email protected]>
1660
1661	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
1662
1663	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
1664	strip for the last partial strip in a jpeg compressed file.
1665	http://bugzilla.maptools.org/show_bug.cgi?id=1981
1666
16672008-10-29  Frank Warmerdam  <[email protected]>
1668
1669	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
1670	we take the shortcut to only update the strip/tile offsets in place.
1671	http://trac.osgeo.org/gdal/ticket/2621
1672
16732008-10-21  Andrey Kiselev  <[email protected]>
1674
1675	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
1676	the older versions retained).
1677
16782008-10-09  Frank Warmerdam  <[email protected]>
1679
1680	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
1681	IPP enabled version of libjpeg from Intel.
1682	http://bugzilla.maptools.org/show_bug.cgi?id=1951
1683
16842008-09-05  Andrey Kiselev  <[email protected]>
1685
1686	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
1687	Required for libtiff 4.0.
1688
1689	* tools/tiffsplit.c: Use dynamically allocated array instead of static
1690	when constructing output file names.
1691
16922008-09-03  Andrey Kiselev  <[email protected]>
1693
1694	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
1695	doing the filename/path construction.
1696
1697	* tools/tiff2pdf.c: More appropriate format string in
1698	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
1699
1700	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
1701
1702	http://bugzilla.maptools.org/show_bug.cgi?id=1929
1703
1704	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
1705	CVE-2008-2327 security issue.
1706
17072008-09-01  Frank Warmerdam  <[email protected]>
1708
1709	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
1710
1711	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
1712	depending on whether the file is bigtiff or classic tiff.
1713	http://bugzilla.maptools.org/show_bug.cgi?id=1917
1714
17152008-08-12  Edward Lam  <[email protected]>
1716
1717	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
1718	consistent (__int64) casting when testing if _lseeki64 has
1719	successfully seeked as requested.  This is necessary for large
1720	file support to work since off_t is only 32-bit.
1721
17222008-07-29  Frank Warmerdam  <[email protected]>
1723
1724	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
1725	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
1726	with control logic to return runtime errors (c/o Even Rouault) (#1927).
1727
17282008-06-17  Frank Warmerdam  <[email protected]>
1729
1730	* tools/tiffcrop.c: Fix some portability problems.
1731
1732	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
1733	used in tif_jpeg.c.
1734
1735	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
1736	as TIFFOpen().
1737
17382008-06-01  Frank Warmerdam  <[email protected]>
1739
1740	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
1741	like Sparc/Solaris.
1742	http://bugzilla.maptools.org/show_bug.cgi?id=1892
1743
17442008-05-27  Frank Warmerdam  <[email protected]>
1745
1746	* libtiff.def: Add TIFFFindField
1747	http://bugzilla.maptools.org/show_bug.cgi?id=1891
1748
17492008-05-26  Frank Warmerdam  <[email protected]>
1750
1751	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
1752
1753	* li2008-04-15  Andrey Kiselev  <[email protected]>
1754
1755btiff/tif_win32.c: Replace custom Win32 memory api with generic
1756	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
1757	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
1758
1759	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
1760	in windows version (care of Edward Lam).
1761
17622008-05-24  Frank Warmerdam  <[email protected]>
1763
1764	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
1765	compression codec codes.
1766
1767	* tif_dirwrite.c: fix potential memory leak.
1768
1769	* tif_dirread.c: Fix unchecked malloc result.
1770
17712008-05-24  Bob Friesenhahn  <[email protected]>
1772
1773	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
1774	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
1775	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
1776	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
1777	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
1778	suggestions from Lee Howard posted to the tiff list on 13 Sep
1779	2007.
1780
17812008-05-23  Frank Warmerdam  <[email protected]>
1782
1783	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
1784	possible runtime problem reported by coverity.
1785
1786	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
1787
1788	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
1789	http://bugzilla.maptools.org/show_bug.cgi?id=1888
1790
1791	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
1792
1793	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
1794
1795	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
1796	Cleanup scanline allocation to avoid coverity warning.
1797
1798	* tools/thumbnail.c: Check for TIFFOpen() failure.
1799
18002008-05-18  Frank Warmerdam  <[email protected]>
1801
1802	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
1803	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
1804	why this is needed.
1805
18062008-05-09  Bob Friesenhahn  <[email protected]>
1807
1808	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
1809	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
1810
18112008-04-15  Andrey Kiselev  <[email protected]>
1812
1813	* test/: Test suite updated. Everything is passed now.
1814
1815	* libtiff/tif_dirinfo.c: Fixed description of the
1816	TIFFTAG_NUMBEROFINKS tag.
1817
18182008-04-14  Andrey Kiselev  <[email protected]>
1819
1820	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
1821	Get rid of some of "dereferencing type-punned" warnings by converting
1822	tdir_offset field of TIFFDirEntry structure into union.
1823
18242008-04-10  Andrey Kiselev  <[email protected]>
1825
1826	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
1827	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
1828	from the public interface. Type of its 'count' parameter changed
1829	from uint32 to tmsize_t.
1830
1831	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
1832	of the tiff structure have the size_t type instead of uint32.
1833
18342008-04-09  Andrey Kiselev  <[email protected]>
1835
1836	* tools/tiffdump.c: Added support for MSVS 6.0.
1837
1838	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
1839	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
1840	point values on MSVS 6.0 platform.
1841
18422008-03-14  Frank Warmerdam  <[email protected]>
1843
1844	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
1845	TIFFReadDirEntryArray() since they are interfering with seemingly
1846	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
1847
18482008-02-09  Joris Van Damme  <[email protected]>
1849
1850	* tif_dirread.c: Added handling for the case of number of values for
1851	PageNumber tag different from 2 (previously resulted in an assert
1852	indicating lack of handling and was forgotten about)
1853
18542008-02-01  Frank Warmerdam  <[email protected]>
1855
1856	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
1857	the actual jpeg data stream if the first strip/tile has zero size.
1858	This is the case when GDAL creates a new file with zero sizes, closes
1859	and reopens it.
1860
18612008-01-07  Frank Warmerdam  <[email protected]>
1862
1863	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
1864
18652008-01-01  Frank Warmerdam  <[email protected]>
1866
1867	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
1868
1869	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
1870	targets.
1871
1872	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
1873	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
1874	(x64).
1875
1876	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
1877	and TIFFFieldWithName() now return TIFFField pointers instead of
1878	TIFFFieldInfo pointers.
1879
1880	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
1881	exist. This makes it compile again on Windows
1882
1883	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
1884	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
1885
1886	* test/rewrite_tag.c: New test for TIFFRewriteField().
1887
18882007-12-31  Frank Warmerdam  <[email protected]>
1889
1890	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
1891	rewrites one field "on disk" updating an existing directory
1892	entry.  Lots of limitations still...
1893
1894	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
1895	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
1896	the strip offset/size values are dirty but nothing else about the
1897	directory is dirty.  In flush handle "just stripmaps dirty" as a
1898	special case that just rewrites these values without otherwise
1899	modifying the directory on disk using TIFFRewriteField().
1900
1901	We also modify logic so that in update mode the directory is not
1902	marked dirty on read, but only when something is changed.  This
1903	means we need to keep track of updates to the stripmap stuff in
1904	TIFFAppendToStrip().
1905
19062007-12-10  Frank Warmerdam  <[email protected]>
1907
1908	* tif_jpeg.c: Improve ability to switch between encoding and decoding
1909	in the jpeg code (gdal bug #2033).
1910
19112007-11-23  Frank Warmerdam  <[email protected]>
1912
1913	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
1914	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
1915	rawcp/rawcc buffer are for writing and thus may require flushing.
1916	Necessary to distinguish whether they need to be written to disk when
1917	in mixed read/write mode and doing a mixture of writing followed by
1918	reading.  http://trac.osgeo.org/gdal/ticket/1758
1919
19202007-11-23  Andrey Kiselev  <[email protected]>
1921
1922	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
1923	from Alexey Chupahin.
1924
19252007-11-02  Frank Warmerdam  <[email protected]>
1926
1927	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
1928	establishing if an existing tile can be rewritten to the same location
1929	by comparing the current size to all the other blocks in the same
1930	directory.  This is dangerous in many situations and can easily
1931	corrupt a file.  (observed in esoteric GDAL situation that's hard to
1932	document).  This change involves leaving the stripbytecount[] values
1933	unaltered till TIFFAppendToStrip().  Now we only write a block back
1934	to the same location it used to be at if the new data is the same
1935	size or smaller - otherwise we move it to the end of file.
1936
1937	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
1938	data when writing the directory just because we have BEENWRITING at
1939	some point in the past.  This was causing odd junk to be written out
1940	in a tile of data when a single tile had an interleaving of reading
1941	and writing with reading last.  (highlighted by gdal
1942	autotest/gcore/tif_write.py test 7.
1943
1944	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
1945	modifying callers buffer.
1946	http://trac.osgeo.org/gdal/ticket/1965
1947
1948	* tif_predict.c/h: more fixes related to last item, keeping a
1949	distinct pfunc for encode and decode cases as these were getting
1950	mixed up sometimes.
1951	http://trac.osgeo.org/gdal/ticket/1948
1952
19532007-11-01  Frank Warmerdam  <[email protected]>
1954
1955	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
1956	predictor based encoding and decoding works in read-write update
1957	mode properly.
1958	http://trac.osgeo.org/gdal/ticket/1948
1959
19602007-10-24  Joris Van Damme  <[email protected]>
1961
1962	* tif_dirread.c: Fixed problem with bogus file triggering
1963	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
1964	ChopUpSingleUncompressedStrip
1965
19662007-10-22  Joris Van Damme  <[email protected]>
1967
1968	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
1969	at best, access violation at worst, when subsampled JPEG compressed imagery
1970	is decoded without the JPEG_COLORMODE feature
1971
19722007-10-11  Frank Warmerdam  <[email protected]>
1973
1974	* html/index.html: Update "people responsible" section.
1975
19762007-10-05  Frank Warmerdam  <[email protected]>
1977
1978	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
1979	as reported on the mailing list.
1980
19812007-10-01  Joris Van Damme  <[email protected]>
1982
1983	* changed some more incorrect %lud printf flags to %lu
1984
19852007-09-29  Joris Van Damme  <[email protected]>
1986
1987	* tif_dirread.c: Strip chopping interfered badly with uncompressed
1988	subsampled images because it tried to divide subsampled rowblocks,
1989	leading to all sorts of errors throughout the library for these
1990	images. Fixed by making strip chopping divide in row counts that
1991	are a multiple of vertical subsampling value.
1992
19932007-09-28  Joris Van Damme  <[email protected]>
1994
1995	* tif_dirread.c: Logical cast working around compiler warning
1996
1997	* tif_read.c: Correction of some error flags and parameter lists
1998
19992007-09-27  Joris Van Damme  <[email protected]>
2000
2001	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
2002	when dealing with large bitspersample values, shutting up purification
2003	tools that warn about truncation, though it remains incorrect and
2004	indicates a conceptual problem there.
2005
2006	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
2007	of first IFD) to proper place because it badly interfered with memory
2008	mapping, resulting in mapping flag even with dummy mapping functions
2009	that returned 0 whilst at the same time the mapping tif_size wasn't
2010	set, thus resulting in continuous incorrect beyond-eof errors.
2011
20122007-09-24  Joris Van Damme  <[email protected]>
2013
2014	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
2015	inconsistent use of const in tiffFields and exifFields definition
2016
20172007-09-20  Frank Warmerdam  <[email protected]>
2018
2019	* tif_dirwrite.c: Always write tile/strip offsets and sizes
2020	using LONG8 type when output format is BigTIFF.  The
2021	TIFFWriteDirectoryTagLongLong8Array() function was restructured
2022	accordingly.
2023
2024	* tif_dirread.c: Improvements to error reporting text in
2025	TIFFFetchDirectory().
2026
20272007-09-19  Bob Friesenhahn  <[email protected]>
2028
2029	* test/images: Added a small collection of test images for use by
2030	test programs and scripts.
2031	* test/tiffinfo.sh: A trivial example test script.
2032	* test/common.sh: Added small script for setting the environment
2033	used by script-based tests.
2034
20352007-08-24  Frank Warmerdam  <[email protected]>
2036
2037	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
2038	zero when writing directory contents to preserve the ability to
2039	rewrite directories in place, even in the middle of a directory
2040	chain.
2041
2042	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
2043	definitions that are missing.  Existing definitions are silently
2044	ignored.
2045
2046	* tif_dirread.c: Add runtime error for fields for which no definition
2047	is found (in addition to an assert for developers) in
2048	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
2049	prudent.
2050
20512007-08-10  Joris Van Damme  <[email protected]>
2052
2053	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
2054	from _TIFFRGBAImage structure to revert unwanted ABI change.
2055
20562007-08-10  Joris Van Damme  <[email protected]>
2057
2058	* libtiff/tif_win32.c: use SetFilePointer instead of
2059	SetFilePointerEx, as per bug
2060
2061	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
2062
20632007-07-19  Andrey Kiselev  <[email protected]>
2064
2065	* libtiff/tif_stream.cxx: Put all callback functions declarations
2066	inside extern "C" block.
2067
2068	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
2069	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
2070	formatter instead of "%lld" with MSVC compiler.
2071
2072	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
2073	_TIFFUInt64ToDouble() functions.
2074
20752007-07-18  Andrey Kiselev  <[email protected]>
2076
2077	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
2078	integer constants.
2079
2080	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2081	remove tif_config.h/tiffconf.h during cleaning. As per bug
2082
2083	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2084
2085	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2086
2087	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2088
20892007-07-13  Andrey Kiselev  <[email protected]>
2090
2091	* libtiff 4.0.0alpha released.
2092
20932007-07-12  Andrey Kiselev  <[email protected]>
2094
2095	* tools/tiff2pdf.c: Added missed extern optind as per bug
2096
2097	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2098
2099	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2100	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2101	extending scheme completed.
2102
21032007-07-11  Bob Friesenhahn  <[email protected]>
2104
2105	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2106	use standard C++ library size types and attempt to detect overflow
2107	cases.
2108
21092007-07-08  Andrey Kiselev  <[email protected]>
2110
2111	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2112	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2113	tag extending scheme. Use the new scheme everywhere.
2114
2115	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2116	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2117	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2118	TIFFFIeldInfo structure replaced with TIFFField structure.
2119	TIFFFieldInfo retained for the backward compatibility.
2120
21212007-07-05  Bob Friesenhahn  <[email protected]>
2122
2123	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2124	defined.
2125
21262007-07-04  Andrey Kiselev  <[email protected]>
2127
2128	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2129	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2130	removed.
2131
2132	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2133	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2134	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2135	These tags are not codec-specific and relate to image content, so
2136	process them as other normal tags.
2137
2138	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2139	public tiffio.h to private tif_dir.h.
2140
2141	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2142	outdated.
2143
21442007-07-03  Andrey Kiselev  <[email protected]>
2145
2146	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2147	tif_win3.c}: Obsoleted portability stuff removed.
2148
2149	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2150
2151	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2152
2153	Patch from William Bader.
2154
2155	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2156	significant upgrade of the whole utility as per bug
2157
2158	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2159
2160	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2161	PDF file using TIFFClientOpen() machinery as it is implemented
2162	by Leon Bottou.
2163
21642007-06-26  Bob Friesenhahn  <[email protected]>
2165
2166	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2167	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2168	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2169	allow returning -1 for errors.
2170	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2171
21722007-06-25  Bob Friesenhahn  <[email protected]>
2173
2174	* port/strtoull.c: New porting function in case strtoull() is not
2175	available on the target system.
2176	* configure.ac: Add configure support for determining sized types
2177	in a portable way and performing necessary substitutions in
2178	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2179	definitions.
2180
21812007-04-27  Andrey Kiselev  <[email protected]>
2182
2183	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2184
2185	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2186
21872007-04-07  Andrey Kiselev  <[email protected]>
2188
2189	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2190	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2191	tif_predict.c, tif_zip.c}: Finally fix bug
2192
2193	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2194
2195	by introducing _TIFFMergeFieldInfo() returning integer error status
2196	instead of void in case of problems with field merging (e.g., if the
2197	field with such a tag already registered). TIFFMergeFieldInfo() in
2198	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2199	check returned value.
2200
22012007-04-07  Frank Warmerdam  <[email protected]>
2202
2203	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2204	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2205
22062007-04-06  Frank Warmerdam  <[email protected]>
2207
2208	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2209	will convert from decompressor to compressor or compress to decompress
2210	if required by the force arguments.  This works around a problem in
2211	where the JPEGFixupTestSubsampling() may cause a decompressor to
2212	be setup on a directory when later a compressor is required with the
2213	force flag set.  Occurs with the addtiffo program for instance.
2214
22152007-04-06  Andrey Kiselev  <[email protected]>
2216
2217	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2218	functionality from Richard Nolde. As per bug
2219
2220	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2221
22222007-03-28  Frank Warmerdam  <[email protected]>
2223
2224	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2225
22262007-03-17  Joris Van Damme  <[email protected]>
2227
2228	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2229
22302007-03-07  Joris Van Damme  <[email protected]>
2231
2232	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2233	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2234	factor. This bug is mentioned in:
2235	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2236	http://www.asmail.be/msg0054766825.html
2237
22382007-03-07  Joris Van Damme  <[email protected]>
2239
2240	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2241
2242	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2243	unused arguments by standard C indication for the same
2244
22452007-02-27  Andrey Kiselev  <[email protected]>
2246
2247	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2248	counters in TIFFFetchData(). Should finally fix the issue
2249
2250	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2251
22522007-02-24  Andrey Kiselev  <[email protected]>
2253
2254	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
2255	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2256
2257	* libtiff/tif_dirread.c: Added special function to handle
2258	SubjectDistance EXIF tag as per bug
2259
2260	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
2261
2262	* tools/tiff2pdf.c: Do not assume inches when the resolution units
2263	do not specified. As per bug
2264
2265	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2266
2267	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
2268	it was set as infinite. As per bug
2269
2270	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2271
2272	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
2273	by Richard Nolde. As per bug
2274
2275	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
2276
22772007-02-22  Andrey Kiselev  <[email protected]>
2278
2279	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
2280	ExtraSamples == 999 produced by Corel Draw. As per bug
2281
2282	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
2283
2284	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
2285	changed from tsize_t to uint32 to be able to work with data arrays
2286	larger than 2GB. Fixes bug
2287
2288	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2289
2290	Idea submitted by Matt Hancher.
2291
22922007-01-31  Andrey Kiselev  <[email protected]>
2293
2294	* tools/tif2rgba.c: This utility does not work properly on big-endian
2295	architectures. It was fixed including the bug
2296
2297	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
2298
22992007-01-15  Mateusz Loskot <[email protected]>
2300
2301	* Submitted libtiff port for Windows CE platform
2302	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
2303	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
2304	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
2305	functons from tif_win32.c.
2306	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
2307	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
2308	standard header files for Windows CE build.
2309	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
2310
23112006-11-19  Frank Warmerdam  <[email protected]>
2312
2313	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
2314	we move a strip.
2315	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
2316
23172006-10-13  Andrey Kiselev  <[email protected]>
2318
2319	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
2320	in Gentoo bug ():
2321
2322	http://bugs.gentoo.org/show_bug.cgi?id=142383
2323
2324	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
2325	Though it is still far from the state of being working and useful.
2326
23272006-10-12  Andrey Kiselev  <[email protected]>
2328
2329	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
2330	method.
2331
2332	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
2333	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
2334
2335	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
2336	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
2337
2338	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
2339	vulnerabilities, reported in Gentoo bug ():
2340
2341	http://bugs.gentoo.org/show_bug.cgi?id=142383
2342
23432006-09-28  Andrey Kiselev  <[email protected]>
2344
2345	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
2346	vulnerabilities, as per	Gentoo bug ():
2347
2348	http://bugs.gentoo.org/show_bug.cgi?id=142383
2349
23502006-09-27  Frank Warmerdam  <[email protected]>
2351
2352	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
2353	encoding and decoding on the same read-write TIFF handle.  The LZW
2354	code can now maintain encode and decode state at the same time. The
2355	ZIP code will switch back and forth as needed.
2356	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
2357
23582006-09-20  Frank Warmerdam  <[email protected]>
2359
2360	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
2361	tif_config.vc.h for easier identification by folks using an IDE.
2362
23632006-07-25  Frank Warmerdam  <[email protected]>
2364
2365	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
2366
23672006-07-19  Frank Warmerdam  <[email protected]>
2368
2369	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
2370	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
2371	to bug report by Peng Gao with black strip at bottom of images.
2372
23732006-07-12  Frank Warmerdam  <[email protected]>
2374
2375	* tif_dirwrite.c: make sure to use uint32 for wordcount in
2376	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
2377	It already seems to have been done for other field types.  Needed
2378	for "tiffset" on files with geotiff ascii text.
2379
23802006-07-04  Bob Friesenhahn  <[email protected]>
2381
2382	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
2383	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
2384	its use does not appear to be required, so use it only when it is
2385	available.
2386
23872006-06-24  Andrey Kiselev  <[email protected]>
2388
2389	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
2390
2391	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
2392	function TIFFFetchDirectory() avoiding code duplication in
2393	TIFFReadDirectory() and TIFFReadCustomDirectory().
2394
23952006-06-19  Frank Warmerdam  <[email protected]>
2396
2397	* tools/tiff2pdf.c: Fix handling of -q values.
2398	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
2399
24002006-06-17  Frank Warmerdam  <[email protected]>
2401
2402	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
2403	files.  Modified TIFFReadDirectory() to not invoke
2404	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
2405	but one of them is zero.
2406	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
2407
24082006-06-08  Andrey Kiselev  <[email protected]>
2409
2410	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
2411	checking code in the separate function TIFFCheckDirOffset().
2412
2413	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
2414
2415	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
2416
2417	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
2418
2419	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
2420
2421	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
2422
2423	* tools/tiff2pdf.c: Fixed buffer overflow condition in
2424	t2p_write_pdf_string() as per bug
2425
2426	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
2427
24282006-06-07  Andrey Kiselev  <[email protected]>
2429
2430	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
2431	support for JBIG compression scheme (34661 code) contributed by Lee
2432	Howard. As per bug
2433
2434	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
2435
2436	* configure, configure.ac: OJPEG support enabled by default.
2437
2438	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
2439
24402006-06-03  Bob Friesenhahn  <[email protected]>
2441
2442	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
2443	TIFFPrintDirectory().  Joris Van Damme authored the fix.
2444
24452006-04-21  Andrey Kiselev  <[email protected]>
2446
2447	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
2448	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
2449
2450	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
2451	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
2452	Added support for OpenVMS by Alexey Chupahin, [email protected].
2453
24542006-04-20  Andrey Kiselev  <[email protected]>
2455
2456	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
2457	Properly set the binary mode for stdin stream as per bug
2458	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
2459
2460	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
2461	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
2462	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
2463	tiffset.1}: Improvements in page formatting as per bug
2464	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
2465
2466	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
2467	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
2468
24692006-04-18  Frank Warmerdam  <[email protected]>
2470
2471	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
2472	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
2473
24742006-04-12  Joris Van Damme  <[email protected]>
2475
2476	* libtiff/tif_getimage.c: Added support for planarconfig separate
2477	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
2478
24792006-04-11  Joris Van Damme  <[email protected]>
2480
2481	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
2482	- Conversion of unassociated alpha to associated alpha now done with
2483	  more performant LUT, and calculation more correct
2484	- Conversion of 16bit data to 8bit data now done with
2485	  more performant LUT, and calculation more correct
2486	- Bugfix of handling of 16bit RGB with unassociated alpha
2487
24882006-04-11  Joris Van Damme  <[email protected]>
2489
2490	* libtiff/tif_getimage.c:
2491	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
2492	  buffer for alpha strile and filled it, only to never read it back.
2493	  Removed allocation and fill.
2494	- Minor rename of vars in gtTileSeparate and gtStripSeparate
2495	  anticipating planned functionality extension
2496
24972006-04-08  Joris Van Damme  <[email protected]>
2498
2499	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
2500	and pickTileSeparateCase to PickSeparateCase as both work on strips as
2501	well
2502
2503	* libtiff/tif_getimage.c: moved img->get selection from
2504	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
2505	logical hook for planned functionality extension
2506
25072006-04-08  Joris Van Damme  <[email protected]>
2508
2509	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
2510	of inappropriate use of jpeg_abort instead of jpeg_destroy
2511
25122006-04-07  Joris Van Damme  <[email protected]>
2513
2514	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
2515	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
2516	on subsampled images - this ought to get sorted when we feel brave
2517	enough to replace TIFFScanlineSize alltogether
2518
2519	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
2520
25212006-04-04  Joris Van Damme  <[email protected]>
2522
2523	* libtiff/tiffio.h: added new type tstrile_t
2524
2525	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
2526	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
2527	toff_t*
2528
2529	* libtiff/tif_ojpeg.c: totally new implementation
2530
2531	* libtiff/tif_dirread.c: added several hacks to suit new support of
2532	OJPEG
2533
2534	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
2535	of OJPEG images in favor of tif_getimage.c native handling of
2536	YCbCr and desubsampling
2537
25382006-03-29  Frank Warmerdam  <[email protected]>
2539
2540	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
2541	interpretation causes the "upsampled" flag to be recomputed.  Fixes
2542	peculiar bug where photometric flag had to be set before jpegcolormode
2543	flag.
2544
25452006-03-25  Joris Van Damme  <[email protected]>
2546
2547	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
2548
2549	* libtiff/tif_strip.c: temporarilly added two new versions of
2550	TIFFScanlineSize
2551	  - TIFFNewScanlineSize: proposed new version, after all related
2552	    issues and side-effects are sorted out
2553	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
2554	This needs further sorting out.
2555
25562006-03-25  Joris Van Damme  <[email protected]>
2557
2558	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
2559	of last truncated strip data to TIFFWriteEncodedStrip
2560
25612006-03-25  Joris Van Damme  <[email protected]>
2562
2563	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
2564
25652006-03-25  Joris Van Damme  <[email protected]>
2566
2567	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
2568
2569	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
2570
2571	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
2572	prepare	the path for new tif_ojpeg.c
2573
25742006-03-23  Andrey Kiselev  <[email protected]>
2575
2576	* libtiff 3.8.2 released.
2577
2578	* tools/Makefile.am: Use runtime paths linker flags when rpath
2579	option enabled.
2580
25812006-03-21  Andrey Kiselev  <[email protected]>
2582
2583	* libtiff/libtiff.def: Added missed exports as per bug
2584	http://bugzilla.remotesensing.org/attachment.cgi?id=337
2585
2586	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
2587	tools/Makefile.vc: Makefiles improvements as per bug
2588	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
2589
2590	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
2591	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
2592	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
2593
2594	* libtiff/tif_strip.c: Take subsampling in account when calculating
2595	TIFFScanlineSize().
2596
2597	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
2598
25992006-03-17  Andrey Kiselev  <[email protected]>
2600
2601	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
2602	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
2603
2604	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
2605	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
2606
26072006-03-16  Andrey Kiselev  <[email protected]>
2608
2609	* libtiff/tiffiop.h: Added decalration for
2610	_TIFFSetDefaultCompressionState().
2611
2612	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
2613	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
2614	codec cleanup methods. As per bug
2615
2616	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
2617
26182006-03-15  Andrey Kiselev  <[email protected]>
2619
2620	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
2621	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
2622
2623	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
2624	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
2625
2626	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
2627	removed; move here the STRIP_SIZE_DEFAULT macro definition.
2628
2629	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
2630	macro definition.
2631
2632	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
2633
26342006-03-14  Andrey Kiselev  <[email protected]>
2635
2636	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
2637	in TIFFReadDirectory, because it is always set at the start of
2638	function and we allow TIFFs without that tag set.
2639
26402005-03-13  Andrey Kiselev  <[email protected]>
2641
2642	* libtiff 3.8.1 released.
2643
26442006-03-07  Andrey Kiselev  <[email protected]>
2645
2646	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
2647	function as per bug
2648	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2649
2650	* libtiff/tif_dirread.c: More wise check for integer overflow
2651	condition as per bug
2652	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2653
2654	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
2655	Properly restore setfield/getfield methods in cleanup functions. As
2656	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2657
26582006-03-03  Andrey Kiselev  <[email protected]>
2659
2660	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
2661	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
2662
2663	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
2664	TIFFPredictorCleanup() in codec cleanup methods. As per bug
2665
2666	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2667
2668	* libtiff/tif_dirread.c: Fixed integer overflow condition in
2669	TIFFFetchData() function. As per bug
2670
2671	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2672
26732006-03-01  Andrey Kiselev  <[email protected]>
2674
2675	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
2676	TIFFSetField() method, not directly. As per bug
2677
2678	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
2679
2680	* tools/ppm2tiff.c: Added support for PBM files as per bug
2681	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
2682
26832006-02-27  Andrey Kiselev  <[email protected]>
2684
2685	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
2686	to avoid crash as per bug
2687
2688	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
2689
26902006-02-26  Andrey Kiselev  <[email protected]>
2691
2692	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
2693	t2p_sample_rgba_to_rgb() was used in place of each other, that was
2694	resulted in problems with RGBA images with associated alpha.
2695	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
2696
26972006-02-23  Andrey Kiselev  <[email protected]>
2698
2699	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
2700	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2701
2702	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
2703	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
2704	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2705
2706	* tools/tiff2ps.c: Properly scale all the pages when converting
2707	multipage TIFF with /width/height/center options set. As per bug
2708
2709	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
2710
27112006-02-15  Andrey Kiselev  <[email protected]>
2712
2713	* tools/tiff2pdf.c: Do not create output file until all option checks
2714	will be done. As per bug
2715
2716	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
2717
2718	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
2719	list of input files as per bug:
2720
2721	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
2722
27232006-02-09  Andrey Kiselev  <[email protected]>
2724
2725	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
2726	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
2727
2728	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
2729	TIFFRGBAImage interface.
2730
2731	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
2732	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
2733
27342006-02-07  Frank Warmerdam  <[email protected]>
2735
2736	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
2737	compressed TIFF files, per submission from Dan Cobra.
2738
27392006-02-07  Andrey Kiselev  <[email protected]>
2740
2741	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
2742	cast values to avoid warnings. As per bug
2743	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2744
2745	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
2746	appropriate. As per bug
2747	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2748
2749	* libtiff/tif_aux.c: Fixed type of temporary variable in
2750	_TIFFCheckMalloc() as per bug
2751	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2752
27532006-02-06  Andrey Kiselev  <[email protected]>
2754
2755	* libtiff/tif_aux.c: Return static array when fetching default
2756	YCbCrCoefficients (another problem, reported a the
2757	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
2758
27592006-02-03  Andrey Kiselev  <[email protected]>
2760
2761	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
2762	YCbCrSubsampling and DotRange tags as per bugs
2763
2764	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
2765	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
2766
2767	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
2768	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
2769
2770	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
2771
27722006-01-23  Andrey Kiselev  <[email protected]>
2773
2774	* libtool related stuff updated from the 2.1a branch.
2775
27762006-01-11  Frank Warmerdam  <[email protected]>
2777
2778	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
2779	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
2780	properly as per bug:
2781	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
2782
27832006-01-09  Bob Friesenhahn  <[email protected]>
2784
2785	* configure.ac: Fix with_default_strip_size comparison as reported
2786	by Norihiko Murase.
2787
27882006-01-08  Bob Friesenhahn  <[email protected]>
2789
2790	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
2791	incorrectly, tests were not actually testing the uninstalled
2792	libtiff.  Now they are.
2793
27942006-01-04  Andrey Kiselev  <[email protected]>
2795
2796	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
2797	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
2798	should be uint32 value.
2799
28002006-01-02  Bob Friesenhahn  <[email protected]>
2801
2802	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
2803	be used if build directory is not the same as source directory.
2804	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
2805	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
2806	and re-sorted tag names in alphabetical order.
2807
28082005-12-29  Andrey Kiselev  <[email protected]>
2809
2810	* libtiff 3.8.0 released.
2811
28122005-12-28  Bob Friesenhahn  <[email protected]>
2813
2814	* tools/bmp2tiff.c (main): Fixed warning regarding returning
2815	inconsistent types from a condition.
2816	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
2817	format.
2818	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
2819
28202005-12-28  Joris Van Damme  <[email protected]>
2821
2822	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
2823
28242005-12-27  Andrey Kiselev  <[email protected]>
2825
2826	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
2827	windows.h, to reduce the compile time.
2828
28292005-12-26  Bob Friesenhahn  <[email protected]>
2830
2831	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
2832
28332005-12-26  Andrey Kiselev  <[email protected]>
2834
2835	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
2836	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
2837	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
2838	private functions to retrieve FieldInfo arrays.
2839
28402005-12-24  Bob Friesenhahn  <[email protected]>
2841
2842	* html/build.html: Added some additional instructions for when
2843	building using MSVC under Windows.  Also fixed two HTML syntax
2844	errors and used HTML Tidy to tidy up the HTML syntax and
2845	formatting.
2846
28472005-12-24  Andrey Kiselev  <[email protected]>
2848
2849	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
2850	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
2851	StoNits tags custom.
2852
28532005-12-23  Andrey Kiselev  <[email protected]>
2854
2855	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
2856	WhitePoint tag custom.
2857
2858	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
2859
28602005-12-23  Joris Van Damme  <[email protected]>
2861
2862	* libtiff/tiffio.h: fixed typo that potentially resulted in
2863	redefininition of USE_WIN32_FILEIO
2864
2865	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
2866	calls in core LibTiff.
2867
28682005-12-21  Andrey Kiselev  <[email protected]>
2869
2870	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
2871	Photoshop and ICCProfile tags custom.
2872
28732005-12-21  Joris Van Damme  <[email protected]>
2874
2875	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
2876	newer code to get context indicator in error handler and still
2877	remain compatible with older code: Done TIFFError calls everywhere
2878	except in tools
2879
28802005-12-20  Andrey Kiselev  <[email protected]>
2881
2882	* tools/tiffcp.c: Added many error reporting messages; fixed integer
2883	overflow as per bug
2884
2885	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
2886
28872005-12-16  Frank Warmerdam  <[email protected]>
2888
2889	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
2890	YCbCr images in jpeg compressed TIFF files.
2891
28922005-12-14  Andrey Kiselev  <[email protected]>
2893
2894	* tools/tiffcp.c: Return non-zero status when reading fails (again).
2895
28962005-12-13  Andrey Kiselev  <[email protected]>
2897
2898	* tools/tiffcp.c: Return non-zero status when reading fails.
2899
29002005-12-12  Andrey Kiselev  <[email protected]>
2901
2902	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
2903
29042005-12-09  Andrey Kiselev  <[email protected]>
2905
2906	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
2907	custom.
2908
2909	* tools/tiffinfo.c: Print EXIF directory contents if exist.
2910
2911	* libtiff/tiff.h: Few EXIF tag numbers added.
2912
2913	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
2914	tiffio.h}: Preliminary support to read custom directories. New
2915	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
2916
29172005-12-07  Andrey Kiselev  <[email protected]>
2918
2919	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
2920	More work to implement custom directory read support.
2921
2922	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
2923	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
2924	tags custom.
2925
29262005-12-05  Andrey Kiselev  <[email protected]>
2927
2928	* libtiff/tif_dirread.c: One more workaround for broken
2929	StripByteCounts tag. Handle the case when StripByteCounts array filled
2930	with completely wrong values.
2931
29322005-11-30  Andrey Kiselev  <[email protected]>
2933
2934	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
2935	in the TIFFOpenW() function as per bug
2936
2937	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
2938
2939	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
2940	functions as per bug
2941
2942	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
2943
29442005-11-20  Frank Warmerdam  <[email protected]>
2945
2946	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
2947	for MS MDI format.
2948	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
2949
2950	* .cvsignore: many files added, and a few update according
2951	to suggestion of Brad HArds on tiff mailing list.
2952
29532005-11-03  Frank Warmerdam  <[email protected]>
2954
2955	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
2956	public.
2957
29582005-10-31  Andrey Kiselev  <[email protected]>
2959
2960	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
2961	as per bug
2962
2963	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
2964
2965	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
2966	as per bug
2967
2968	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
2969
2970	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
2971	problem as per bug
2972
2973	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
2974
2975	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
2976
2977	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
2978
2979	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
2980	ResolutionUnit tags modifiable during write process. As per bug
2981
2982	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
2983
2984	* tools/tiffsplit.c: Copy fax related fields over splitted parts
2985	as per bug
2986
2987	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
2988
29892005-10-21  Frank Warmerdam  <[email protected]>
2990
2991	* tif_dirread.c: Don't try and split single strips into "0" strips
2992	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
2993	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
2994
29952005-10-20  Joris Van Damme  <[email protected]>
2996
2997	* tif_fax3.c: changed 'at scanline ...' style warning/errors
2998	with incorrect use of tif_row, to 'at line ... of
2999	strip/tile ...' style
3000
30012005-10-15  Frank Warmerdam  <[email protected]>
3002
3003	* tif_write.c: fixed setting of planarconfig as per bug report
3004	on the mailing list from Joris.
3005
30062005-10-07  Andrey Kiselev  <[email protected]>
3007
3008	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
3009	tif_dirread.c}: Make the default strip size configurable via the
3010	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
3011
30122005-09-30  Bob Friesenhahn  <[email protected]>
3013
3014	* html/support.html: Fixed link to documentation on Greg Ward's
3015	LogLuv TIFF format.
3016
30172005-09-28  Andrey Kiselev  <[email protected]>
3018
3019	* tools/tiffdump.c: Fixed crash when reading malformed tags.
3020
30212005-09-20  Andrey Kiselev  <[email protected]>
3022
3023	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
3024	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
3025
30262005-09-12  Andrey Kiselev  <[email protected]>
3027
3028	* libtiff 3.7.4 released.
3029
3030	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
3031	from Patrick Welche (all scripts moved in the 'config' and 'm4'
3032	directories).
3033
30342005-09-12  Frank Warmerdam  <[email protected]>
3035
3036	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
3037
30382005-09-05  Frank Warmerdam  <[email protected]>
3039
3040	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
3041	also set it to NULL to avoid double free when re-setting custom
3042	string fields as per:
3043
3044	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
3045
30462005-08-12  Frank Warmerdam  <[email protected]>
3047
3048	* libtiff/tif_print.c: avoid signed/unsigned warning.
3049
3050	* libtiff/tif_dirread.c: removed unused variable.
3051
30522005-07-30  Frank Warmerdam  <[email protected]>
3053
3054	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
3055	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
3056	pass on bigendian (macosx) system.
3057
30582005-07-28  Andrey Kiselev  <[email protected]>
3059
3060	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
3061	CheckMalloc() function to _TIFFCheckMalloc() and make it available
3062	globally as an internal helper routine.
3063
30642005-07-27  Andrey Kiselev  <[email protected]>
3065
3066	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
3067	the custom tags handling code.
3068
30692005-07-26  Andrey Kiselev  <[email protected]>
3070
3071	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
3072	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
3073	function, use TIFFFetchNormalTag() instead as per bug
3074
3075	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3076
3077	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
3078	instead.
3079
3080	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3081
3082	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3083
30842005-07-25  Andrey Kiselev  <[email protected]>
3085
3086	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3087
3088	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3089
30902005-07-21  Andrey Kiselev  <[email protected]>
3091
3092	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3093	the TIFFWriteCheck() function in case of single band images (as per
3094	TIFF spec).
3095
30962005-07-12  Andrey Kiselev  <[email protected]>
3097
3098	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3099	support for SCons software building tool (http://www.scons.org/).
3100	This is experimental infrastructure and it will exist along with the
3101	autotools mechanics.
3102
31032005-07-07  Andrey Kiselev  <[email protected]>
3104
3105	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3106	the NetBSD source tree (the old	4-clause BSD license changed to
3107	the new 3-clause one).
3108
3109	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3110	replacement module.
3111
3112	* port/dummy.c: Make the dummy function static.
3113
31142005-07-06  Andrey Kiselev  <[email protected]>
3115
3116	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3117
3118	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3119	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3120	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3121
31222005-07-04  Andrey Kiselev  <[email protected]>
3123
3124	* libtiff 3.7.3 released.
3125
3126	* configure, configure.ac: Do not use empty -R option when linking
3127	with --enable-rpath.
3128
31292005-07-01  Andrey Kiselev  <[email protected]>
3130
3131	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3132	reading the first IFD when needed. As per bug
3133
3134	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3135
3136	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3137	effects.
3138
31392005-06-23  Andrey Kiselev  <[email protected]>
3140
3141	* tools/tiff2pdf.c: Print two characters per loop in the
3142	t2p_write_pdf_trailer(). As per bug
3143
3144	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3145
3146	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3147	per bug
3148
3149	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3150
3151	* acinclude.m4: Updated to latest OpenGL test macros versions.
3152
3153	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3154	platform. As per bug
3155
3156	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3157
31582005-06-14  Andrey Kiselev  <[email protected]>
3159
3160	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3161	and YClipPathUnits tags.
3162
31632005-06-07  Andrey Kiselev  <[email protected]>
3164
3165	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3166	use pixel sized shift in contigous case.
3167
31682005-06-06  Andrey Kiselev  <[email protected]>
3169
3170	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3171	Make overviews working for contiguos images.
3172
31732005-06-03  Andrey Kiselev  <[email protected]>
3174
3175	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3176	time one.
3177
3178	* libtiff/tif_predict.c: Floating point predictor now works on
3179	big-endian hosts.
3180
31812005-06-01  Andrey Kiselev  <[email protected]>
3182
3183	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3184	ASCII values.
3185
3186	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3187	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3188	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3189	TargetPrinter tags custom.
3190
3191	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3192	TIFF_CODERSETUP flag (to fix memry leaks).
3193
3194	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3195	allocating.
3196
31972005-05-26  Andrey Kiselev  <[email protected]>
3198
3199	* configure.ac, libtiff/Makefile.am: Added workaround for
3200	OpenBSD/MirOS soname problem as per bug
3201
3202	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3203
3204	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3205	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3206	per bug
3207
3208	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3209
32102005-05-25  Andrey Kiselev  <[email protected]>
3211
3212	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3213	the fscanf() function. As per bug
3214
3215	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3216
3217	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3218	uint16 array when fetching the BYTE and SBYTE filds, so we should
3219	consider result as pointer to uint16 array and not as array of chars.
3220	As per bug
3221
3222	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3223
3224	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3225
3226	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3227
3228	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3229	mode in CreateFile() call as per bug
3230
3231	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3232
3233	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3234	libtiffxx libraries as per bug
3235
3236	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3237
3238	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3239	GDAL.
3240
32412005-05-23  Frank Warmerdam  <[email protected]>
3242
3243	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3244	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3245	in directory.
3246
32472005-05-22  Frank Warmerdam  <[email protected]>
3248
3249	* libtiff/tif_dirread.c: Changed the code that computes
3250	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3251	zero. This is a common case with GDAL indicating a "null" tile/strip.
3252
32532005-05-17  Andrey Kiselev  <[email protected]>
3254
3255	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
3256
32572005-05-06  Frank Warmerdam  <[email protected]>
3258
3259	* libtiff/tif_dirread.c: Applied similar change to
3260	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
3261
3262	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3263
3264	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
3265
32662005-05-06  Andrey Kiselev  <[email protected]>
3267	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
3268	added new option '-b' to use interpolation in output PDF files (Bruno
3269	Ledoux).
3270
32712005-05-05  Frank Warmerdam  <[email protected]>
3272
3273	* libtiff/tif_dirread.c: Ensure that broken files with too many
3274	values in PerSampleShorts work ok instead of crashing.
3275
3276	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3277
32782005-04-27  Andrey Kiselev  <[email protected]>
3279
3280	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
3281	input file.
3282
32832005-04-15  Andrey Kiselev  <[email protected]>
3284
3285	* libtiff/tif_predict.c: Added ability to encode floating point
3286	predictor, as per TIFF Technical Note 3.
3287
32882005-04-14  Andrey Kiselev  <[email protected]>
3289
3290	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
3291	floating point predictor, as per TIFF Technical Note 3.
3292
32932005-04-13  Andrey Kiselev  <[email protected]>
3294
3295	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
3296	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
3297	swap 24-bit floating point values.
3298
3299	* libtiff/tiff.h: Added predictor constants.
3300
33012005-04-08  Andrey Kiselev  <[email protected]>
3302
3303	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
3304	values in _TIFFVSetField() function. Inspired by the bug
3305
3306	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3307
3308	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
3309	as per bug
3310
3311	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3312
33132005-03-30  Andrey Kiselev  <[email protected]>
3314
3315	* libtiff/tif_open.c: Do not read header in case the output file
3316	should be truncated (Ron).
3317
3318	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
3319	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
3320
3321	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
3322
33232005-03-22  Andrey Kiselev  <[email protected]>
3324
3325	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
3326	rpath option.
3327
33282005-03-21  Andrey Kiselev  <[email protected]>
3329
3330	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
3331	tags.
3332
33332005-03-18  Andrey Kiselev  <[email protected]>
3334
3335	* libtiff/dirinfo.c: Added DNG tags.
3336
3337	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
3338	handling code.
3339
3340	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
3341	added DNG 1.1.0.0 tags.
3342
3343	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
3344	bug
3345
3346	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
3347
3348	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
3349
33502005-03-17  Andrey Kiselev  <[email protected]>
3351
3352	* nmake.opt: Build with Win32 CRT library by default.
3353
3354	* tools/tiff2ps.c: Fixed typo in page size handling code.
3355
3356	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
3357	by value.
3358
3359	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
3360
33612005-03-15  Andrey Kiselev  <[email protected]>
3362
3363	* libtiff 3.7.2 released.
3364
33652005-03-09  Andrey Kiselev  <[email protected]>
3366
3367	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
3368	floating point data; complain on unsupported bit depths.
3369
33702005-03-05  Andrey Kiselev  <[email protected]>
3371
3372	* tif_stream.cxx: Use ios namespace instead of ios_base to support
3373	GCC 2.95.
3374
3375	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
3376	Lee Howard for HylaFax DCS tag
3377	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
3378
33792005-03-04  Andrey Kiselev  <[email protected]>
3380
3381	* configure, configure.ac: Use -rpath option instead of -R as per bug
3382
3383	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
3384
3385	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
3386	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
3387	software. As per bug
3388
3389	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
3390
3391	* nmake.opt, html/build.html: Add more comments, change the config
3392	file organization a bit as per bug
3393
3394	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
3395
3396	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
3397	as per bug
3398
3399	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
3400
34012005-03-03  Andrey Kiselev  <[email protected]>
3402
3403	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
3404	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3405
3406	* tools/fax2ps.c: Replace insecure mktemp() function with the
3407	tmpfile() as per bug
3408
3409	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
3410
34112005-02-04  Andrey Kiselev  <[email protected]>
3412
3413	* libtiff/tiff.h: Changed the int8 definition to be always signed char
3414	as per bug
3415
3416	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3417
3418	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
3419	block as per bug
3420
3421	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
3422
34232005-02-03  Bob Friesenhahn  <[email protected]>
3424
3425	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
3426	display more correctly.  Images display brighter than they should
3427	on a Sun workstation.
3428
34292005-02-03  Andrey Kiselev  <[email protected]>
3430
3431	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
3432	suspicious values in the tags. As per bugs
3433
3434	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3435
3436	and
3437
3438	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
3439
3440	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
3441
3442	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
3443
34442005-01-31  Bob Friesenhahn  <[email protected]>
3445
3446	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
3447	(TIFFTAG_TILELENGTH): Corrected description.
3448
34492005-01-30  Andrey Kiselev  <[email protected]>
3450
3451	* configure.ac: Fixes for --with-docdir option as per bug
3452
3453	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
3454
3455	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
3456	bug
3457
3458	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
3459
3460	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
3461	Michael Rinne and Edward Lam.
3462
34632005-01-15  Andrey Kiselev  <[email protected]>
3464
3465	* configure.ac: Make the documentation directory location configurable
3466	via the --with-docdir option (as suggested by Jeremy C. Reed).
3467
3468	* libtiff/tif_color.c: Use double as the second argument of pow()
3469	function in TIFFCIELabToRGBInit(). As per bug
3470
3471	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
3472
3473	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
3474	integer as per bug
3475
3476	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
3477
3478	* libtiff/tif_getimage.c: Always fill the error message buffer in
3479	TIFFRGBAImageBegin() as per bug
3480
3481	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
3482
34832005-01-12  Andrey Kiselev  <[email protected]>
3484
3485	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
3486	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
3487	tags as per bug
3488
3489	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
3490
3491	* libtiff/tif_win32.c: Fixed message formatting in functions
3492	Win32WarningHandler() and Win32ErrorHandler() as per bug
3493
3494	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
3495
3496	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
3497	per bug
3498
3499	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
3500
35012005-01-11  Andrey Kiselev  <[email protected]>
3502
3503	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
3504	"C"' section as per bug
3505
3506	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3507
3508	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
3509	compiler to avoid double definition of BSD types as per bug
3510
3511	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3512
3513	* libtiff/Makefile.am: Place the C++ stream API in the separate
3514	library called libtiffxx to avoid unneeded dependencies. Probably
3515	there will be more C++ API in the future. As per bugs
3516
3517	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
3518
3519	and
3520
3521	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3522
35232005-01-05  Andrey Kiselev  <[email protected]>
3524
3525	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
3526	wrong tag counts (Dmitry V. Levin, Martin Pitt).
3527
3528	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
3529	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3530
35312004-12-25  Andrey Kiselev  <[email protected]>
3532
3533	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
3534	RGB-images as per bug
3535
3536	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3537
3538
3539	* tools/tiffset.c: Convert character option to integer value as per
3540	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
3541
35422004-12-20  Andrey Kiselev  <[email protected]>
3543
3544	* libtiff 3.7.1 released.
3545
3546	* html/tiffset.1.html: Add missed manual page as per bug
3547
3548	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3549
3550	* libtiff/tiff.h: Revert back libtiff data type definitions as per
3551	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
3552
35532004-12-19  Andrey Kiselev  <[email protected]>
3554
3555	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
3556	checking for tag count in TIFFReadDirectory() function. As per bug
3557
3558	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3559
3560	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
3561	CheckMallock() function.
3562
3563	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
3564	RGB-images as per bug
3565
3566	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
3567
35682004-12-15  Frank Warmerdam  <[email protected]>
3569
3570	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
3571	SunPro compiler.
3572
35732004-12-11  Bob Friesenhahn  <[email protected]>
3574
3575	* autogen.sh: aclocal and autoheader should be executed after
3576	libtoolize.  Also add '-I .' to aclocal invocation to check
3577	current directory for macros.
3578
35792004-12-10  Andrey Kiselev  <[email protected]>
3580
3581	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
3582	as per bugs
3583
3584	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
3585
3586	and
3587
3588	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
3589
35902004-12-04  Andrey Kiselev  <[email protected]>
3591
3592	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
3593
3594	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3595
3596	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
3597	mode as per bug
3598
3599	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3600
3601	* libtiff/tif_config.in.vc: Removed unneded definitions for
3602	read/open/close/lseek functions to fix the
3603
3604	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
3605
36062004-12-03  Andrey Kiselev  <[email protected]>
3607
3608	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
3609	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
3610	must be removed in the future, as it was never used properly. As per
3611	bug
3612
3613	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
3614
36152004-11-30  Bob Friesenhahn  <[email protected]>
3616
3617	* libtiff/tif_jpeg.c: Added a work-around in order to allow
3618	compilation with the heavily modified version of libjpeg delivered
3619	with Cygwin.
3620
36212004-11-29  Andrey Kiselev  <[email protected]>
3622
3623	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
3624	counts. As per bug
3625
3626	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
3627
3628	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
3629
3630	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
3631
36322004-11-28  Andrey Kiselev  <[email protected]>
3633
3634	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
3635	on Windows.
3636
3637	* nmake.opt: Add missed DLLNAME variable.
3638
36392004-11-26  Frank Warmerdam  <[email protected]>
3640
3641	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
3642
36432004-11-24  Andrey Kiselev  <[email protected]>
3644
3645	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
3646	per bug
3647
3648	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
3649
3650	* man/tiffset.1: Added manual page for tiffset tool written by Jay
3651	Berkenbilt. As per bug
3652
3653	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3654
36552004-11-23  Frank Warmerdam  <[email protected]>
3656
3657	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
3658
36592004-11-21  Frank Warmerdam  <[email protected]>
3660
3661	* html/document.html: Updated Adobe web links as per email from Joris.
3662
36632004-11-21  Andrey Kiselev  <[email protected]>
3664
3665	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
3666	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
3667	use C++ streams should #include <tiffio.hxx>.
3668
36692004-11-13  Andrey Kiselev  <[email protected]>
3670
3671	* libtiff/tiff.h: Added Adobe DNG tags.
3672
3673	* libtiff/tif_win32.c: Typo fixed.
3674
3675	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
3676	be compliant with the latest standard. Appropriate additions in
3677	makefiles now completed.
3678
36792004-11-11  Andrey Kiselev  <[email protected]>
3680
3681	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
3682	different tag types. As per bug
3683
3684	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
3685
36862004-11-10  Andrey Kiselev  <[email protected]>
3687
3688	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
3689	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
3690
36912004-11-09  Andrey Kiselev  <[email protected]>
3692
3693	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
3694
36952004-11-07  Andrey Kiselev  <[email protected]>
3696
3697	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
3698	contributed by Edward Lam (see
3699	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
3700	Though no changes in any makefiles yet.
3701
37022004-11-05  Frank Warmerdam  <[email protected]>
3703
3704	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
3705	is bad. This is the callers responsibility.
3706	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
3707
37082004-11-05  Andrey Kiselev  <[email protected]>
3709
3710	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
3711	function to work with the double byte strings (used to represent
3712	filenames in some locales). As per bug
3713
3714	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
3715
3716	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
3717	Compression tags of type LONG from broken TIFFS as per bug
3718
3719	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3720
3721	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
3722	the writecount should have uint32 type. As per bug
3723
3724	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3725
3726	* libtiff/tif_write.c: Fixed wrong if() statement in
3727	TIFFAppendToStrip() function as per bug
3728
3729	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
3730
37312004-11-04  Andrey Kiselev  <[email protected]>
3732
3733	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
3734	field. The caller should supply a count when setting this field. As
3735	per bug
3736
3737	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
3738
3739	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
3740	uint32 count. Use this type everywhere.
3741
37422004-11-03  Frank Warmerdam  <[email protected]>
3743
3744	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
3745
37462004-11-02  Frank Warmerdam  <[email protected]>
3747
3748	* tools/tiff2rgba.c: removed extra newlines in usage message.
3749
37502004-10-30  Andrey Kiselev  <[email protected]>
3751
3752	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
3753
3754	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
3755	tags (Tristan Hill).
3756
37572004-10-30  Frank Warmerdam  <[email protected]>
3758
3759	* libtiff/tiffiop.h: added fallback definition of assert() if we
3760	don't have assert.h.
3761
37622004-10-29  Andrey Kiselev  <[email protected]>
3763
3764	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
3765	choosing when the incorrect Group4Options tag set. As per bug
3766
3767	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
3768
3769	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
3770	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
3771	TIFFWriteNormalTag().
3772
37732004-10-28  Andrey Kiselev  <[email protected]>
3774
3775	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
3776	tags (Peter Fales).
3777
3778	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
3779
37802004-10-28  Frank Warmerdam  <[email protected]>
3781
3782	* tools/tiff2pdf.c: added casts to avoid warnings.
3783
3784	* libtiff/libtiff.def: Added several more entry points required
3785	to link fax2tiff.c against the DLL on windows.
3786
37872004-10-27  Andrey Kiselev  <[email protected]>
3788
3789	* configure, configure.ac: Added --enable-rpath option to embed linker
3790	paths into library binary.
3791
37922004-10-26  Andrey Kiselev  <[email protected]>
3793
3794	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
3795
3796	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
3797	(Vladimir Nadvornik, Dmitry V. Levin).
3798
37992004-10-16  Andrey Kiselev  <[email protected]>
3800
3801	* libtiff 3.7.0 released.
3802
38032004-10-15  Bob Friesenhahn  <[email protected]>
3804
3805	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
3806	in this file so its inclusion is removed.  Including stdio.h
3807	sometimes incurs an INT32 typedef conflict between MinGW's
3808	basetsd.h and libjpeg's jmorecfg.h.
3809
38102004-10-15  Andrey Kiselev  <[email protected]>
3811
3812	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
3813
38142004-10-13  Bob Friesenhahn  <[email protected]>
3815
3816	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
3817	conflict noticed under MinGW.
3818	* ltmain.sh: Fix for MinGW compilation.
3819
38202004-10-13  Frank Warmerdam  <[email protected]>
3821
3822	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
3823	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
3824
38252004-10-12  Andrey Kiselev  <[email protected]>
3826
3827	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
3828	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
3829	properly (Dmitry V. Levin, Marcus Meissner).
3830
38312004-10-11  Andrey Kiselev  <[email protected]>
3832
3833	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
3834	to TIFF_IFD.
3835
38362004-10-10  Andrey Kiselev  <[email protected]>
3837
3838	* tools/bmp2tif.c: Check the space allocation results.
3839
38402004-10-09  Andrey Kiselev  <[email protected]>
3841
3842	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
3843	of the TIFFDirectory structure with the 0 instead of -1 to avoid
3844	confusing integer overflows in TIFFTileRowSize() for striped images.
3845
3846	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
3847	by Ross A. Finlayson.
3848
3849	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
3850
3851	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
3852
38532004-10-08  Frank Warmerdam  <[email protected]>
3854
3855	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
3856	of tif_fieldinfo.
3857
3858	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
3859
38602004-10-04  Bob Friesenhahn  <[email protected]>
3861
3862	* contrib/iptcutil/README: Added the missing README which goes
3863	along with iptcutil.
3864
38652004-10-03  Andrey Kiselev  <[email protected]>
3866
3867	* libtiff/tif_compress.c: Improved error reporting in
3868	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
3869
38702004-10-02  Andrey Kiselev  <[email protected]>
3871
3872	* libtiff 3.7.0beta2 released.
3873
3874	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
3875	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
3876	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
3877	allocations and	integer overflows (Dmitry V. Levin).
3878
3879	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
3880
38812004-10-01  Frank Warmerdam  <[email protected]>
3882
3883	* libtiff/tif_open.c: added a more informative message if a BigTIFF
3884	file is opened.
3885
38862004-09-30  Frank Warmerdam  <[email protected]>
3887
3888	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
3889	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
3890	in the Adobe XMP Specification.
3891
38922004-09-29  Andrey Kiselev  <[email protected]>
3893
3894	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
3895	memset().
3896
3897	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
3898	from Dmitry V. Levin to fix possible integer overflow problems.
3899
39002004-09-28  Andrey Kiselev  <[email protected]>
3901
3902	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
3903	(Dmitry V. Levin).
3904
39052004-09-26  Andrey Kiselev  <[email protected]>
3906
3907	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
3908	Optimize checking for the strip bounds.
3909
3910	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
3911	TIFFRasterScanlineSize() functions report zero in the case of integer
3912	overflow now. Properly handle this case in TIFFReadDirectory()
3913	(patches from Dmitry V. Levin).
3914
39152004-09-25  Andrey Kiselev  <[email protected]>
3916
3917	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
3918	macro where appropriate.
3919
3920	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
3921	noted by Gennady Khokhorin.
3922
3923	* libtiff/tif_dirread.c: Always check the return values, returned
3924	by the _TIFFmalloc() (Dmitry V. Levin).
3925
3926	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
3927	functions (Dmitry V. Levin).
3928
3929	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
3930	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
3931	TIFFGrowStrips() (found by Dmitry V. Levin).
3932
39332004-09-24  Andrey Kiselev  <[email protected]>
3934
3935	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
3936	to get the list of configured codecs.
3937
3938	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
3939	Dmitry V. Levin.
3940
39412004-09-23  Andrey Kiselev  <[email protected]>
3942
3943	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
3944	possible integer overflow in CheckMalloc() function.
3945
39462004-09-22  Andrey Kiselev  <[email protected]>
3947
3948	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
3949	of plain TIFFhowmany() where appropriate.
3950
39512004-09-21  Andrey Kiselev  <[email protected]>
3952
3953	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
3954
39552004-09-19  Andrey Kiselev  <[email protected]>
3956
3957	* libtiff 3.7.0beta released.
3958
3959	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
3960	overruns fixed, as noted by Chris Evans.
3961
39622004-09-14  Bob Friesenhahn  <[email protected]>
3963
3964	* commit: Added a script to make it more convenient to commit
3965	updates.  The CVS commit message is extracted from this ChangeLog
3966	file.
3967
39682004-09-14  Andrey Kiselev  <[email protected]>
3969
3970	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
3971	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
3972	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
3973	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
3974	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
3975	tif_config.h.in, tiffiop.h}:
3976	Get rid of BSD data types (u_char, u_short, u_int, u_long).
3977
39782004-09-13  Bob Friesenhahn  <[email protected]>
3979
3980	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
3981	specification. Reference libtiff bug tracking system to submit
3982	private tag additions.
3983
39842004-09-12  Bob Friesenhahn  <[email protected]>
3985
3986	* tools/tiffgt.c: Include "tif_config.h".
3987
3988	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
3989	tiffgt.  This results in the 'compile' script being added to the
3990	project.
3991
3992	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
3993	required to find OpenGL headers necessary to build tiffgt.  Also
3994	ensure that the libtiff that we built is used rather than some other
3995	libtiff installed on the system.
3996
39972004-09-12  Andrey Kiselev  <[email protected]>
3998
3999	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
4000	libraries.
4001
40022004-09-11  Bob Friesenhahn  <[email protected]>
4003
4004	* configure.ac: Pass library configuration defines via
4005	tif_config.h rather than extending CPPFLAGS. Configure a
4006	libtiff/tiffconf.h in order to satisfy application requirements
4007	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
4008	this causes failure to build on systems which properly respect
4009	this request.
4010
4011	* libtiff/tiffconf.h.in: New file to act as the template for the
4012	configured tiffconf.h
4013
4014	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
4015
40162004-09-10  Frank Warmerdam  <[email protected]>
4017
4018	* html/internals.html: Split off a discussion of adding new tags
4019	into addingtags.html.
4020
40212004-09-10  Andrey Kiselev  <[email protected]>
4022
4023	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
4024
4025	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
4026
4027	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4028
4029	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
4030
4031	* libtiff/tif_dirread.c: Don't reject to read tags of the
4032	SamplesPerPixel size when the tag count is greater than number of
4033	samples as per bug
4034
4035	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
4036
4037	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
4038	defining int8/uint8/... etc. types. As per bug
4039
4040	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
4041
40422004-09-09  Frank Warmerdam  <[email protected]>
4043
4044	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
4045	to avoid compile warnings about getopt() and a few other things.
4046
40472004-09-02  Andrey Kiselev  <[email protected]>
4048
4049	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
4050	assigning magic in TIFFFetchFloat().
4051
40522004-09-01  Andrey Kiselev  <[email protected]>
4053
4054	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
4055	to avoid requirement for tiffiop.h inclusion in some applications. See
4056	here
4057
4058	http://www.asmail.be/msg0054799560.html
4059
4060	for details.
4061
4062	* tools/fax2tiff.c: Use the new functions in the code.
4063
40642004-08-25  Andrey Kiselev  <[email protected]>
4065
4066	* tools/tiff2pdf.c: Initialize arrays properly.
4067
4068	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
4069	properly initialize array in PSDataBW().
4070
40712004-08-24  Andrey Kiselev  <[email protected]>
4072
4073	* tools/tiff2pdf.c: More fixes for bug
4074
4075	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4076
4077	from Ross Finlayson.
4078
40792004-08-23  Andrey Kiselev  <[email protected]>
4080
4081	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4082
4083	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4084	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4085
4086	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4087
4088	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4089
40902004-08-20  Andrey Kiselev  <[email protected]>
4091
4092	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4093	that the input file has compression, photometric interpretation,
4094	etcetra, tags or if not than a more descriptive error is returned.
4095
4096	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4097	code, responsible for tag data type checking.
4098
40992004-08-19  Andrey Kiselev  <[email protected]>
4100
4101	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4102	variable as per bug
4103
4104	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4105
41062004-08-16  Andrey Kiselev  <[email protected]>
4107
4108	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4109	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4110
41112004-08-01  Andrey Kiselev  <[email protected]>
4112
4113	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4114	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4115
41162004-07-24  Andrey Kiselev  <[email protected]>
4117
4118	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4119	separate package. All libtiff tools are updated to not advertise an
4120	abcence of LZW support.
4121
41222004-07-12  Andrey Kiselev  <[email protected]>
4123
4124	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4125
41262004-07-11  Andrey Kiselev  <[email protected]>
4127
4128	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4129	messages, as suggested by Bernd Herd.
4130
41312004-07-03  Andrey Kiselev  <[email protected]>
4132
4133	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4134	when setting custom tags by value. Reported by Eric Fieleke.
4135
41362004-06-14  Andrey Kiselev  <[email protected]>
4137
4138	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4139
41402004-06-08  Andrey Kiselev  <[email protected]>
4141
4142	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4143	into TIFFs.
4144
41452004-06-07  Andrey Kiselev  <[email protected]>
4146
4147	* libtiff 3.7.0alpha released.
4148
41492004-06-06  Andrey Kiselev  <[email protected]>
4150
4151	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4152	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4153	ones :-).
4154
4155	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4156	problems in 64-bit environment).
4157
41582004-06-05  Andrey Kiselev  <[email protected]>
4159
4160	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4161	Tags can be supplied by the mnemonic name or number.
4162
4163	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4164	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4165
41662004-05-27  Andrey Kiselev  <[email protected]>
4167
4168	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4169	markers as per bug
4170
4171	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4172
41732004-05-24  Andrey Kiselev  <[email protected]>
4174
4175	* tools/tiffsplit.c: Don't forget to copy Photometric
4176	Interpretation tag.
4177
41782004-05-20  Andrey Kiselev  <[email protected]>
4179
4180	* libtiff/{tif_open.c, tiffio.h}: New function added:
4181	TIFFIsBigEndian(). Function returns nonzero if given was file written
4182	in big-endian order.
4183
4184	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4185	files. Now output files will be written using the same byte order
4186	flag as	in the input image. See
4187
4188	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4189
4190	for details.
4191
41922004-05-19  Frank Warmerdam  <[email protected]>
4193
4194	* libtiff/tif_print.c: added (untested) support for printing
4195	SSHORT, SLONG and SRATIONAL fields.
4196
4197	* tools/tiffcp.c: close output file on normal exit.
4198
41992004-05-17  Andrey Kiselev  <[email protected]>
4200
4201	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4202	if compression type mismatches. See
4203
4204	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4205
42062004-04-30  Andrey Kiselev  <[email protected]>
4207
4208	* libtiff/tif_strip.c: Never return 0 from the
4209	TIFFNumberOfStrips().
4210
42112004-04-29  Andrey Kiselev  <[email protected]>
4212
4213	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4214	store single SampleFormat value for multisampled images. See
4215
4216	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4217
42182004-04-25  Andrey Kiselev  <[email protected]>
4219
4220	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4221	int16 and int32 types to avoid complains on some compilers. Details at
4222
4223	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4224
42252004-04-20  Andrey Kiselev  <[email protected]>
4226
4227	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4228
4229	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4230
42312004-04-14  Andrey Kiselev  <[email protected]>
4232
4233	* libtiff/tif_write.c: Allow in-place updating of the compressed
4234	images (don't work properly with all codecs). For details see GDAL bug
4235
4236	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4237
42382004-04-06  Andrey Kiselev  <[email protected]>
4239
4240	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4241	in the Intergarph JPEG compressed TIFF images as per bug:
4242
4243	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4244
42452004-04-04  Frank Warmerdam  <[email protected]>
4246
4247	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4248	via bad2.
4249
42502004-03-26  Andrey Kiselev  <[email protected]>
4251
4252	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4253	JPEG compression of grayscale images.
4254
4255	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
4256	present in the input image.
4257
42582004-03-19  Andrey Kiselev  <[email protected]>
4259
4260	* {many}: The first attempt to switch to autotools.
4261
42622004-03-03  Andrey Kiselev  <[email protected]>
4263
4264	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
4265	TIFFClientOpen() when the appropriate client functions was not
4266	supplied by user.
4267
42682004-03-02  Frank Warmerdam  <[email protected]>
4269
4270	* tools/ycbcr.c: fixed main() declaration as per:
4271	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
4272
42732004-02-26  Andrey Kiselev  <[email protected]>
4274
4275	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
4276	images. Reported by Artem Mirolubov.
4277
4278	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
4279	tag type in TIFFFetchNormalTag() as per bug
4280
4281	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
4282
42832004-02-17  Frank Warmerdam  <[email protected]>
4284
4285	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
4286	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
4287
42882004-02-05  Andrey Kiselev  <[email protected]>
4289
4290	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
4291	bug
4292
4293	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
4294
4295	But we need more work on fax codec to support update mode.
4296
42972004-01-30  Frank Warmerdam  <[email protected]>
4298
4299	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
4300	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
4301	Scott Reynolds.
4302
43032004-01-29  Andrey Kiselev  <[email protected]>
4304
4305	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
4306	and TIFFTAG_INDEXED as per bug
4307
4308	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
4309
4310	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
4311	NULL before proceeding further as per bug
4312
4313	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
4314
4315	Check results, returned by the TIFFFdOpen() before returning and close
4316	file if TIFFFdOpen() failed as per bug
4317
4318	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4319
4320	* libtiff/tif_open.c: More fixes for
4321
4322	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4323
43242004-01-28  Andrey Kiselev  <[email protected]>
4325
4326	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
4327	TIFFCleanup() from the TIFFClose() in order to fix the bug
4328
4329	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4330
4331	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
4332	InkNames tag as per bug
4333
4334	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
4335
4336	Memory leak fixed.
4337
43382004-01-21  Frank Warmerdam  <[email protected]>
4339
4340	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
4341	are field_passcount=TRUE properly.  Arguably anonymous custom tags
4342	should be declared as passcount=FALSE, but I don't want to change
4343	that without a careful review.
4344
43452004-01-20  Andrey Kiselev  <[email protected]>
4346
4347	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
4348	stripped image in TIFFWriteBufferSetup(). As per bug
4349
4350	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
4351
43522004-01-11  Andrey Kiselev  <[email protected]>
4353
4354	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
4355	patch from Gerben Koopmans.
4356
4357	* libtiff/tif_dirread.c: Check field_passcount value before setting
4358	the value of undefined type, patch from Gerben Koopmans.
4359
43602004-01-02  Andrey Kiselev  <[email protected]>
4361
4362	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
4363	non-RGB images.
4364
43652003-12-31  Andrey Kiselev  <[email protected]>
4366
4367	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
4368	pointer passed. Patch supplied by Larry Grill.
4369
4370	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
4371	suggested by Jeremy C. Reed.
4372
43732003-12-26  Andrey Kiselev  <[email protected]>
4374
4375	* libtiff 3.6.1 released.
4376
43772003-12-24  Andrey Kiselev  <[email protected]>
4378
4379	* config.guess, config.sub: Updated from the recent upstream.
4380
43812003-12-22  Andrey Kiselev  <[email protected]>
4382
4383	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
4384	More cleanups in color conversion interface, added appropriate manual
4385	page.
4386
43872003-12-19  Andrey Kiselev  <[email protected]>
4388
4389	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
4390	per bug
4391
4392	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4393
4394	* tools/tiff2ps.c: Added support for alpha channel. Fixes
4395
4396	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
4397
4398	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
4399	Interface for Lab->RGB color conversion is finally cleaned up.
4400	Added support for ReferenceBlackWhite tag handling when converted from
4401	YCbCr color space. The latter closes
4402
4403	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
4404
44052003-12-07  Andrey Kiselev  <[email protected]>
4406
4407	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
4408
4409	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
4410	library.
4411
44122003-12-06  Andrey Kiselev  <[email protected]>
4413
4414	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
4415	file and properly use it for CIE Lab->RGB transform.
4416
44172003-12-04  Andrey Kiselev  <[email protected]>
4418
4419	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
4420	conversion routines now in the tif_color.c module. New function
4421	TIFFYCbCrtoRGB() available in TIFF API.
4422
4423	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
4424
44252003-12-03  Andrey Kiselev  <[email protected]>
4426
4427	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
4428	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
4429	module.
4430
4431	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
4432	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
4433	Finally resolved problems with orientation handling. TIFFRGBAImage
4434	interface now properly supports all possible orientations, i.e. images
4435	will be flipped both in horizontal and vertical directions if
4436	required. 'Known bugs' section now removed from the appropriate manual
4437	pages. Closed bug entry:
4438
4439	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4440
44412003-12-02  Andrey Kiselev  <[email protected]>
4442
4443	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
4444	function calls as per bug
4445
4446	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
4447
44482003-11-28 Ross Finlayson  <[email protected]>
4449
4450	* tools/tiff2pdf.c:  Some bugs fixed.
4451
44522003-11-27  Andrey Kiselev  <[email protected]>
4453
4454	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
4455	reported by Antonio Scuri.
4456
4457	* man/tiff2pdf.1: Few improvements in page layout.
4458
4459	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
4460	 Added support fpr tiff2pdf manual page.
4461
44622003-11-26 Ross Finlayson  <[email protected]>
4463
4464	* /man/tiff2pdf.1:  File added to repository.
4465
44662003-11-26  Andrey Kiselev  <[email protected]>
4467
4468	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
4469	 Added support fpr tiff2pdf utility.
4470
44712003-11-25  Ross Finlayson  <[email protected]>
4472
4473	* /tools/tiff2pdf.c:  File added to repository.
4474
44752003-11-22  Andrey Kiselev  <[email protected]>
4476
4477	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
4478
44792003-11-21  Andrey Kiselev  <[email protected]>
4480
4481	* /tools/raw2tiff.c: #include <getopt.h> removed.
4482
4483	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
4484	sgigt utility removed and replaced with the completely rewritten
4485	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
4486	there is a lot of things to improve.
4487
4488	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
4489	extract the fields from the OJPEG files. Patch supplied by Ross
4490	Finlayson.
4491
4492	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
4493	Added new function TIFFIsCODECConfigured(), suggested by Ross
4494	Finlayson.
4495
44962003-11-18  Andrey Kiselev  <[email protected]>
4497
4498	* libtiff/tif_dirinfo.c: Implemented binary search in
4499	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
4500
4501	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
4502	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
4503
45042003-11-17  Frank Warmerdam  <[email protected]>
4505
4506	* tif_dirread.c: do not mark all anonymously defined tags to be
4507	IGNOREd.
4508
45092003-11-17  Andrey Kiselev  <[email protected]>
4510
4511	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
4512	TIFFDataWidth() function insted of tiffDataWidth array.
4513
45142003-11-16  Andrey Kiselev  <[email protected]>
4515
4516	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
4517	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
4518
45192003-11-15  Frank Warmerdam  <[email protected]>
4520
4521	* Makefile.in: fixed missing backslash for tif_color.c in list.
4522
45232003-11-13  Andrey Kiselev  <[email protected]>
4524
4525	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
4526	New color space conversion code: CIE L*a*b* 1976 images now supported
4527	by the TIFFRGBAImage interface. All introduced routines go to new
4528	module tif_color.c. Eventually all color conversion functions should
4529	be moved there.
4530
45312003-11-12  Andrey Kiselev  <[email protected]>
4532
4533	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
4534	with the reverse byte order (it is reported by the magic header
4535	field). Problem reported by Andreas Wiesmann.
4536
4537	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
4538	calculation function. Guessing mechanics now documented in manual page.
4539
45402003-11-11  Andrey Kiselev  <[email protected]>
4541
4542	* tools/raw2tiff.c: Implemented image size guessing using
4543	correlation coefficient calculation between two neighbour lines.
4544
45452003-11-09  Frank Warmerdam  <[email protected]>
4546
4547	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
4548	planarconfig_contig case in TIFFComputeTile().
4549
4550	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
4551
45522003-11-09  Andrey Kiselev  <[email protected]>
4553
4554	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
4555
45562003-11-07  Andrey Kiselev  <[email protected]>
4557
4558	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
4559	Added TIFFRawStripSize() function as suggested by Chris Hanson.
4560
45612003-11-03  Andrey Kiselev  <[email protected]>
4562
4563	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
4564	per bug
4565
4566	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
4567
45682003-10-29  Andrey Kiselev  <[email protected]>
4569
4570	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
4571
4572	* html/build.html: Added note about GNU make requirement.
4573
45742003-10-25  Andrey Kiselev  <[email protected]>
4575
4576	* Makefile.in: Fixes in using MAKEFLAGS as per bug
4577
4578	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
4579
4580	* port/install.sh.in: Option -p added to the mkdir command to create
4581	all directory tree structure before installing.
4582
45832003-10-18  Andrey Kiselev  <[email protected]>
4584
4585	* /tools/tiff2ps.c: #include <strings.h> replaced with the
4586	#include <string.h>.
4587
45882003-10-16  Andrey Kiselev  <[email protected]>
4589
4590	* Makefile.in: Add an absolute path to the test_pics.sh call.
4591
45922003-10-12  Andrey Kiselev  <[email protected]>
4593
4594	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
4595	typedefs.
4596
45972003-10-09  Andrey Kiselev  <[email protected]>
4598
4599	* configure, libtiff/{Makefile.in, mkversion.c}:
4600	Relative buildings fixed.
4601
4602	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
4603	rule.
4604
46052003-10-07  Andrey Kiselev  <[email protected]>
4606
4607	* Makefile.in: Added missed v3.6.0.html.
4608
4609	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
4610	ORIENTATION_BOTLEFT.
4611
46122003-10-04  Andrey Kiselev  <[email protected]>
4613
4614	* 3.6.0 final release.
4615
46162003-10-03  Andrey Kiselev  <[email protected]>
4617
4618	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
4619	function TIFFReadRGBAImageOriented() implemented to retrieve raster
4620	array with user-specified origin position as suggested by Jason Frank.
4621	See
4622
4623	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4624
4625	for details.
4626
4627	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
4628	instead of TIFFReadRGBAImage().
4629
4630	* tools/tiff2ps.c: Fixed possible endless loop as per bug
4631
4632	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
4633
46342003-09-30  Andrey Kiselev  <[email protected]>
4635
4636	* libtiff/tif_dirread.c: Check field counter against number of fields
4637	in order to fix
4638
4639	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
4640
4641	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
4642
4643	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
4644
46452003-09-25  Andrey Kiselev  <[email protected]>
4646
4647	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
4648	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
4649
4650	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
4651
46522003-09-23  Andrey Kiselev  <[email protected]>
4653
4654	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
4655
4656	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4657
46582003-08-21  Andrey Kiselev  <[email protected]>
4659
4660	* tools/tiffmedian.c: int declaration replaced with the uint32 to
4661	support large images as per bug
4662
4663	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
4664
46652003-08-12  Andrey Kiselev  <[email protected]>
4666
4667 	* libtiff/Makefile.in: Fixed problem with building in different
4668	directory.
4669
4670	* tools/tiff2ps.c: Added missing #include <strings.h>.
4671
4672	* libtiff/tif_dirwrite.c: More fixes for custom tags code
4673	from Ashley Dreier.
4674
46752003-08-07  Andrey Kiselev  <[email protected]>
4676
4677	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
4678	Patch submitted by Balatoni Denes (with corrections from Tom
4679	Kacvinsky).
4680
4681	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
4682	being used. Reported by Tom Kacvinsky.
4683
4684	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
4685	reported by Ashley Dreier.
4686
4687	* libtiff/tif_print.c: Fixed problem with float tags reading, support
4688	for printing RATIONAL and BYTE tags added.
4689
46902003-08-05  Andrey Kiselev  <[email protected]>
4691
4692	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
4693	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
4694	problems with predictor initialization. Remove O_RDONLY check during
4695	state block allocation to be able open LZW compressed files in update
4696	mode.
4697
4698	Problem exist for libtiff version of the tif_lzw.c module. One from
4699	lzw-compression-kit hasn't such troubles.
4700
47012003-08-04  Frank Warmerdam  <[email protected]>
4702
4703	* libtiff/tif_write.c: modified tif_write.c so that the various
4704	encoded write functions use tif_postdecode() to apply byte order
4705	swapping (swab) to the application passed data buffer if the same
4706	would be done when reading.  This allows us to write pixel data with
4707	more than 8 bits per sample to existing files of a non-native byte
4708	order.  One side effect of this change is the applications buffer
4709	itself is altered in this case by the act of writing.
4710
4711	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
4712
47132003-07-25  Frank Warmerdam  <[email protected]>
4714
4715	* libtiff/tif_open.c: avoid signed/unsigned casting warning
4716	initializing typemask as per patch from J.A. Strother.
4717
4718	* tools/tiffcp.c: fixed signed/unsigned casting warning.
4719
4720	* libtiff/tif_print.c: dos2unix conversion.
4721
4722	* tools/tiffsplit.c: increased the maximum number of pages that
4723	can be split.  Patch provided by Andrew J. Montalenti.
4724
47252003-07-11  Andrey Kiselev  <[email protected]>
4726
4727	* tools/raw2tiff.c: Added option `-p' to explicitly select color
4728	space of input image data. Closes
4729
4730	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
4731
47322003-07-08  Frank Warmerdam  <[email protected]>
4733
4734	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
4735	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
4736	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
4737	avoid casting warning at /W4.
4738
47392003-07-03  Andrey Kiselev  <[email protected]>
4740
4741	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
4742
47432003-06-30  Andrey Kiselev  <[email protected]>
4744
4745	* libtiff/tif_pixarlog.c: Unused variables removed.
4746
4747	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
4748	EstimateStripByteCounts() as per bug
4749
4750	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4751
4752	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
4753	64-bit architectures as per bug
4754
4755	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4756
4757	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
4758	unknown data type.
4759
47602003-06-19  Frank Warmerdam  <[email protected]>
4761
4762	* libtiff/tif_print.c: fixed some serious bugs when printing
4763	custom tags ... almost certain to crash.
4764
4765	* libtiff/tif_dirread.c: Don't ignore custom fields that are
4766	autodefined.  Not sure how this got to be like this.
4767
47682003-06-18  Andrey Kiselev  <[email protected]>
4769
4770	* 3.6.0 Beta2 released.
4771
4772	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
4773	comparing as per bug
4774
4775	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
4776
4777	`-z' option now can be used to set the number of reported different
4778	bytes.
4779
47802003-06-09  Andrey Kiselev  <[email protected]>
4781
4782	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
4783	to -r option to get the entire image as one strip. See
4784
4785	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4786
4787	for details.
4788
47892003-06-04  Andrey Kiselev  <[email protected]>
4790
4791	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
4792	values as per bug
4793
4794	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4795
47962003-05-27  Frank Warmerdam  <[email protected]>
4797
4798	* libtiff/tif_jpeg.c: modified segment_height calculation to always
4799	be a full height tile for tiled images.  Also changed error to just
4800	be a warning.
4801
48022003-05-25  Andrey Kiselev  <[email protected]>
4803
4804	* tools/fax2tiff.c: Page numbering fixed, as per bug
4805
4806	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
4807
48082003-05-20  Andrey Kiselev  <[email protected]>
4809
4810	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4811	configure, Makefile.in:	Switched back to the old behaviour. Likely
4812	better solution should be found for OJPEG support.
4813
48142003-05-11  Andrey Kiselev  <[email protected]>
4815
4816	* libtiff/mkversion.c: Fixed problem with wrong string size when
4817	reading RELEASE-DATE file.
4818
48192003-05-07  Andrey Kiselev  <[email protected]>
4820
4821	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
4822	index was out of range.
4823
48242003-05-06  Andrey Kiselev  <[email protected]>
4825
4826	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4827	configure, Makefile.in:	Improved libtiff compilation with OJPEG
4828	support. Now no need for patching IJG JPEG library, hack requred by
4829	libtiff will be compiled and used in-place. Implemented with
4830	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
4831
4832	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
4833	TIFFVGetFieldDefaulted() function.
4834
48352003-05-05  Andrey Kiselev  <[email protected]>
4836
4837	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
4838	comments.
4839
4840	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
4841	was not copied from source image.
4842
4843	* libtiff/getimage.c: Workaround for some images without correct
4844	info about alpha channel as per bug
4845
4846	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
4847
48482003-04-29  Andrey Kiselev  <[email protected]>
4849
4850	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
4851	It basically allows one to use the /flateDecode filter for ZIP
4852	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
4853
4854	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
4855
4856	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
4857	as per bug
4858
4859	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
4860
48612003-04-17  Andrey Kiselev  <[email protected]>
4862
4863	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
4864	due to problems with multidirectory images. Quality of error messages
4865	improved.
4866
48672003-04-16  Andrey Kiselev  <[email protected]>
4868
4869	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
4870	encoded images. See bug entries
4871
4872	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
4873
4874	and
4875
4876	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
4877
4878	* libtiff/tif_dirread.c: Additional check for StripByteCounts
4879	correctness. Fixes
4880
4881	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
4882
48832003-03-12  Andrey Kiselev  <[email protected]>
4884
4885	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
4886	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
4887	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
4888	tiffmedian.c}: Added library version reporting facility to all tools.
4889
48902003-03-06  Frank Warmerdam  <[email protected]>
4891
4892	* port/install.sh.in: Fixed problems with install producing paths
4893	like ///usr/local/lib on cygwin.
4894
48952003-02-27  Andrey Kiselev  <[email protected]>
4896
4897	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
4898	raw input page. Patch supplied by Julien Gaulmin. See
4899
4900	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
4901
4902	for details.
4903
49042003-02-26  Frank Warmerdam  <[email protected]>
4905
4906	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
4907	responsible for byte swapping complex image data.
4908
4909	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
4910	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
4911
49122003-02-07  Andrey Kiselev  <[email protected]>
4913
4914	* tools/ppm2tiff.c: Fixed problem with too many arguments.
4915
49162003-02-04  Andrey Kiselev  <[email protected]>
4917
4918	* tools/raw2tiff.c: Memory leak fixed.
4919
49202003-02-03  Andrey Kiselev  <[email protected]>
4921
4922	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
4923	(thanks, Julien!). More switches for fax2tiff tool for better control
4924	of input and output. Details at
4925
4926	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
4927
49282003-02-03  Frank Warmerdam  <[email protected]>
4929
4930	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
4931	library so that we can check if there is already any tile/strip data
4932	before deciding between creating a compressor or a decompressor.
4933
49342003-01-31  Frank Warmerdam  <[email protected]>
4935
4936	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
4937	a pre-existing compressed image.  That is, image writing to
4938	pre-existing compressed images is not allowed.
4939
4940	* libtiff/tif_open.c: Removed error if opening a compressed file
4941	in update mode.
4942
4943	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
4944
49452003-01-31  Andrey Kiselev  <[email protected]>
4946
4947	* config.guess, config.sub: Updated to recent upstream versions.
4948
49492003-01-15  Frank Warmerdam  <[email protected]>
4950
4951	* cut 3.6.0 Beta release.
4952
49532002-12-20  Andrey Kiselev  <[email protected]>
4954
4955	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
4956	in wrong way as per bug
4957
4958	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
4959
49602002-12-17  Frank Warmerdam  <[email protected]>
4961
4962	* libtiff/tif_dirread.c: Allow wrong sized arrays in
4963	TIFFFetchStripThing().
4964
4965	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
4966
49672002-12-02  Frank Warmerdam  <[email protected]>
4968
4969	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
4970	Was using realloc even first time.  Fix by Igor Venevtsev.
4971
49722002-11-30  Frank Warmerdam  <[email protected]>
4973
4974	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
4975	field value.
4976
4977	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
4978	tags in TIFFVGetField() ... added missing break.
4979
49802002-10-14  Frank Warmerdam  <[email protected]>
4981
4982	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
4983	the scanline buffer long enough when writing rgb triplets.
4984	The scanline needs to be 3 X the number of dots or else it will
4985	contain	an incomplete triplet and programs that try to separate
4986	the eps by redefining the colorimage operator will get messed up.
4987	Patch supplied by William Bader.
4988
4989	* Makefile.in: added tif_extension.c to file list as per
4990	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
4991
49922002-10-11  Andrey Kiselev  <[email protected]>
4993
4994	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
4995	large files (>2GiB) supporting. New option in the config.site:
4996	LARGEFILE="yes". Should be enough for I/O of the large files.
4997
49982002-10-10  Frank Warmerdam  <[email protected]>
4999
5000	* libtiff/html/v3.6.0.html: new release notes.
5001
5002	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
5003	link for Andrey.  Pointer to v3.6.0.html.
5004
5005	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
5006
50072002-10-07  Andrey Kiselev  <[email protected]>
5008	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
5009	(thanks, Sebastian!). New switches:
5010	-b # for a bottom margin of # inches
5011	-c   center image
5012	-l # for a left margin of # inches
5013	-r   rotate the image by 180 degrees
5014	New features merged with code for shrinking/overlapping.
5015	Previously added -c and -n switches (for overriding PS units) renamed
5016	in -x and -y respectively.
5017
5018	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
5019
5020	* html/man/*.html: Updated from actual manual pages.
5021
50222002-10-06  Frank Warmerdam  <[email protected]>
5023
5024	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
5025	size on windows.  Use #define boolean hack.
5026
5027	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
5028
5029	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
5030	USING_VISUALAGE is defined.
5031
5032	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5033
50342002-10-03  Frank Warmerdam  <[email protected]>
5035
5036	* libtiff/tiff.h: added COMPRESSION_JP2000.
5037
50382002-10-02  Andrey Kiselev  <[email protected]>
5039
5040	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
5041	by the TIFFFetchByteArray() function. Should finally resolve
5042
5043	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5044
5045	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
5046
5047	* html/Makefile.in: New targets added: html and groffhtml for
5048	producing HTML representations of the manual pages automatically.
5049	html target uses man2html tool, groffhtml uses groff tool.
5050
50512002-09-29  Frank Warmerdam  <[email protected]>
5052
5053	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
5054	from John H. DuBois III.
5055
50562002-09-15  Andrey Kiselev  <[email protected]>
5057
5058	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
5059	manual page for raw2tiff(1) tool.
5060
50612002-09-12  Andrey Kiselev  <[email protected]>
5062
5063	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
5064	the tiffio.h header file.
5065
5066	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
5067	manual page for TIFFDataWidth() function
5068
50692002-09-08  Frank Warmerdam  <[email protected]>
5070
5071	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
5072	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
5073
5074	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
5075	since we are unable to properly include the amount to skip.
5076
5077	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
5078
50792002-09-02  Andrey Kiselev  <[email protected]>
5080
5081	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5082	in TIFFFetchByteArray(). Problem described at
5083	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5084
50852002-08-22  Andrey Kiselev  <[email protected]>
5086
5087	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5088	in _TIFFSetupFieldInfo() function.
5089	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5090
5091	* /libtiff/tif_lzw.c: Additional consistency checking added in
5092	LZWDecode() and LZWDecodeCompat().
5093	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5094	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5095
5096	* /libtiff/tif_lzw.c:
5097	Added check for valid code lengths in LZWDecode() and
5098	LZWDecodeCompat(). Fixes
5099	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5100
51012002-08-16  Andrey Kiselev  <[email protected]>
5102
5103	* /libtiff/{Makefile.vc, libtiff.def}:
5104	Missed declarations added.
5105
51062002-08-15  Frank Warmerdam  <[email protected]>
5107
5108	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5109	return code from the underlying pick function.
5110
5111	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5112
5113	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5114	with FIELD_CUSTOM as mentioned in bug 169.
5115
5116	* tif_close.c: added logic to free dynamically created anonymous
5117	field definitions to correct a small memory leak.
5118
5119	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5120
51212002-08-10  Andrey Kiselev  <[email protected]>
5122
5123	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5124	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5125
51262002-07-31  Frank Warmerdam  <[email protected]>
5127
5128	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5129	JPEGDecode() as per bugzilla bug (issue 1):
5130
5131	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5132
5133	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5134	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5135	present in the tiff tags.
5136
5137	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5138
5139	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5140	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5141	fooled with the value.
5142
5143	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5144
51452002-06-22  Andrey Kiselev  <[email protected]>
5146
5147	* /tools/tiff2ps.c: Added workaround for some software that may crash
5148	when last strip of image contains fewer number of scanlines than
5149	specified by the `/Height' variable. See
5150	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5151	for explanation.
5152
51532002-06-21  Andrey Kiselev  <[email protected]>
5154
5155	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5156	splitting long images in several pages. See
5157	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5158	Patch granted by John Williams <[email protected]>.
5159
51602002-06-11  Frank Warmerdam  <[email protected]>
5161
5162	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5163	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5164	This one is described in:
5165
5166	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5167
5168	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5169
5170	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5171
51722002-05-10  Andrey Kiselev  <[email protected]>
5173
5174	* tools/tiff2ps: New commandline switches to override resolution
5175	units obtained from the input file. Closes
5176	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5177
51782002-04-26  Andrey Kiselev  <[email protected]>
5179
5180	* libtiff/libtiff.def: Added missed declaration.
5181
51822002-04-22  Andrey Kiselev  <[email protected]>
5183
5184	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5185	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5186
51872002-04-20  Andrey Kiselev  <[email protected]>
5188
5189	* libtiff/tif_open.c: Pointers to custom procedures
5190	in TIFFClientOpen() are checked to be not NULL-pointers.
5191
51922002-04-18  Andrey Kiselev  <[email protected]>
5193
5194	* libtiff/libtiff.def: Added missed declarations.
5195
5196	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5197
51982002-04-16  Andrey Kiselev  <[email protected]>
5199
5200	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5201	Should finally close
5202	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5203
52042002-04-10  Andrey Kiselev  <[email protected]>
5205
5206	* tools/tiff2ps: Division by zero fixed.
5207	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5208
52092002-04-09  Andrey Kiselev  <[email protected]>
5210
5211	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5212	TIFFCheckpointDirectory() routine added.
5213	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5214
5215	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5216	for the new function.
5217
52182002-04-08  Andrey Kiselev  <[email protected]>
5219
5220	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5221	additional members tif->tif_decodestatus and tif->tif_encodestatus
5222	for correct handling of unconfigured codecs (we should not try to read
5223	data or to define data size without correct codecs).
5224
5225	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5226	changed. Now it has used tif->tif_decodestatus and
5227	tif->tif_encodestatus.
5228	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5229	case of __cvs_8.tif test image).
5230
5231	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5232	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5233	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5234	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5235
52362002-04-04  Andrey Kiselev  <[email protected]>
5237
5238	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5239	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5240	files by skipping bad strips.
5241	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5242
52432002-04-03  Frank Warmerdam  <[email protected]>
5244
5245	* libtiff/tif_dirwrite.c: Removed some dead code.
5246
5247	* libtiff/*: Cleanup some warnings.
5248
5249	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5250	for variable length FIELD_CUSTOM values.  Was int * but should be
5251	u_short *.
5252
52532002-04-01  Andrey Kiselev  <[email protected]>
5254
5255	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
5256	utility (at cpStripToTile routine).
5257
52582002-03-27  Frank Warmerdam  <[email protected]>
5259
5260	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
5261
5262	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
5263
5264	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
5265	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
5266
5267	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
5268	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
5269
52702002-03-26  Dwight Kelly  <[email protected]>
5271
5272	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5273	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
5274	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
5275	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
5276	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
5277	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
5278
52792002-03-26  Andrey Kiselev  <[email protected]>
5280
5281	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
5282	now also uses TIFFRGBAImageOK before reading. This is additional fix
5283	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5284
52852002-03-25  Andrey Kiselev  <[email protected]>
5286
5287	* libtiff/: tif_getimage.c: Additional check for supported
5288	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
5289	TIFFRGBAImageOK before reading.
5290	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5291
52922002-03-15  Andrey Kiselev  <[email protected]>
5293
5294	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5295	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
5296	TIFFDataType sizes instead of working with tiffDataWidth array
5297	directly. Should prevent out-of-borders bugs in case of unknown or
5298	broken data types.  EstimateStripByteCounts routine modified, so it
5299	won't work when tags with uknown sizes founded.
5300	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
5301
53022002-03-13  Andrey Kiselev  <[email protected]>
5303
5304	* libtiff/tif_getimage.c: Added support for correct handling
5305	`Orientation' tag in gtTileContig. Should be added in other gt*
5306	functions as well, but I have not images for testing yet. Partially
5307	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5308
53092002-03-10  Andrey Kiselev  <[email protected]>
5310
5311	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
5312	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
5313	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
5314	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
5315
53162002-03-08  Andrey Kiselev  <[email protected]>
5317
5318	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
5319	be stripped when installing, utility binaries will do.	Closes
5320	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5321
53222002-02-28  Frank Warmerdam  <[email protected]>
5323
5324	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
5325
5326	* man/libtiff.3t: added copyright tag info.
5327
53282002-02-11  Frank Warmerdam  <[email protected]>
5329
5330	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
5331
5332	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5333
5334	* man/Makefile.in: Patch DESTDIR handling
5335
5336	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
5337
5338	* configure: OpenBSD changes for Sparc64 and DSO version.
5339
5340	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
5341
53422002-02-05  Frank Warmerdam  <[email protected]>
5343
5344	* config.site/configure: added support for OJPEG=yes option to enable
5345	OJPEG support from config.site.
5346
53472002-01-27  Frank Warmerdam  <[email protected]>
5348
5349	* html/document.html: fixed links for TIFf 6 docs.
5350
53512002-01-18  Frank Warmerdam  <[email protected]>
5352
5353	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
5354
5355	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
5356	decodestrip function returns anything not greater than zero as per
5357	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
5358
5359	* configure: Modify CheckForBigEndian so it can work in a cross
5360	compiled situation.
5361
53622002-01-16  Frank Warmerdam  <[email protected]>
5363
5364	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
5365
5366	* tools/tiffset.c: fix bug in error reporting.
5367
5368	* tools/tiffcp.c: fix several warnings that show up with -Wall.
5369
53702002-01-04  Frank Warmerdam  <[email protected]>
5371
5372	* libtiff/tif_jpeg.c: fixed computation of segment_width for
5373	tiles files to avoid error about it not matching the
5374	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
5375	size.") for ITIFF files.  Apparently the problem was incorporated since
5376	3.5.5, presumably during the OJPEG/JPEG work recently.
5377
53782001-12-15  Frank Warmerdam  <[email protected]>
5379
5380	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
5381
5382	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5383
5384	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
5385	(defined in tiffconf.h - 1 by default) then the RGBA interface
5386	will assume that a fourth extra sample is ASSOCALPHA if the
5387	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
5388	the library, but makes it work better with RGBA files produced by
5389	lots of applications that don't mark the alpha values properly.
5390
5391	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5392	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
5393
53942001-12-12  Frank Warmerdam  <[email protected]>
5395
5396	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
5397	override those from tiff directory.  This makes this work with
5398	ImageGear generated files.
5399
54002001-12-07  Frank Warmerdam  <[email protected]>
5401
5402	* html/Makefile.in: added missing images per bug 92.
5403
5404	* port/Makefile.in: fixed clean target per bug 92.
5405
54062001-11-28  Frank Warmerdam  <[email protected]>
5407
5408	* Reissue 3.5.7 release.
5409
5410	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
5411	YYYYMMDD so that it is increasing over time.
5412
5413	* Makefile.in: Ensure that tiffvers.h is regenerated in the
5414	make release target.
5415
5416	* Makefile.in: added libtiff/tiffvers.h to the release file list.
5417
54182001-11-23  Frank Warmerdam  <[email protected]>
5419
5420	* added html/v3.5.7.html, updated html/index.html.
5421
5422	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
5423
54242001-11-15  Frank Warmerdam  <[email protected]>
5425
5426	* configure: fixed test for -lm.
5427
54282001-11-02  Frank Warmerdam  <[email protected]>
5429
5430	* Added PHOTOMETRIC_ITULAB as per bug 90.
5431
5432	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
5433
54342001-10-10  Frank Warmerdam  <[email protected]>
5435
5436	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
5437	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
5438	in keeping with TIFF 6.0 standard in tiff.h
5439
5440	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
5441
54422001-09-26  Frank Warmerdam  <[email protected]>
5443
5444	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
5445	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
5446
54472001-09-24  Frank Warmerdam  <[email protected]>
5448
5449	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
5450
5451	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
5452
5453	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
5454	error about LZW not being available.
5455
5456	* libtiff/tif_dir.c: propagate failure to initialize compression
5457	back from TIFFSetField() as an error status, so applications can
5458	detect failure.
5459
5460	* libtiff/tif_dir.c: removed the auto replacement of
5461	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
5462
5463	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
5464	from CVS as they are all supposed to be auto-generated by configure.
5465
54662001-09-22  Frank Warmerdam  <[email protected]>
5467
5468	* libtiff/tif_ojpeg.c: new update from Scott.
5469
54702001-09-09  Frank Warmerdam  <[email protected]>
5471
5472	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
5473	always use the "safe" version, even if there is a very slight
5474	cost in performance.
5475
5476	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
5477
5478	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
5479	in two places.
5480
5481	* libtiff/tif_getimage.c: Fixed problem with reading strips or
5482	tiles that don't start on a tile boundary.  Fix contributed by
5483	Josep Vallverdu (from HP), and further described in bug 47.
5484
5485	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
5486
5487	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
5488
5489	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
5490
54912001-09-06  Frank Warmerdam  <[email protected]>
5492
5493	* libtiff/tif_packbits.c: fixed memory overrun error.
5494
5495	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
5496
54972001-08-31  Frank Warmerdam  <[email protected]>
5498
5499	* libtiff/tif_getimage.c: relax handling of contig case where
5500	there are extra samples that are supposed to be ignored.  This
5501	should now work for 8bit greyscale or palletted images.
5502
5503	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
5504
55052001-08-28  Frank Warmerdam  <[email protected]>
5506
5507	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
5508	images with more than four samples per pixel.  See:
5509
5510	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
5511
55122001-08-10  Frank Warmerdam  <[email protected]>
5513
5514	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
5515	in TIFFReadRGBATile() to avoid issues in cases of overlapping
5516	buffers.  See Bug 69 in Bugzilla.
5517
5518	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
5519
5520	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
5521
55222001-08-09  Frank Warmerdam  <[email protected]>
5523
5524	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
5525	when checking for 64 bit architectures as per bugzilla bug 67.
5526
55272001-07-27  Frank Warmerdam  <[email protected]>
5528
5529	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
5530	bug 66.
5531
55322001-07-20  Frank Warmerdam  <[email protected]>
5533
5534	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
5535	has been included.
5536
55372001-07-19  Frank Warmerdam  <[email protected]>
5538
5539	* libtiff/tif_open.c: Seek back to zero after failed read,
5540	before writing header.
5541
55422001-07-18  Frank Warmerdam  <[email protected]>
5543
5544	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
5545	much better.  Now depends on having patched libjpeg as per
5546	patch in contrib/ojpeg/*.
5547
55482001-07-17  Frank Warmerdam  <[email protected]>
5549
5550	* */Makefile.in: added DESTDIR support.
5551
5552	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
5553
55542001-07-16  Frank Warmerdam  <[email protected]>
5555
5556	* configure, libtiff/Makefile.in: applied OpenBSD patches
5557	as per:
5558
5559	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
5560
55612001-06-28  Frank Warmerdam  <[email protected]>
5562
5563	* libtiff/tif_getimage.c: Fixed so that failure is properly
5564	reported by gtTileContig, gtStripContig, gtTileSeparate and
5565	gtStripSeparate.
5566
5567	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
5568
5569	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
5570	Updated bug section of tiffcmp.1 to note tiled file issues.
5571
5572	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
5573
55742001-06-22  Frank Warmerdam  <[email protected]>
5575
5576	* configure: Changes for DSO generation on AIX provided by
5577	John Marquart <[email protected]>.
5578
5579	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
5580	on Darwin thanks to Robert Krajewski ([email protected]) and
5581	Keisuke Fujii ([email protected]).
5582
55832001-06-13  Frank Warmerdam  <[email protected]>
5584
5585	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
5586
5587	* man/tiff2rgba.1: new
5588
55892001-05-22  Frank Warmerdam  <[email protected]>
5590
5591	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
5592
55932001-05-13  Frank Warmerdam  <[email protected]>
5594
5595	* libtiff/tools/thumbnail.c: changed default output compression
5596	to packbits from LZW since LZW isn't generally available.
5597
55982001-05-12  Frank Warmerdam  <[email protected]>
5599
5600	* libtiff/tif_ojpeg.c: New.
5601	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
5602	to OJPEG support.
5603
5604	Scott Marovich <[email protected]> supplied OJPEG support.
5605
56062001-05-11  Frank Warmerdam  <[email protected]>
5607
5608	* tiff.h: removed, it duplicates libtiff/tiff.h.
5609
56102001-05-08  Frank Warmerdam  <[email protected]>
5611
5612	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
5613	ensure everything is in order.
5614
5615	* libtiff/libtiff.def: added TIFFCreateDirectory and
5616	TIFFDefaultStripSize as per:
5617
5618	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
5619
56202001-05-02  Frank Warmerdam  <[email protected]>
5621
5622	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
5623	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
5624	force use of uint32 counts instead of short counts.
5625
5626	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
5627	case of writing TIFF_BYTE/TIFF_SBYTE fields.
5628
5629	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
5630
56312001-05-01  Frank Warmerdam  <[email protected]>
5632
5633	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
5634	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
5635
56362001-04-05  Frank Warmerdam  <[email protected]>
5637
5638	* tiffio.h: removed C++ style comment.
5639
5640	* configure: fixed up SCRIPT_SH/SHELL handling.
5641
5642	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
5643
5644	* config.guess: documented more variables as per bug 40.
5645
56462001-04-03  Frank Warmerdam  <[email protected]>
5647
5648	* configure, *Makefile.in: Various changes to improve configuration
5649	for HP/UX specifically, and also in general.  They include:
5650	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
5651	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
5652	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
5653	 - Use -${MAKEFLAGS} in sub makes from makefiles.
5654
5655	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
5656
56572001-04-02  Frank Warmerdam  <[email protected]>
5658
5659	* libtiff/tiff.h: Applied hac to try and resolve the problem
5660	with the inttypes.h include file on AIX.
5661
5662	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5663
5664	* VERSION: update to 3.5.7 beta in preparation for release.
5665
5666	* configure/config.site: modified to check if -lm is needed for
5667	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
5668
5669	* config.guess: updated wholesale to an FSF version apparently
5670	from 1998 (as opposed to 1994).  This is mainly inspired by
5671	providing for MacOS X support.
5672
56732001-03-29  Frank Warmerdam  <[email protected]>
5674
5675	* configure, Makefile.in, etc: added support for OPTIMIZER being
5676	set from config.site.
5677
56782001-03-28  Frank Warmerdam  <[email protected]>
5679
5680	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
5681
5682	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
5683	sizes. It fixes two problems:
5684
5685	Without	scaling (-S) the fax is now centered on the page size specified
5686	with -H	and/or -W. Before, fax2ps was using an obscure and practially
5687	useless algorithm to allocate the image relative to Letter sized paper
5688	which sometime sled to useless whitespace on the paper, while at the
5689	same time cutting of the faxes printable area at the opposite border.
5690
5691	Second, scaling now preserves aspect ratio, which makes unusual faxes
5692	(in particular short ones) print properly.
5693
5694	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
5695
5696	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
5697	Bruce A. Mallett.  See check message for detailed information
5698	on all the changes, including a faster encoder, fixes for level
5699	2 PostScript, and support for the imagemask operator.
5700
57012001-03-27  Frank Warmerdam  <[email protected]>
5702
5703	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
5704	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
5705
5706	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5707
57082001-03-16  Frank Warmerdam  <[email protected]>
5709
5710	* tif_dirinfo.c: moved definition of copyright tag in field list.
5711	Apparently they have to be in sorted order by tag id.
5712
57132001-03-13  Frank Warmerdam  <[email protected]>
5714
5715	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
5716	images in RGBA interface.
5717
57182001-03-02  Frank Warmerdam  <[email protected]>
5719
5720	* Added TIFFTAG_COPYRIGHT support.
5721
57222001-02-19  Frank Warmerdam  <[email protected]>
5723
5724	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
5725	with support for extracting subimages with the ,n syntax, and also
5726	adding the -b bias removal flag.
5727
57282001-02-16  Frank Warmerdam  <[email protected]>
5729
5730	* libtiff/libtiff.def: Brent Roman submitted new version adding
5731	serveral missing entry points.
5732
5733	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
5734	Some sort of weird VMS thing.
5735
5736	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
5737
5738	* tif_luv.c/tiff.h/tiffio.h:
5739	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
5740	([email protected]).  He writes:
5741
5742	1) I improved the gamut-mapping function in tif_luv.c for imaginary
5743	colors, because some images were being super-saturated on the input
5744	side and this resulted in some strange color shifts in the output.
5745
5746	2) I added a psuedotag in tiff.h to control random dithering during
5747	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
5748	on for 24-bit LogLuv output.  Dithering improves the average color
5749	accuracy over the image.
5750
5751	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
5752	tiffio.h, to expose internal routines for converting between LogLuv and
5753	XYZ coordinates.  This is helpful for writing more efficient,
5754	specialized conversion routines, especially for reading LogLuv files.
5755
5756	Changes applied with minor edits.
5757
57582001-01-23  Frank Warmerdam  <[email protected]>
5759
5760	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
5761	whether we are encoding or decoding.  This is to ensure graceful
5762	recovery if TIFFClientOpen() discovers an attempt to open a compressed
5763	file for "r+" access, and subsequently close it, as it resets the
5764	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
5765	compressor's concept of whether it is in encode or decode mode.
5766
57672001-01-08  Mike Welles <[email protected]>
5768
5769	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
5770
57712001-01-07  Frank Warmerdam  <[email protected]>
5772
5773	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
5774	as per bug report by Patrick Connor.
5775
57762000-12-28  Frank Warmerdam  <[email protected]>
5777
5778	* Added RELEASE-DATE file to release file list.
5779
5780	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
5781
57822000-12-22  Mike Welles <[email protected]>
5783        * added link to CVS mirror from index.html
5784
5785	* updated html/internals.html to note that LZW compression is
5786	  not supported by default.
5787
57882000-12-22  Frank Warmerdam  <[email protected]>
5789
5790	* updated html/libtiff.html to not point at Niles' old JPL web site
5791	for the man pages, point at www.libtiff.org.
5792
57932000-12-21  Frank Warmerdam  <[email protected]>
5794
5795	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
5796	Leonard Rosenthol <[email protected]>.  May interfere
5797	with correct building on older systems.  If so, please let me know.
5798
57992000-12-19 Mike Welles <[email protected]>
5800
5801	* Took out LZW Encoding from tif_lzw.c
5802
5803	* Created HOWTO-RELEASE
5804
5805	* Created html/v3.5.6.html
5806
5807	* updated index.html
5808
58092000-12-01  Frank Warmerdam  <[email protected]>
5810
5811	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
5812	Patches supplied by Frank Cringle <[email protected]>
5813	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
5814
58152000-11-24  Frank Warmerdam  <[email protected]>
5816
5817	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
5818	target so that the private headers required by libgeotiff can be
5819	installed with the others.  They are not installed by default.
5820
5821	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
5822	targets so libtiff.so will be built with an explicit dependency
5823	on libm.so.
5824
5825	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
5826	libtiff.so.3.5.5.
5827
5828	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
5829	file, or ALPHA version logic.  Added stuff about DIST_POINT in
5830	place of DIST_TYPE and the alpha release number stuff.
5831
58322000-11-22  Frank Warmerdam  <[email protected]>
5833
5834	* I have applied a patch from Steffen Moeller <[email protected]> to
5835	the configure script so that it now accepts the --prefix, and
5836	--exec-prefix directives.
5837
58382000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
5839
5840	* I have made a variety of modifications in an effort to ensure the
5841	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
5842	file which seems to be updated regularly.
5843
5844	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
5845	   version include file.
5846	 o renamed version.h to tiffvers.h because we now have to install it
5847	   with the public libtiff include files.
5848	 o include tiffvers.h in tiffio.h.
5849	 o updated tif_version.c to use tiffvers.h.
5850	 o Updated Makefile.in accordingly.
5851
5852	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
5853	I have updated the win32 detection rules in tiffcomp.h.
5854
58552000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
5856
5857	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
5858	the strip/tile width and height aren't multiples of the sampling size.
5859	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
5860	Some patches from Rick LaMont of Dot C Software.
5861
5862	* Modified tif_packbits.c encoder to avoid compressing more
5863	data than provided if rowsize doesn't factor into provided data
5864	(such as occurs for YCbCr).
5865
58662000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
5867
5868	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
5869	roundup if rows_per_strip not a multiple of vertical sample size.
5870
58712000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
5872
5873	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
5874	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5875	from [email protected].
5876
5877	* Modified tif_packbits.c decoding to avoid overrunning the
5878	output buffer, and to issue a warning if data needs to be
5879	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5880
58812000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
5882
5883	* Modified tiff2bw to ensure portions add to 100%, and that
5884	white is properly recovered.
5885
5886	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
5887	Patch c/o Stanislav Brabec <[email protected]>
5888
58892000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
5890
5891	* Modified TIFFClientOpen() to emit an error on an attempt to
5892	open a comperessed file for update (O_RDWR/r+) access.  This is
5893	because the compressor/decompressor code gets very confused when
5894	the mode is O_RDWR, assuming this means writing only.  See
5895	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
5896
58972000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
5898
5899	* Added GNULDdso target an`d switched linux and freebsd to use it.
5900
59012000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
5902
5903	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
5904	of EXPAND1D() as per bug 11 (from Roman).
5905
59062000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
5907	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
5908	cygwin compatibility.
5909
5910	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
5911	be a proper fix to the buffer sizing problem.  See
5912	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
5913
5914	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
5915	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
5916	Thanks to Nick Lamb <[email protected]> for reporting the
5917	bug and proving the patch.
5918
59192000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
5920
5921	* Fixed tif_jpeg.c so avoid destroying the decompressor before
5922	we are done access data thanks to bug report from:
5923	Michael Eckstein <[email protected]>.
5924
5925	* Reverted tif_flush change.
5926
59272000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
5928
5929	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
5930	error when TIFF_BEENWRITING is not set.  This ensures that the
5931	directory contents can still be flushed by TIFFFlush().
5932
59332000-08-14  Frank Warmerdam  <[email protected]>
5934
5935	* tif_open.c: Don't set MMAP for O_RDWR files.
5936
5937	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
5938	so that files opened for update can be strip chopped too.
5939
5940	* tif_read.c: fixed up bug with files missing rowsperstrip and
5941	the strips per separation fix done a few weeks ago.
5942
59432000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
5944
5945	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
5946	SAMPLEFORMAT_COMPLEXINT.
5947
59482000-07-13  Mike Welles <[email protected]>
5949
5950	* index.html, bugs.html: added bugzilla info.
5951
59522000-07-12  Frank Warmerdam  <[email protected]>
5953
5954	* tif_read.c: fix subtle bug with determining the number of
5955	rows for strips that are the last strip in a separation but
5956	not the last strip of all in TIFFReadEncodedStrip().
5957
5958	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
5959	Peter Skarpetis <[email protected]>
5960
59612000-06-15  Frank Warmerdam  <[email protected]>
5962
5963	* Modified tiffio.h logic with regard to including windows.h.  It
5964	won't include it when building with __CYGWIN__.
5965
59662000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
5967
5968	* README: update to mention www.libtiff.org, don't list Sam's old
5969	email address.
5970
5971	* configure: Fixed DSO test for Linux as per patch from
5972	  Jan Van Buggenhout <[email protected]>.
5973
59742000-04-21  Frank Warmerdam  <[email protected]>
5975
5976	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
5977	one tile/strip images with an offset, and byte count of zero. These
5978	could be "unpopulated" images.
5979
59802000-04-18  Frank Warmerdam  <[email protected]>
5981
5982	* contrib/addtiffo: Added "averaging" resampling option.
5983
5984	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
5985
5986Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
5987
5988	* tools/Makefile.in: Modified to install properly on SGI.
5989
59902000-04-12  Mike Welles	     <[email protected]>
5991	* configure:  Fixed stupid mistake in libc6 test on Linux
5992
59932000-04-04  Mike Welles	     <[email protected]>
5994	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
5995	  caught by BoundsChecker.  From Arvan Pritchard
5996	  <[email protected]>  (untested).
5997
5998	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
5999	  Arvan Pritchard <[email protected]>
6000
6001	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
6002	  Arvan Pritchard <[email protected]>
6003
60042000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
6005
6006	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
6007
60082000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
6009
6010	* fax2ps: Fixed mixup of width and height in bounding box statement
6011	as per submission by Nalin Dahyabhai <[email protected]>.
6012
60132000-03-27  Mike Welles	     <[email protected]>
6014
6015	* fax2ps:  Modified printruns to take uint32 instead of uint16.
6016	Patch courtesy of Bernt Herd <[email protected]>
6017
60182000-03-20  Mike Welles	     <[email protected]>
6019
6020	* configure: added test for libc6 for linux targets.  Bug reported by
6021        Stanislav Brabec <[email protected]>
6022
6023	* Added 3.5 docs to html/Makefile.in.
6024	Thanks to  Stanislav Brabec <[email protected]>
6025
6026	* configure: fixed bugs in sed scripts
6027	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
6028	fix submitted to Stanislav Brabec <[email protected]>
6029
6030	* tools/iptcutil was not in files list, and wasn't being
6031	added to tar archive.  Updated Makefile.in.
6032
60332000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
6034
6035	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
6036	conversion for the run arrays.
6037
60382000-03-03  Frank Warmerdam  <[email protected]>
6039
6040	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
6041	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
6042
60432000-03-02  Frank Warmerdam  <[email protected]>
6044
6045	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
6046
6047	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
6048	to avoid overruns encountered with frle_bug.tif.
6049
6050Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
6051
6052	* Fixed tools/tiffcmp so that stopondiff testing works.
6053	  Patch care of Joseph Orost <[email protected]>.
6054
60552000-01-28    <warmerda@CS46980-B>
6056
6057	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
6058	  set to 1, and added default (off) setting in tiffconf.h.  This
6059	  should eventually be set by the configure script somehow.
6060
6061	  The original work on all these 2-4GB changes was done by
6062	  Peter Smith ([email protected]).
6063
6064	* Modified tif_win32.c to support 2-4GB seeks.
6065
6066	* tentatively changed toff_t to be unsigned instead of signed to
6067	  facilitate support for 2-4GB files.
6068
6069	* Updated a variety of files to use toff_t.  Fixed some mixups
6070	  between toff_t and tsize_t.
6071
6072Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
6073
6074	* Largely reimplemented contrib/addtiffo to avoid temp files,
6075	updating the TIFF file in place.  Fixed a few other bugs to.
6076
6077	* Set tif_rawdatasize to zero when freeing raw data buffer in
6078	TIFFWriteDirectory().
6079
6080	* Enabled "REWRITE_HACK" in tif_write.c by default.
6081
6082	* Fix bug in tif_write.c when switching between reading one directory
6083	and writing to another.
6084
6085	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6086
6087Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6088
6089	* Added TIFFmemory(3t) functions to libtiff.def.
6090
6091Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6092
6093	* Added libtiff/libtiff.def to TIFFILES distribution list.
6094
6095Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6096
6097	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6098
6099	* Altered descriptions in tools to reflect "by default" lzw not supported
6100
6101	* Updated index.html to note lzw compression kit.
6102
6103Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6104
6105	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6106
6107Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6108
6109	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6110
6111	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6112	  when LZW compression invoked.
6113
6114	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6115	  in tools to reflect removal of LZW compression
6116
6117Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6118
6119        * Fixed bug that caused LZW (non) compression to segfault. Added
6120	  warning about LZW compression removed being removed, and why.
6121
6122	* Added nostrip to install in tools/Makefile.in so that debugging
6123	  symbols are kept.
6124
6125Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6126
6127	* Added patch from Ivo Penzar <[email protected]>,
6128	  supporting Adobe ZIP deflate.  Untested.
6129
6130Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6131
6132	* Made Packbits the default compression in tools/tiff2rgba.c instead
6133	of LZW.
6134
6135Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6136
6137	* Added tif_luv to contrib/djgpp/Makefile.lib.
6138
6139Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6140
6141        * Added zip creation to relase makefile target
6142
6143	* Added html for TIFFWriteTile.3t man page.
6144
6145Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6146
6147	* Added some changes to tif_write.c to support rewriting existing
6148	fixed sized tiles and strips.  Code mods disabled by default, only
6149	enabled if REWRITE_HACK is defined for now.
6150
6151Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6152
6153	* Added TIFFWriteTile.3t man page.
6154
6155Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6156
6157	* Added notes on use of makefile.vc in build.html, and fixed
6158	email subscription address.
6159
6160199-11-28  Mike Welles <[email protected]>
6161
6162	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6163
6164	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6165	   from Bruce Carmeron <[email protected]> -- modifications of
6166	   changes made by Frank (sun cc still complained on cast).
6167
6168	*  Added tiffconf.h to install target per request from Bill
6169	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6170 	   know features have been compiled into the TIFF library in order to
6171	   handle things properly".
6172
6173Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6174
6175	* fixed various VC++ warnings as suggested by Gilles Vollant
6176	<[email protected]>.
6177
6178Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6179
6180	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6181	not imply applications are responsible for image data swapping.
6182
61831999-11-22  Mike Welles <[email protected]>
6184	*  HTML-ized the man pages, added to html/man
6185
6186	*  Removed LZW Compression to comply with Unisys patent extortion.
6187
61881999-09-29  Mike Welles		<[email protected]>
6189	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6190	   From Ivo Penzar <[email protected].
6191
6192	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6193	   memory mapped files. <[email protected]>
6194
61951999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6196	* Corrected alpha versioning.
6197
6198	* Removed distinction between  alpha and release targets in Makefile.in.
6199
6200	* added release.stamp target, which tags cvs tree, and updates
6201	  "RELEASE-DATE"
6202
6203	* added releasediff target, which diffs tree with source as of
6204	  date in "RELEASE-DATE"
6205
6206	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6207	  away from alpha/non-alpha distinctions).
6208
6209	* updated html to reflect release
6210
62111999-09-23    <warmerda@CS46980-B>
6212
6213	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6214
6215	* Added CYGWIN case in configure.
6216
6217Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6218
6219	* Applied Francois Dagand's patch to handle fax decompression bug.
6220	  (sizes >= 65536 were failing)
6221
6222Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6223
6224	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6225	  by Christopher Lawton <[email protected]>
6226
6227Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6228
6229	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6230	  Albert Chin-A-Young <[email protected]>
6231
6232	* Added TIFFReassignTagToIgnore() API on behalf of
6233	  Bruce Cameron <[email protected]>.  Man page still pending.
6234
6235Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6236
6237	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6238	files to provide for a rudimentary testsuite.
6239
6240	* Added contrib/tags back from old distribution ... fixed up a bit.
6241
62421999-08-16    <warmerda@CS46980-B>
6243
6244	* Added simple makefile.vc makefiles for building with MS VC++
6245	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6246	better solutions for some users.
6247
6248Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6249
6250	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6251	put it in tools since part of it is in C++.
6252
62531999-08-16  Michael L. Welles  <[email protected]>
6254
6255	* Updated html/index.html with anon CVS instructions.
6256
6257Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
6258
6259	* pre-remove so link before softlink in LINUXdso action in
6260	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
6261	the first.
6262
6263	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
6264	colormaps owned by the TIFF handle itself when trying to fixup wrong
6265	(eight bit) colormaps.  Corrected by maintaining a private copy of
6266	the colormap.
6267
6268	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
6269	tif_getimage.c.
6270
6271	* CVS Repository placed at remotesensing.org.  ChangeLog added.
6272