xref: /libtiff-4.0.7/ChangeLog (revision a1caf14c)
12015-01-26  Even Rouault  <[email protected]>
2
3	* libtiff 4.0.4beta released
4
52015-01-26  Even Rouault  <[email protected]>
6
7	* automake: updated to 1.15
8	* libtool: updated to 2.4.5
9
102015-01-22  Even Rouault  <[email protected]>
11
12	* tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
13
142015-01-05  Frank Warmerdam  <[email protected]>
15
16	* html/bugs.html: remove note about needing to email the tiff mailing
17	list administrator about being approved for membership, this appears
18	not to be true.
19
202015-01-05  Olivier Paquet  <[email protected]>
21
22	* tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
23
242015-01-03  Even Rouault  <[email protected]>
25
26	* libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
27	when reading more than 65535 directories, and effectively error out when
28	reaching that limit.
29
302014-12-29  Even Rouault  <[email protected]>
31
32	* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
33	markers to avoid emitting a warning (even if, according to the TechNote,
34	there are admitedly unusual/not recommended or even forbidden variants, but
35	they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
36	SOF9 and SOF10).
37	Define in_color_space and input_components to the right values in
38	JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
39	libjpeg API documentation, so as to be compatible with mozjpeg library.
40	Note: the default settings of mozjpeg will produce progressive scans, which
41	is forbidden by the TechNote.
42
432014-12-29  Even Rouault  <[email protected]>
44
45	* libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
46	to avoid buffer leak (fix previous fix, found by Coverity scan)
47
482014-12-29  Even Rouault  <[email protected]>
49
50	* libtiff/tif_next.c: add new tests to check that we don't read outside of
51	the compressed input stream buffer.
52
53	* libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
54    in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
55    putcontig8bitYCbCr21tile cases.
56
572014-12-27  Even Rouault  <[email protected]>
58
59	* libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
60	extented tags installed by user code through the extender mechaninm before
61	calling the extender callback (GDAL #5054)
62
632014-12-26  Bob Friesenhahn  <[email protected]>
64
65	* tools/tiffcrop.c: Fix warnings about variables set but not used.
66
67	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
68	but not used.
69
70	* tools/tiffgt.c: Fix warnings about unused parameters.
71
72	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
73
742014-12-25  Even Rouault  <[email protected]>
75
76	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
77	various typos found by Debian lintian tool (GDAL #5756)
78
792014-12-24  Even Rouault  <[email protected]>
80
81	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
82	http://bugzilla.maptools.org/show_bug.cgi?id=2235
83
842014-12-24  Even Rouault  <[email protected]>
85
86	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
87	http://bugzilla.maptools.org/show_bug.cgi?id=2445
88
892014-12-24  Even Rouault  <[email protected]>
90
91	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
92	Derived from patch by Petr Gajdos,
93	http://bugzilla.maptools.org/show_bug.cgi?id=2443
94
952014-12-23  Even Rouault  <[email protected]>
96
97	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
98	of _TIFFFillStriles(). This solves crashing bug on corrupted
99	images generated by afl.
100
1012014-12-23  Even Rouault  <[email protected]>
102
103	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
104	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
105	images generated by afl.
106
1072014-12-21  Bob Friesenhahn  <[email protected]>
108
109	* tools/tiffdump.c: Guard against arithmetic overflow when
110	calculating allocation buffer sizes.
111
1122014-12-21  Even Rouault  <[email protected]>
113
114	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
115	SamplesPerPixel = 3. Enforce that
116	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
117
1182014-12-21  Even Rouault  <[email protected]>
119
120	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
121	copying. The right fix would be to properly copy it, but not worth the burden
122	for those esoteric utilities.
123	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
124
1252014-12-21  Even Rouault  <[email protected]>
126
127	* tools/thumbnail.c: fix out-of-buffer write
128	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
129
1302014-12-21  Even Rouault  <[email protected]>
131
132	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
133	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
134	COMPRESSION_CCITTFAX4
135	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
136
1372014-12-21  Even Rouault  <[email protected]>
138
139	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
140	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
141
1422014-12-21  Even Rouault  <[email protected]>
143
144	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
145	TIFFTAG_SAMPLESPERPIXEL
146
1472014-12-21  Even Rouault  <[email protected]>
148
149	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
150	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
151	Description: fix for Debian bug #741451
152	tiffcp crashes when converting JPEG-encoded TIFF to a different
153	encoding (like none or lzw). For example this will probably fail:
154	tiffcp -c none jpeg_encoded_file.tif output.tif
155	The reason is that when the input file contains JPEG data,
156	the tiffcp code forces conversion to RGB space. However,
157	the output normally inherits YCbCr subsampling parameters
158	from the input, which leads to a smaller working buffer
159	than necessary. The buffer is subsequently overrun inside
160	cpStripToTile() (called from writeBufferToContigTiles).
161	Note that the resulting TIFF file would be scrambled even
162	if tiffcp wouldn't crash, since the output file would contain
163	RGB data intepreted as subsampled YCbCr values.
164	This patch fixes the problem by forcing RGB space on the output
165	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
166	Author: Tomasz Buchert <[email protected]>
167
1682014-12-21  Even Rouault  <[email protected]>
169
170	Fix various crasher bugs on fuzzed images.
171	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
172	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
173	the directory
174	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
175	TransferFunction if BitsPerSample has not yet been read, otherwise reading
176	it later will cause user code to crash if BitsPerSample > 1
177	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
178	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
179	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
180	instead of imagewidth to avoid crash
181	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
182	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
183	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
184	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
185	* tools/tiffdump.c: fix crash due to overflow of entry count.
186
1872014-12-15  Even Rouault  <[email protected]>
188
189	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
190	all tiles/strips to include quantization tables even when the jpegtablesmode
191	had the JPEGTABLESMODE_QUANT bit set.
192	Also add explicit removal of Huffman tables when jpegtablesmode has the
193	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
194	first tile/strip (only useful in update scenarios. create-only was
195	fine)
196
1972014-12-09  Bob Friesenhahn  <[email protected]>
198
199	* tools/tiff2pdf.c: Assure that memory size calculations for
200	_TIFFmalloc() do not overflow the range of tmsize_t.
201
2022014-12-07  Even Rouault  <[email protected]>
203
204	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
205	Valgrind and Address Sanitizer on test suite
206
2072014-12-07  Bob Friesenhahn  <[email protected]>
208
209	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
210	tag can return one channel, with the other two channels set to
211	NULL.  The tiff2pdf code was expecting that other two channels
212	were duplicate pointers in the case where there is only one
213	channel.  Detect this condition in order to avoid a crash, and
214	presumably perform correctly with just one channel.
215
2162014-12-06  Bob Friesenhahn  <[email protected]>
217
218	* tools/tiffdump.c: Fix double-free bug.
219
2202014-11-27  Even Rouault  <[email protected]>
221
222	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
223	Visual Studio 2015 aka VC 14 aka MSVC 1900
224
2252014-11-20  Even Rouault  <[email protected]>
226
227	* libtiff/tif_lzw.c: prevent potential null dereference of
228	sp->dec_codetab in LZWPreDecode (bug #2459)
229
230	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
231	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
232
233	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
234
235	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
236	Coverity happier (not a bug, #2459)
237
238	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
239	(not a bug, #2459)
240
241	* tools/tiff2pdf.c: close PDF file (bug #2479)
242
243	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
244
245	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
246	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
247
248	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
249	(bug #2459) and add missing va_end in dump_info (#2459)
250
251	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
252
2532014-11-20  Even Rouault  <[email protected]>
254	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
255	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
256
2572014-11-20  Even Rouault  <[email protected]>
258	* automake: updated to 1.14.1
259	* libtool: updated to 2.4.3
260	* HOWTO-RELEASE: small update about autotools building order
261
2622014-10-20  Olivier Paquet  <[email protected]>
263	* tools/tiff2pdf.c: Preserve input file directory order when pages
264	are tagged with the same page number.
265
2662014-08-31  Bob Friesenhahn  <[email protected]>
267
268	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
269	count for tag should be a warning rather than an error since
270	errors terminate processing.
271
2722014-06-07  Bob Friesenhahn  <[email protected]>
273
274	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
275	was wrongly described.  Fix suggested by Miguel Medalha.
276
2772014-05-06  Bob Friesenhahn  <[email protected]>
278
279	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
280	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
281	Reviewed and forwarded by Lee Howard.
282
2832013-11-30  Frank Warmerdam  <[email protected]>
284
285	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
286
2872013-10-21  Frank Warmerdam  <[email protected]>
288
289	* libtiff/tif_dir.c: generate error in case of directory count
290	overflow.
291
2922013-10-01  Frank Warmerdam  <[email protected]>
293
294	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
295	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
296
2972013-09-12  Bob Friesenhahn  <[email protected]>
298
299	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
300	be defective, then set it to zero before returning error in order
301	to terminate processing of truncated TIFF.  Issue found and fix
302	suggested by Richard Nolde.
303
3042013-08-14  Frank Warmerdam  <[email protected]>
305
306	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
307
3082013-08-13  Frank Warmerdam  <[email protected]>
309
310	* tools/gif2tiff.c: Be more careful about corrupt or
311	hostile input files (#2450, CVE-2013-4231)
312
313	* tools/tiff2pdf.c: terminate after failure of allocating
314	ycbcr buffer (bug #2449, CVE-2013-4232)
315
3162013-07-09  Frank Warmerdam  <[email protected]>
317
318	* tools/tiffinfo.c: Default various values fetched with
319	TIFFGetField() to avoid being uninitialized.
320
3212013-05-02  Tom Lane  <[email protected]>
322
323	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
324	t2p_process_jpeg_strip to be at least marginally competent.  The
325	approach is still fundamentally flawed, but at least now it won't
326	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
327
3282013-05-02  Tom Lane  <[email protected]>
329
330	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
331 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
332 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
333 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
334 	large enough, and eliminate substantially all uses of sprintf(buf,
335 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
336 	protect against overflow of fixed-size buffers.  This responds in
337 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
338 	t2p_write_pdf_page(), but in general it seems like a good idea to
339 	deprecate use of sprintf().
340
3412013-03-29  Bob Friesenhahn  <[email protected]>
342
343	* configure.ac: Applied patch by Brad Smith to improve pkg-config
344	static linking by adding -lm to Libs.private when needed.
345
3462013-03-05  Tom Lane  <[email protected]>
347
348	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
349 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
350 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
351 	tools/tiffdither.c: Sync tool usage printouts and man pages with
352 	reality (quite a few options had escaped being documented in one
353 	or both places).  Per an old report from Miroslav Vadkerti.
354
3552013-01-25  Bob Friesenhahn  <[email protected]>
356
357	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
358	rotation angle was set by the auto rotate check, it was retained
359	for all pages that followed instead ofa being retested for each
360	page.  Patch by Richard Nolde.
361
3622013-01-18  Frank Warmerdam  <[email protected]>
363
364	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
365	64bit linux.
366
367	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
368	http://bugzilla.maptools.org/show_bug.cgi?id=2427
369
3702012-12-20  Tom Lane  <[email protected]>
371
372	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
373	it will pass with more versions of libjpeg.  (There are at least
374	three in active use now, and JPEG_LIB_VERSION doesn't tell us
375	enough to uniquely identify expected results.)
376
3772012-12-12  Tom Lane  <[email protected]>
378
379	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
380	field_passcount fields: it had the TIFF_VARIABLE and
381	TIFF_VARIABLE2 cases backwards.
382
3832012-12-10  Tom Lane  <[email protected]>
384
385	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
386 	check the linebytes calculation too, get the max() calculation
387 	straight, avoid redundant error messages, check for malloc
388 	failure.
389
3902012-12-10  Tom Lane  <[email protected]>
391
392	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
393 	(to enlarge tbuf for possible partial stride at end) so that
394 	overflow in the integer addition is detected.  Per gripe from
395 	Huzaifa Sidhpurwala.
396
3972012-12-03  Bob Friesenhahn  <[email protected]>
398
399	* tools/tiffset.c: tiffset now supports a -u option to unset a
400	tag.  Patch by Zach Baker. See
401	http://bugzilla.maptools.org/show_bug.cgi?id=2419
402
4032012-11-18  Bob Friesenhahn  <[email protected]>
404
405	* automake: Update Automake to 1.12.5 release.
406
407	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
408	require malloc() to return NULL pointer if requested allocation
409	size is zero.  Assure that _TIFFmalloc does.
410
4112012-11-01  Frank Warmerdam  <[email protected]>
412
413	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
414	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
415	Red Hat Security Response team for the fix.
416
4172012-10-18  Frank Warmerdam  <[email protected]>
418
419	* tif_zip.c: Avoid crash on NULL error messages.
420
4212012-09-22  Bob Friesenhahn  <[email protected]>
422
423	* libtiff 4.0.3 released.
424
4252012-09-20  Bob Friesenhahn  <[email protected]>
426
427	* Makefile.am: Update to Automake 1.12.4
428
4292012-08-19  Bob Friesenhahn  <[email protected]>
430
431	* Makefile.in: Update to Automake 1.12.3
432
433	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
434	some TIFF/FX support in libtiff.  Add the tag definitions to
435	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
436	and also fixes an error in a comment.  Adds the photometric values
437	to tif_print.c, and fixes a bug.  These changes are by Steve
438	Underwood.
439
4402012-08-13  Frank Warmerdam  <[email protected]>
441
442	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
443	compressed file: http://trac.osgeo.org/gdal/ticket/4771
444
4452012-08-02  Frank Warmerdam  <[email protected]>
446
447	* libtiff/tif_dirread.c: report error in case of mismatch value
448	counts for tags (ie. DotRange).
449
4502012-07-26  Tom Lane  <[email protected]>
451
452	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
453 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
454	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
455	as external accessors for the opaque type TIFFField.
456
457	* tools/tiffset.c: Make tiffset use the above functions instead of
458	relying on library private headers.
459
4602012-07-19  Tom Lane  <[email protected]>
461
462	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
463	after a malloc failure.  No crash risk AFAICS, but the program
464	might not report exit code 1 as desired.  h/t [email protected]
465
4662012-07-18  Tom Lane  <[email protected]>
467
468	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
469	prevents core dumps or perhaps even arbitrary code execution when
470	processing a corrupt input file (CVE-2012-3401).
471
4722012-07-06  Bob Friesenhahn  <[email protected]>
473
474	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
475	IJG JPEG 7+ uses a different upsampling algorithm which produces
476	different numeric results.
477
478	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
479	work with IJG JPEG 7+.
480
4812012-07-04  Bob Friesenhahn  <[email protected]>
482
483	* test/raw_decode.c: Add changes so that test can run with build
484	directory outside of source directory.
485
4862012-07-02  Frank Warmerdam  <[email protected]>
487
488	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
489	imagery (http://trac.osgeo.org/gdal/ticket/4732)
490
4912012-06-20  Frank Warmerdam  <[email protected]>
492
493	* libtiff/tif_fax3.c: fix memory initialization of runs, only
494	partly done.
495
496	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
497	full "stride" past the end.
498
4992012-06-19  Frank Warmerdam  <[email protected]>
500
501	* libtiff/tif_packbits.c: fix read past end of data buffer.
502
5032012-06-15  Frank Warmerdam  <[email protected]>
504
505	*  libtiff 4.0.2 released.
506
507	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
508	warnings with clang.
509
5102012-06-15  Tom Lane  <[email protected]>
511
512	* tools/tiff2pdf.c: Defend against integer overflows while
513	calculating required buffer sizes (CVE-2012-2113).
514
5152012-06-12  Frank Warmerdam  <[email protected]>
516
517	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
518
519	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
520
5212012-06-07  Frank Warmerdam  <[email protected]>
522
523	* libtiff/tif_print.c: avoid pretty printing other fields when
524	we don't have the proper amount and type of data or if the field
525	is actually autodefined.
526
5272012-06-05  Frank Warmerdam  <[email protected]>
528
529	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
530	ycbcrsubsampling values result in a runtime error, not just an
531	assertion.
532
533	* tests/custom_dir.c: Add testing of EXIF and custom directory
534	reading and writing.
535
536	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
537	and TIFFCreateEXIFDirectory() functions.
538
539	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
540	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
541	differently.  This is to avoid using special TIFFGetField/TIFFSetField
542	rules for these fields in non-image directories (like EXIF).
543
5442012-06-04  Frank Warmerdam  <[email protected]>
545
546	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
547	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
548	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
549
5502012-06-01  Frank Warmerdam  <[email protected]>
551
552	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
553
554	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
555	http://bugzilla.maptools.org/show_bug.cgi?id=2379
556
557	* libtiff/tif_unix.c: use strerror() to return a more specific error message
558	on failed open.
559	http://bugzilla.maptools.org/show_bug.cgi?id=2341
560
561	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
562	http://bugzilla.maptools.org/show_bug.cgi?id=2386
563
564	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
565	for testing jpeg in tiff image decoding including the "raw" decode interface.
566
5672012-05-31  Frank Warmerdam  <[email protected]>
568
569	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
570	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
571	sampling values.
572
573	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
574
575	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
576	http://bugzilla.maptools.org/show_bug.cgi?id=2398
577
5782012-05-29  Frank Warmerdam  <[email protected]>
579
580	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
581	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
582	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
583	to get/set functions for different tags!
584
585	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
586	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
587
5882012-05-24  Frank Warmerdam  <[email protected]>
589
590	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
591	accumulate" and overwrite the end by one word in at least some cases.
592
5932012-05-23  Frank Warmerdam  <[email protected]>
594
595	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
596
597	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
598
599	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
600	the same image.
601
602	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
603	stripbytecounts or stripoffsets or where loading these fails.
604
605	* libtiff/tif_print.c: be careful about whether min/max values are singular
606	or one per sample.
607
608	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
609	May affect things like ISOSpeedRatings.
610
611	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
612	in some cases.
613
6142012-05-19  Bob Friesenhahn  <[email protected]>
615
616	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
617	example for how to retreive the value of unsupported tags.
618
6192012-03-30  Frank Warmerdam  <[email protected]>
620
621	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
622	care of Tom Lane @ Red Hat.
623
6242012-02-18  Bob Friesenhahn  <[email protected]>
625
626	* libtiff 4.0.1 released.
627
628	* Update automake used to 1.11.3.
629
630	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
631	attribute specification to lessen the risk of accidental macro
632	substitution.  Patch from Vincent Torri.
633
6342012-01-31  Frank Warmerdam  <[email protected]>
635
636	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
637	assumption tag fetching is always successful.
638
639	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
640
6412012-01-22  Bob Friesenhahn  <[email protected]>
642
643	* configure.ac: Add support for using library symbol versioning on
644	ELF systems with the GNU linker.  Support is enabled via
645	--enable-ld-version-script.  Disabled by default for now until
646	there is a decision for how to deploy a libtiff with versioned
647	symbols after libtiff 4.0.0 was already released.
648
6492011-12-22  Bob Friesenhahn  <[email protected]>
650
651	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
652
653	tif_win32.c.  Patch by Edward Lam.
654
655	* configure.ac: Add libtiff private dependency on -llzma for
656	pkg-config.  Patch by Mark Brand.
657	Updated Automake to 1.11.2.
658
6592011-12-21  Bob Friesenhahn  <[email protected]>
660
661	* libtiff 4.0.0 released.
662
6632011-12-08  Frank Warmerdam  <[email protected]>
664
665	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
666	of _TIFFFillStriles() results (#gdal 4372)
667
6682011-12-07  Frank Warmerdam  <[email protected]>
669
670	* libtiff/tif_dirread.c: fixes to deal with invalid files where
671	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
672
673	* libtiff/tif_dirread.c: fix error reporting when there is no
674	tag information struct and name (gdal #4373)
675
6762011-10-22  Bob Friesenhahn  <[email protected]>
677
678	* Update GNU libtool to 2.4.2.
679
680	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
681	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
682	Deroulers.
683
6842011-06-21  Frank Warmerdam  <[email protected]>
685
686	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
687
6882011-05-31  Jim Meyering  <[email protected]>
689
690	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
691	upon failure to allocate "resizeddata".
692	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
693	allocation failure, not before.
694	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
695	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
696	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
697	NULL-deref and possible overflow
698	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
699	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
700	and set of otherwise unused local, data_is_empty.
701	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
702	Diagnose out-of-memory failure and return 0 rather than
703	dereferencing NULL.
704
7052011-05-24  Frank Warmerdam  <[email protected]>
706
707	* libtiff/tif_dirread.c: produce special error message for zero tag
708	directories instead of error out on the malloc(0) failure.
709
7102011-05-16  Frank Warmerdam  <[email protected]>
711
712	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
713	related declarations as they are in active use by libraries
714	such as libgeotiff, and work just fine.  (#2315)
715
7162011-04-20  Frank Warmerdam  <[email protected]>
717
718	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
719	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
720	http://bugzilla.maptools.org/show_bug.cgi?id=2315
721
722	* libtiff/libtiff.def: add some missing (64bit) APIs.
723	http://bugzilla.maptools.org/show_bug.cgi?id=2316
724
7252011-04-09  Bob Friesenhahn  <[email protected]>
726
727	* libtiff 4.0.0beta7 released.
728
7292011-04-09  Bob Friesenhahn  <[email protected]>
730
731	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
732	the run-time target whereas target is used to specify the final
733	output target if the package is a build tool (like a compiler),
734	which libtiff is not.  Resolves libtiff bug 2307 "Use
735	AC_CANONICAL_HOST macro".
736
7372011-04-02  Bob Friesenhahn  <[email protected]>
738
739	* configure.ac: Support configuring TIFF_INT64_FORMAT and
740	TIFF_UINT64_FORMAT appropriately for MinGW32.
741
742	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
743	printf conventions for 64-bit types because it uses the WIN32 CRT.
744
745	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
746	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
747	printf conventions for 64-bit types because it uses the WIN32 CRT.
748
749	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
750	understood by WIN32 CRT.
751
752	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
753
754	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
755	it is much more portable.  Tmpfile is included in ISO/IEC
756	9899:1990 and the WIN32 CRT.
757
7582011-03-26  Frank Warmerdam  <[email protected]>
759
760	* tools/tiffset.c: add -d and -sd switches to allow operation on
761	a particular directory, not just the first (jef).
762
7632011-03-21  Frank Warmerdam  <[email protected]>
764
765	* libtiff/tif_thunder.c: Correct potential buffer overflow with
766	thunder encoded files with wrong bitspersample set.  The libtiff
767	development team would like to thank Marin Barbella and TippingPoint's
768	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
769	CVE-2011-1167).
770	http://bugzilla.maptools.org/show_bug.cgi?id=2300
771
7722011-03-10  Frank Warmerdam  <[email protected]>
773
774	* libtiff/tif_fax3.h: Fix to last change allowing zero length
775	runs at the start of a scanline - needed for legal cases.
776
7772011-03-02  Frank Warmerdam  <[email protected]>
778
779	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
780	a move left.  Without this, a malicious input file can generate an
781	indefinitely large series of runs without a0 ever reaching the right
782	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
783	This is a modified version of a patch proposed by Drew Yao of Apple
784	Product Security.  It adds an unexpected() report, and disallows the
785	equality case, since emitting a run without increasing a0 still allows
786	buffer overrun.
787
7882011-02-23  Frank Warmerdam  <[email protected]>
789
790	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
791
792	* tools/tiff2rgba.c: close source file on error to make leak
793	detection easier.
794
795	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
796
797	http://bugzilla.maptools.org/show_bug.cgi?id=2295
798
7992011-02-22  Frank Warmerdam  <[email protected]>
800
801	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
802	_SUPPORT)
803
8042011-02-18  Frank Warmerdam  <[email protected]>
805
806	* configure.ac, configure: Added support for --enable-chunky-strip-read
807	configure option to enable the experimental feature from a couple
808	months ago for reading big strips in chunks.
809
810	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
811	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
812	Implement optional support for deferring the load of strip/tile
813	offset and size tags for optimized scanning of directories.  Enabled
814	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
815	#define in tif_config.h).
816
8172011-02-11  Frank Warmerdam  <[email protected]>
818
819	* libtiff/tif_print.c: remove unused variable.
820
8212011-02-09  Frank Warmerdam  <[email protected]>
822
823	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
824	with non-console (popup message) builds on win32.
825
826	http://bugzilla.maptools.org/show_bug.cgi?id=2293
827
8282011-01-24  Olivier Paquet  <[email protected]>
829
830	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
831	tif_print.c, tiff.h, tiffiop.h} : Added support for
832	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
833	values for each sample. Presents the min/max of all samples by default for
834	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
835	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
836	http://www.asmail.be/msg0055458208.html
837
8382011-01-06  Frank Warmerdam  <[email protected]>
839
840	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
841	maintained.
842
843	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
844	for CHUNKY_STRIP_READ_SUPPORT.
845
846	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
847	during JPEGPreDecode and JPEGDecode calls.
848	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
849	as compression formats like JPEG keep 16 lines interleaved in a sense
850	and might need to touch	quite a bit of data.
851
852	http://trac.osgeo.org/gdal/ticket/3894
853
8542011-01-03  Lee Howard <[email protected]>
855
856	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
857	caused by commit on 2010-12-14.  Submitted by e-mail from
858	Even Rouault <[email protected]>
859
8602010-12-31  Olivier Paquet  <[email protected]>
861
862	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
863	http://bugzilla.maptools.org/show_bug.cgi?id=2266
864
8652010-12-23  Andrey Kiselev  <[email protected]>
866
867	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
868	compression level parameter (preset) for Deflate and LZMA encoders,
869	e.g "-c lzma:p1" or "-c zip:p9".
870
871	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
872	(preset) in LZMAVSetField().
873
8742010-12-18  Bob Friesenhahn  <[email protected]>
875
876	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
877	Makefile.
878
8792010-12-14  Andrey Kiselev  <[email protected]>
880
881	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
882	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
883	TIFF compression scheme LZMA reserving a new value 34925 for
884	Compression tag. As per
885	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
886
8872010-12-14  Lee Howard <[email protected]>
888
889	* libtiff/tif_dirread.c: tolerate some cases where
890	FIELD_COLORMAP is missing
891	http://bugzilla.maptools.org/show_bug.cgi?id=2189
892
8932010-12-14  Lee Howard <[email protected]>
894
895	* libtiff/tif_read.c: change read_ahead to tmsize_t
896	http://bugzilla.maptools.org/show_bug.cgi?id=2222
897
8982010-12-14  Lee Howard <[email protected]>
899
900	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
901	Windows except on Cygwin
902	http://bugzilla.maptools.org/show_bug.cgi?id=2224
903
9042010-12-14  Lee Howard <[email protected]>
905
906	* tools/gif2tiff.c: fix buffer overrun
907	http://bugzilla.maptools.org/show_bug.cgi?id=2270
908
9092010-12-14  Lee Howard <[email protected]>
910
911	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
912	to improve compatibility with various viewers
913	submitted by e-mail from Dwight Kelly <[email protected]>
914
9152010-12-13  Lee Howard <[email protected]>
916
917	* tools/fax2ps.c: be consistent with page-numbering
918	http://bugzilla.maptools.org/show_bug.cgi?id=2225
919
9202010-12-13  Lee Howard <[email protected]>
921
922	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
923	resolves CVE-2010-2595
924	http://bugzilla.maptools.org/show_bug.cgi?id=2208
925
9262010-12-13  Lee Howard <[email protected]>
927
928	* tools/tiffcrop.c: new release by Richard Nolde
929	http://bugzilla.maptools.org/show_bug.cgi?id=2004
930
9312010-12-12  Lee Howard <[email protected]>
932
933	* tools/tiff2pdf.c: fix colors for images with RGBA
934	interleaved data
935	http://bugzilla.maptools.org/show_bug.cgi?id=2250
936
9372010-12-12  Lee Howard <[email protected]>
938
939	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
940	http://bugzilla.maptools.org/show_bug.cgi?id=2164
941
9422010-12-11  Lee Howard <[email protected]>
943
944	* tools/tiff2pdf.c: remove invalid duplication for Lab
945	http://bugzilla.maptools.org/show_bug.cgi?id=2162
946
9472010-12-11  Lee Howard <[email protected]>
948
949	* libtiff/tif_jpeg.c: fix use of clumplines calculation
950	http://bugzilla.maptools.org/show_bug.cgi?id=2149
951
9522010-12-11  Lee Howard <[email protected]>
953
954	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
955	http://bugzilla.maptools.org/show_bug.cgi?id=2118
956
9572010-12-11  Lee Howard <[email protected]>
958
959	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
960	  libtiff/tif_zip.c: fix build errors for VC6
961	http://bugzilla.maptools.org/show_bug.cgi?id=2105
962
9632010-12-11  Lee Howard <[email protected]>
964
965	* libtiff/tif_stream.cxx: warnings cleanup
966	http://bugzilla.maptools.org/show_bug.cgi?id=2091
967	* libtiff/tif_dirread.c: warnings cleanup
968	http://bugzilla.maptools.org/show_bug.cgi?id=2092
969
9702010-12-11  Lee Howard <[email protected]>
971
972	* tools/tiff2pdf.c: add fill-page option
973	http://bugzilla.maptools.org/show_bug.cgi?id=2051
974
9752010-12-11  Lee Howard <[email protected]>
976
977	* libtiff/tif_dirread.c: modify warnings
978	http://bugzilla.maptools.org/show_bug.cgi?id=2016
979
9802010-12-11  Lee Howard <[email protected]>
981
982	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
983        http://bugzilla.maptools.org/show_bug.cgi?id=1999
984
9852010-12-11  Lee Howard <[email protected]>
986
987	* tools/tiffinfoce.c: strip byte counts are uint64* now
988
9892010-12-11  Lee Howard <[email protected]>
990
991        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
992        or missing byte-count tag
993        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
994        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
995
9962010-12-08  Lee Howard <[email protected]>
997
998        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
999        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
1000
10012010-12-06  Lee Howard <[email protected]>
1002
1003        * libtiff/tif_open.c: Fix mode check before opening a file.
1004        http://bugzilla.maptools.org/show_bug.cgi?id=1906
1005
10062010-11-27  Bob Friesenhahn  <[email protected]>
1007
1008	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
1009	Patch by Vincent Torri.
1010
10112010-10-21  Frank Warmerdam  <[email protected]>
1012
1013	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
1014
1015	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
1016
1017	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
1018
10192010-09-25  Lee Howard <[email protected]>
1020
1021	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
1022	with additional command line options for Document Title,
1023	Document Creator, and Page Orientation
1024
10252010-07-13  Bob Friesenhahn  <[email protected]>
1026
1027	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
1028	potentially unterminated buffer due to using an exceptionally long
1029	file name.
1030
10312010-07-08  Andrey Kiselev  <[email protected]>
1032
1033	* tools/tiff2pdf.c: Fixed ID buffer filling in
1034	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
1035
10362010-07-07  Andrey Kiselev  <[email protected]>
1037
1038	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
1039	to expected value as the warning message suggests. As per bug
1040	http://bugzilla.maptools.org/show_bug.cgi?id=1963
1041
10422010-07-06  Andrey Kiselev  <[email protected]>
1043
1044	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
1045	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
1046	which should be set by value.
1047
1048	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
1049	and _TIFFFieldWithName() if the tag is not found in the tag table.
1050	This should be normal situation and returned NULL value should be
1051	properly handled by the caller.
1052
10532010-07-02  Andrey Kiselev  <[email protected]>
1054
1055	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
1056	integer type conversions. As per bug
1057	http://bugzilla.maptools.org/show_bug.cgi?id=2207
1058
1059	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
1060	WhitePoint tag as per bug
1061	http://bugzilla.maptools.org/show_bug.cgi?id=2042
1062
1063	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1064	working with YCbCr image in PickContigCase(). As per bug
1065	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1066
1067	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1068	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1069	we don't need any post-processing. That helps to reset the hook if we
1070	previously set this field to some other value and the hook was
1071	initialized accordingly. As per bug
1072	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1073
10742010-07-01  Andrey Kiselev  <[email protected]>
1075
1076	* tools/tiffgt.c: Properly check the raster buffer allocations for
1077	integer overflows. As per bug
1078	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1079
1080	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1081	upstream.
1082
1083	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1084	multiply_32() and multiply_64() functions into tif_aux.c file and
1085	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1086
10872010-06-30  Andrey Kiselev  <[email protected]>
1088
1089	* tools/tiff2pdf.c: Better generation of ID field in
1090	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1091
1092	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1093	converting JPEG encoded tiles.
1094
1095	* tools/tiff2pdf.c: Better handling of string fields, use static
1096	string buffers instead of dynamically allocated, use strncpy() instead
1097	of strcpy(), control the string lengths.
1098
10992010-06-25  Andrey Kiselev  <[email protected]>
1100
1101	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1102	referencing to uninitialized memory in some cases (e.g. when tile size
1103	set bigger than the image size).
1104
11052010-06-15  Bob Friesenhahn  <[email protected]>
1106
1107	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1108	subsampled data since tiffcrop currently doesn't support it.  Fix
1109	JPEG support.
1110
11112010-06-13  Frank Warmerdam  <[email protected]>
1112
1113	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1114
1115	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1116	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1117	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1118	size is larger.  Also, there are a bunch of places that try to
1119	memset() a malloc'd buffer before checking for malloc failure, which
1120	would result in core dump if there actually were a failure. (#2211)
1121
11222010-06-11  Bob Friesenhahn  <[email protected]>
1123
1124	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1125	avoid compiler warnings if parameter types are not sign
1126	consistent.
1127
1128	* libtiff 4.0.0alpha6 released.
1129
1130	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1131	European page size dimensions.  Added an option to allow the user
1132	to specify a custom page size on the command line.  Fix the case
1133	where a page size specified with a fractional part was being
1134	coerced to an integer by retyping the variables that define the
1135	paper size.
1136
1137	* html/index.html: Update for the 3.9.3 release.
1138
1139	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1140	YCbCr subsampled data since tiffcp currently doesn't support it.
1141	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1142
1143	* Update libtool to version 2.2.10.
1144
11452010-06-10  Bob Friesenhahn  <[email protected]>
1146
1147	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1148	multiplier is zero.
1149
11502010-06-09  Bob Friesenhahn  <[email protected]>
1151
1152	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1153	CVE-2010-1411 was not complete.
1154
1155	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1156	multiply two integers.  Returns zero if there is an integer
1157	overflow.
1158
1159	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1160	is reported when reading the input file.
1161
11622010-06-08  Bob Friesenhahn  <[email protected]>
1163
1164	* Update libtool to version 2.2.8.
1165
1166	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1167	buffer due to integer overflow in TIFFroundup() and several other
1168	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1169	fixes CVE-2010-1411.
1170
1171	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1172	result in an integer overflow. This causes TIFFroundup() to also
1173	return zero if there would be an integer overflow.
1174
1175	* contrib: Add an emacs formatting mode footer to all source files
1176	so that emacs can be effectively used.
1177
11782010-06-03  Oliver Chen Feng <[email protected]>
1179
1180	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1181	file PAGENUMBER value in sequence for users who care the page
1182	sequence, this will also prevent tiff2pdf from creating pdf file from
1183	the merged tiff file with wrong page sequence.
1184
11852010-05-08  Olivier Paquet  <[email protected]>
1186
1187	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1188	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1189	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1190	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1191	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1192
11932010-05-07  Frank Warmerdam  <[email protected]>
1194
1195	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1196	JPEGPreEncode(), not just when we want to output local tables.
1197	Otherwise the quality used during compression may not be right and
1198	might not match the tables in the tables tag.   This bug only occurs
1199	when seeking between directories in the midst of writing blocks.
1200	http://trac.osgeo.org/gdal/ticket/3539
1201
12022010-05-06  Andrey Kiselev  <[email protected]>
1203
1204	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1205	Regenerated from the source.
1206
12072010-05-05  Olivier Paquet  <[email protected]>
1208
1209	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1210	had stopped working. Also made it always print 6 floats instead of
1211	2*SamplesPerPixel.
1212	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1213	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1214	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1215	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1216
12172010-05-05  Frank Warmerdam  <[email protected]>
1218
1219	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1220	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1221
12222010-04-21  Frank Warmerdam  <[email protected]>
1223
1224	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1225	JPEGSetupEncode() is called if the tables already seem to be
1226	established.  This prevents spurious updates and rewriting of
1227	directories with jpegtables when doing updates to existing images.
1228	http://trac.osgeo.org/gdal/ticket/3539
1229
12302010-04-20  Olivier Paquet  <[email protected]>
1231
1232	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1233	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1234	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1235	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1236	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1237
12382010-04-10  Bob Friesenhahn  <[email protected]>
1239
1240	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
1241	when the tag count value is zero.  Error handling is still a
1242	regression since in 3.9.2, empty tags are skipped (with a warning)
1243	rather than returning a hard error and refusing to read the file.
1244
1245	* tools/ppm2tiff.c (main): While case for parsing comment line
1246	requires extra parenthesis to work as expected.  Reported by
1247	Thomas Sinclair.
1248
12492010-04-02  Frank Warmerdam  <[email protected]>
1250
1251	* libtiff/tif_read.c (primarily): Add support for
1252	CHUNKY_STRIP_READ_SUPPORT where large strips are
1253	read in chunks for applications using TIFFReadScanline().
1254	This is intended to make it more practical work with very
1255	large compressed one-strip files.   Feature is off by default.
1256	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
1257	http://trac.osgeo.org/gdal/ticket/3514
1258
12592010-03-31  Frank Warmerdam  <[email protected]>
1260
1261	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
1262	directories so previously placed directories will be migrated to
1263	the end of file if needed.
1264
12652010-03-30  Frank Warmerdam  <[email protected]>
1266
1267	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
1268	to support operating on strips/tiles of more than 256MB.
1269	http://trac.osgeo.org/gdal/ticket/3512
1270
12712010-03-10  Bob Friesenhahn  <[email protected]>
1272
1273	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
1274	that it is clearly a memory allocation error message, and also
1275	includes the size of the allocation request.
1276
12772010-02-22  Lee Howard  <[email protected]>
1278
1279	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
1280	the JPEG TIFF as is is not required in order to prevent it from
1281	being unused and filled with invalid data.  (Leave it to be
1282	generated by later activity.)
1283	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1284	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
1285	data rather than skipping them.  This fixes the ability to view in
1286	Acrobat Reader, Evince, and Ghostscript.
1287	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1288	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
1289	strips.
1290	http://bugzilla.maptools.org/show_bug.cgi?id=2029
1291
12922009-12-03  Frank Warmerdam  <[email protected]>
1293
1294	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
1295	Made so that when working with downsampled images a stub function
1296	reporting an error is used for tif_decoderow.  We cannot meaningfully
1297	support reading scanlines in this situation.  (#1936)
1298
1299	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
1300	resetting of the upsampling values (gdal:#3259).
1301	http://bugzilla.maptools.org/show_bug.cgi?id=1936
1302
13032009-11-30  Frank Warmerdam  <[email protected]>
1304
1305	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
1306	tools/ras2tiff.c: Fix resource leaks on error.
1307	http://bugzilla.maptools.org/show_bug.cgi?id=2121
1308
1309	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
1310	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
1311	of as a custom(generic) field to avoid a potential reentrancy problem.
1312	http://bugzilla.maptools.org/show_bug.cgi?id=2125
1313
1314	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
1315	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
1316	const, and display_sRGB static and const.
1317	http://bugzilla.maptools.org/show_bug.cgi?id=2124
1318
13192009-11-04  Bob Friesenhahn  <[email protected]>
1320
1321	* libtiff 4.0.0alpha5 released.
1322
13232009-11-03  Bob Friesenhahn  <[email protected]>
1324
1325	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
1326	version has undergone substantial testing with arbitrary sample
1327	bit depths.  Also eliminates GCC compilation warnings.
1328
13292009-11-02  Bob Friesenhahn  <[email protected]>
1330
1331	* port/libport.h: Add extern declarations for getopt standard
1332	globals.
1333
13342009-10-31  Bob Friesenhahn  <[email protected]>
1335
1336	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
1337	noticed in 64-bit build of libtiff with Visual Studio 2005.
1338	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
1339	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
1340
1341	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
1342	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
1343	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
1344	http://bugzilla.maptools.org/show_bug.cgi?id=2068
1345
13462009-10-29  Bob Friesenhahn  <[email protected]>
1347
1348	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
1349	pointer" warnings.
1350
13512009-10-28  Bob Friesenhahn  <[email protected]>
1352
1353	* html/tools.html: Add manual page links, and a summary
1354	description of tiffcrop.
1355
13562009-10-07  Bob Friesenhahn  <[email protected]>
1357
1358	* configure.ac: x86_64 should use the same fill order as i386.
1359
13602009-09-24  Bob Friesenhahn  <[email protected]>
1361
1362	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
1363	Nolde.  Major updates to add significant functionality for reading
1364	and writing tile based images with bit depths not a multiple of 8
1365	which cannot be handled by tiffcp.
1366
13672009-09-03  Bob Friesenhahn  <[email protected]>
1368
1369	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
1370	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
1371	"Bug 2090 - OJPEG crash with libjpeg v7".
1372	http://bugzilla.maptools.org/show_bug.cgi?id=2090
1373
13742009-09-03  Frank Warmerdam  <[email protected]>
1375
1376	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
1377	interface when stoponerror is set.
1378	http://bugzilla.maptools.org/show_bug.cgi?id=2071
1379
13802009-08-30  Bob Friesenhahn  <[email protected]>
1381
1382	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
1383	fix build with gcc when using the "-Wformat
1384	-Werror=format-security" flags.
1385
13862009-08-29  Bob Friesenhahn  <[email protected]>
1387
1388	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
1389	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
1390	utilities tests.
1391
13922009-08-28  Bob Friesenhahn  <[email protected]>
1393
1394	* tools/tiffinfo.c: tiffinfo should return error status to the
1395	caller.  Register a private error callback to accomplish that.
1396
1397	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
1398	PNM formats so that we will be able to test more of the tools.
1399	While adding these test images I notice that bmp2tiff and gif2tiff
1400	only support ancient versions of their respective formats.
1401
14022009-08-27  Bob Friesenhahn  <[email protected]>
1403
1404	* libtiff 4.0.0alpha4 released.
1405
1406	* HOWTO-RELEASE: Improved release instructions.
1407
14082009-08-24  Bob Friesenhahn  <[email protected]>
1409
1410	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
1411	fixes for "Bug 2023 - nroff errors in manual pages".
1412	http://bugzilla.maptools.org/show_bug.cgi?id=2023
1413
1414	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
1415	CVE-2009-2347 libtiff: integer overflows in various inter-color
1416	space conversion tools".
1417	http://bugzilla.maptools.org/show_bug.cgi?id=2079
1418
1419	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
1420	Berkenbilt for "Bug 2024 - possible null pointer dereference with
1421	one-line fix".
1422	http://bugzilla.maptools.org/show_bug.cgi?id=2024
1423
1424	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
1425	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
1426	segfault after setting tdir_tag = IGNORE".
1427	http://bugzilla.maptools.org/show_bug.cgi?id=1895
1428
14292009-08-23  Bob Friesenhahn  <[email protected]>
1430
1431	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
1432	tiffcrop.sh into a collection of many specific tests.  Re-wrote
1433	all of the existing tests to be based on some simple shell
1434	functions.  Make distcheck works again.
1435
1436	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
1437	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
1438	tests under valgrind.
1439
14402009-08-21  Bob Friesenhahn  <[email protected]>
1441
1442	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
1443	build.
1444
1445	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
1446	actually activated since it needed to be enabled in this
1447	Makefile.am.  Also activated parallel-tests mode since it offers
1448	useful features such as per-test .log files and a summary test
1449	report .log file.
1450
14512009-08-20  Bob Friesenhahn  <[email protected]>
1452
1453	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
1454	libtool 2.2.6.  Enabled support for silent build rules
1455	(--enable-silent-rules or 'make V=0') and colorized tests.
1456
1457	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
1458
14592009-06-30  Frank Warmerdam  <[email protected]>
1460
1461	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
1462
1463	* tools/tiffcp.c: add -c sgilog support.
1464
1465	* libtiff/tif_luv.c: correct return codes from encoderow to be
1466	1 on success instead of zero.
1467	http://bugzilla.maptools.org/show_bug.cgi?id=2069
1468
1469	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
1470	#1085 for a better underflow fix that errors properly.
1471	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1472	http://bugzilla.maptools.org/show_bug.cgi?id=1985
1473
14742009-06-26  Frank Warmerdam  <[email protected]>
1475
1476	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
1477	fails on oddly sized 12bit jpeg compressed ycbcr images.
1478
14792009-06-22  Frank Warmerdam  <[email protected]>
1480
1481	* libtiff/tif_lzw.c: Fix buffer underflow bug.
1482	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1483
14842009-06-21  Frank Warmerdam  <[email protected]>
1485
1486	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
1487	for dual mode 8/12 bit jpeg support.
1488
14892009-06-03  Frank Warmerdam  <[email protected]>
1490
1491	* libtiff/tif_write.c: do not override the planar configuration to be
1492	contig for one sample files if planar configuration is already set.
1493	http://bugzilla.maptools.org/show_bug.cgi?id=2057
1494
14952009-06-02  Frank Warmerdam  <[email protected]>
1496
1497	* libtiff/libtiff.def: Add TIFFUnsetField.
1498
14992009-05-03  Frank Warmerdam  <[email protected]>
1500
1501	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
1502	error reports to use "%s" as format string.
1503	http://trac.osgeo.org/gdal/ticket/2976
1504
15052009-03-12  Frank Warmerdam  <[email protected]>
1506
1507	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
1508	for some codecs (#2020).
1509
15102009-02-12  Frank Warmerdam  <[email protected]>
1511
1512	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
1513	http://bugzilla.maptools.org/show_bug.cgi?id=2005
1514
15152009-02-09  Frank Warmerdam  <[email protected]>
1516
1517	* libtiff/tif_dirread.c: Improve allocation safety when allocated
1518	buffer for large tags.  (#1998)  Related to (#1993)
1519
15202009-02-06  Frank Warmerdam  <[email protected]>
1521
1522	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
1523	test suite should pass.
1524
15252009-02-05  Frank Warmerdam  <[email protected]>
1526
1527	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
1528	but at the 2GB boundary to avoid overflow on 32bit systems.
1529	http://bugzilla.maptools.org/show_bug.cgi?id=1993
1530
1531	* libtiff/tif_dirread.c: Remove some assertions that blow due to
1532	corrupt files rather than in response to library internal
1533	inconsistencies.
1534	http://bugzilla.maptools.org/show_bug.cgi?id=1995
1535	http://bugzilla.maptools.org/show_bug.cgi?id=1991
1536
1537	* libtiff/tif_dirread.c: Fixed testing for failed result from
1538	TIFFReadDirectoryFindFieldInfo().
1539	http://bugzilla.maptools.org/show_bug.cgi?id=1992
1540
15412009-01-23  Frank Warmerdam  <[email protected]>
1542
1543	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
1544	http://bugzilla.maptools.org/show_bug.cgi?id=1911
1545
1546	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
1547
1548	http://bugzilla.maptools.org/show_bug.cgi?id=1924
1549
1550	* tools/tiffcrop.c: initialize xres/yres values.
1551
1552	* test/*.sh - default ${srcdir} to local directory.
1553
1554	* test/common.sh - start verbose mode after common settings.
1555
1556	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
1557	avoid type mismatches on different platforms.
1558	http://bugzilla.maptools.org/show_bug.cgi?id=1889
1559
15602009-01-22  Frank Warmerdam  <[email protected]>
1561
1562	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
1563	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
1564
1565	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
1566	defined, primarily to reduce prototype warnings on windows.
1567
1568	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
1569	about unused parameters, and uninitialized variables.
1570
15712009-01-21  Bob Friesenhahn  <[email protected]>
1572
1573	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
1574	order to trace full execution detail while executing the test suite.
1575
15762009-01-20  Frank Warmerdam  <[email protected]>
1577
1578	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
1579
15802009-01-20  Bob Friesenhahn  <[email protected]>
1581
1582	* test/Makefile.am (CLEANFILES): Make sure that test output files
1583	are removed by 'make clean'
1584
1585	* Update autotools for 4.0.0 beta3
1586
1587	* 4.0.0 beta3 produced.
1588
15892009-01-12  Bob Friesenhahn  <[email protected]>
1590
1591	* test/tiffcrop.sh: New test script for tiffcrop from Richard
1592	Nolde.
1593
1594	* tools/tiff2ps.c: Remove spurious message to stderr.
1595
15962009-01-11  Bob Friesenhahn  <[email protected]>
1597
1598	* tools/tiff2ps.c: Incorporated significant functionality update
1599	from Richard Nolde.  In particular, support for rotating the image
1600	by 90, 180, 270, and 'auto' has been added.
1601
1602	* man/tiffcrop.1: Incorporated documentation updates from Richard
1603	Nolde.
1604
1605	* tools/tiffcrop.c: Incorporated significant functionality update
1606	from Richard Nolde.
1607
16082008-12-31  Bob Friesenhahn  <[email protected]>
1609
1610	* libtiff/tiffio.h: GCC will now validate format specifications
1611	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
1612	TIFFWarningExt() in order to reveal bugs.
1613
1614	* Many fixes throughout to work better as a 64-bit build.
1615
16162008-12-30  Bob Friesenhahn  <[email protected]>
1617
1618	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
1619	tags now require 64-bit parameter rather than 32-bit.
1620
1621	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
1622	64-bit values.
1623
1624	* tools/thumbnail.c: Eliminate crash noticed while running test
1625	suite.
1626
16272008-12-29  Bob Friesenhahn  <[email protected]>
1628
1629	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
1630	Initialize stack variables to avoid compiler warning.
1631
1632	* tools/tiffinfoce.c (main): Use toff_t for offset type when
1633	retrieving offset of EXIF IFD.
1634
1635	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
1636	TIFFClientOpen() callback and other external function definitions.
1637
1638	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
1639	type now.  Fixes crash when dumping files containing an EXIF IFD.
1640
1641	* m4/libtool.m4: Update to libtool 2.2.6.
1642
16432008-12-21  Frank Warmerdam  <[email protected]>
1644
1645	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
1646
1647	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
1648	strip for the last partial strip in a jpeg compressed file.
1649	http://bugzilla.maptools.org/show_bug.cgi?id=1981
1650
16512008-10-29  Frank Warmerdam  <[email protected]>
1652
1653	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
1654	we take the shortcut to only update the strip/tile offsets in place.
1655	http://trac.osgeo.org/gdal/ticket/2621
1656
16572008-10-21  Andrey Kiselev  <[email protected]>
1658
1659	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
1660	the older versions retained).
1661
16622008-10-09  Frank Warmerdam  <[email protected]>
1663
1664	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
1665	IPP enabled version of libjpeg from Intel.
1666	http://bugzilla.maptools.org/show_bug.cgi?id=1951
1667
16682008-09-05  Andrey Kiselev  <[email protected]>
1669
1670	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
1671	Required for libtiff 4.0.
1672
1673	* tools/tiffsplit.c: Use dynamically allocated array instead of static
1674	when constructing output file names.
1675
16762008-09-03  Andrey Kiselev  <[email protected]>
1677
1678	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
1679	doing the filename/path construction.
1680
1681	* tools/tiff2pdf.c: More appropriate format string in
1682	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
1683
1684	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
1685
1686	http://bugzilla.maptools.org/show_bug.cgi?id=1929
1687
1688	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
1689	CVE-2008-2327 security issue.
1690
16912008-09-01  Frank Warmerdam  <[email protected]>
1692
1693	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
1694
1695	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
1696	depending on whether the file is bigtiff or classic tiff.
1697	http://bugzilla.maptools.org/show_bug.cgi?id=1917
1698
16992008-08-12  Edward Lam  <[email protected]>
1700
1701	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
1702	consistent (__int64) casting when testing if _lseeki64 has
1703	successfully seeked as requested.  This is necessary for large
1704	file support to work since off_t is only 32-bit.
1705
17062008-07-29  Frank Warmerdam  <[email protected]>
1707
1708	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
1709	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
1710	with control logic to return runtime errors (c/o Even Rouault) (#1927).
1711
17122008-06-17  Frank Warmerdam  <[email protected]>
1713
1714	* tools/tiffcrop.c: Fix some portability problems.
1715
1716	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
1717	used in tif_jpeg.c.
1718
1719	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
1720	as TIFFOpen().
1721
17222008-06-01  Frank Warmerdam  <[email protected]>
1723
1724	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
1725	like Sparc/Solaris.
1726	http://bugzilla.maptools.org/show_bug.cgi?id=1892
1727
17282008-05-27  Frank Warmerdam  <[email protected]>
1729
1730	* libtiff.def: Add TIFFFindField
1731	http://bugzilla.maptools.org/show_bug.cgi?id=1891
1732
17332008-05-26  Frank Warmerdam  <[email protected]>
1734
1735	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
1736
1737	* li2008-04-15  Andrey Kiselev  <[email protected]>
1738
1739btiff/tif_win32.c: Replace custom Win32 memory api with generic
1740	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
1741	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
1742
1743	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
1744	in windows version (care of Edward Lam).
1745
17462008-05-24  Frank Warmerdam  <[email protected]>
1747
1748	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
1749	compression codec codes.
1750
1751	* tif_dirwrite.c: fix potential memory leak.
1752
1753	* tif_dirread.c: Fix unchecked malloc result.
1754
17552008-05-24  Bob Friesenhahn  <[email protected]>
1756
1757	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
1758	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
1759	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
1760	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
1761	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
1762	suggestions from Lee Howard posted to the tiff list on 13 Sep
1763	2007.
1764
17652008-05-23  Frank Warmerdam  <[email protected]>
1766
1767	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
1768	possible runtime problem reported by coverity.
1769
1770	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
1771
1772	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
1773	http://bugzilla.maptools.org/show_bug.cgi?id=1888
1774
1775	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
1776
1777	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
1778
1779	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
1780	Cleanup scanline allocation to avoid coverity warning.
1781
1782	* tools/thumbnail.c: Check for TIFFOpen() failure.
1783
17842008-05-18  Frank Warmerdam  <[email protected]>
1785
1786	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
1787	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
1788	why this is needed.
1789
17902008-05-09  Bob Friesenhahn  <[email protected]>
1791
1792	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
1793	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
1794
17952008-04-15  Andrey Kiselev  <[email protected]>
1796
1797	* test/: Test suite updated. Everything is passed now.
1798
1799	* libtiff/tif_dirinfo.c: Fixed description of the
1800	TIFFTAG_NUMBEROFINKS tag.
1801
18022008-04-14  Andrey Kiselev  <[email protected]>
1803
1804	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
1805	Get rid of some of "dereferencing type-punned" warnings by converting
1806	tdir_offset field of TIFFDirEntry structure into union.
1807
18082008-04-10  Andrey Kiselev  <[email protected]>
1809
1810	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
1811	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
1812	from the public interface. Type of its 'count' parameter changed
1813	from uint32 to tmsize_t.
1814
1815	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
1816	of the tiff structure have the size_t type instead of uint32.
1817
18182008-04-09  Andrey Kiselev  <[email protected]>
1819
1820	* tools/tiffdump.c: Added support for MSVS 6.0.
1821
1822	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
1823	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
1824	point values on MSVS 6.0 platform.
1825
18262008-03-14  Frank Warmerdam  <[email protected]>
1827
1828	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
1829	TIFFReadDirEntryArray() since they are interfering with seemingly
1830	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
1831
18322008-02-09  Joris Van Damme  <[email protected]>
1833
1834	* tif_dirread.c: Added handling for the case of number of values for
1835	PageNumber tag different from 2 (previously resulted in an assert
1836	indicating lack of handling and was forgotten about)
1837
18382008-02-01  Frank Warmerdam  <[email protected]>
1839
1840	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
1841	the actual jpeg data stream if the first strip/tile has zero size.
1842	This is the case when GDAL creates a new file with zero sizes, closes
1843	and reopens it.
1844
18452008-01-07  Frank Warmerdam  <[email protected]>
1846
1847	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
1848
18492008-01-01  Frank Warmerdam  <[email protected]>
1850
1851	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
1852
1853	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
1854	targets.
1855
1856	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
1857	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
1858	(x64).
1859
1860	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
1861	and TIFFFieldWithName() now return TIFFField pointers instead of
1862	TIFFFieldInfo pointers.
1863
1864	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
1865	exist. This makes it compile again on Windows
1866
1867	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
1868	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
1869
1870	* test/rewrite_tag.c: New test for TIFFRewriteField().
1871
18722007-12-31  Frank Warmerdam  <[email protected]>
1873
1874	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
1875	rewrites one field "on disk" updating an existing directory
1876	entry.  Lots of limitations still...
1877
1878	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
1879	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
1880	the strip offset/size values are dirty but nothing else about the
1881	directory is dirty.  In flush handle "just stripmaps dirty" as a
1882	special case that just rewrites these values without otherwise
1883	modifying the directory on disk using TIFFRewriteField().
1884
1885	We also modify logic so that in update mode the directory is not
1886	marked dirty on read, but only when something is changed.  This
1887	means we need to keep track of updates to the stripmap stuff in
1888	TIFFAppendToStrip().
1889
18902007-12-10  Frank Warmerdam  <[email protected]>
1891
1892	* tif_jpeg.c: Improve ability to switch between encoding and decoding
1893	in the jpeg code (gdal bug #2033).
1894
18952007-11-23  Frank Warmerdam  <[email protected]>
1896
1897	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
1898	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
1899	rawcp/rawcc buffer are for writing and thus may require flushing.
1900	Necessary to distinguish whether they need to be written to disk when
1901	in mixed read/write mode and doing a mixture of writing followed by
1902	reading.  http://trac.osgeo.org/gdal/ticket/1758
1903
19042007-11-23  Andrey Kiselev  <[email protected]>
1905
1906	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
1907	from Alexey Chupahin.
1908
19092007-11-02  Frank Warmerdam  <[email protected]>
1910
1911	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
1912	establishing if an existing tile can be rewritten to the same location
1913	by comparing the current size to all the other blocks in the same
1914	directory.  This is dangerous in many situations and can easily
1915	corrupt a file.  (observed in esoteric GDAL situation that's hard to
1916	document).  This change involves leaving the stripbytecount[] values
1917	unaltered till TIFFAppendToStrip().  Now we only write a block back
1918	to the same location it used to be at if the new data is the same
1919	size or smaller - otherwise we move it to the end of file.
1920
1921	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
1922	data when writing the directory just because we have BEENWRITING at
1923	some point in the past.  This was causing odd junk to be written out
1924	in a tile of data when a single tile had an interleaving of reading
1925	and writing with reading last.  (highlighted by gdal
1926	autotest/gcore/tif_write.py test 7.
1927
1928	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
1929	modifying callers buffer.
1930	http://trac.osgeo.org/gdal/ticket/1965
1931
1932	* tif_predict.c/h: more fixes related to last item, keeping a
1933	distinct pfunc for encode and decode cases as these were getting
1934	mixed up sometimes.
1935	http://trac.osgeo.org/gdal/ticket/1948
1936
19372007-11-01  Frank Warmerdam  <[email protected]>
1938
1939	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
1940	predictor based encoding and decoding works in read-write update
1941	mode properly.
1942	http://trac.osgeo.org/gdal/ticket/1948
1943
19442007-10-24  Joris Van Damme  <[email protected]>
1945
1946	* tif_dirread.c: Fixed problem with bogus file triggering
1947	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
1948	ChopUpSingleUncompressedStrip
1949
19502007-10-22  Joris Van Damme  <[email protected]>
1951
1952	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
1953	at best, access violation at worst, when subsampled JPEG compressed imagery
1954	is decoded without the JPEG_COLORMODE feature
1955
19562007-10-11  Frank Warmerdam  <[email protected]>
1957
1958	* html/index.html: Update "people responsible" section.
1959
19602007-10-05  Frank Warmerdam  <[email protected]>
1961
1962	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
1963	as reported on the mailing list.
1964
19652007-10-01  Joris Van Damme  <[email protected]>
1966
1967	* changed some more incorrect %lud printf flags to %lu
1968
19692007-09-29  Joris Van Damme  <[email protected]>
1970
1971	* tif_dirread.c: Strip chopping interfered badly with uncompressed
1972	subsampled images because it tried to divide subsampled rowblocks,
1973	leading to all sorts of errors throughout the library for these
1974	images. Fixed by making strip chopping divide in row counts that
1975	are a multiple of vertical subsampling value.
1976
19772007-09-28  Joris Van Damme  <[email protected]>
1978
1979	* tif_dirread.c: Logical cast working around compiler warning
1980
1981	* tif_read.c: Correction of some error flags and parameter lists
1982
19832007-09-27  Joris Van Damme  <[email protected]>
1984
1985	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
1986	when dealing with large bitspersample values, shutting up purification
1987	tools that warn about truncation, though it remains incorrect and
1988	indicates a conceptual problem there.
1989
1990	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
1991	of first IFD) to proper place because it badly interfered with memory
1992	mapping, resulting in mapping flag even with dummy mapping functions
1993	that returned 0 whilst at the same time the mapping tif_size wasn't
1994	set, thus resulting in continuous incorrect beyond-eof errors.
1995
19962007-09-24  Joris Van Damme  <[email protected]>
1997
1998	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
1999	inconsistent use of const in tiffFields and exifFields definition
2000
20012007-09-20  Frank Warmerdam  <[email protected]>
2002
2003	* tif_dirwrite.c: Always write tile/strip offsets and sizes
2004	using LONG8 type when output format is BigTIFF.  The
2005	TIFFWriteDirectoryTagLongLong8Array() function was restructured
2006	accordingly.
2007
2008	* tif_dirread.c: Improvements to error reporting text in
2009	TIFFFetchDirectory().
2010
20112007-09-19  Bob Friesenhahn  <[email protected]>
2012
2013	* test/images: Added a small collection of test images for use by
2014	test programs and scripts.
2015	* test/tiffinfo.sh: A trivial example test script.
2016	* test/common.sh: Added small script for setting the environment
2017	used by script-based tests.
2018
20192007-08-24  Frank Warmerdam  <[email protected]>
2020
2021	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
2022	zero when writing directory contents to preserve the ability to
2023	rewrite directories in place, even in the middle of a directory
2024	chain.
2025
2026	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
2027	definitions that are missing.  Existing definitions are silently
2028	ignored.
2029
2030	* tif_dirread.c: Add runtime error for fields for which no definition
2031	is found (in addition to an assert for developers) in
2032	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
2033	prudent.
2034
20352007-08-10  Joris Van Damme  <[email protected]>
2036
2037	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
2038	from _TIFFRGBAImage structure to revert unwanted ABI change.
2039
20402007-08-10  Joris Van Damme  <[email protected]>
2041
2042	* libtiff/tif_win32.c: use SetFilePointer instead of
2043	SetFilePointerEx, as per bug
2044
2045	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
2046
20472007-07-19  Andrey Kiselev  <[email protected]>
2048
2049	* libtiff/tif_stream.cxx: Put all callback functions declarations
2050	inside extern "C" block.
2051
2052	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
2053	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
2054	formatter instead of "%lld" with MSVC compiler.
2055
2056	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
2057	_TIFFUInt64ToDouble() functions.
2058
20592007-07-18  Andrey Kiselev  <[email protected]>
2060
2061	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
2062	integer constants.
2063
2064	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2065	remove tif_config.h/tiffconf.h during cleaning. As per bug
2066
2067	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2068
2069	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2070
2071	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2072
20732007-07-13  Andrey Kiselev  <[email protected]>
2074
2075	* libtiff 4.0.0alpha released.
2076
20772007-07-12  Andrey Kiselev  <[email protected]>
2078
2079	* tools/tiff2pdf.c: Added missed extern optind as per bug
2080
2081	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2082
2083	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2084	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2085	extending scheme completed.
2086
20872007-07-11  Bob Friesenhahn  <[email protected]>
2088
2089	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2090	use standard C++ library size types and attempt to detect overflow
2091	cases.
2092
20932007-07-08  Andrey Kiselev  <[email protected]>
2094
2095	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2096	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2097	tag extending scheme. Use the new scheme everywhere.
2098
2099	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2100	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2101	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2102	TIFFFIeldInfo structure replaced with TIFFField structure.
2103	TIFFFieldInfo retained for the backward compatibility.
2104
21052007-07-05  Bob Friesenhahn  <[email protected]>
2106
2107	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2108	defined.
2109
21102007-07-04  Andrey Kiselev  <[email protected]>
2111
2112	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2113	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2114	removed.
2115
2116	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2117	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2118	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2119	These tags are not codec-specific and relate to image content, so
2120	process them as other normal tags.
2121
2122	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2123	public tiffio.h to private tif_dir.h.
2124
2125	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2126	outdated.
2127
21282007-07-03  Andrey Kiselev  <[email protected]>
2129
2130	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2131	tif_win3.c}: Obsoleted portability stuff removed.
2132
2133	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2134
2135	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2136
2137	Patch from William Bader.
2138
2139	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2140	significant upgrade of the whole utility as per bug
2141
2142	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2143
2144	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2145	PDF file using TIFFClientOpen() machinery as it is implemented
2146	by Leon Bottou.
2147
21482007-06-26  Bob Friesenhahn  <[email protected]>
2149
2150	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2151	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2152	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2153	allow returning -1 for errors.
2154	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2155
21562007-06-25  Bob Friesenhahn  <[email protected]>
2157
2158	* port/strtoull.c: New porting function in case strtoull() is not
2159	available on the target system.
2160	* configure.ac: Add configure support for determining sized types
2161	in a portable way and performing necessary substitutions in
2162	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2163	definitions.
2164
21652007-04-27  Andrey Kiselev  <[email protected]>
2166
2167	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2168
2169	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2170
21712007-04-07  Andrey Kiselev  <[email protected]>
2172
2173	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2174	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2175	tif_predict.c, tif_zip.c}: Finally fix bug
2176
2177	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2178
2179	by introducing _TIFFMergeFieldInfo() returning integer error status
2180	instead of void in case of problems with field merging (e.g., if the
2181	field with such a tag already registered). TIFFMergeFieldInfo() in
2182	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2183	check returned value.
2184
21852007-04-07  Frank Warmerdam  <[email protected]>
2186
2187	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2188	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2189
21902007-04-06  Frank Warmerdam  <[email protected]>
2191
2192	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2193	will convert from decompressor to compressor or compress to decompress
2194	if required by the force arguments.  This works around a problem in
2195	where the JPEGFixupTestSubsampling() may cause a decompressor to
2196	be setup on a directory when later a compressor is required with the
2197	force flag set.  Occurs with the addtiffo program for instance.
2198
21992007-04-06  Andrey Kiselev  <[email protected]>
2200
2201	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2202	functionality from Richard Nolde. As per bug
2203
2204	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2205
22062007-03-28  Frank Warmerdam  <[email protected]>
2207
2208	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2209
22102007-03-17  Joris Van Damme  <[email protected]>
2211
2212	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2213
22142007-03-07  Joris Van Damme  <[email protected]>
2215
2216	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2217	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2218	factor. This bug is mentioned in:
2219	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2220	http://www.asmail.be/msg0054766825.html
2221
22222007-03-07  Joris Van Damme  <[email protected]>
2223
2224	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2225
2226	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2227	unused arguments by standard C indication for the same
2228
22292007-02-27  Andrey Kiselev  <[email protected]>
2230
2231	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2232	counters in TIFFFetchData(). Should finally fix the issue
2233
2234	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2235
22362007-02-24  Andrey Kiselev  <[email protected]>
2237
2238	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
2239	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2240
2241	* libtiff/tif_dirread.c: Added special function to handle
2242	SubjectDistance EXIF tag as per bug
2243
2244	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
2245
2246	* tools/tiff2pdf.c: Do not assume inches when the resolution units
2247	do not specified. As per bug
2248
2249	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2250
2251	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
2252	it was set as infinite. As per bug
2253
2254	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2255
2256	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
2257	by Richard Nolde. As per bug
2258
2259	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
2260
22612007-02-22  Andrey Kiselev  <[email protected]>
2262
2263	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
2264	ExtraSamples == 999 produced by Corel Draw. As per bug
2265
2266	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
2267
2268	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
2269	changed from tsize_t to uint32 to be able to work with data arrays
2270	larger than 2GB. Fixes bug
2271
2272	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2273
2274	Idea submitted by Matt Hancher.
2275
22762007-01-31  Andrey Kiselev  <[email protected]>
2277
2278	* tools/tif2rgba.c: This utility does not work properly on big-endian
2279	architectures. It was fixed including the bug
2280
2281	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
2282
22832007-01-15  Mateusz Loskot <[email protected]>
2284
2285	* Submitted libtiff port for Windows CE platform
2286	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
2287	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
2288	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
2289	functons from tif_win32.c.
2290	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
2291	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
2292	standard header files for Windows CE build.
2293	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
2294
22952006-11-19  Frank Warmerdam  <[email protected]>
2296
2297	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
2298	we move a strip.
2299	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
2300
23012006-10-13  Andrey Kiselev  <[email protected]>
2302
2303	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
2304	in Gentoo bug ():
2305
2306	http://bugs.gentoo.org/show_bug.cgi?id=142383
2307
2308	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
2309	Though it is still far from the state of being working and useful.
2310
23112006-10-12  Andrey Kiselev  <[email protected]>
2312
2313	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
2314	method.
2315
2316	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
2317	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
2318
2319	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
2320	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
2321
2322	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
2323	vulnerabilities, reported in Gentoo bug ():
2324
2325	http://bugs.gentoo.org/show_bug.cgi?id=142383
2326
23272006-09-28  Andrey Kiselev  <[email protected]>
2328
2329	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
2330	vulnerabilities, as per	Gentoo bug ():
2331
2332	http://bugs.gentoo.org/show_bug.cgi?id=142383
2333
23342006-09-27  Frank Warmerdam  <[email protected]>
2335
2336	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
2337	encoding and decoding on the same read-write TIFF handle.  The LZW
2338	code can now maintain encode and decode state at the same time. The
2339	ZIP code will switch back and forth as needed.
2340	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
2341
23422006-09-20  Frank Warmerdam  <[email protected]>
2343
2344	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
2345	tif_config.vc.h for easier identification by folks using an IDE.
2346
23472006-07-25  Frank Warmerdam  <[email protected]>
2348
2349	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
2350
23512006-07-19  Frank Warmerdam  <[email protected]>
2352
2353	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
2354	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
2355	to bug report by Peng Gao with black strip at bottom of images.
2356
23572006-07-12  Frank Warmerdam  <[email protected]>
2358
2359	* tif_dirwrite.c: make sure to use uint32 for wordcount in
2360	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
2361	It already seems to have been done for other field types.  Needed
2362	for "tiffset" on files with geotiff ascii text.
2363
23642006-07-04  Bob Friesenhahn  <[email protected]>
2365
2366	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
2367	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
2368	its use does not appear to be required, so use it only when it is
2369	available.
2370
23712006-06-24  Andrey Kiselev  <[email protected]>
2372
2373	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
2374
2375	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
2376	function TIFFFetchDirectory() avoiding code duplication in
2377	TIFFReadDirectory() and TIFFReadCustomDirectory().
2378
23792006-06-19  Frank Warmerdam  <[email protected]>
2380
2381	* tools/tiff2pdf.c: Fix handling of -q values.
2382	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
2383
23842006-06-17  Frank Warmerdam  <[email protected]>
2385
2386	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
2387	files.  Modified TIFFReadDirectory() to not invoke
2388	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
2389	but one of them is zero.
2390	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
2391
23922006-06-08  Andrey Kiselev  <[email protected]>
2393
2394	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
2395	checking code in the separate function TIFFCheckDirOffset().
2396
2397	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
2398
2399	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
2400
2401	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
2402
2403	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
2404
2405	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
2406
2407	* tools/tiff2pdf.c: Fixed buffer overflow condition in
2408	t2p_write_pdf_string() as per bug
2409
2410	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
2411
24122006-06-07  Andrey Kiselev  <[email protected]>
2413
2414	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
2415	support for JBIG compression scheme (34661 code) contributed by Lee
2416	Howard. As per bug
2417
2418	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
2419
2420	* configure, configure.ac: OJPEG support enabled by default.
2421
2422	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
2423
24242006-06-03  Bob Friesenhahn  <[email protected]>
2425
2426	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
2427	TIFFPrintDirectory().  Joris Van Damme authored the fix.
2428
24292006-04-21  Andrey Kiselev  <[email protected]>
2430
2431	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
2432	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
2433
2434	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
2435	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
2436	Added support for OpenVMS by Alexey Chupahin, [email protected].
2437
24382006-04-20  Andrey Kiselev  <[email protected]>
2439
2440	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
2441	Properly set the binary mode for stdin stream as per bug
2442	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
2443
2444	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
2445	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
2446	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
2447	tiffset.1}: Improvements in page formatting as per bug
2448	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
2449
2450	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
2451	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
2452
24532006-04-18  Frank Warmerdam  <[email protected]>
2454
2455	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
2456	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
2457
24582006-04-12  Joris Van Damme  <[email protected]>
2459
2460	* libtiff/tif_getimage.c: Added support for planarconfig separate
2461	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
2462
24632006-04-11  Joris Van Damme  <[email protected]>
2464
2465	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
2466	- Conversion of unassociated alpha to associated alpha now done with
2467	  more performant LUT, and calculation more correct
2468	- Conversion of 16bit data to 8bit data now done with
2469	  more performant LUT, and calculation more correct
2470	- Bugfix of handling of 16bit RGB with unassociated alpha
2471
24722006-04-11  Joris Van Damme  <[email protected]>
2473
2474	* libtiff/tif_getimage.c:
2475	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
2476	  buffer for alpha strile and filled it, only to never read it back.
2477	  Removed allocation and fill.
2478	- Minor rename of vars in gtTileSeparate and gtStripSeparate
2479	  anticipating planned functionality extension
2480
24812006-04-08  Joris Van Damme  <[email protected]>
2482
2483	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
2484	and pickTileSeparateCase to PickSeparateCase as both work on strips as
2485	well
2486
2487	* libtiff/tif_getimage.c: moved img->get selection from
2488	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
2489	logical hook for planned functionality extension
2490
24912006-04-08  Joris Van Damme  <[email protected]>
2492
2493	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
2494	of inappropriate use of jpeg_abort instead of jpeg_destroy
2495
24962006-04-07  Joris Van Damme  <[email protected]>
2497
2498	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
2499	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
2500	on subsampled images - this ought to get sorted when we feel brave
2501	enough to replace TIFFScanlineSize alltogether
2502
2503	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
2504
25052006-04-04  Joris Van Damme  <[email protected]>
2506
2507	* libtiff/tiffio.h: added new type tstrile_t
2508
2509	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
2510	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
2511	toff_t*
2512
2513	* libtiff/tif_ojpeg.c: totally new implementation
2514
2515	* libtiff/tif_dirread.c: added several hacks to suit new support of
2516	OJPEG
2517
2518	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
2519	of OJPEG images in favor of tif_getimage.c native handling of
2520	YCbCr and desubsampling
2521
25222006-03-29  Frank Warmerdam  <[email protected]>
2523
2524	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
2525	interpretation causes the "upsampled" flag to be recomputed.  Fixes
2526	peculiar bug where photometric flag had to be set before jpegcolormode
2527	flag.
2528
25292006-03-25  Joris Van Damme  <[email protected]>
2530
2531	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
2532
2533	* libtiff/tif_strip.c: temporarilly added two new versions of
2534	TIFFScanlineSize
2535	  - TIFFNewScanlineSize: proposed new version, after all related
2536	    issues and side-effects are sorted out
2537	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
2538	This needs further sorting out.
2539
25402006-03-25  Joris Van Damme  <[email protected]>
2541
2542	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
2543	of last truncated strip data to TIFFWriteEncodedStrip
2544
25452006-03-25  Joris Van Damme  <[email protected]>
2546
2547	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
2548
25492006-03-25  Joris Van Damme  <[email protected]>
2550
2551	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
2552
2553	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
2554
2555	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
2556	prepare	the path for new tif_ojpeg.c
2557
25582006-03-23  Andrey Kiselev  <[email protected]>
2559
2560	* libtiff 3.8.2 released.
2561
2562	* tools/Makefile.am: Use runtime paths linker flags when rpath
2563	option enabled.
2564
25652006-03-21  Andrey Kiselev  <[email protected]>
2566
2567	* libtiff/libtiff.def: Added missed exports as per bug
2568	http://bugzilla.remotesensing.org/attachment.cgi?id=337
2569
2570	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
2571	tools/Makefile.vc: Makefiles improvements as per bug
2572	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
2573
2574	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
2575	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
2576	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
2577
2578	* libtiff/tif_strip.c: Take subsampling in account when calculating
2579	TIFFScanlineSize().
2580
2581	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
2582
25832006-03-17  Andrey Kiselev  <[email protected]>
2584
2585	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
2586	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
2587
2588	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
2589	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
2590
25912006-03-16  Andrey Kiselev  <[email protected]>
2592
2593	* libtiff/tiffiop.h: Added decalration for
2594	_TIFFSetDefaultCompressionState().
2595
2596	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
2597	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
2598	codec cleanup methods. As per bug
2599
2600	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
2601
26022006-03-15  Andrey Kiselev  <[email protected]>
2603
2604	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
2605	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
2606
2607	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
2608	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
2609
2610	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
2611	removed; move here the STRIP_SIZE_DEFAULT macro definition.
2612
2613	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
2614	macro definition.
2615
2616	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
2617
26182006-03-14  Andrey Kiselev  <[email protected]>
2619
2620	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
2621	in TIFFReadDirectory, because it is always set at the start of
2622	function and we allow TIFFs without that tag set.
2623
26242005-03-13  Andrey Kiselev  <[email protected]>
2625
2626	* libtiff 3.8.1 released.
2627
26282006-03-07  Andrey Kiselev  <[email protected]>
2629
2630	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
2631	function as per bug
2632	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2633
2634	* libtiff/tif_dirread.c: More wise check for integer overflow
2635	condition as per bug
2636	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2637
2638	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
2639	Properly restore setfield/getfield methods in cleanup functions. As
2640	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2641
26422006-03-03  Andrey Kiselev  <[email protected]>
2643
2644	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
2645	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
2646
2647	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
2648	TIFFPredictorCleanup() in codec cleanup methods. As per bug
2649
2650	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2651
2652	* libtiff/tif_dirread.c: Fixed integer overflow condition in
2653	TIFFFetchData() function. As per bug
2654
2655	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2656
26572006-03-01  Andrey Kiselev  <[email protected]>
2658
2659	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
2660	TIFFSetField() method, not directly. As per bug
2661
2662	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
2663
2664	* tools/ppm2tiff.c: Added support for PBM files as per bug
2665	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
2666
26672006-02-27  Andrey Kiselev  <[email protected]>
2668
2669	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
2670	to avoid crash as per bug
2671
2672	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
2673
26742006-02-26  Andrey Kiselev  <[email protected]>
2675
2676	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
2677	t2p_sample_rgba_to_rgb() was used in place of each other, that was
2678	resulted in problems with RGBA images with associated alpha.
2679	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
2680
26812006-02-23  Andrey Kiselev  <[email protected]>
2682
2683	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
2684	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2685
2686	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
2687	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
2688	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2689
2690	* tools/tiff2ps.c: Properly scale all the pages when converting
2691	multipage TIFF with /width/height/center options set. As per bug
2692
2693	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
2694
26952006-02-15  Andrey Kiselev  <[email protected]>
2696
2697	* tools/tiff2pdf.c: Do not create output file until all option checks
2698	will be done. As per bug
2699
2700	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
2701
2702	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
2703	list of input files as per bug:
2704
2705	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
2706
27072006-02-09  Andrey Kiselev  <[email protected]>
2708
2709	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
2710	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
2711
2712	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
2713	TIFFRGBAImage interface.
2714
2715	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
2716	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
2717
27182006-02-07  Frank Warmerdam  <[email protected]>
2719
2720	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
2721	compressed TIFF files, per submission from Dan Cobra.
2722
27232006-02-07  Andrey Kiselev  <[email protected]>
2724
2725	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
2726	cast values to avoid warnings. As per bug
2727	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2728
2729	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
2730	appropriate. As per bug
2731	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2732
2733	* libtiff/tif_aux.c: Fixed type of temporary variable in
2734	_TIFFCheckMalloc() as per bug
2735	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2736
27372006-02-06  Andrey Kiselev  <[email protected]>
2738
2739	* libtiff/tif_aux.c: Return static array when fetching default
2740	YCbCrCoefficients (another problem, reported a the
2741	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
2742
27432006-02-03  Andrey Kiselev  <[email protected]>
2744
2745	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
2746	YCbCrSubsampling and DotRange tags as per bugs
2747
2748	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
2749	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
2750
2751	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
2752	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
2753
2754	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
2755
27562006-01-23  Andrey Kiselev  <[email protected]>
2757
2758	* libtool related stuff updated from the 2.1a branch.
2759
27602006-01-11  Frank Warmerdam  <[email protected]>
2761
2762	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
2763	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
2764	properly as per bug:
2765	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
2766
27672006-01-09  Bob Friesenhahn  <[email protected]>
2768
2769	* configure.ac: Fix with_default_strip_size comparison as reported
2770	by Norihiko Murase.
2771
27722006-01-08  Bob Friesenhahn  <[email protected]>
2773
2774	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
2775	incorrectly, tests were not actually testing the uninstalled
2776	libtiff.  Now they are.
2777
27782006-01-04  Andrey Kiselev  <[email protected]>
2779
2780	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
2781	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
2782	should be uint32 value.
2783
27842006-01-02  Bob Friesenhahn  <[email protected]>
2785
2786	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
2787	be used if build directory is not the same as source directory.
2788	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
2789	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
2790	and re-sorted tag names in alphabetical order.
2791
27922005-12-29  Andrey Kiselev  <[email protected]>
2793
2794	* libtiff 3.8.0 released.
2795
27962005-12-28  Bob Friesenhahn  <[email protected]>
2797
2798	* tools/bmp2tiff.c (main): Fixed warning regarding returning
2799	inconsistent types from a condition.
2800	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
2801	format.
2802	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
2803
28042005-12-28  Joris Van Damme  <[email protected]>
2805
2806	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
2807
28082005-12-27  Andrey Kiselev  <[email protected]>
2809
2810	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
2811	windows.h, to reduce the compile time.
2812
28132005-12-26  Bob Friesenhahn  <[email protected]>
2814
2815	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
2816
28172005-12-26  Andrey Kiselev  <[email protected]>
2818
2819	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
2820	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
2821	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
2822	private functions to retrieve FieldInfo arrays.
2823
28242005-12-24  Bob Friesenhahn  <[email protected]>
2825
2826	* html/build.html: Added some additional instructions for when
2827	building using MSVC under Windows.  Also fixed two HTML syntax
2828	errors and used HTML Tidy to tidy up the HTML syntax and
2829	formatting.
2830
28312005-12-24  Andrey Kiselev  <[email protected]>
2832
2833	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
2834	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
2835	StoNits tags custom.
2836
28372005-12-23  Andrey Kiselev  <[email protected]>
2838
2839	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
2840	WhitePoint tag custom.
2841
2842	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
2843
28442005-12-23  Joris Van Damme  <[email protected]>
2845
2846	* libtiff/tiffio.h: fixed typo that potentially resulted in
2847	redefininition of USE_WIN32_FILEIO
2848
2849	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
2850	calls in core LibTiff.
2851
28522005-12-21  Andrey Kiselev  <[email protected]>
2853
2854	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
2855	Photoshop and ICCProfile tags custom.
2856
28572005-12-21  Joris Van Damme  <[email protected]>
2858
2859	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
2860	newer code to get context indicator in error handler and still
2861	remain compatible with older code: Done TIFFError calls everywhere
2862	except in tools
2863
28642005-12-20  Andrey Kiselev  <[email protected]>
2865
2866	* tools/tiffcp.c: Added many error reporting messages; fixed integer
2867	overflow as per bug
2868
2869	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
2870
28712005-12-16  Frank Warmerdam  <[email protected]>
2872
2873	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
2874	YCbCr images in jpeg compressed TIFF files.
2875
28762005-12-14  Andrey Kiselev  <[email protected]>
2877
2878	* tools/tiffcp.c: Return non-zero status when reading fails (again).
2879
28802005-12-13  Andrey Kiselev  <[email protected]>
2881
2882	* tools/tiffcp.c: Return non-zero status when reading fails.
2883
28842005-12-12  Andrey Kiselev  <[email protected]>
2885
2886	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
2887
28882005-12-09  Andrey Kiselev  <[email protected]>
2889
2890	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
2891	custom.
2892
2893	* tools/tiffinfo.c: Print EXIF directory contents if exist.
2894
2895	* libtiff/tiff.h: Few EXIF tag numbers added.
2896
2897	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
2898	tiffio.h}: Preliminary support to read custom directories. New
2899	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
2900
29012005-12-07  Andrey Kiselev  <[email protected]>
2902
2903	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
2904	More work to implement custom directory read support.
2905
2906	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
2907	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
2908	tags custom.
2909
29102005-12-05  Andrey Kiselev  <[email protected]>
2911
2912	* libtiff/tif_dirread.c: One more workaround for broken
2913	StripByteCounts tag. Handle the case when StripByteCounts array filled
2914	with completely wrong values.
2915
29162005-11-30  Andrey Kiselev  <[email protected]>
2917
2918	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
2919	in the TIFFOpenW() function as per bug
2920
2921	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
2922
2923	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
2924	functions as per bug
2925
2926	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
2927
29282005-11-20  Frank Warmerdam  <[email protected]>
2929
2930	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
2931	for MS MDI format.
2932	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
2933
2934	* .cvsignore: many files added, and a few update according
2935	to suggestion of Brad HArds on tiff mailing list.
2936
29372005-11-03  Frank Warmerdam  <[email protected]>
2938
2939	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
2940	public.
2941
29422005-10-31  Andrey Kiselev  <[email protected]>
2943
2944	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
2945	as per bug
2946
2947	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
2948
2949	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
2950	as per bug
2951
2952	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
2953
2954	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
2955	problem as per bug
2956
2957	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
2958
2959	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
2960
2961	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
2962
2963	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
2964	ResolutionUnit tags modifiable during write process. As per bug
2965
2966	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
2967
2968	* tools/tiffsplit.c: Copy fax related fields over splitted parts
2969	as per bug
2970
2971	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
2972
29732005-10-21  Frank Warmerdam  <[email protected]>
2974
2975	* tif_dirread.c: Don't try and split single strips into "0" strips
2976	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
2977	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
2978
29792005-10-20  Joris Van Damme  <[email protected]>
2980
2981	* tif_fax3.c: changed 'at scanline ...' style warning/errors
2982	with incorrect use of tif_row, to 'at line ... of
2983	strip/tile ...' style
2984
29852005-10-15  Frank Warmerdam  <[email protected]>
2986
2987	* tif_write.c: fixed setting of planarconfig as per bug report
2988	on the mailing list from Joris.
2989
29902005-10-07  Andrey Kiselev  <[email protected]>
2991
2992	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
2993	tif_dirread.c}: Make the default strip size configurable via the
2994	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
2995
29962005-09-30  Bob Friesenhahn  <[email protected]>
2997
2998	* html/support.html: Fixed link to documentation on Greg Ward's
2999	LogLuv TIFF format.
3000
30012005-09-28  Andrey Kiselev  <[email protected]>
3002
3003	* tools/tiffdump.c: Fixed crash when reading malformed tags.
3004
30052005-09-20  Andrey Kiselev  <[email protected]>
3006
3007	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
3008	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
3009
30102005-09-12  Andrey Kiselev  <[email protected]>
3011
3012	* libtiff 3.7.4 released.
3013
3014	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
3015	from Patrick Welche (all scripts moved in the 'config' and 'm4'
3016	directories).
3017
30182005-09-12  Frank Warmerdam  <[email protected]>
3019
3020	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
3021
30222005-09-05  Frank Warmerdam  <[email protected]>
3023
3024	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
3025	also set it to NULL to avoid double free when re-setting custom
3026	string fields as per:
3027
3028	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
3029
30302005-08-12  Frank Warmerdam  <[email protected]>
3031
3032	* libtiff/tif_print.c: avoid signed/unsigned warning.
3033
3034	* libtiff/tif_dirread.c: removed unused variable.
3035
30362005-07-30  Frank Warmerdam  <[email protected]>
3037
3038	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
3039	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
3040	pass on bigendian (macosx) system.
3041
30422005-07-28  Andrey Kiselev  <[email protected]>
3043
3044	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
3045	CheckMalloc() function to _TIFFCheckMalloc() and make it available
3046	globally as an internal helper routine.
3047
30482005-07-27  Andrey Kiselev  <[email protected]>
3049
3050	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
3051	the custom tags handling code.
3052
30532005-07-26  Andrey Kiselev  <[email protected]>
3054
3055	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
3056	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
3057	function, use TIFFFetchNormalTag() instead as per bug
3058
3059	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3060
3061	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
3062	instead.
3063
3064	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3065
3066	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3067
30682005-07-25  Andrey Kiselev  <[email protected]>
3069
3070	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3071
3072	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3073
30742005-07-21  Andrey Kiselev  <[email protected]>
3075
3076	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3077	the TIFFWriteCheck() function in case of single band images (as per
3078	TIFF spec).
3079
30802005-07-12  Andrey Kiselev  <[email protected]>
3081
3082	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3083	support for SCons software building tool (http://www.scons.org/).
3084	This is experimental infrastructure and it will exist along with the
3085	autotools mechanics.
3086
30872005-07-07  Andrey Kiselev  <[email protected]>
3088
3089	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3090	the NetBSD source tree (the old	4-clause BSD license changed to
3091	the new 3-clause one).
3092
3093	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3094	replacement module.
3095
3096	* port/dummy.c: Make the dummy function static.
3097
30982005-07-06  Andrey Kiselev  <[email protected]>
3099
3100	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3101
3102	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3103	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3104	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3105
31062005-07-04  Andrey Kiselev  <[email protected]>
3107
3108	* libtiff 3.7.3 released.
3109
3110	* configure, configure.ac: Do not use empty -R option when linking
3111	with --enable-rpath.
3112
31132005-07-01  Andrey Kiselev  <[email protected]>
3114
3115	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3116	reading the first IFD when needed. As per bug
3117
3118	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3119
3120	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3121	effects.
3122
31232005-06-23  Andrey Kiselev  <[email protected]>
3124
3125	* tools/tiff2pdf.c: Print two characters per loop in the
3126	t2p_write_pdf_trailer(). As per bug
3127
3128	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3129
3130	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3131	per bug
3132
3133	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3134
3135	* acinclude.m4: Updated to latest OpenGL test macros versions.
3136
3137	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3138	platform. As per bug
3139
3140	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3141
31422005-06-14  Andrey Kiselev  <[email protected]>
3143
3144	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3145	and YClipPathUnits tags.
3146
31472005-06-07  Andrey Kiselev  <[email protected]>
3148
3149	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3150	use pixel sized shift in contigous case.
3151
31522005-06-06  Andrey Kiselev  <[email protected]>
3153
3154	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3155	Make overviews working for contiguos images.
3156
31572005-06-03  Andrey Kiselev  <[email protected]>
3158
3159	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3160	time one.
3161
3162	* libtiff/tif_predict.c: Floating point predictor now works on
3163	big-endian hosts.
3164
31652005-06-01  Andrey Kiselev  <[email protected]>
3166
3167	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3168	ASCII values.
3169
3170	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3171	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3172	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3173	TargetPrinter tags custom.
3174
3175	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3176	TIFF_CODERSETUP flag (to fix memry leaks).
3177
3178	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3179	allocating.
3180
31812005-05-26  Andrey Kiselev  <[email protected]>
3182
3183	* configure.ac, libtiff/Makefile.am: Added workaround for
3184	OpenBSD/MirOS soname problem as per bug
3185
3186	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3187
3188	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3189	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3190	per bug
3191
3192	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3193
31942005-05-25  Andrey Kiselev  <[email protected]>
3195
3196	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3197	the fscanf() function. As per bug
3198
3199	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3200
3201	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3202	uint16 array when fetching the BYTE and SBYTE filds, so we should
3203	consider result as pointer to uint16 array and not as array of chars.
3204	As per bug
3205
3206	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3207
3208	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3209
3210	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3211
3212	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3213	mode in CreateFile() call as per bug
3214
3215	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3216
3217	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3218	libtiffxx libraries as per bug
3219
3220	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3221
3222	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3223	GDAL.
3224
32252005-05-23  Frank Warmerdam  <[email protected]>
3226
3227	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3228	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3229	in directory.
3230
32312005-05-22  Frank Warmerdam  <[email protected]>
3232
3233	* libtiff/tif_dirread.c: Changed the code that computes
3234	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3235	zero. This is a common case with GDAL indicating a "null" tile/strip.
3236
32372005-05-17  Andrey Kiselev  <[email protected]>
3238
3239	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
3240
32412005-05-06  Frank Warmerdam  <[email protected]>
3242
3243	* libtiff/tif_dirread.c: Applied similar change to
3244	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
3245
3246	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3247
3248	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
3249
32502005-05-06  Andrey Kiselev  <[email protected]>
3251	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
3252	added new option '-b' to use interpolation in output PDF files (Bruno
3253	Ledoux).
3254
32552005-05-05  Frank Warmerdam  <[email protected]>
3256
3257	* libtiff/tif_dirread.c: Ensure that broken files with too many
3258	values in PerSampleShorts work ok instead of crashing.
3259
3260	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3261
32622005-04-27  Andrey Kiselev  <[email protected]>
3263
3264	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
3265	input file.
3266
32672005-04-15  Andrey Kiselev  <[email protected]>
3268
3269	* libtiff/tif_predict.c: Added ability to encode floating point
3270	predictor, as per TIFF Technical Note 3.
3271
32722005-04-14  Andrey Kiselev  <[email protected]>
3273
3274	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
3275	floating point predictor, as per TIFF Technical Note 3.
3276
32772005-04-13  Andrey Kiselev  <[email protected]>
3278
3279	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
3280	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
3281	swap 24-bit floating point values.
3282
3283	* libtiff/tiff.h: Added predictor constants.
3284
32852005-04-08  Andrey Kiselev  <[email protected]>
3286
3287	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
3288	values in _TIFFVSetField() function. Inspired by the bug
3289
3290	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3291
3292	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
3293	as per bug
3294
3295	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3296
32972005-03-30  Andrey Kiselev  <[email protected]>
3298
3299	* libtiff/tif_open.c: Do not read header in case the output file
3300	should be truncated (Ron).
3301
3302	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
3303	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
3304
3305	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
3306
33072005-03-22  Andrey Kiselev  <[email protected]>
3308
3309	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
3310	rpath option.
3311
33122005-03-21  Andrey Kiselev  <[email protected]>
3313
3314	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
3315	tags.
3316
33172005-03-18  Andrey Kiselev  <[email protected]>
3318
3319	* libtiff/dirinfo.c: Added DNG tags.
3320
3321	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
3322	handling code.
3323
3324	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
3325	added DNG 1.1.0.0 tags.
3326
3327	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
3328	bug
3329
3330	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
3331
3332	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
3333
33342005-03-17  Andrey Kiselev  <[email protected]>
3335
3336	* nmake.opt: Build with Win32 CRT library by default.
3337
3338	* tools/tiff2ps.c: Fixed typo in page size handling code.
3339
3340	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
3341	by value.
3342
3343	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
3344
33452005-03-15  Andrey Kiselev  <[email protected]>
3346
3347	* libtiff 3.7.2 released.
3348
33492005-03-09  Andrey Kiselev  <[email protected]>
3350
3351	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
3352	floating point data; complain on unsupported bit depths.
3353
33542005-03-05  Andrey Kiselev  <[email protected]>
3355
3356	* tif_stream.cxx: Use ios namespace instead of ios_base to support
3357	GCC 2.95.
3358
3359	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
3360	Lee Howard for HylaFax DCS tag
3361	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
3362
33632005-03-04  Andrey Kiselev  <[email protected]>
3364
3365	* configure, configure.ac: Use -rpath option instead of -R as per bug
3366
3367	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
3368
3369	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
3370	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
3371	software. As per bug
3372
3373	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
3374
3375	* nmake.opt, html/build.html: Add more comments, change the config
3376	file organization a bit as per bug
3377
3378	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
3379
3380	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
3381	as per bug
3382
3383	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
3384
33852005-03-03  Andrey Kiselev  <[email protected]>
3386
3387	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
3388	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3389
3390	* tools/fax2ps.c: Replace insecure mktemp() function with the
3391	tmpfile() as per bug
3392
3393	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
3394
33952005-02-04  Andrey Kiselev  <[email protected]>
3396
3397	* libtiff/tiff.h: Changed the int8 definition to be always signed char
3398	as per bug
3399
3400	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3401
3402	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
3403	block as per bug
3404
3405	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
3406
34072005-02-03  Bob Friesenhahn  <[email protected]>
3408
3409	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
3410	display more correctly.  Images display brighter than they should
3411	on a Sun workstation.
3412
34132005-02-03  Andrey Kiselev  <[email protected]>
3414
3415	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
3416	suspicious values in the tags. As per bugs
3417
3418	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3419
3420	and
3421
3422	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
3423
3424	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
3425
3426	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
3427
34282005-01-31  Bob Friesenhahn  <[email protected]>
3429
3430	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
3431	(TIFFTAG_TILELENGTH): Corrected description.
3432
34332005-01-30  Andrey Kiselev  <[email protected]>
3434
3435	* configure.ac: Fixes for --with-docdir option as per bug
3436
3437	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
3438
3439	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
3440	bug
3441
3442	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
3443
3444	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
3445	Michael Rinne and Edward Lam.
3446
34472005-01-15  Andrey Kiselev  <[email protected]>
3448
3449	* configure.ac: Make the documentation directory location configurable
3450	via the --with-docdir option (as suggested by Jeremy C. Reed).
3451
3452	* libtiff/tif_color.c: Use double as the second argument of pow()
3453	function in TIFFCIELabToRGBInit(). As per bug
3454
3455	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
3456
3457	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
3458	integer as per bug
3459
3460	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
3461
3462	* libtiff/tif_getimage.c: Always fill the error message buffer in
3463	TIFFRGBAImageBegin() as per bug
3464
3465	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
3466
34672005-01-12  Andrey Kiselev  <[email protected]>
3468
3469	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
3470	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
3471	tags as per bug
3472
3473	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
3474
3475	* libtiff/tif_win32.c: Fixed message formatting in functions
3476	Win32WarningHandler() and Win32ErrorHandler() as per bug
3477
3478	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
3479
3480	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
3481	per bug
3482
3483	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
3484
34852005-01-11  Andrey Kiselev  <[email protected]>
3486
3487	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
3488	"C"' section as per bug
3489
3490	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3491
3492	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
3493	compiler to avoid double definition of BSD types as per bug
3494
3495	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3496
3497	* libtiff/Makefile.am: Place the C++ stream API in the separate
3498	library called libtiffxx to avoid unneeded dependencies. Probably
3499	there will be more C++ API in the future. As per bugs
3500
3501	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
3502
3503	and
3504
3505	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3506
35072005-01-05  Andrey Kiselev  <[email protected]>
3508
3509	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
3510	wrong tag counts (Dmitry V. Levin, Martin Pitt).
3511
3512	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
3513	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3514
35152004-12-25  Andrey Kiselev  <[email protected]>
3516
3517	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
3518	RGB-images as per bug
3519
3520	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3521
3522
3523	* tools/tiffset.c: Convert character option to integer value as per
3524	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
3525
35262004-12-20  Andrey Kiselev  <[email protected]>
3527
3528	* libtiff 3.7.1 released.
3529
3530	* html/tiffset.1.html: Add missed manual page as per bug
3531
3532	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3533
3534	* libtiff/tiff.h: Revert back libtiff data type definitions as per
3535	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
3536
35372004-12-19  Andrey Kiselev  <[email protected]>
3538
3539	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
3540	checking for tag count in TIFFReadDirectory() function. As per bug
3541
3542	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3543
3544	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
3545	CheckMallock() function.
3546
3547	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
3548	RGB-images as per bug
3549
3550	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
3551
35522004-12-15  Frank Warmerdam  <[email protected]>
3553
3554	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
3555	SunPro compiler.
3556
35572004-12-11  Bob Friesenhahn  <[email protected]>
3558
3559	* autogen.sh: aclocal and autoheader should be executed after
3560	libtoolize.  Also add '-I .' to aclocal invocation to check
3561	current directory for macros.
3562
35632004-12-10  Andrey Kiselev  <[email protected]>
3564
3565	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
3566	as per bugs
3567
3568	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
3569
3570	and
3571
3572	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
3573
35742004-12-04  Andrey Kiselev  <[email protected]>
3575
3576	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
3577
3578	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3579
3580	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
3581	mode as per bug
3582
3583	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3584
3585	* libtiff/tif_config.in.vc: Removed unneded definitions for
3586	read/open/close/lseek functions to fix the
3587
3588	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
3589
35902004-12-03  Andrey Kiselev  <[email protected]>
3591
3592	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
3593	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
3594	must be removed in the future, as it was never used properly. As per
3595	bug
3596
3597	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
3598
35992004-11-30  Bob Friesenhahn  <[email protected]>
3600
3601	* libtiff/tif_jpeg.c: Added a work-around in order to allow
3602	compilation with the heavily modified version of libjpeg delivered
3603	with Cygwin.
3604
36052004-11-29  Andrey Kiselev  <[email protected]>
3606
3607	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
3608	counts. As per bug
3609
3610	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
3611
3612	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
3613
3614	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
3615
36162004-11-28  Andrey Kiselev  <[email protected]>
3617
3618	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
3619	on Windows.
3620
3621	* nmake.opt: Add missed DLLNAME variable.
3622
36232004-11-26  Frank Warmerdam  <[email protected]>
3624
3625	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
3626
36272004-11-24  Andrey Kiselev  <[email protected]>
3628
3629	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
3630	per bug
3631
3632	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
3633
3634	* man/tiffset.1: Added manual page for tiffset tool written by Jay
3635	Berkenbilt. As per bug
3636
3637	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3638
36392004-11-23  Frank Warmerdam  <[email protected]>
3640
3641	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
3642
36432004-11-21  Frank Warmerdam  <[email protected]>
3644
3645	* html/document.html: Updated Adobe web links as per email from Joris.
3646
36472004-11-21  Andrey Kiselev  <[email protected]>
3648
3649	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
3650	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
3651	use C++ streams should #include <tiffio.hxx>.
3652
36532004-11-13  Andrey Kiselev  <[email protected]>
3654
3655	* libtiff/tiff.h: Added Adobe DNG tags.
3656
3657	* libtiff/tif_win32.c: Typo fixed.
3658
3659	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
3660	be compliant with the latest standard. Appropriate additions in
3661	makefiles now completed.
3662
36632004-11-11  Andrey Kiselev  <[email protected]>
3664
3665	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
3666	different tag types. As per bug
3667
3668	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
3669
36702004-11-10  Andrey Kiselev  <[email protected]>
3671
3672	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
3673	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
3674
36752004-11-09  Andrey Kiselev  <[email protected]>
3676
3677	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
3678
36792004-11-07  Andrey Kiselev  <[email protected]>
3680
3681	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
3682	contributed by Edward Lam (see
3683	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
3684	Though no changes in any makefiles yet.
3685
36862004-11-05  Frank Warmerdam  <[email protected]>
3687
3688	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
3689	is bad. This is the callers responsibility.
3690	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
3691
36922004-11-05  Andrey Kiselev  <[email protected]>
3693
3694	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
3695	function to work with the double byte strings (used to represent
3696	filenames in some locales). As per bug
3697
3698	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
3699
3700	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
3701	Compression tags of type LONG from broken TIFFS as per bug
3702
3703	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3704
3705	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
3706	the writecount should have uint32 type. As per bug
3707
3708	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3709
3710	* libtiff/tif_write.c: Fixed wrong if() statement in
3711	TIFFAppendToStrip() function as per bug
3712
3713	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
3714
37152004-11-04  Andrey Kiselev  <[email protected]>
3716
3717	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
3718	field. The caller should supply a count when setting this field. As
3719	per bug
3720
3721	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
3722
3723	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
3724	uint32 count. Use this type everywhere.
3725
37262004-11-03  Frank Warmerdam  <[email protected]>
3727
3728	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
3729
37302004-11-02  Frank Warmerdam  <[email protected]>
3731
3732	* tools/tiff2rgba.c: removed extra newlines in usage message.
3733
37342004-10-30  Andrey Kiselev  <[email protected]>
3735
3736	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
3737
3738	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
3739	tags (Tristan Hill).
3740
37412004-10-30  Frank Warmerdam  <[email protected]>
3742
3743	* libtiff/tiffiop.h: added fallback definition of assert() if we
3744	don't have assert.h.
3745
37462004-10-29  Andrey Kiselev  <[email protected]>
3747
3748	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
3749	choosing when the incorrect Group4Options tag set. As per bug
3750
3751	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
3752
3753	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
3754	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
3755	TIFFWriteNormalTag().
3756
37572004-10-28  Andrey Kiselev  <[email protected]>
3758
3759	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
3760	tags (Peter Fales).
3761
3762	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
3763
37642004-10-28  Frank Warmerdam  <[email protected]>
3765
3766	* tools/tiff2pdf.c: added casts to avoid warnings.
3767
3768	* libtiff/libtiff.def: Added several more entry points required
3769	to link fax2tiff.c against the DLL on windows.
3770
37712004-10-27  Andrey Kiselev  <[email protected]>
3772
3773	* configure, configure.ac: Added --enable-rpath option to embed linker
3774	paths into library binary.
3775
37762004-10-26  Andrey Kiselev  <[email protected]>
3777
3778	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
3779
3780	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
3781	(Vladimir Nadvornik, Dmitry V. Levin).
3782
37832004-10-16  Andrey Kiselev  <[email protected]>
3784
3785	* libtiff 3.7.0 released.
3786
37872004-10-15  Bob Friesenhahn  <[email protected]>
3788
3789	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
3790	in this file so its inclusion is removed.  Including stdio.h
3791	sometimes incurs an INT32 typedef conflict between MinGW's
3792	basetsd.h and libjpeg's jmorecfg.h.
3793
37942004-10-15  Andrey Kiselev  <[email protected]>
3795
3796	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
3797
37982004-10-13  Bob Friesenhahn  <[email protected]>
3799
3800	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
3801	conflict noticed under MinGW.
3802	* ltmain.sh: Fix for MinGW compilation.
3803
38042004-10-13  Frank Warmerdam  <[email protected]>
3805
3806	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
3807	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
3808
38092004-10-12  Andrey Kiselev  <[email protected]>
3810
3811	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
3812	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
3813	properly (Dmitry V. Levin, Marcus Meissner).
3814
38152004-10-11  Andrey Kiselev  <[email protected]>
3816
3817	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
3818	to TIFF_IFD.
3819
38202004-10-10  Andrey Kiselev  <[email protected]>
3821
3822	* tools/bmp2tif.c: Check the space allocation results.
3823
38242004-10-09  Andrey Kiselev  <[email protected]>
3825
3826	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
3827	of the TIFFDirectory structure with the 0 instead of -1 to avoid
3828	confusing integer overflows in TIFFTileRowSize() for striped images.
3829
3830	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
3831	by Ross A. Finlayson.
3832
3833	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
3834
3835	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
3836
38372004-10-08  Frank Warmerdam  <[email protected]>
3838
3839	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
3840	of tif_fieldinfo.
3841
3842	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
3843
38442004-10-04  Bob Friesenhahn  <[email protected]>
3845
3846	* contrib/iptcutil/README: Added the missing README which goes
3847	along with iptcutil.
3848
38492004-10-03  Andrey Kiselev  <[email protected]>
3850
3851	* libtiff/tif_compress.c: Improved error reporting in
3852	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
3853
38542004-10-02  Andrey Kiselev  <[email protected]>
3855
3856	* libtiff 3.7.0beta2 released.
3857
3858	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
3859	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
3860	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
3861	allocations and	integer overflows (Dmitry V. Levin).
3862
3863	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
3864
38652004-10-01  Frank Warmerdam  <[email protected]>
3866
3867	* libtiff/tif_open.c: added a more informative message if a BigTIFF
3868	file is opened.
3869
38702004-09-30  Frank Warmerdam  <[email protected]>
3871
3872	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
3873	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
3874	in the Adobe XMP Specification.
3875
38762004-09-29  Andrey Kiselev  <[email protected]>
3877
3878	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
3879	memset().
3880
3881	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
3882	from Dmitry V. Levin to fix possible integer overflow problems.
3883
38842004-09-28  Andrey Kiselev  <[email protected]>
3885
3886	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
3887	(Dmitry V. Levin).
3888
38892004-09-26  Andrey Kiselev  <[email protected]>
3890
3891	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
3892	Optimize checking for the strip bounds.
3893
3894	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
3895	TIFFRasterScanlineSize() functions report zero in the case of integer
3896	overflow now. Properly handle this case in TIFFReadDirectory()
3897	(patches from Dmitry V. Levin).
3898
38992004-09-25  Andrey Kiselev  <[email protected]>
3900
3901	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
3902	macro where appropriate.
3903
3904	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
3905	noted by Gennady Khokhorin.
3906
3907	* libtiff/tif_dirread.c: Always check the return values, returned
3908	by the _TIFFmalloc() (Dmitry V. Levin).
3909
3910	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
3911	functions (Dmitry V. Levin).
3912
3913	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
3914	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
3915	TIFFGrowStrips() (found by Dmitry V. Levin).
3916
39172004-09-24  Andrey Kiselev  <[email protected]>
3918
3919	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
3920	to get the list of configured codecs.
3921
3922	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
3923	Dmitry V. Levin.
3924
39252004-09-23  Andrey Kiselev  <[email protected]>
3926
3927	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
3928	possible integer overflow in CheckMalloc() function.
3929
39302004-09-22  Andrey Kiselev  <[email protected]>
3931
3932	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
3933	of plain TIFFhowmany() where appropriate.
3934
39352004-09-21  Andrey Kiselev  <[email protected]>
3936
3937	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
3938
39392004-09-19  Andrey Kiselev  <[email protected]>
3940
3941	* libtiff 3.7.0beta released.
3942
3943	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
3944	overruns fixed, as noted by Chris Evans.
3945
39462004-09-14  Bob Friesenhahn  <[email protected]>
3947
3948	* commit: Added a script to make it more convenient to commit
3949	updates.  The CVS commit message is extracted from this ChangeLog
3950	file.
3951
39522004-09-14  Andrey Kiselev  <[email protected]>
3953
3954	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
3955	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
3956	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
3957	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
3958	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
3959	tif_config.h.in, tiffiop.h}:
3960	Get rid of BSD data types (u_char, u_short, u_int, u_long).
3961
39622004-09-13  Bob Friesenhahn  <[email protected]>
3963
3964	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
3965	specification. Reference libtiff bug tracking system to submit
3966	private tag additions.
3967
39682004-09-12  Bob Friesenhahn  <[email protected]>
3969
3970	* tools/tiffgt.c: Include "tif_config.h".
3971
3972	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
3973	tiffgt.  This results in the 'compile' script being added to the
3974	project.
3975
3976	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
3977	required to find OpenGL headers necessary to build tiffgt.  Also
3978	ensure that the libtiff that we built is used rather than some other
3979	libtiff installed on the system.
3980
39812004-09-12  Andrey Kiselev  <[email protected]>
3982
3983	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
3984	libraries.
3985
39862004-09-11  Bob Friesenhahn  <[email protected]>
3987
3988	* configure.ac: Pass library configuration defines via
3989	tif_config.h rather than extending CPPFLAGS. Configure a
3990	libtiff/tiffconf.h in order to satisfy application requirements
3991	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
3992	this causes failure to build on systems which properly respect
3993	this request.
3994
3995	* libtiff/tiffconf.h.in: New file to act as the template for the
3996	configured tiffconf.h
3997
3998	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
3999
40002004-09-10  Frank Warmerdam  <[email protected]>
4001
4002	* html/internals.html: Split off a discussion of adding new tags
4003	into addingtags.html.
4004
40052004-09-10  Andrey Kiselev  <[email protected]>
4006
4007	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
4008
4009	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
4010
4011	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4012
4013	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
4014
4015	* libtiff/tif_dirread.c: Don't reject to read tags of the
4016	SamplesPerPixel size when the tag count is greater than number of
4017	samples as per bug
4018
4019	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
4020
4021	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
4022	defining int8/uint8/... etc. types. As per bug
4023
4024	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
4025
40262004-09-09  Frank Warmerdam  <[email protected]>
4027
4028	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
4029	to avoid compile warnings about getopt() and a few other things.
4030
40312004-09-02  Andrey Kiselev  <[email protected]>
4032
4033	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
4034	assigning magic in TIFFFetchFloat().
4035
40362004-09-01  Andrey Kiselev  <[email protected]>
4037
4038	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
4039	to avoid requirement for tiffiop.h inclusion in some applications. See
4040	here
4041
4042	http://www.asmail.be/msg0054799560.html
4043
4044	for details.
4045
4046	* tools/fax2tiff.c: Use the new functions in the code.
4047
40482004-08-25  Andrey Kiselev  <[email protected]>
4049
4050	* tools/tiff2pdf.c: Initialize arrays properly.
4051
4052	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
4053	properly initialize array in PSDataBW().
4054
40552004-08-24  Andrey Kiselev  <[email protected]>
4056
4057	* tools/tiff2pdf.c: More fixes for bug
4058
4059	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4060
4061	from Ross Finlayson.
4062
40632004-08-23  Andrey Kiselev  <[email protected]>
4064
4065	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4066
4067	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4068	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4069
4070	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4071
4072	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4073
40742004-08-20  Andrey Kiselev  <[email protected]>
4075
4076	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4077	that the input file has compression, photometric interpretation,
4078	etcetra, tags or if not than a more descriptive error is returned.
4079
4080	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4081	code, responsible for tag data type checking.
4082
40832004-08-19  Andrey Kiselev  <[email protected]>
4084
4085	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4086	variable as per bug
4087
4088	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4089
40902004-08-16  Andrey Kiselev  <[email protected]>
4091
4092	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4093	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4094
40952004-08-01  Andrey Kiselev  <[email protected]>
4096
4097	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4098	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4099
41002004-07-24  Andrey Kiselev  <[email protected]>
4101
4102	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4103	separate package. All libtiff tools are updated to not advertise an
4104	abcence of LZW support.
4105
41062004-07-12  Andrey Kiselev  <[email protected]>
4107
4108	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4109
41102004-07-11  Andrey Kiselev  <[email protected]>
4111
4112	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4113	messages, as suggested by Bernd Herd.
4114
41152004-07-03  Andrey Kiselev  <[email protected]>
4116
4117	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4118	when setting custom tags by value. Reported by Eric Fieleke.
4119
41202004-06-14  Andrey Kiselev  <[email protected]>
4121
4122	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4123
41242004-06-08  Andrey Kiselev  <[email protected]>
4125
4126	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4127	into TIFFs.
4128
41292004-06-07  Andrey Kiselev  <[email protected]>
4130
4131	* libtiff 3.7.0alpha released.
4132
41332004-06-06  Andrey Kiselev  <[email protected]>
4134
4135	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4136	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4137	ones :-).
4138
4139	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4140	problems in 64-bit environment).
4141
41422004-06-05  Andrey Kiselev  <[email protected]>
4143
4144	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4145	Tags can be supplied by the mnemonic name or number.
4146
4147	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4148	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4149
41502004-05-27  Andrey Kiselev  <[email protected]>
4151
4152	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4153	markers as per bug
4154
4155	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4156
41572004-05-24  Andrey Kiselev  <[email protected]>
4158
4159	* tools/tiffsplit.c: Don't forget to copy Photometric
4160	Interpretation tag.
4161
41622004-05-20  Andrey Kiselev  <[email protected]>
4163
4164	* libtiff/{tif_open.c, tiffio.h}: New function added:
4165	TIFFIsBigEndian(). Function returns nonzero if given was file written
4166	in big-endian order.
4167
4168	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4169	files. Now output files will be written using the same byte order
4170	flag as	in the input image. See
4171
4172	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4173
4174	for details.
4175
41762004-05-19  Frank Warmerdam  <[email protected]>
4177
4178	* libtiff/tif_print.c: added (untested) support for printing
4179	SSHORT, SLONG and SRATIONAL fields.
4180
4181	* tools/tiffcp.c: close output file on normal exit.
4182
41832004-05-17  Andrey Kiselev  <[email protected]>
4184
4185	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4186	if compression type mismatches. See
4187
4188	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4189
41902004-04-30  Andrey Kiselev  <[email protected]>
4191
4192	* libtiff/tif_strip.c: Never return 0 from the
4193	TIFFNumberOfStrips().
4194
41952004-04-29  Andrey Kiselev  <[email protected]>
4196
4197	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4198	store single SampleFormat value for multisampled images. See
4199
4200	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4201
42022004-04-25  Andrey Kiselev  <[email protected]>
4203
4204	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4205	int16 and int32 types to avoid complains on some compilers. Details at
4206
4207	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4208
42092004-04-20  Andrey Kiselev  <[email protected]>
4210
4211	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4212
4213	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4214
42152004-04-14  Andrey Kiselev  <[email protected]>
4216
4217	* libtiff/tif_write.c: Allow in-place updating of the compressed
4218	images (don't work properly with all codecs). For details see GDAL bug
4219
4220	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4221
42222004-04-06  Andrey Kiselev  <[email protected]>
4223
4224	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4225	in the Intergarph JPEG compressed TIFF images as per bug:
4226
4227	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4228
42292004-04-04  Frank Warmerdam  <[email protected]>
4230
4231	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4232	via bad2.
4233
42342004-03-26  Andrey Kiselev  <[email protected]>
4235
4236	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4237	JPEG compression of grayscale images.
4238
4239	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
4240	present in the input image.
4241
42422004-03-19  Andrey Kiselev  <[email protected]>
4243
4244	* {many}: The first attempt to switch to autotools.
4245
42462004-03-03  Andrey Kiselev  <[email protected]>
4247
4248	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
4249	TIFFClientOpen() when the appropriate client functions was not
4250	supplied by user.
4251
42522004-03-02  Frank Warmerdam  <[email protected]>
4253
4254	* tools/ycbcr.c: fixed main() declaration as per:
4255	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
4256
42572004-02-26  Andrey Kiselev  <[email protected]>
4258
4259	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
4260	images. Reported by Artem Mirolubov.
4261
4262	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
4263	tag type in TIFFFetchNormalTag() as per bug
4264
4265	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
4266
42672004-02-17  Frank Warmerdam  <[email protected]>
4268
4269	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
4270	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
4271
42722004-02-05  Andrey Kiselev  <[email protected]>
4273
4274	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
4275	bug
4276
4277	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
4278
4279	But we need more work on fax codec to support update mode.
4280
42812004-01-30  Frank Warmerdam  <[email protected]>
4282
4283	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
4284	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
4285	Scott Reynolds.
4286
42872004-01-29  Andrey Kiselev  <[email protected]>
4288
4289	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
4290	and TIFFTAG_INDEXED as per bug
4291
4292	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
4293
4294	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
4295	NULL before proceeding further as per bug
4296
4297	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
4298
4299	Check results, returned by the TIFFFdOpen() before returning and close
4300	file if TIFFFdOpen() failed as per bug
4301
4302	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4303
4304	* libtiff/tif_open.c: More fixes for
4305
4306	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4307
43082004-01-28  Andrey Kiselev  <[email protected]>
4309
4310	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
4311	TIFFCleanup() from the TIFFClose() in order to fix the bug
4312
4313	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4314
4315	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
4316	InkNames tag as per bug
4317
4318	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
4319
4320	Memory leak fixed.
4321
43222004-01-21  Frank Warmerdam  <[email protected]>
4323
4324	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
4325	are field_passcount=TRUE properly.  Arguably anonymous custom tags
4326	should be declared as passcount=FALSE, but I don't want to change
4327	that without a careful review.
4328
43292004-01-20  Andrey Kiselev  <[email protected]>
4330
4331	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
4332	stripped image in TIFFWriteBufferSetup(). As per bug
4333
4334	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
4335
43362004-01-11  Andrey Kiselev  <[email protected]>
4337
4338	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
4339	patch from Gerben Koopmans.
4340
4341	* libtiff/tif_dirread.c: Check field_passcount value before setting
4342	the value of undefined type, patch from Gerben Koopmans.
4343
43442004-01-02  Andrey Kiselev  <[email protected]>
4345
4346	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
4347	non-RGB images.
4348
43492003-12-31  Andrey Kiselev  <[email protected]>
4350
4351	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
4352	pointer passed. Patch supplied by Larry Grill.
4353
4354	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
4355	suggested by Jeremy C. Reed.
4356
43572003-12-26  Andrey Kiselev  <[email protected]>
4358
4359	* libtiff 3.6.1 released.
4360
43612003-12-24  Andrey Kiselev  <[email protected]>
4362
4363	* config.guess, config.sub: Updated from the recent upstream.
4364
43652003-12-22  Andrey Kiselev  <[email protected]>
4366
4367	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
4368	More cleanups in color conversion interface, added appropriate manual
4369	page.
4370
43712003-12-19  Andrey Kiselev  <[email protected]>
4372
4373	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
4374	per bug
4375
4376	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4377
4378	* tools/tiff2ps.c: Added support for alpha channel. Fixes
4379
4380	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
4381
4382	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
4383	Interface for Lab->RGB color conversion is finally cleaned up.
4384	Added support for ReferenceBlackWhite tag handling when converted from
4385	YCbCr color space. The latter closes
4386
4387	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
4388
43892003-12-07  Andrey Kiselev  <[email protected]>
4390
4391	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
4392
4393	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
4394	library.
4395
43962003-12-06  Andrey Kiselev  <[email protected]>
4397
4398	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
4399	file and properly use it for CIE Lab->RGB transform.
4400
44012003-12-04  Andrey Kiselev  <[email protected]>
4402
4403	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
4404	conversion routines now in the tif_color.c module. New function
4405	TIFFYCbCrtoRGB() available in TIFF API.
4406
4407	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
4408
44092003-12-03  Andrey Kiselev  <[email protected]>
4410
4411	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
4412	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
4413	module.
4414
4415	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
4416	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
4417	Finally resolved problems with orientation handling. TIFFRGBAImage
4418	interface now properly supports all possible orientations, i.e. images
4419	will be flipped both in horizontal and vertical directions if
4420	required. 'Known bugs' section now removed from the appropriate manual
4421	pages. Closed bug entry:
4422
4423	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4424
44252003-12-02  Andrey Kiselev  <[email protected]>
4426
4427	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
4428	function calls as per bug
4429
4430	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
4431
44322003-11-28 Ross Finlayson  <[email protected]>
4433
4434	* tools/tiff2pdf.c:  Some bugs fixed.
4435
44362003-11-27  Andrey Kiselev  <[email protected]>
4437
4438	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
4439	reported by Antonio Scuri.
4440
4441	* man/tiff2pdf.1: Few improvements in page layout.
4442
4443	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
4444	 Added support fpr tiff2pdf manual page.
4445
44462003-11-26 Ross Finlayson  <[email protected]>
4447
4448	* /man/tiff2pdf.1:  File added to repository.
4449
44502003-11-26  Andrey Kiselev  <[email protected]>
4451
4452	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
4453	 Added support fpr tiff2pdf utility.
4454
44552003-11-25  Ross Finlayson  <[email protected]>
4456
4457	* /tools/tiff2pdf.c:  File added to repository.
4458
44592003-11-22  Andrey Kiselev  <[email protected]>
4460
4461	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
4462
44632003-11-21  Andrey Kiselev  <[email protected]>
4464
4465	* /tools/raw2tiff.c: #include <getopt.h> removed.
4466
4467	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
4468	sgigt utility removed and replaced with the completely rewritten
4469	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
4470	there is a lot of things to improve.
4471
4472	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
4473	extract the fields from the OJPEG files. Patch supplied by Ross
4474	Finlayson.
4475
4476	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
4477	Added new function TIFFIsCODECConfigured(), suggested by Ross
4478	Finlayson.
4479
44802003-11-18  Andrey Kiselev  <[email protected]>
4481
4482	* libtiff/tif_dirinfo.c: Implemented binary search in
4483	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
4484
4485	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
4486	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
4487
44882003-11-17  Frank Warmerdam  <[email protected]>
4489
4490	* tif_dirread.c: do not mark all anonymously defined tags to be
4491	IGNOREd.
4492
44932003-11-17  Andrey Kiselev  <[email protected]>
4494
4495	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
4496	TIFFDataWidth() function insted of tiffDataWidth array.
4497
44982003-11-16  Andrey Kiselev  <[email protected]>
4499
4500	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
4501	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
4502
45032003-11-15  Frank Warmerdam  <[email protected]>
4504
4505	* Makefile.in: fixed missing backslash for tif_color.c in list.
4506
45072003-11-13  Andrey Kiselev  <[email protected]>
4508
4509	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
4510	New color space conversion code: CIE L*a*b* 1976 images now supported
4511	by the TIFFRGBAImage interface. All introduced routines go to new
4512	module tif_color.c. Eventually all color conversion functions should
4513	be moved there.
4514
45152003-11-12  Andrey Kiselev  <[email protected]>
4516
4517	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
4518	with the reverse byte order (it is reported by the magic header
4519	field). Problem reported by Andreas Wiesmann.
4520
4521	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
4522	calculation function. Guessing mechanics now documented in manual page.
4523
45242003-11-11  Andrey Kiselev  <[email protected]>
4525
4526	* tools/raw2tiff.c: Implemented image size guessing using
4527	correlation coefficient calculation between two neighbour lines.
4528
45292003-11-09  Frank Warmerdam  <[email protected]>
4530
4531	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
4532	planarconfig_contig case in TIFFComputeTile().
4533
4534	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
4535
45362003-11-09  Andrey Kiselev  <[email protected]>
4537
4538	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
4539
45402003-11-07  Andrey Kiselev  <[email protected]>
4541
4542	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
4543	Added TIFFRawStripSize() function as suggested by Chris Hanson.
4544
45452003-11-03  Andrey Kiselev  <[email protected]>
4546
4547	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
4548	per bug
4549
4550	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
4551
45522003-10-29  Andrey Kiselev  <[email protected]>
4553
4554	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
4555
4556	* html/build.html: Added note about GNU make requirement.
4557
45582003-10-25  Andrey Kiselev  <[email protected]>
4559
4560	* Makefile.in: Fixes in using MAKEFLAGS as per bug
4561
4562	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
4563
4564	* port/install.sh.in: Option -p added to the mkdir command to create
4565	all directory tree structure before installing.
4566
45672003-10-18  Andrey Kiselev  <[email protected]>
4568
4569	* /tools/tiff2ps.c: #include <strings.h> replaced with the
4570	#include <string.h>.
4571
45722003-10-16  Andrey Kiselev  <[email protected]>
4573
4574	* Makefile.in: Add an absolute path to the test_pics.sh call.
4575
45762003-10-12  Andrey Kiselev  <[email protected]>
4577
4578	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
4579	typedefs.
4580
45812003-10-09  Andrey Kiselev  <[email protected]>
4582
4583	* configure, libtiff/{Makefile.in, mkversion.c}:
4584	Relative buildings fixed.
4585
4586	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
4587	rule.
4588
45892003-10-07  Andrey Kiselev  <[email protected]>
4590
4591	* Makefile.in: Added missed v3.6.0.html.
4592
4593	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
4594	ORIENTATION_BOTLEFT.
4595
45962003-10-04  Andrey Kiselev  <[email protected]>
4597
4598	* 3.6.0 final release.
4599
46002003-10-03  Andrey Kiselev  <[email protected]>
4601
4602	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
4603	function TIFFReadRGBAImageOriented() implemented to retrieve raster
4604	array with user-specified origin position as suggested by Jason Frank.
4605	See
4606
4607	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4608
4609	for details.
4610
4611	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
4612	instead of TIFFReadRGBAImage().
4613
4614	* tools/tiff2ps.c: Fixed possible endless loop as per bug
4615
4616	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
4617
46182003-09-30  Andrey Kiselev  <[email protected]>
4619
4620	* libtiff/tif_dirread.c: Check field counter against number of fields
4621	in order to fix
4622
4623	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
4624
4625	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
4626
4627	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
4628
46292003-09-25  Andrey Kiselev  <[email protected]>
4630
4631	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
4632	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
4633
4634	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
4635
46362003-09-23  Andrey Kiselev  <[email protected]>
4637
4638	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
4639
4640	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4641
46422003-08-21  Andrey Kiselev  <[email protected]>
4643
4644	* tools/tiffmedian.c: int declaration replaced with the uint32 to
4645	support large images as per bug
4646
4647	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
4648
46492003-08-12  Andrey Kiselev  <[email protected]>
4650
4651 	* libtiff/Makefile.in: Fixed problem with building in different
4652	directory.
4653
4654	* tools/tiff2ps.c: Added missing #include <strings.h>.
4655
4656	* libtiff/tif_dirwrite.c: More fixes for custom tags code
4657	from Ashley Dreier.
4658
46592003-08-07  Andrey Kiselev  <[email protected]>
4660
4661	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
4662	Patch submitted by Balatoni Denes (with corrections from Tom
4663	Kacvinsky).
4664
4665	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
4666	being used. Reported by Tom Kacvinsky.
4667
4668	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
4669	reported by Ashley Dreier.
4670
4671	* libtiff/tif_print.c: Fixed problem with float tags reading, support
4672	for printing RATIONAL and BYTE tags added.
4673
46742003-08-05  Andrey Kiselev  <[email protected]>
4675
4676	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
4677	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
4678	problems with predictor initialization. Remove O_RDONLY check during
4679	state block allocation to be able open LZW compressed files in update
4680	mode.
4681
4682	Problem exist for libtiff version of the tif_lzw.c module. One from
4683	lzw-compression-kit hasn't such troubles.
4684
46852003-08-04  Frank Warmerdam  <[email protected]>
4686
4687	* libtiff/tif_write.c: modified tif_write.c so that the various
4688	encoded write functions use tif_postdecode() to apply byte order
4689	swapping (swab) to the application passed data buffer if the same
4690	would be done when reading.  This allows us to write pixel data with
4691	more than 8 bits per sample to existing files of a non-native byte
4692	order.  One side effect of this change is the applications buffer
4693	itself is altered in this case by the act of writing.
4694
4695	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
4696
46972003-07-25  Frank Warmerdam  <[email protected]>
4698
4699	* libtiff/tif_open.c: avoid signed/unsigned casting warning
4700	initializing typemask as per patch from J.A. Strother.
4701
4702	* tools/tiffcp.c: fixed signed/unsigned casting warning.
4703
4704	* libtiff/tif_print.c: dos2unix conversion.
4705
4706	* tools/tiffsplit.c: increased the maximum number of pages that
4707	can be split.  Patch provided by Andrew J. Montalenti.
4708
47092003-07-11  Andrey Kiselev  <[email protected]>
4710
4711	* tools/raw2tiff.c: Added option `-p' to explicitly select color
4712	space of input image data. Closes
4713
4714	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
4715
47162003-07-08  Frank Warmerdam  <[email protected]>
4717
4718	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
4719	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
4720	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
4721	avoid casting warning at /W4.
4722
47232003-07-03  Andrey Kiselev  <[email protected]>
4724
4725	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
4726
47272003-06-30  Andrey Kiselev  <[email protected]>
4728
4729	* libtiff/tif_pixarlog.c: Unused variables removed.
4730
4731	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
4732	EstimateStripByteCounts() as per bug
4733
4734	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4735
4736	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
4737	64-bit architectures as per bug
4738
4739	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4740
4741	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
4742	unknown data type.
4743
47442003-06-19  Frank Warmerdam  <[email protected]>
4745
4746	* libtiff/tif_print.c: fixed some serious bugs when printing
4747	custom tags ... almost certain to crash.
4748
4749	* libtiff/tif_dirread.c: Don't ignore custom fields that are
4750	autodefined.  Not sure how this got to be like this.
4751
47522003-06-18  Andrey Kiselev  <[email protected]>
4753
4754	* 3.6.0 Beta2 released.
4755
4756	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
4757	comparing as per bug
4758
4759	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
4760
4761	`-z' option now can be used to set the number of reported different
4762	bytes.
4763
47642003-06-09  Andrey Kiselev  <[email protected]>
4765
4766	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
4767	to -r option to get the entire image as one strip. See
4768
4769	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4770
4771	for details.
4772
47732003-06-04  Andrey Kiselev  <[email protected]>
4774
4775	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
4776	values as per bug
4777
4778	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4779
47802003-05-27  Frank Warmerdam  <[email protected]>
4781
4782	* libtiff/tif_jpeg.c: modified segment_height calculation to always
4783	be a full height tile for tiled images.  Also changed error to just
4784	be a warning.
4785
47862003-05-25  Andrey Kiselev  <[email protected]>
4787
4788	* tools/fax2tiff.c: Page numbering fixed, as per bug
4789
4790	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
4791
47922003-05-20  Andrey Kiselev  <[email protected]>
4793
4794	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4795	configure, Makefile.in:	Switched back to the old behaviour. Likely
4796	better solution should be found for OJPEG support.
4797
47982003-05-11  Andrey Kiselev  <[email protected]>
4799
4800	* libtiff/mkversion.c: Fixed problem with wrong string size when
4801	reading RELEASE-DATE file.
4802
48032003-05-07  Andrey Kiselev  <[email protected]>
4804
4805	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
4806	index was out of range.
4807
48082003-05-06  Andrey Kiselev  <[email protected]>
4809
4810	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4811	configure, Makefile.in:	Improved libtiff compilation with OJPEG
4812	support. Now no need for patching IJG JPEG library, hack requred by
4813	libtiff will be compiled and used in-place. Implemented with
4814	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
4815
4816	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
4817	TIFFVGetFieldDefaulted() function.
4818
48192003-05-05  Andrey Kiselev  <[email protected]>
4820
4821	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
4822	comments.
4823
4824	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
4825	was not copied from source image.
4826
4827	* libtiff/getimage.c: Workaround for some images without correct
4828	info about alpha channel as per bug
4829
4830	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
4831
48322003-04-29  Andrey Kiselev  <[email protected]>
4833
4834	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
4835	It basically allows one to use the /flateDecode filter for ZIP
4836	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
4837
4838	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
4839
4840	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
4841	as per bug
4842
4843	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
4844
48452003-04-17  Andrey Kiselev  <[email protected]>
4846
4847	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
4848	due to problems with multidirectory images. Quality of error messages
4849	improved.
4850
48512003-04-16  Andrey Kiselev  <[email protected]>
4852
4853	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
4854	encoded images. See bug entries
4855
4856	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
4857
4858	and
4859
4860	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
4861
4862	* libtiff/tif_dirread.c: Additional check for StripByteCounts
4863	correctness. Fixes
4864
4865	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
4866
48672003-03-12  Andrey Kiselev  <[email protected]>
4868
4869	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
4870	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
4871	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
4872	tiffmedian.c}: Added library version reporting facility to all tools.
4873
48742003-03-06  Frank Warmerdam  <[email protected]>
4875
4876	* port/install.sh.in: Fixed problems with install producing paths
4877	like ///usr/local/lib on cygwin.
4878
48792003-02-27  Andrey Kiselev  <[email protected]>
4880
4881	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
4882	raw input page. Patch supplied by Julien Gaulmin. See
4883
4884	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
4885
4886	for details.
4887
48882003-02-26  Frank Warmerdam  <[email protected]>
4889
4890	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
4891	responsible for byte swapping complex image data.
4892
4893	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
4894	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
4895
48962003-02-07  Andrey Kiselev  <[email protected]>
4897
4898	* tools/ppm2tiff.c: Fixed problem with too many arguments.
4899
49002003-02-04  Andrey Kiselev  <[email protected]>
4901
4902	* tools/raw2tiff.c: Memory leak fixed.
4903
49042003-02-03  Andrey Kiselev  <[email protected]>
4905
4906	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
4907	(thanks, Julien!). More switches for fax2tiff tool for better control
4908	of input and output. Details at
4909
4910	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
4911
49122003-02-03  Frank Warmerdam  <[email protected]>
4913
4914	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
4915	library so that we can check if there is already any tile/strip data
4916	before deciding between creating a compressor or a decompressor.
4917
49182003-01-31  Frank Warmerdam  <[email protected]>
4919
4920	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
4921	a pre-existing compressed image.  That is, image writing to
4922	pre-existing compressed images is not allowed.
4923
4924	* libtiff/tif_open.c: Removed error if opening a compressed file
4925	in update mode.
4926
4927	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
4928
49292003-01-31  Andrey Kiselev  <[email protected]>
4930
4931	* config.guess, config.sub: Updated to recent upstream versions.
4932
49332003-01-15  Frank Warmerdam  <[email protected]>
4934
4935	* cut 3.6.0 Beta release.
4936
49372002-12-20  Andrey Kiselev  <[email protected]>
4938
4939	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
4940	in wrong way as per bug
4941
4942	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
4943
49442002-12-17  Frank Warmerdam  <[email protected]>
4945
4946	* libtiff/tif_dirread.c: Allow wrong sized arrays in
4947	TIFFFetchStripThing().
4948
4949	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
4950
49512002-12-02  Frank Warmerdam  <[email protected]>
4952
4953	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
4954	Was using realloc even first time.  Fix by Igor Venevtsev.
4955
49562002-11-30  Frank Warmerdam  <[email protected]>
4957
4958	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
4959	field value.
4960
4961	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
4962	tags in TIFFVGetField() ... added missing break.
4963
49642002-10-14  Frank Warmerdam  <[email protected]>
4965
4966	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
4967	the scanline buffer long enough when writing rgb triplets.
4968	The scanline needs to be 3 X the number of dots or else it will
4969	contain	an incomplete triplet and programs that try to separate
4970	the eps by redefining the colorimage operator will get messed up.
4971	Patch supplied by William Bader.
4972
4973	* Makefile.in: added tif_extension.c to file list as per
4974	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
4975
49762002-10-11  Andrey Kiselev  <[email protected]>
4977
4978	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
4979	large files (>2GiB) supporting. New option in the config.site:
4980	LARGEFILE="yes". Should be enough for I/O of the large files.
4981
49822002-10-10  Frank Warmerdam  <[email protected]>
4983
4984	* libtiff/html/v3.6.0.html: new release notes.
4985
4986	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
4987	link for Andrey.  Pointer to v3.6.0.html.
4988
4989	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
4990
49912002-10-07  Andrey Kiselev  <[email protected]>
4992	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
4993	(thanks, Sebastian!). New switches:
4994	-b # for a bottom margin of # inches
4995	-c   center image
4996	-l # for a left margin of # inches
4997	-r   rotate the image by 180 degrees
4998	New features merged with code for shrinking/overlapping.
4999	Previously added -c and -n switches (for overriding PS units) renamed
5000	in -x and -y respectively.
5001
5002	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
5003
5004	* html/man/*.html: Updated from actual manual pages.
5005
50062002-10-06  Frank Warmerdam  <[email protected]>
5007
5008	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
5009	size on windows.  Use #define boolean hack.
5010
5011	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
5012
5013	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
5014	USING_VISUALAGE is defined.
5015
5016	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5017
50182002-10-03  Frank Warmerdam  <[email protected]>
5019
5020	* libtiff/tiff.h: added COMPRESSION_JP2000.
5021
50222002-10-02  Andrey Kiselev  <[email protected]>
5023
5024	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
5025	by the TIFFFetchByteArray() function. Should finally resolve
5026
5027	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5028
5029	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
5030
5031	* html/Makefile.in: New targets added: html and groffhtml for
5032	producing HTML representations of the manual pages automatically.
5033	html target uses man2html tool, groffhtml uses groff tool.
5034
50352002-09-29  Frank Warmerdam  <[email protected]>
5036
5037	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
5038	from John H. DuBois III.
5039
50402002-09-15  Andrey Kiselev  <[email protected]>
5041
5042	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
5043	manual page for raw2tiff(1) tool.
5044
50452002-09-12  Andrey Kiselev  <[email protected]>
5046
5047	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
5048	the tiffio.h header file.
5049
5050	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
5051	manual page for TIFFDataWidth() function
5052
50532002-09-08  Frank Warmerdam  <[email protected]>
5054
5055	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
5056	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
5057
5058	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
5059	since we are unable to properly include the amount to skip.
5060
5061	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
5062
50632002-09-02  Andrey Kiselev  <[email protected]>
5064
5065	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5066	in TIFFFetchByteArray(). Problem described at
5067	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5068
50692002-08-22  Andrey Kiselev  <[email protected]>
5070
5071	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5072	in _TIFFSetupFieldInfo() function.
5073	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5074
5075	* /libtiff/tif_lzw.c: Additional consistency checking added in
5076	LZWDecode() and LZWDecodeCompat().
5077	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5078	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5079
5080	* /libtiff/tif_lzw.c:
5081	Added check for valid code lengths in LZWDecode() and
5082	LZWDecodeCompat(). Fixes
5083	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5084
50852002-08-16  Andrey Kiselev  <[email protected]>
5086
5087	* /libtiff/{Makefile.vc, libtiff.def}:
5088	Missed declarations added.
5089
50902002-08-15  Frank Warmerdam  <[email protected]>
5091
5092	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5093	return code from the underlying pick function.
5094
5095	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5096
5097	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5098	with FIELD_CUSTOM as mentioned in bug 169.
5099
5100	* tif_close.c: added logic to free dynamically created anonymous
5101	field definitions to correct a small memory leak.
5102
5103	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5104
51052002-08-10  Andrey Kiselev  <[email protected]>
5106
5107	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5108	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5109
51102002-07-31  Frank Warmerdam  <[email protected]>
5111
5112	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5113	JPEGDecode() as per bugzilla bug (issue 1):
5114
5115	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5116
5117	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5118	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5119	present in the tiff tags.
5120
5121	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5122
5123	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5124	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5125	fooled with the value.
5126
5127	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5128
51292002-06-22  Andrey Kiselev  <[email protected]>
5130
5131	* /tools/tiff2ps.c: Added workaround for some software that may crash
5132	when last strip of image contains fewer number of scanlines than
5133	specified by the `/Height' variable. See
5134	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5135	for explanation.
5136
51372002-06-21  Andrey Kiselev  <[email protected]>
5138
5139	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5140	splitting long images in several pages. See
5141	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5142	Patch granted by John Williams <[email protected]>.
5143
51442002-06-11  Frank Warmerdam  <[email protected]>
5145
5146	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5147	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5148	This one is described in:
5149
5150	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5151
5152	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5153
5154	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5155
51562002-05-10  Andrey Kiselev  <[email protected]>
5157
5158	* tools/tiff2ps: New commandline switches to override resolution
5159	units obtained from the input file. Closes
5160	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5161
51622002-04-26  Andrey Kiselev  <[email protected]>
5163
5164	* libtiff/libtiff.def: Added missed declaration.
5165
51662002-04-22  Andrey Kiselev  <[email protected]>
5167
5168	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5169	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5170
51712002-04-20  Andrey Kiselev  <[email protected]>
5172
5173	* libtiff/tif_open.c: Pointers to custom procedures
5174	in TIFFClientOpen() are checked to be not NULL-pointers.
5175
51762002-04-18  Andrey Kiselev  <[email protected]>
5177
5178	* libtiff/libtiff.def: Added missed declarations.
5179
5180	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5181
51822002-04-16  Andrey Kiselev  <[email protected]>
5183
5184	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5185	Should finally close
5186	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5187
51882002-04-10  Andrey Kiselev  <[email protected]>
5189
5190	* tools/tiff2ps: Division by zero fixed.
5191	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5192
51932002-04-09  Andrey Kiselev  <[email protected]>
5194
5195	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5196	TIFFCheckpointDirectory() routine added.
5197	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5198
5199	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5200	for the new function.
5201
52022002-04-08  Andrey Kiselev  <[email protected]>
5203
5204	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5205	additional members tif->tif_decodestatus and tif->tif_encodestatus
5206	for correct handling of unconfigured codecs (we should not try to read
5207	data or to define data size without correct codecs).
5208
5209	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5210	changed. Now it has used tif->tif_decodestatus and
5211	tif->tif_encodestatus.
5212	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5213	case of __cvs_8.tif test image).
5214
5215	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5216	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5217	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5218	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5219
52202002-04-04  Andrey Kiselev  <[email protected]>
5221
5222	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5223	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5224	files by skipping bad strips.
5225	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5226
52272002-04-03  Frank Warmerdam  <[email protected]>
5228
5229	* libtiff/tif_dirwrite.c: Removed some dead code.
5230
5231	* libtiff/*: Cleanup some warnings.
5232
5233	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5234	for variable length FIELD_CUSTOM values.  Was int * but should be
5235	u_short *.
5236
52372002-04-01  Andrey Kiselev  <[email protected]>
5238
5239	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
5240	utility (at cpStripToTile routine).
5241
52422002-03-27  Frank Warmerdam  <[email protected]>
5243
5244	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
5245
5246	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
5247
5248	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
5249	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
5250
5251	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
5252	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
5253
52542002-03-26  Dwight Kelly  <[email protected]>
5255
5256	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5257	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
5258	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
5259	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
5260	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
5261	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
5262
52632002-03-26  Andrey Kiselev  <[email protected]>
5264
5265	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
5266	now also uses TIFFRGBAImageOK before reading. This is additional fix
5267	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5268
52692002-03-25  Andrey Kiselev  <[email protected]>
5270
5271	* libtiff/: tif_getimage.c: Additional check for supported
5272	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
5273	TIFFRGBAImageOK before reading.
5274	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5275
52762002-03-15  Andrey Kiselev  <[email protected]>
5277
5278	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5279	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
5280	TIFFDataType sizes instead of working with tiffDataWidth array
5281	directly. Should prevent out-of-borders bugs in case of unknown or
5282	broken data types.  EstimateStripByteCounts routine modified, so it
5283	won't work when tags with uknown sizes founded.
5284	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
5285
52862002-03-13  Andrey Kiselev  <[email protected]>
5287
5288	* libtiff/tif_getimage.c: Added support for correct handling
5289	`Orientation' tag in gtTileContig. Should be added in other gt*
5290	functions as well, but I have not images for testing yet. Partially
5291	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5292
52932002-03-10  Andrey Kiselev  <[email protected]>
5294
5295	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
5296	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
5297	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
5298	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
5299
53002002-03-08  Andrey Kiselev  <[email protected]>
5301
5302	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
5303	be stripped when installing, utility binaries will do.	Closes
5304	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5305
53062002-02-28  Frank Warmerdam  <[email protected]>
5307
5308	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
5309
5310	* man/libtiff.3t: added copyright tag info.
5311
53122002-02-11  Frank Warmerdam  <[email protected]>
5313
5314	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
5315
5316	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5317
5318	* man/Makefile.in: Patch DESTDIR handling
5319
5320	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
5321
5322	* configure: OpenBSD changes for Sparc64 and DSO version.
5323
5324	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
5325
53262002-02-05  Frank Warmerdam  <[email protected]>
5327
5328	* config.site/configure: added support for OJPEG=yes option to enable
5329	OJPEG support from config.site.
5330
53312002-01-27  Frank Warmerdam  <[email protected]>
5332
5333	* html/document.html: fixed links for TIFf 6 docs.
5334
53352002-01-18  Frank Warmerdam  <[email protected]>
5336
5337	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
5338
5339	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
5340	decodestrip function returns anything not greater than zero as per
5341	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
5342
5343	* configure: Modify CheckForBigEndian so it can work in a cross
5344	compiled situation.
5345
53462002-01-16  Frank Warmerdam  <[email protected]>
5347
5348	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
5349
5350	* tools/tiffset.c: fix bug in error reporting.
5351
5352	* tools/tiffcp.c: fix several warnings that show up with -Wall.
5353
53542002-01-04  Frank Warmerdam  <[email protected]>
5355
5356	* libtiff/tif_jpeg.c: fixed computation of segment_width for
5357	tiles files to avoid error about it not matching the
5358	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
5359	size.") for ITIFF files.  Apparently the problem was incorporated since
5360	3.5.5, presumably during the OJPEG/JPEG work recently.
5361
53622001-12-15  Frank Warmerdam  <[email protected]>
5363
5364	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
5365
5366	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5367
5368	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
5369	(defined in tiffconf.h - 1 by default) then the RGBA interface
5370	will assume that a fourth extra sample is ASSOCALPHA if the
5371	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
5372	the library, but makes it work better with RGBA files produced by
5373	lots of applications that don't mark the alpha values properly.
5374
5375	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5376	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
5377
53782001-12-12  Frank Warmerdam  <[email protected]>
5379
5380	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
5381	override those from tiff directory.  This makes this work with
5382	ImageGear generated files.
5383
53842001-12-07  Frank Warmerdam  <[email protected]>
5385
5386	* html/Makefile.in: added missing images per bug 92.
5387
5388	* port/Makefile.in: fixed clean target per bug 92.
5389
53902001-11-28  Frank Warmerdam  <[email protected]>
5391
5392	* Reissue 3.5.7 release.
5393
5394	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
5395	YYYYMMDD so that it is increasing over time.
5396
5397	* Makefile.in: Ensure that tiffvers.h is regenerated in the
5398	make release target.
5399
5400	* Makefile.in: added libtiff/tiffvers.h to the release file list.
5401
54022001-11-23  Frank Warmerdam  <[email protected]>
5403
5404	* added html/v3.5.7.html, updated html/index.html.
5405
5406	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
5407
54082001-11-15  Frank Warmerdam  <[email protected]>
5409
5410	* configure: fixed test for -lm.
5411
54122001-11-02  Frank Warmerdam  <[email protected]>
5413
5414	* Added PHOTOMETRIC_ITULAB as per bug 90.
5415
5416	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
5417
54182001-10-10  Frank Warmerdam  <[email protected]>
5419
5420	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
5421	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
5422	in keeping with TIFF 6.0 standard in tiff.h
5423
5424	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
5425
54262001-09-26  Frank Warmerdam  <[email protected]>
5427
5428	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
5429	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
5430
54312001-09-24  Frank Warmerdam  <[email protected]>
5432
5433	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
5434
5435	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
5436
5437	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
5438	error about LZW not being available.
5439
5440	* libtiff/tif_dir.c: propagate failure to initialize compression
5441	back from TIFFSetField() as an error status, so applications can
5442	detect failure.
5443
5444	* libtiff/tif_dir.c: removed the auto replacement of
5445	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
5446
5447	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
5448	from CVS as they are all supposed to be auto-generated by configure.
5449
54502001-09-22  Frank Warmerdam  <[email protected]>
5451
5452	* libtiff/tif_ojpeg.c: new update from Scott.
5453
54542001-09-09  Frank Warmerdam  <[email protected]>
5455
5456	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
5457	always use the "safe" version, even if there is a very slight
5458	cost in performance.
5459
5460	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
5461
5462	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
5463	in two places.
5464
5465	* libtiff/tif_getimage.c: Fixed problem with reading strips or
5466	tiles that don't start on a tile boundary.  Fix contributed by
5467	Josep Vallverdu (from HP), and further described in bug 47.
5468
5469	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
5470
5471	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
5472
5473	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
5474
54752001-09-06  Frank Warmerdam  <[email protected]>
5476
5477	* libtiff/tif_packbits.c: fixed memory overrun error.
5478
5479	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
5480
54812001-08-31  Frank Warmerdam  <[email protected]>
5482
5483	* libtiff/tif_getimage.c: relax handling of contig case where
5484	there are extra samples that are supposed to be ignored.  This
5485	should now work for 8bit greyscale or palletted images.
5486
5487	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
5488
54892001-08-28  Frank Warmerdam  <[email protected]>
5490
5491	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
5492	images with more than four samples per pixel.  See:
5493
5494	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
5495
54962001-08-10  Frank Warmerdam  <[email protected]>
5497
5498	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
5499	in TIFFReadRGBATile() to avoid issues in cases of overlapping
5500	buffers.  See Bug 69 in Bugzilla.
5501
5502	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
5503
5504	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
5505
55062001-08-09  Frank Warmerdam  <[email protected]>
5507
5508	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
5509	when checking for 64 bit architectures as per bugzilla bug 67.
5510
55112001-07-27  Frank Warmerdam  <[email protected]>
5512
5513	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
5514	bug 66.
5515
55162001-07-20  Frank Warmerdam  <[email protected]>
5517
5518	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
5519	has been included.
5520
55212001-07-19  Frank Warmerdam  <[email protected]>
5522
5523	* libtiff/tif_open.c: Seek back to zero after failed read,
5524	before writing header.
5525
55262001-07-18  Frank Warmerdam  <[email protected]>
5527
5528	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
5529	much better.  Now depends on having patched libjpeg as per
5530	patch in contrib/ojpeg/*.
5531
55322001-07-17  Frank Warmerdam  <[email protected]>
5533
5534	* */Makefile.in: added DESTDIR support.
5535
5536	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
5537
55382001-07-16  Frank Warmerdam  <[email protected]>
5539
5540	* configure, libtiff/Makefile.in: applied OpenBSD patches
5541	as per:
5542
5543	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
5544
55452001-06-28  Frank Warmerdam  <[email protected]>
5546
5547	* libtiff/tif_getimage.c: Fixed so that failure is properly
5548	reported by gtTileContig, gtStripContig, gtTileSeparate and
5549	gtStripSeparate.
5550
5551	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
5552
5553	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
5554	Updated bug section of tiffcmp.1 to note tiled file issues.
5555
5556	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
5557
55582001-06-22  Frank Warmerdam  <[email protected]>
5559
5560	* configure: Changes for DSO generation on AIX provided by
5561	John Marquart <[email protected]>.
5562
5563	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
5564	on Darwin thanks to Robert Krajewski ([email protected]) and
5565	Keisuke Fujii ([email protected]).
5566
55672001-06-13  Frank Warmerdam  <[email protected]>
5568
5569	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
5570
5571	* man/tiff2rgba.1: new
5572
55732001-05-22  Frank Warmerdam  <[email protected]>
5574
5575	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
5576
55772001-05-13  Frank Warmerdam  <[email protected]>
5578
5579	* libtiff/tools/thumbnail.c: changed default output compression
5580	to packbits from LZW since LZW isn't generally available.
5581
55822001-05-12  Frank Warmerdam  <[email protected]>
5583
5584	* libtiff/tif_ojpeg.c: New.
5585	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
5586	to OJPEG support.
5587
5588	Scott Marovich <[email protected]> supplied OJPEG support.
5589
55902001-05-11  Frank Warmerdam  <[email protected]>
5591
5592	* tiff.h: removed, it duplicates libtiff/tiff.h.
5593
55942001-05-08  Frank Warmerdam  <[email protected]>
5595
5596	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
5597	ensure everything is in order.
5598
5599	* libtiff/libtiff.def: added TIFFCreateDirectory and
5600	TIFFDefaultStripSize as per:
5601
5602	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
5603
56042001-05-02  Frank Warmerdam  <[email protected]>
5605
5606	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
5607	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
5608	force use of uint32 counts instead of short counts.
5609
5610	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
5611	case of writing TIFF_BYTE/TIFF_SBYTE fields.
5612
5613	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
5614
56152001-05-01  Frank Warmerdam  <[email protected]>
5616
5617	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
5618	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
5619
56202001-04-05  Frank Warmerdam  <[email protected]>
5621
5622	* tiffio.h: removed C++ style comment.
5623
5624	* configure: fixed up SCRIPT_SH/SHELL handling.
5625
5626	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
5627
5628	* config.guess: documented more variables as per bug 40.
5629
56302001-04-03  Frank Warmerdam  <[email protected]>
5631
5632	* configure, *Makefile.in: Various changes to improve configuration
5633	for HP/UX specifically, and also in general.  They include:
5634	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
5635	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
5636	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
5637	 - Use -${MAKEFLAGS} in sub makes from makefiles.
5638
5639	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
5640
56412001-04-02  Frank Warmerdam  <[email protected]>
5642
5643	* libtiff/tiff.h: Applied hac to try and resolve the problem
5644	with the inttypes.h include file on AIX.
5645
5646	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5647
5648	* VERSION: update to 3.5.7 beta in preparation for release.
5649
5650	* configure/config.site: modified to check if -lm is needed for
5651	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
5652
5653	* config.guess: updated wholesale to an FSF version apparently
5654	from 1998 (as opposed to 1994).  This is mainly inspired by
5655	providing for MacOS X support.
5656
56572001-03-29  Frank Warmerdam  <[email protected]>
5658
5659	* configure, Makefile.in, etc: added support for OPTIMIZER being
5660	set from config.site.
5661
56622001-03-28  Frank Warmerdam  <[email protected]>
5663
5664	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
5665
5666	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
5667	sizes. It fixes two problems:
5668
5669	Without	scaling (-S) the fax is now centered on the page size specified
5670	with -H	and/or -W. Before, fax2ps was using an obscure and practially
5671	useless algorithm to allocate the image relative to Letter sized paper
5672	which sometime sled to useless whitespace on the paper, while at the
5673	same time cutting of the faxes printable area at the opposite border.
5674
5675	Second, scaling now preserves aspect ratio, which makes unusual faxes
5676	(in particular short ones) print properly.
5677
5678	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
5679
5680	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
5681	Bruce A. Mallett.  See check message for detailed information
5682	on all the changes, including a faster encoder, fixes for level
5683	2 PostScript, and support for the imagemask operator.
5684
56852001-03-27  Frank Warmerdam  <[email protected]>
5686
5687	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
5688	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
5689
5690	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5691
56922001-03-16  Frank Warmerdam  <[email protected]>
5693
5694	* tif_dirinfo.c: moved definition of copyright tag in field list.
5695	Apparently they have to be in sorted order by tag id.
5696
56972001-03-13  Frank Warmerdam  <[email protected]>
5698
5699	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
5700	images in RGBA interface.
5701
57022001-03-02  Frank Warmerdam  <[email protected]>
5703
5704	* Added TIFFTAG_COPYRIGHT support.
5705
57062001-02-19  Frank Warmerdam  <[email protected]>
5707
5708	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
5709	with support for extracting subimages with the ,n syntax, and also
5710	adding the -b bias removal flag.
5711
57122001-02-16  Frank Warmerdam  <[email protected]>
5713
5714	* libtiff/libtiff.def: Brent Roman submitted new version adding
5715	serveral missing entry points.
5716
5717	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
5718	Some sort of weird VMS thing.
5719
5720	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
5721
5722	* tif_luv.c/tiff.h/tiffio.h:
5723	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
5724	([email protected]).  He writes:
5725
5726	1) I improved the gamut-mapping function in tif_luv.c for imaginary
5727	colors, because some images were being super-saturated on the input
5728	side and this resulted in some strange color shifts in the output.
5729
5730	2) I added a psuedotag in tiff.h to control random dithering during
5731	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
5732	on for 24-bit LogLuv output.  Dithering improves the average color
5733	accuracy over the image.
5734
5735	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
5736	tiffio.h, to expose internal routines for converting between LogLuv and
5737	XYZ coordinates.  This is helpful for writing more efficient,
5738	specialized conversion routines, especially for reading LogLuv files.
5739
5740	Changes applied with minor edits.
5741
57422001-01-23  Frank Warmerdam  <[email protected]>
5743
5744	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
5745	whether we are encoding or decoding.  This is to ensure graceful
5746	recovery if TIFFClientOpen() discovers an attempt to open a compressed
5747	file for "r+" access, and subsequently close it, as it resets the
5748	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
5749	compressor's concept of whether it is in encode or decode mode.
5750
57512001-01-08  Mike Welles <[email protected]>
5752
5753	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
5754
57552001-01-07  Frank Warmerdam  <[email protected]>
5756
5757	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
5758	as per bug report by Patrick Connor.
5759
57602000-12-28  Frank Warmerdam  <[email protected]>
5761
5762	* Added RELEASE-DATE file to release file list.
5763
5764	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
5765
57662000-12-22  Mike Welles <[email protected]>
5767        * added link to CVS mirror from index.html
5768
5769	* updated html/internals.html to note that LZW compression is
5770	  not supported by default.
5771
57722000-12-22  Frank Warmerdam  <[email protected]>
5773
5774	* updated html/libtiff.html to not point at Niles' old JPL web site
5775	for the man pages, point at www.libtiff.org.
5776
57772000-12-21  Frank Warmerdam  <[email protected]>
5778
5779	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
5780	Leonard Rosenthol <[email protected]>.  May interfere
5781	with correct building on older systems.  If so, please let me know.
5782
57832000-12-19 Mike Welles <[email protected]>
5784
5785	* Took out LZW Encoding from tif_lzw.c
5786
5787	* Created HOWTO-RELEASE
5788
5789	* Created html/v3.5.6.html
5790
5791	* updated index.html
5792
57932000-12-01  Frank Warmerdam  <[email protected]>
5794
5795	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
5796	Patches supplied by Frank Cringle <[email protected]>
5797	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
5798
57992000-11-24  Frank Warmerdam  <[email protected]>
5800
5801	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
5802	target so that the private headers required by libgeotiff can be
5803	installed with the others.  They are not installed by default.
5804
5805	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
5806	targets so libtiff.so will be built with an explicit dependency
5807	on libm.so.
5808
5809	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
5810	libtiff.so.3.5.5.
5811
5812	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
5813	file, or ALPHA version logic.  Added stuff about DIST_POINT in
5814	place of DIST_TYPE and the alpha release number stuff.
5815
58162000-11-22  Frank Warmerdam  <[email protected]>
5817
5818	* I have applied a patch from Steffen Moeller <[email protected]> to
5819	the configure script so that it now accepts the --prefix, and
5820	--exec-prefix directives.
5821
58222000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
5823
5824	* I have made a variety of modifications in an effort to ensure the
5825	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
5826	file which seems to be updated regularly.
5827
5828	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
5829	   version include file.
5830	 o renamed version.h to tiffvers.h because we now have to install it
5831	   with the public libtiff include files.
5832	 o include tiffvers.h in tiffio.h.
5833	 o updated tif_version.c to use tiffvers.h.
5834	 o Updated Makefile.in accordingly.
5835
5836	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
5837	I have updated the win32 detection rules in tiffcomp.h.
5838
58392000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
5840
5841	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
5842	the strip/tile width and height aren't multiples of the sampling size.
5843	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
5844	Some patches from Rick LaMont of Dot C Software.
5845
5846	* Modified tif_packbits.c encoder to avoid compressing more
5847	data than provided if rowsize doesn't factor into provided data
5848	(such as occurs for YCbCr).
5849
58502000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
5851
5852	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
5853	roundup if rows_per_strip not a multiple of vertical sample size.
5854
58552000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
5856
5857	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
5858	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5859	from [email protected].
5860
5861	* Modified tif_packbits.c decoding to avoid overrunning the
5862	output buffer, and to issue a warning if data needs to be
5863	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5864
58652000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
5866
5867	* Modified tiff2bw to ensure portions add to 100%, and that
5868	white is properly recovered.
5869
5870	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
5871	Patch c/o Stanislav Brabec <[email protected]>
5872
58732000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
5874
5875	* Modified TIFFClientOpen() to emit an error on an attempt to
5876	open a comperessed file for update (O_RDWR/r+) access.  This is
5877	because the compressor/decompressor code gets very confused when
5878	the mode is O_RDWR, assuming this means writing only.  See
5879	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
5880
58812000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
5882
5883	* Added GNULDdso target an`d switched linux and freebsd to use it.
5884
58852000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
5886
5887	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
5888	of EXPAND1D() as per bug 11 (from Roman).
5889
58902000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
5891	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
5892	cygwin compatibility.
5893
5894	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
5895	be a proper fix to the buffer sizing problem.  See
5896	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
5897
5898	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
5899	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
5900	Thanks to Nick Lamb <[email protected]> for reporting the
5901	bug and proving the patch.
5902
59032000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
5904
5905	* Fixed tif_jpeg.c so avoid destroying the decompressor before
5906	we are done access data thanks to bug report from:
5907	Michael Eckstein <[email protected]>.
5908
5909	* Reverted tif_flush change.
5910
59112000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
5912
5913	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
5914	error when TIFF_BEENWRITING is not set.  This ensures that the
5915	directory contents can still be flushed by TIFFFlush().
5916
59172000-08-14  Frank Warmerdam  <[email protected]>
5918
5919	* tif_open.c: Don't set MMAP for O_RDWR files.
5920
5921	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
5922	so that files opened for update can be strip chopped too.
5923
5924	* tif_read.c: fixed up bug with files missing rowsperstrip and
5925	the strips per separation fix done a few weeks ago.
5926
59272000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
5928
5929	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
5930	SAMPLEFORMAT_COMPLEXINT.
5931
59322000-07-13  Mike Welles <[email protected]>
5933
5934	* index.html, bugs.html: added bugzilla info.
5935
59362000-07-12  Frank Warmerdam  <[email protected]>
5937
5938	* tif_read.c: fix subtle bug with determining the number of
5939	rows for strips that are the last strip in a separation but
5940	not the last strip of all in TIFFReadEncodedStrip().
5941
5942	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
5943	Peter Skarpetis <[email protected]>
5944
59452000-06-15  Frank Warmerdam  <[email protected]>
5946
5947	* Modified tiffio.h logic with regard to including windows.h.  It
5948	won't include it when building with __CYGWIN__.
5949
59502000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
5951
5952	* README: update to mention www.libtiff.org, don't list Sam's old
5953	email address.
5954
5955	* configure: Fixed DSO test for Linux as per patch from
5956	  Jan Van Buggenhout <[email protected]>.
5957
59582000-04-21  Frank Warmerdam  <[email protected]>
5959
5960	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
5961	one tile/strip images with an offset, and byte count of zero. These
5962	could be "unpopulated" images.
5963
59642000-04-18  Frank Warmerdam  <[email protected]>
5965
5966	* contrib/addtiffo: Added "averaging" resampling option.
5967
5968	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
5969
5970Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
5971
5972	* tools/Makefile.in: Modified to install properly on SGI.
5973
59742000-04-12  Mike Welles	     <[email protected]>
5975	* configure:  Fixed stupid mistake in libc6 test on Linux
5976
59772000-04-04  Mike Welles	     <[email protected]>
5978	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
5979	  caught by BoundsChecker.  From Arvan Pritchard
5980	  <[email protected]>  (untested).
5981
5982	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
5983	  Arvan Pritchard <[email protected]>
5984
5985	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
5986	  Arvan Pritchard <[email protected]>
5987
59882000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
5989
5990	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
5991
59922000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
5993
5994	* fax2ps: Fixed mixup of width and height in bounding box statement
5995	as per submission by Nalin Dahyabhai <[email protected]>.
5996
59972000-03-27  Mike Welles	     <[email protected]>
5998
5999	* fax2ps:  Modified printruns to take uint32 instead of uint16.
6000	Patch courtesy of Bernt Herd <[email protected]>
6001
60022000-03-20  Mike Welles	     <[email protected]>
6003
6004	* configure: added test for libc6 for linux targets.  Bug reported by
6005        Stanislav Brabec <[email protected]>
6006
6007	* Added 3.5 docs to html/Makefile.in.
6008	Thanks to  Stanislav Brabec <[email protected]>
6009
6010	* configure: fixed bugs in sed scripts
6011	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
6012	fix submitted to Stanislav Brabec <[email protected]>
6013
6014	* tools/iptcutil was not in files list, and wasn't being
6015	added to tar archive.  Updated Makefile.in.
6016
60172000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
6018
6019	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
6020	conversion for the run arrays.
6021
60222000-03-03  Frank Warmerdam  <[email protected]>
6023
6024	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
6025	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
6026
60272000-03-02  Frank Warmerdam  <[email protected]>
6028
6029	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
6030
6031	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
6032	to avoid overruns encountered with frle_bug.tif.
6033
6034Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
6035
6036	* Fixed tools/tiffcmp so that stopondiff testing works.
6037	  Patch care of Joseph Orost <[email protected]>.
6038
60392000-01-28    <warmerda@CS46980-B>
6040
6041	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
6042	  set to 1, and added default (off) setting in tiffconf.h.  This
6043	  should eventually be set by the configure script somehow.
6044
6045	  The original work on all these 2-4GB changes was done by
6046	  Peter Smith ([email protected]).
6047
6048	* Modified tif_win32.c to support 2-4GB seeks.
6049
6050	* tentatively changed toff_t to be unsigned instead of signed to
6051	  facilitate support for 2-4GB files.
6052
6053	* Updated a variety of files to use toff_t.  Fixed some mixups
6054	  between toff_t and tsize_t.
6055
6056Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
6057
6058	* Largely reimplemented contrib/addtiffo to avoid temp files,
6059	updating the TIFF file in place.  Fixed a few other bugs to.
6060
6061	* Set tif_rawdatasize to zero when freeing raw data buffer in
6062	TIFFWriteDirectory().
6063
6064	* Enabled "REWRITE_HACK" in tif_write.c by default.
6065
6066	* Fix bug in tif_write.c when switching between reading one directory
6067	and writing to another.
6068
6069	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6070
6071Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6072
6073	* Added TIFFmemory(3t) functions to libtiff.def.
6074
6075Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6076
6077	* Added libtiff/libtiff.def to TIFFILES distribution list.
6078
6079Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6080
6081	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6082
6083	* Altered descriptions in tools to reflect "by default" lzw not supported
6084
6085	* Updated index.html to note lzw compression kit.
6086
6087Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6088
6089	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6090
6091Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6092
6093	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6094
6095	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6096	  when LZW compression invoked.
6097
6098	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6099	  in tools to reflect removal of LZW compression
6100
6101Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6102
6103        * Fixed bug that caused LZW (non) compression to segfault. Added
6104	  warning about LZW compression removed being removed, and why.
6105
6106	* Added nostrip to install in tools/Makefile.in so that debugging
6107	  symbols are kept.
6108
6109Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6110
6111	* Added patch from Ivo Penzar <[email protected]>,
6112	  supporting Adobe ZIP deflate.  Untested.
6113
6114Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6115
6116	* Made Packbits the default compression in tools/tiff2rgba.c instead
6117	of LZW.
6118
6119Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6120
6121	* Added tif_luv to contrib/djgpp/Makefile.lib.
6122
6123Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6124
6125        * Added zip creation to relase makefile target
6126
6127	* Added html for TIFFWriteTile.3t man page.
6128
6129Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6130
6131	* Added some changes to tif_write.c to support rewriting existing
6132	fixed sized tiles and strips.  Code mods disabled by default, only
6133	enabled if REWRITE_HACK is defined for now.
6134
6135Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6136
6137	* Added TIFFWriteTile.3t man page.
6138
6139Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6140
6141	* Added notes on use of makefile.vc in build.html, and fixed
6142	email subscription address.
6143
6144199-11-28  Mike Welles <[email protected]>
6145
6146	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6147
6148	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6149	   from Bruce Carmeron <[email protected]> -- modifications of
6150	   changes made by Frank (sun cc still complained on cast).
6151
6152	*  Added tiffconf.h to install target per request from Bill
6153	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6154 	   know features have been compiled into the TIFF library in order to
6155	   handle things properly".
6156
6157Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6158
6159	* fixed various VC++ warnings as suggested by Gilles Vollant
6160	<[email protected]>.
6161
6162Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6163
6164	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6165	not imply applications are responsible for image data swapping.
6166
61671999-11-22  Mike Welles <[email protected]>
6168	*  HTML-ized the man pages, added to html/man
6169
6170	*  Removed LZW Compression to comply with Unisys patent extortion.
6171
61721999-09-29  Mike Welles		<[email protected]>
6173	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6174	   From Ivo Penzar <[email protected].
6175
6176	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6177	   memory mapped files. <[email protected]>
6178
61791999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6180	* Corrected alpha versioning.
6181
6182	* Removed distinction between  alpha and release targets in Makefile.in.
6183
6184	* added release.stamp target, which tags cvs tree, and updates
6185	  "RELEASE-DATE"
6186
6187	* added releasediff target, which diffs tree with source as of
6188	  date in "RELEASE-DATE"
6189
6190	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6191	  away from alpha/non-alpha distinctions).
6192
6193	* updated html to reflect release
6194
61951999-09-23    <warmerda@CS46980-B>
6196
6197	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6198
6199	* Added CYGWIN case in configure.
6200
6201Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6202
6203	* Applied Francois Dagand's patch to handle fax decompression bug.
6204	  (sizes >= 65536 were failing)
6205
6206Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6207
6208	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6209	  by Christopher Lawton <[email protected]>
6210
6211Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6212
6213	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6214	  Albert Chin-A-Young <[email protected]>
6215
6216	* Added TIFFReassignTagToIgnore() API on behalf of
6217	  Bruce Cameron <[email protected]>.  Man page still pending.
6218
6219Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6220
6221	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6222	files to provide for a rudimentary testsuite.
6223
6224	* Added contrib/tags back from old distribution ... fixed up a bit.
6225
62261999-08-16    <warmerda@CS46980-B>
6227
6228	* Added simple makefile.vc makefiles for building with MS VC++
6229	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6230	better solutions for some users.
6231
6232Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6233
6234	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6235	put it in tools since part of it is in C++.
6236
62371999-08-16  Michael L. Welles  <[email protected]>
6238
6239	* Updated html/index.html with anon CVS instructions.
6240
6241Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
6242
6243	* pre-remove so link before softlink in LINUXdso action in
6244	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
6245	the first.
6246
6247	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
6248	colormaps owned by the TIFF handle itself when trying to fixup wrong
6249	(eight bit) colormaps.  Corrected by maintaining a private copy of
6250	the colormap.
6251
6252	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
6253	tif_getimage.c.
6254
6255	* CVS Repository placed at remotesensing.org.  ChangeLog added.
6256