xref: /libtiff-4.0.7/ChangeLog (revision 429b3fdc)
12014-12-29  Bob Friesenhahn  <[email protected]>
2
3	* Update bundled libtool to 2.4.4 release.
4
52014-12-29  Even Rouault  <[email protected]>
6
7	* libtiff/tif_next.c: add new tests to check that we don't read outside of
8	the compressed input stream buffer.
9
10	* libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
11    in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
12    putcontig8bitYCbCr21tile cases.
13
142014-12-27  Even Rouault  <[email protected]>
15
16	* libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
17	extented tags installed by user code through the extender mechaninm before
18	calling the extender callback (GDAL #5054)
19
202014-12-26  Bob Friesenhahn  <[email protected]>
21
22	* tools/tiffcrop.c: Fix warnings about variables set but not used.
23
24	* contrib/iptcutil/iptcutil.c: Fix warnings about variables set
25	but not used.
26
27	* tools/tiffgt.c: Fix warnings about unused parameters.
28
29	* libtiff/tif_stream.cxx: Fix warnings about unused parameters.
30
312014-12-25  Even Rouault  <[email protected]>
32
33	* libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
34	various typos found by Debian lintian tool (GDAL #5756)
35
362014-12-24  Even Rouault  <[email protected]>
37
38	* libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
39	http://bugzilla.maptools.org/show_bug.cgi?id=2235
40
412014-12-24  Even Rouault  <[email protected]>
42
43	* tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
44	http://bugzilla.maptools.org/show_bug.cgi?id=2445
45
462014-12-24  Even Rouault  <[email protected]>
47
48	* tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
49	Derived from patch by Petr Gajdos,
50	http://bugzilla.maptools.org/show_bug.cgi?id=2443
51
522014-12-23  Even Rouault  <[email protected]>
53
54	* libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
55	of _TIFFFillStriles(). This solves crashing bug on corrupted
56	images generated by afl.
57
582014-12-23  Even Rouault  <[email protected]>
59
60	* libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
61	<= 0 by casting it to int64 first. This solves crashing bug on corrupted
62	images generated by afl.
63
642014-12-21  Bob Friesenhahn  <[email protected]>
65
66	* tools/tiffdump.c: Guard against arithmetic overflow when
67	calculating allocation buffer sizes.
68
692014-12-21  Even Rouault  <[email protected]>
70
71	* tools/tiff2bw.c: when Photometric=RGB, the utility only works if
72	SamplesPerPixel = 3. Enforce that
73	http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
74
752014-12-21  Even Rouault  <[email protected]>
76
77	* tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
78	copying. The right fix would be to properly copy it, but not worth the burden
79	for those esoteric utilities.
80	http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
81
822014-12-21  Even Rouault  <[email protected]>
83
84	* tools/thumbnail.c: fix out-of-buffer write
85	http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
86
872014-12-21  Even Rouault  <[email protected]>
88
89	* tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
90	or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
91	COMPRESSION_CCITTFAX4
92	http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
93
942014-12-21  Even Rouault  <[email protected]>
95
96	* libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
97	http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
98
992014-12-21  Even Rouault  <[email protected]>
100
101	* tools/tiff2pdf.c: check return code of TIFFGetField() when reading
102	TIFFTAG_SAMPLESPERPIXEL
103
1042014-12-21  Even Rouault  <[email protected]>
105
106	* tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
107	Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
108	Description: fix for Debian bug #741451
109	tiffcp crashes when converting JPEG-encoded TIFF to a different
110	encoding (like none or lzw). For example this will probably fail:
111	tiffcp -c none jpeg_encoded_file.tif output.tif
112	The reason is that when the input file contains JPEG data,
113	the tiffcp code forces conversion to RGB space. However,
114	the output normally inherits YCbCr subsampling parameters
115	from the input, which leads to a smaller working buffer
116	than necessary. The buffer is subsequently overrun inside
117	cpStripToTile() (called from writeBufferToContigTiles).
118	Note that the resulting TIFF file would be scrambled even
119	if tiffcp wouldn't crash, since the output file would contain
120	RGB data intepreted as subsampled YCbCr values.
121	This patch fixes the problem by forcing RGB space on the output
122	TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
123	Author: Tomasz Buchert <[email protected]>
124
1252014-12-21  Even Rouault  <[email protected]>
126
127	Fix various crasher bugs on fuzzed images.
128	* libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
129	TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
130	the directory
131	* libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
132	TransferFunction if BitsPerSample has not yet been read, otherwise reading
133	it later will cause user code to crash if BitsPerSample > 1
134	* libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
135	SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
136	* libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
137	instead of imagewidth to avoid crash
138	* tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
139	* tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
140	libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
141	* tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
142	* tools/tiffdump.c: fix crash due to overflow of entry count.
143
1442014-12-15  Even Rouault  <[email protected]>
145
146	* libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
147	all tiles/strips to include quantization tables even when the jpegtablesmode
148	had the JPEGTABLESMODE_QUANT bit set.
149	Also add explicit removal of Huffman tables when jpegtablesmode has the
150	JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
151	first tile/strip (only useful in update scenarios. create-only was
152	fine)
153
1542014-12-09  Bob Friesenhahn  <[email protected]>
155
156	* tools/tiff2pdf.c: Assure that memory size calculations for
157	_TIFFmalloc() do not overflow the range of tmsize_t.
158
1592014-12-07  Even Rouault  <[email protected]>
160
161	* tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
162	Valgrind and Address Sanitizer on test suite
163
1642014-12-07  Bob Friesenhahn  <[email protected]>
165
166	* tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
167	tag can return one channel, with the other two channels set to
168	NULL.  The tiff2pdf code was expecting that other two channels
169	were duplicate pointers in the case where there is only one
170	channel.  Detect this condition in order to avoid a crash, and
171	presumably perform correctly with just one channel.
172
1732014-12-06  Bob Friesenhahn  <[email protected]>
174
175	* tools/tiffdump.c: Fix double-free bug.
176
1772014-11-27  Even Rouault  <[email protected]>
178
179	* libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
180	Visual Studio 2015 aka VC 14 aka MSVC 1900
181
1822014-11-20  Even Rouault  <[email protected]>
183
184	* libtiff/tif_lzw.c: prevent potential null dereference of
185	sp->dec_codetab in LZWPreDecode (bug #2459)
186
187	* libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
188	to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
189
190	* libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
191
192	* libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
193	Coverity happier (not a bug, #2459)
194
195	* libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
196	(not a bug, #2459)
197
198	* tools/tiff2pdf.c: close PDF file (bug #2479)
199
200	* tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
201
202	* tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
203	and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
204
205	* tools/tiffcrop.c: fix segfault if bad value passed to -Z option
206	(bug #2459) and add missing va_end in dump_info (#2459)
207
208	* tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
209
2102014-11-20  Even Rouault  <[email protected]>
211	* libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
212	corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
213
2142014-11-20  Even Rouault  <[email protected]>
215	* automake: updated to 1.14.1
216	* libtool: updated to 2.4.3
217	* HOWTO-RELEASE: small update about autotools building order
218
2192014-10-20  Olivier Paquet  <[email protected]>
220	* tools/tiff2pdf.c: Preserve input file directory order when pages
221	are tagged with the same page number.
222
2232014-08-31  Bob Friesenhahn  <[email protected]>
224
225	* libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
226	count for tag should be a warning rather than an error since
227	errors terminate processing.
228
2292014-06-07  Bob Friesenhahn  <[email protected]>
230
231	* tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
232	was wrongly described.  Fix suggested by Miguel Medalha.
233
2342014-05-06  Bob Friesenhahn  <[email protected]>
235
236	* libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
237	TIFFTAG_GLOBALPARAMETERSIFD tag.  Patch by Steve Underwood.
238	Reviewed and forwarded by Lee Howard.
239
2402013-11-30  Frank Warmerdam  <[email protected]>
241
242	* libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
243
2442013-10-21  Frank Warmerdam  <[email protected]>
245
246	* libtiff/tif_dir.c: generate error in case of directory count
247	overflow.
248
2492013-10-01  Frank Warmerdam  <[email protected]>
250
251	* libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
252	TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
253
2542013-09-12  Bob Friesenhahn  <[email protected]>
255
256	* libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
257	be defective, then set it to zero before returning error in order
258	to terminate processing of truncated TIFF.  Issue found and fix
259	suggested by Richard Nolde.
260
2612013-08-14  Frank Warmerdam  <[email protected]>
262
263	* tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
264
2652013-08-13  Frank Warmerdam  <[email protected]>
266
267	* tools/gif2tiff.c: Be more careful about corrupt or
268	hostile input files (#2450, CVE-2013-4231)
269
270	* tools/tiff2pdf.c: terminate after failure of allocating
271	ycbcr buffer (bug #2449, CVE-2013-4232)
272
2732013-07-09  Frank Warmerdam  <[email protected]>
274
275	* tools/tiffinfo.c: Default various values fetched with
276	TIFFGetField() to avoid being uninitialized.
277
2782013-05-02  Tom Lane  <[email protected]>
279
280	* tools/tiff2pdf.c: Rewrite JPEG marker parsing in
281	t2p_process_jpeg_strip to be at least marginally competent.  The
282	approach is still fundamentally flawed, but at least now it won't
283	stomp all over memory when given bogus input.  Fixes CVE-2013-1960.
284
2852013-05-02  Tom Lane  <[email protected]>
286
287	* contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
288 	libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
289 	tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
290 	tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
291 	large enough, and eliminate substantially all uses of sprintf(buf,
292 	...)  in favor of using snprintf(buf, sizeof(buf), ...), so as to
293 	protect against overflow of fixed-size buffers.  This responds in
294 	particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
295 	t2p_write_pdf_page(), but in general it seems like a good idea to
296 	deprecate use of sprintf().
297
2982013-03-29  Bob Friesenhahn  <[email protected]>
299
300	* configure.ac: Applied patch by Brad Smith to improve pkg-config
301	static linking by adding -lm to Libs.private when needed.
302
3032013-03-05  Tom Lane  <[email protected]>
304
305	* html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
306 	html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
307 	man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
308 	tools/tiffdither.c: Sync tool usage printouts and man pages with
309 	reality (quite a few options had escaped being documented in one
310 	or both places).  Per an old report from Miroslav Vadkerti.
311
3122013-01-25  Bob Friesenhahn  <[email protected]>
313
314	* tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
315	rotation angle was set by the auto rotate check, it was retained
316	for all pages that followed instead ofa being retested for each
317	page.  Patch by Richard Nolde.
318
3192013-01-18  Frank Warmerdam  <[email protected]>
320
321	* libtiff/tif_write.c: tmsize_t related casting warning fixed for
322	64bit linux.
323
324	* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
325	http://bugzilla.maptools.org/show_bug.cgi?id=2427
326
3272012-12-20  Tom Lane  <[email protected]>
328
329	* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
330	it will pass with more versions of libjpeg.  (There are at least
331	three in active use now, and JPEG_LIB_VERSION doesn't tell us
332	enough to uniquely identify expected results.)
333
3342012-12-12  Tom Lane  <[email protected]>
335
336	* libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
337	field_passcount fields: it had the TIFF_VARIABLE and
338	TIFF_VARIABLE2 cases backwards.
339
3402012-12-10  Tom Lane  <[email protected]>
341
342	* tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
343 	check the linebytes calculation too, get the max() calculation
344 	straight, avoid redundant error messages, check for malloc
345 	failure.
346
3472012-12-10  Tom Lane  <[email protected]>
348
349	* libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
350 	(to enlarge tbuf for possible partial stride at end) so that
351 	overflow in the integer addition is detected.  Per gripe from
352 	Huzaifa Sidhpurwala.
353
3542012-12-03  Bob Friesenhahn  <[email protected]>
355
356	* tools/tiffset.c: tiffset now supports a -u option to unset a
357	tag.  Patch by Zach Baker. See
358	http://bugzilla.maptools.org/show_bug.cgi?id=2419
359
3602012-11-18  Bob Friesenhahn  <[email protected]>
361
362	* automake: Update Automake to 1.12.5 release.
363
364	* libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
365	require malloc() to return NULL pointer if requested allocation
366	size is zero.  Assure that _TIFFmalloc does.
367
3682012-11-01  Frank Warmerdam  <[email protected]>
369
370	* tools/ppm2tiff.c: avoid zero size buffer vulnerability.
371	CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
372	Red Hat Security Response team for the fix.
373
3742012-10-18  Frank Warmerdam  <[email protected]>
375
376	* tif_zip.c: Avoid crash on NULL error messages.
377
3782012-09-22  Bob Friesenhahn  <[email protected]>
379
380	* libtiff 4.0.3 released.
381
3822012-09-20  Bob Friesenhahn  <[email protected]>
383
384	* Makefile.am: Update to Automake 1.12.4
385
3862012-08-19  Bob Friesenhahn  <[email protected]>
387
388	* Makefile.in: Update to Automake 1.12.3
389
390	* libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
391	some TIFF/FX support in libtiff.  Add the tag definitions to
392	tiff.h.  Add the related TIFF field definitions to tif_dirinfo.c,
393	and also fixes an error in a comment.  Adds the photometric values
394	to tif_print.c, and fixes a bug.  These changes are by Steve
395	Underwood.
396
3972012-08-13  Frank Warmerdam  <[email protected]>
398
399	* libtiff/tif_write.c: Fix bug rewriting image tiles in a
400	compressed file: http://trac.osgeo.org/gdal/ticket/4771
401
4022012-08-02  Frank Warmerdam  <[email protected]>
403
404	* libtiff/tif_dirread.c: report error in case of mismatch value
405	counts for tags (ie. DotRange).
406
4072012-07-26  Tom Lane  <[email protected]>
408
409	* libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
410 	functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
411	TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
412	as external accessors for the opaque type TIFFField.
413
414	* tools/tiffset.c: Make tiffset use the above functions instead of
415	relying on library private headers.
416
4172012-07-19  Tom Lane  <[email protected]>
418
419	* tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
420	after a malloc failure.  No crash risk AFAICS, but the program
421	might not report exit code 1 as desired.  h/t [email protected]
422
4232012-07-18  Tom Lane  <[email protected]>
424
425	* tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails.  This
426	prevents core dumps or perhaps even arbitrary code execution when
427	processing a corrupt input file (CVE-2012-3401).
428
4292012-07-06  Bob Friesenhahn  <[email protected]>
430
431	* test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
432	IJG JPEG 7+ uses a different upsampling algorithm which produces
433	different numeric results.
434
435	* libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
436	work with IJG JPEG 7+.
437
4382012-07-04  Bob Friesenhahn  <[email protected]>
439
440	* test/raw_decode.c: Add changes so that test can run with build
441	directory outside of source directory.
442
4432012-07-02  Frank Warmerdam  <[email protected]>
444
445	* libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
446	imagery (http://trac.osgeo.org/gdal/ticket/4732)
447
4482012-06-20  Frank Warmerdam  <[email protected]>
449
450	* libtiff/tif_fax3.c: fix memory initialization of runs, only
451	partly done.
452
453	* libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
454	full "stride" past the end.
455
4562012-06-19  Frank Warmerdam  <[email protected]>
457
458	* libtiff/tif_packbits.c: fix read past end of data buffer.
459
4602012-06-15  Frank Warmerdam  <[email protected]>
461
462	*  libtiff 4.0.2 released.
463
464	* tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable
465	warnings with clang.
466
4672012-06-15  Tom Lane  <[email protected]>
468
469	* tools/tiff2pdf.c: Defend against integer overflows while
470	calculating required buffer sizes (CVE-2012-2113).
471
4722012-06-12  Frank Warmerdam  <[email protected]>
473
474	* libtiff/tif_print.c: Be careful about printing corrupt inknames.
475
476	* libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
477
4782012-06-07  Frank Warmerdam  <[email protected]>
479
480	* libtiff/tif_print.c: avoid pretty printing other fields when
481	we don't have the proper amount and type of data or if the field
482	is actually autodefined.
483
4842012-06-05  Frank Warmerdam  <[email protected]>
485
486	* libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
487	ycbcrsubsampling values result in a runtime error, not just an
488	assertion.
489
490	* tests/custom_dir.c: Add testing of EXIF and custom directory
491	reading and writing.
492
493	* libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
494	and TIFFCreateEXIFDirectory() functions.
495
496	* libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
497	PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING.  Implement DOTRANGE
498	differently.  This is to avoid using special TIFFGetField/TIFFSetField
499	rules for these fields in non-image directories (like EXIF).
500
5012012-06-04  Frank Warmerdam  <[email protected]>
502
503	* libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
504	in JPEGPreDecode().  If a fixup will be done it needs to be done sooner
505	in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
506
5072012-06-01  Frank Warmerdam  <[email protected]>
508
509	* tools/tiffinfo.c: Do not try to read image data in EXIF directories.
510
511	* libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
512	http://bugzilla.maptools.org/show_bug.cgi?id=2379
513
514	* libtiff/tif_unix.c: use strerror() to return a more specific error message
515	on failed open.
516	http://bugzilla.maptools.org/show_bug.cgi?id=2341
517
518	* libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
519	http://bugzilla.maptools.org/show_bug.cgi?id=2386
520
521	* tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
522	for testing jpeg in tiff image decoding including the "raw" decode interface.
523
5242012-05-31  Frank Warmerdam  <[email protected]>
525
526	* libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
527	JPEGDecodeRaw() - mostly likely to occur when there is confusion about
528	sampling values.
529
530	* libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
531
532	* libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
533	http://bugzilla.maptools.org/show_bug.cgi?id=2398
534
5352012-05-29  Frank Warmerdam  <[email protected]>
536
537	* libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
538	like EXIF directories.  This fixes problems like a tag "320" existing in a custom directory getting
539	processed as if it were a colormap when it isn't really.  Damn the wide variety of argument formulations
540	to get/set functions for different tags!
541
542	* libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
543	is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
544
5452012-05-24  Frank Warmerdam  <[email protected]>
546
547	* libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
548	accumulate" and overwrite the end by one word in at least some cases.
549
5502012-05-23  Frank Warmerdam  <[email protected]>
551
552	* libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
553
554	* tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
555
556	* libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
557	the same image.
558
559	* libtiff/tif_ojpeg.c: make things more resilient in the face of files without
560	stripbytecounts or stripoffsets or where loading these fails.
561
562	* libtiff/tif_print.c: be careful about whether min/max values are singular
563	or one per sample.
564
565	* libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
566	May affect things like ISOSpeedRatings.
567
568	* libtiff/tif_dir.c: avoid one byte past end of ink names reading
569	in some cases.
570
5712012-05-19  Bob Friesenhahn  <[email protected]>
572
573	* man/TIFFGetField.3tiff: Correct the 'count' field type in the
574	example for how to retreive the value of unsupported tags.
575
5762012-03-30  Frank Warmerdam  <[email protected]>
577
578	* tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
579	care of Tom Lane @ Red Hat.
580
5812012-02-18  Bob Friesenhahn  <[email protected]>
582
583	* libtiff 4.0.1 released.
584
585	* Update automake used to 1.11.3.
586
587	* libtiff/tiffio.h: Use double-underbar syntax in GCC printf
588	attribute specification to lessen the risk of accidental macro
589	substitution.  Patch from Vincent Torri.
590
5912012-01-31  Frank Warmerdam  <[email protected]>
592
593	* libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
594	assumption tag fetching is always successful.
595
596	* libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
597
5982012-01-22  Bob Friesenhahn  <[email protected]>
599
600	* configure.ac: Add support for using library symbol versioning on
601	ELF systems with the GNU linker.  Support is enabled via
602	--enable-ld-version-script.  Disabled by default for now until
603	there is a decision for how to deploy a libtiff with versioned
604	symbols after libtiff 4.0.0 was already released.
605
6062011-12-22  Bob Friesenhahn  <[email protected]>
607
608	* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
609
610	tif_win32.c.  Patch by Edward Lam.
611
612	* configure.ac: Add libtiff private dependency on -llzma for
613	pkg-config.  Patch by Mark Brand.
614	Updated Automake to 1.11.2.
615
6162011-12-21  Bob Friesenhahn  <[email protected]>
617
618	* libtiff 4.0.0 released.
619
6202011-12-08  Frank Warmerdam  <[email protected]>
621
622	* libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
623	of _TIFFFillStriles() results (#gdal 4372)
624
6252011-12-07  Frank Warmerdam  <[email protected]>
626
627	* libtiff/tif_dirread.c: fixes to deal with invalid files where
628	_TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
629
630	* libtiff/tif_dirread.c: fix error reporting when there is no
631	tag information struct and name (gdal #4373)
632
6332011-10-22  Bob Friesenhahn  <[email protected]>
634
635	* Update GNU libtool to 2.4.2.
636
637	* tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
638	uint32 type for TIFFTAG_JPEGTABLES.  Patch by Christophe
639	Deroulers.
640
6412011-06-21  Frank Warmerdam  <[email protected]>
642
643	* libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
644
6452011-05-31  Jim Meyering  <[email protected]>
646
647	* libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
648	upon failure to allocate "resizeddata".
649	* tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
650	allocation failure, not before.
651	* libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
652	* tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
653	* libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
654	NULL-deref and possible overflow
655	* tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
656	* libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
657	and set of otherwise unused local, data_is_empty.
658	* libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
659	Diagnose out-of-memory failure and return 0 rather than
660	dereferencing NULL.
661
6622011-05-24  Frank Warmerdam  <[email protected]>
663
664	* libtiff/tif_dirread.c: produce special error message for zero tag
665	directories instead of error out on the malloc(0) failure.
666
6672011-05-16  Frank Warmerdam  <[email protected]>
668
669	* libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
670	related declarations as they are in active use by libraries
671	such as libgeotiff, and work just fine.  (#2315)
672
6732011-04-20  Frank Warmerdam  <[email protected]>
674
675	* libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
676	TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
677	http://bugzilla.maptools.org/show_bug.cgi?id=2315
678
679	* libtiff/libtiff.def: add some missing (64bit) APIs.
680	http://bugzilla.maptools.org/show_bug.cgi?id=2316
681
6822011-04-09  Bob Friesenhahn  <[email protected]>
683
684	* libtiff 4.0.0beta7 released.
685
6862011-04-09  Bob Friesenhahn  <[email protected]>
687
688	* configure.ac: Should use AC_CANONICAL_HOST since host specifies
689	the run-time target whereas target is used to specify the final
690	output target if the package is a build tool (like a compiler),
691	which libtiff is not.  Resolves libtiff bug 2307 "Use
692	AC_CANONICAL_HOST macro".
693
6942011-04-02  Bob Friesenhahn  <[email protected]>
695
696	* configure.ac: Support configuring TIFF_INT64_FORMAT and
697	TIFF_UINT64_FORMAT appropriately for MinGW32.
698
699	* tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
700	printf conventions for 64-bit types because it uses the WIN32 CRT.
701
702	* libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
703	tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
704	printf conventions for 64-bit types because it uses the WIN32 CRT.
705
706	* tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
707	understood by WIN32 CRT.
708
709	* libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
710
711	* tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
712	it is much more portable.  Tmpfile is included in ISO/IEC
713	9899:1990 and the WIN32 CRT.
714
7152011-03-26  Frank Warmerdam  <[email protected]>
716
717	* tools/tiffset.c: add -d and -sd switches to allow operation on
718	a particular directory, not just the first (jef).
719
7202011-03-21  Frank Warmerdam  <[email protected]>
721
722	* libtiff/tif_thunder.c: Correct potential buffer overflow with
723	thunder encoded files with wrong bitspersample set.  The libtiff
724	development team would like to thank Marin Barbella and TippingPoint's
725	Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
726	CVE-2011-1167).
727	http://bugzilla.maptools.org/show_bug.cgi?id=2300
728
7292011-03-10  Frank Warmerdam  <[email protected]>
730
731	* libtiff/tif_fax3.h: Fix to last change allowing zero length
732	runs at the start of a scanline - needed for legal cases.
733
7342011-03-02  Frank Warmerdam  <[email protected]>
735
736	* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
737	a move left.  Without this, a malicious input file can generate an
738	indefinitely large series of runs without a0 ever reaching the right
739	margin, thus overrunning our buffer of run lengths.  Per CVE-2011-0192.
740	This is a modified version of a patch proposed by Drew Yao of Apple
741	Product Security.  It adds an unexpected() report, and disallows the
742	equality case, since emitting a run without increasing a0 still allows
743	buffer overrun.
744
7452011-02-23  Frank Warmerdam  <[email protected]>
746
747	* libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
748
749	* tools/tiff2rgba.c: close source file on error to make leak
750	detection easier.
751
752	* libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
753
754	http://bugzilla.maptools.org/show_bug.cgi?id=2295
755
7562011-02-22  Frank Warmerdam  <[email protected]>
757
758	* libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
759	_SUPPORT)
760
7612011-02-18  Frank Warmerdam  <[email protected]>
762
763	* configure.ac, configure: Added support for --enable-chunky-strip-read
764	configure option to enable the experimental feature from a couple
765	months ago for reading big strips in chunks.
766
767	* configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
768	tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
769	Implement optional support for deferring the load of strip/tile
770	offset and size tags for optimized scanning of directories.  Enabled
771	with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
772	#define in tif_config.h).
773
7742011-02-11  Frank Warmerdam  <[email protected]>
775
776	* libtiff/tif_print.c: remove unused variable.
777
7782011-02-09  Frank Warmerdam  <[email protected]>
779
780	* libtiff/tif_win32.c: avoid error/warning buffer overrun problem
781	with non-console (popup message) builds on win32.
782
783	http://bugzilla.maptools.org/show_bug.cgi?id=2293
784
7852011-01-24  Olivier Paquet  <[email protected]>
786
787	* libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
788	tif_print.c, tiff.h, tiffiop.h} : Added support for
789	TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
790	values for each sample. Presents the min/max of all samples by default for
791	compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
792	as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
793	http://www.asmail.be/msg0055458208.html
794
7952011-01-06  Frank Warmerdam  <[email protected]>
796
797	* libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
798	maintained.
799
800	* libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
801	for CHUNKY_STRIP_READ_SUPPORT.
802
803	* libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
804	during JPEGPreDecode and JPEGDecode calls.
805	* libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
806	as compression formats like JPEG keep 16 lines interleaved in a sense
807	and might need to touch	quite a bit of data.
808
809	http://trac.osgeo.org/gdal/ticket/3894
810
8112011-01-03  Lee Howard <[email protected]>
812
813	* libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
814	caused by commit on 2010-12-14.  Submitted by e-mail from
815	Even Rouault <[email protected]>
816
8172010-12-31  Olivier Paquet  <[email protected]>
818
819	* libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
820	http://bugzilla.maptools.org/show_bug.cgi?id=2266
821
8222010-12-23  Andrey Kiselev  <[email protected]>
823
824	* tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
825	compression level parameter (preset) for Deflate and LZMA encoders,
826	e.g "-c lzma:p1" or "-c zip:p9".
827
828	* libtiff/tif_lzma.c: Properly set the LZMA2 compression level
829	(preset) in LZMAVSetField().
830
8312010-12-18  Bob Friesenhahn  <[email protected]>
832
833	* libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
834	Makefile.
835
8362010-12-14  Andrey Kiselev  <[email protected]>
837
838	* configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
839	tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
840	TIFF compression scheme LZMA reserving a new value 34925 for
841	Compression tag. As per
842	bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
843
8442010-12-14  Lee Howard <[email protected]>
845
846	* libtiff/tif_dirread.c: tolerate some cases where
847	FIELD_COLORMAP is missing
848	http://bugzilla.maptools.org/show_bug.cgi?id=2189
849
8502010-12-14  Lee Howard <[email protected]>
851
852	* libtiff/tif_read.c: change read_ahead to tmsize_t
853	http://bugzilla.maptools.org/show_bug.cgi?id=2222
854
8552010-12-14  Lee Howard <[email protected]>
856
857	* configure.ac, libtiff/Makefile.am: Build tif_win32.c on
858	Windows except on Cygwin
859	http://bugzilla.maptools.org/show_bug.cgi?id=2224
860
8612010-12-14  Lee Howard <[email protected]>
862
863	* tools/gif2tiff.c: fix buffer overrun
864	http://bugzilla.maptools.org/show_bug.cgi?id=2270
865
8662010-12-14  Lee Howard <[email protected]>
867
868	* libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
869	to improve compatibility with various viewers
870	submitted by e-mail from Dwight Kelly <[email protected]>
871
8722010-12-13  Lee Howard <[email protected]>
873
874	* tools/fax2ps.c: be consistent with page-numbering
875	http://bugzilla.maptools.org/show_bug.cgi?id=2225
876
8772010-12-13  Lee Howard <[email protected]>
878
879	* libtiff/tif_color.c: prevent crash in handling bad TIFFs
880	resolves CVE-2010-2595
881	http://bugzilla.maptools.org/show_bug.cgi?id=2208
882
8832010-12-13  Lee Howard <[email protected]>
884
885	* tools/tiffcrop.c: new release by Richard Nolde
886	http://bugzilla.maptools.org/show_bug.cgi?id=2004
887
8882010-12-12  Lee Howard <[email protected]>
889
890	* tools/tiff2pdf.c: fix colors for images with RGBA
891	interleaved data
892	http://bugzilla.maptools.org/show_bug.cgi?id=2250
893
8942010-12-12  Lee Howard <[email protected]>
895
896	* libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
897	http://bugzilla.maptools.org/show_bug.cgi?id=2164
898
8992010-12-11  Lee Howard <[email protected]>
900
901	* tools/tiff2pdf.c: remove invalid duplication for Lab
902	http://bugzilla.maptools.org/show_bug.cgi?id=2162
903
9042010-12-11  Lee Howard <[email protected]>
905
906	* libtiff/tif_jpeg.c: fix use of clumplines calculation
907	http://bugzilla.maptools.org/show_bug.cgi?id=2149
908
9092010-12-11  Lee Howard <[email protected]>
910
911	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
912	http://bugzilla.maptools.org/show_bug.cgi?id=2118
913
9142010-12-11  Lee Howard <[email protected]>
915
916	* libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
917	  libtiff/tif_zip.c: fix build errors for VC6
918	http://bugzilla.maptools.org/show_bug.cgi?id=2105
919
9202010-12-11  Lee Howard <[email protected]>
921
922	* libtiff/tif_stream.cxx: warnings cleanup
923	http://bugzilla.maptools.org/show_bug.cgi?id=2091
924	* libtiff/tif_dirread.c: warnings cleanup
925	http://bugzilla.maptools.org/show_bug.cgi?id=2092
926
9272010-12-11  Lee Howard <[email protected]>
928
929	* tools/tiff2pdf.c: add fill-page option
930	http://bugzilla.maptools.org/show_bug.cgi?id=2051
931
9322010-12-11  Lee Howard <[email protected]>
933
934	* libtiff/tif_dirread.c: modify warnings
935	http://bugzilla.maptools.org/show_bug.cgi?id=2016
936
9372010-12-11  Lee Howard <[email protected]>
938
939	* libtiff/tif_ojpeg.c: fix buffer overflow on problem data
940        http://bugzilla.maptools.org/show_bug.cgi?id=1999
941
9422010-12-11  Lee Howard <[email protected]>
943
944	* tools/tiffinfoce.c: strip byte counts are uint64* now
945
9462010-12-11  Lee Howard <[email protected]>
947
948        * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
949        or missing byte-count tag
950        * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
951        per http://bugzilla.maptools.org/show_bug.cgi?id=1996
952
9532010-12-08  Lee Howard <[email protected]>
954
955        * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
956        TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
957
9582010-12-06  Lee Howard <[email protected]>
959
960        * libtiff/tif_open.c: Fix mode check before opening a file.
961        http://bugzilla.maptools.org/show_bug.cgi?id=1906
962
9632010-11-27  Bob Friesenhahn  <[email protected]>
964
965	* libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
966	Patch by Vincent Torri.
967
9682010-10-21  Frank Warmerdam  <[email protected]>
969
970	* tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
971
972	* libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
973
974	* libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
975
9762010-09-25  Lee Howard <[email protected]>
977
978	* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
979	with additional command line options for Document Title,
980	Document Creator, and Page Orientation
981
9822010-07-13  Bob Friesenhahn  <[email protected]>
983
984	* tools/tiffcrop.c: Patch from Richard Nolde to avoid a
985	potentially unterminated buffer due to using an exceptionally long
986	file name.
987
9882010-07-08  Andrey Kiselev  <[email protected]>
989
990	* tools/tiff2pdf.c: Fixed ID buffer filling in
991	t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
992
9932010-07-07  Andrey Kiselev  <[email protected]>
994
995	* libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
996	to expected value as the warning message suggests. As per bug
997	http://bugzilla.maptools.org/show_bug.cgi?id=1963
998
9992010-07-06  Andrey Kiselev  <[email protected]>
1000
1001	* tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
1002	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
1003	which should be set by value.
1004
1005	* libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
1006	and _TIFFFieldWithName() if the tag is not found in the tag table.
1007	This should be normal situation and returned NULL value should be
1008	properly handled by the caller.
1009
10102010-07-02  Andrey Kiselev  <[email protected]>
1011
1012	* libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
1013	integer type conversions. As per bug
1014	http://bugzilla.maptools.org/show_bug.cgi?id=2207
1015
1016	* tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
1017	WhitePoint tag as per bug
1018	http://bugzilla.maptools.org/show_bug.cgi?id=2042
1019
1020	* libtiff/tif_getimage.c: Check the number of samples per pixel when
1021	working with YCbCr image in PickContigCase(). As per bug
1022	http://bugzilla.maptools.org/show_bug.cgi?id=2216
1023
1024	* libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
1025	TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
1026	we don't need any post-processing. That helps to reset the hook if we
1027	previously set this field to some other value and the hook was
1028	initialized accordingly. As per bug
1029	http://bugzilla.maptools.org/show_bug.cgi?id=2035
1030
10312010-07-01  Andrey Kiselev  <[email protected]>
1032
1033	* tools/tiffgt.c: Properly check the raster buffer allocations for
1034	integer overflows. As per bug
1035	http://bugzilla.maptools.org/show_bug.cgi?id=2108
1036
1037	* m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
1038	upstream.
1039
1040	* libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
1041	multiply_32() and multiply_64() functions into tif_aux.c file and
1042	rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
1043
10442010-06-30  Andrey Kiselev  <[email protected]>
1045
1046	* tools/tiff2pdf.c: Better generation of ID field in
1047	t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
1048
1049	* tools/tiff2pdf.c: Fixed computation of the tile buffer size when
1050	converting JPEG encoded tiles.
1051
1052	* tools/tiff2pdf.c: Better handling of string fields, use static
1053	string buffers instead of dynamically allocated, use strncpy() instead
1054	of strcpy(), control the string lengths.
1055
10562010-06-25  Andrey Kiselev  <[email protected]>
1057
1058	* tools/tiffcp.c: Initialize buffer arrays with zero to avoid
1059	referencing to uninitialized memory in some cases (e.g. when tile size
1060	set bigger than the image size).
1061
10622010-06-15  Bob Friesenhahn  <[email protected]>
1063
1064	* tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
1065	subsampled data since tiffcrop currently doesn't support it.  Fix
1066	JPEG support.
1067
10682010-06-13  Frank Warmerdam  <[email protected]>
1069
1070	* libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
1071
1072	* tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
1073	in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
1074	wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
1075	size is larger.  Also, there are a bunch of places that try to
1076	memset() a malloc'd buffer before checking for malloc failure, which
1077	would result in core dump if there actually were a failure. (#2211)
1078
10792010-06-11  Bob Friesenhahn  <[email protected]>
1080
1081	* libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
1082	avoid compiler warnings if parameter types are not sign
1083	consistent.
1084
1085	* libtiff 4.0.0alpha6 released.
1086
1087	* tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
1088	European page size dimensions.  Added an option to allow the user
1089	to specify a custom page size on the command line.  Fix the case
1090	where a page size specified with a fractional part was being
1091	coerced to an integer by retyping the variables that define the
1092	paper size.
1093
1094	* html/index.html: Update for the 3.9.3 release.
1095
1096	* tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
1097	YCbCr subsampled data since tiffcp currently doesn't support it.
1098	http://bugzilla.maptools.org/show_bug.cgi?id=2097
1099
1100	* Update libtool to version 2.2.10.
1101
11022010-06-10  Bob Friesenhahn  <[email protected]>
1103
1104	* libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
1105	multiplier is zero.
1106
11072010-06-09  Bob Friesenhahn  <[email protected]>
1108
1109	* libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
1110	CVE-2010-1411 was not complete.
1111
1112	* libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
1113	multiply two integers.  Returns zero if there is an integer
1114	overflow.
1115
1116	* tools/tiffcp.c (main): tiffcp should not leak memory if an error
1117	is reported when reading the input file.
1118
11192010-06-08  Bob Friesenhahn  <[email protected]>
1120
1121	* Update libtool to version 2.2.8.
1122
1123	* libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
1124	buffer due to integer overflow in TIFFroundup() and several other
1125	potential overflows.  In conjunction with the fix to TIFFhowmany(),
1126	fixes CVE-2010-1411.
1127
1128	* libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
1129	result in an integer overflow. This causes TIFFroundup() to also
1130	return zero if there would be an integer overflow.
1131
1132	* contrib: Add an emacs formatting mode footer to all source files
1133	so that emacs can be effectively used.
1134
11352010-06-03  Oliver Chen Feng <[email protected]>
1136
1137	* libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
1138	file PAGENUMBER value in sequence for users who care the page
1139	sequence, this will also prevent tiff2pdf from creating pdf file from
1140	the merged tiff file with wrong page sequence.
1141
11422010-05-08  Olivier Paquet  <[email protected]>
1143
1144	* libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
1145	to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
1146	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1147	TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
1148	http://bugzilla.maptools.org/show_bug.cgi?id=2192
1149
11502010-05-07  Frank Warmerdam  <[email protected]>
1151
1152	* libtiff/tif_jpeg.c: Ensure that quality is always set in
1153	JPEGPreEncode(), not just when we want to output local tables.
1154	Otherwise the quality used during compression may not be right and
1155	might not match the tables in the tables tag.   This bug only occurs
1156	when seeking between directories in the midst of writing blocks.
1157	http://trac.osgeo.org/gdal/ticket/3539
1158
11592010-05-06  Andrey Kiselev  <[email protected]>
1160
1161	* html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
1162	Regenerated from the source.
1163
11642010-05-05  Olivier Paquet  <[email protected]>
1165
1166	* libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
1167	had stopped working. Also made it always print 6 floats instead of
1168	2*SamplesPerPixel.
1169	http://bugzilla.maptools.org/show_bug.cgi?id=2191
1170	http://bugzilla.maptools.org/show_bug.cgi?id=2186
1171	* man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
1172	fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
1173
11742010-05-05  Frank Warmerdam  <[email protected]>
1175
1176	* libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
1177	if the jpeg table was written.  This is a fix for the last fix on 04-21.
1178
11792010-04-21  Frank Warmerdam  <[email protected]>
1180
1181	* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
1182	JPEGSetupEncode() is called if the tables already seem to be
1183	established.  This prevents spurious updates and rewriting of
1184	directories with jpegtables when doing updates to existing images.
1185	http://trac.osgeo.org/gdal/ticket/3539
1186
11872010-04-20  Olivier Paquet  <[email protected]>
1188
1189	* libtiff/tif_dirinfo.c: Use correct set_field_type for
1190	TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
1191	TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
1192	They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
1193	http://bugzilla.maptools.org/show_bug.cgi?id=2139
1194
11952010-04-10  Bob Friesenhahn  <[email protected]>
1196
1197	* libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
1198	when the tag count value is zero.  Error handling is still a
1199	regression since in 3.9.2, empty tags are skipped (with a warning)
1200	rather than returning a hard error and refusing to read the file.
1201
1202	* tools/ppm2tiff.c (main): While case for parsing comment line
1203	requires extra parenthesis to work as expected.  Reported by
1204	Thomas Sinclair.
1205
12062010-04-02  Frank Warmerdam  <[email protected]>
1207
1208	* libtiff/tif_read.c (primarily): Add support for
1209	CHUNKY_STRIP_READ_SUPPORT where large strips are
1210	read in chunks for applications using TIFFReadScanline().
1211	This is intended to make it more practical work with very
1212	large compressed one-strip files.   Feature is off by default.
1213	Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
1214	http://trac.osgeo.org/gdal/ticket/3514
1215
12162010-03-31  Frank Warmerdam  <[email protected]>
1217
1218	* libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
1219	directories so previously placed directories will be migrated to
1220	the end of file if needed.
1221
12222010-03-30  Frank Warmerdam  <[email protected]>
1223
1224	* libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
1225	to support operating on strips/tiles of more than 256MB.
1226	http://trac.osgeo.org/gdal/ticket/3512
1227
12282010-03-10  Bob Friesenhahn  <[email protected]>
1229
1230	* libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
1231	that it is clearly a memory allocation error message, and also
1232	includes the size of the allocation request.
1233
12342010-02-22  Lee Howard  <[email protected]>
1235
1236	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
1237	the JPEG TIFF as is is not required in order to prevent it from
1238	being unused and filled with invalid data.  (Leave it to be
1239	generated by later activity.)
1240	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1241	* tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
1242	data rather than skipping them.  This fixes the ability to view in
1243	Acrobat Reader, Evince, and Ghostscript.
1244	http://bugzilla.maptools.org/show_bug.cgi?id=2135
1245	* libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
1246	strips.
1247	http://bugzilla.maptools.org/show_bug.cgi?id=2029
1248
12492009-12-03  Frank Warmerdam  <[email protected]>
1250
1251	* libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
1252	Made so that when working with downsampled images a stub function
1253	reporting an error is used for tif_decoderow.  We cannot meaningfully
1254	support reading scanlines in this situation.  (#1936)
1255
1256	* libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
1257	resetting of the upsampling values (gdal:#3259).
1258	http://bugzilla.maptools.org/show_bug.cgi?id=1936
1259
12602009-11-30  Frank Warmerdam  <[email protected]>
1261
1262	* contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
1263	tools/ras2tiff.c: Fix resource leaks on error.
1264	http://bugzilla.maptools.org/show_bug.cgi?id=2121
1265
1266	* libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
1267	TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
1268	of as a custom(generic) field to avoid a potential reentrancy problem.
1269	http://bugzilla.maptools.org/show_bug.cgi?id=2125
1270
1271	* libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
1272	man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
1273	const, and display_sRGB static and const.
1274	http://bugzilla.maptools.org/show_bug.cgi?id=2124
1275
12762009-11-04  Bob Friesenhahn  <[email protected]>
1277
1278	* libtiff 4.0.0alpha5 released.
1279
12802009-11-03  Bob Friesenhahn  <[email protected]>
1281
1282	* tools/tiffcrop.c: Updated tiffcrop from Richard Nolde.  This
1283	version has undergone substantial testing with arbitrary sample
1284	bit depths.  Also eliminates GCC compilation warnings.
1285
12862009-11-02  Bob Friesenhahn  <[email protected]>
1287
1288	* port/libport.h: Add extern declarations for getopt standard
1289	globals.
1290
12912009-10-31  Bob Friesenhahn  <[email protected]>
1292
1293	* libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
1294	noticed in 64-bit build of libtiff with Visual Studio 2005.
1295	Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
1296	tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
1297
1298	* libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
1299	warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
1300	Visual Studio 2005 64-bit warning in tif_pixarlog.c",
1301	http://bugzilla.maptools.org/show_bug.cgi?id=2068
1302
13032009-10-29  Bob Friesenhahn  <[email protected]>
1304
1305	* libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
1306	pointer" warnings.
1307
13082009-10-28  Bob Friesenhahn  <[email protected]>
1309
1310	* html/tools.html: Add manual page links, and a summary
1311	description of tiffcrop.
1312
13132009-10-07  Bob Friesenhahn  <[email protected]>
1314
1315	* configure.ac: x86_64 should use the same fill order as i386.
1316
13172009-09-24  Bob Friesenhahn  <[email protected]>
1318
1319	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
1320	Nolde.  Major updates to add significant functionality for reading
1321	and writing tile based images with bit depths not a multiple of 8
1322	which cannot be handled by tiffcp.
1323
13242009-09-03  Bob Friesenhahn  <[email protected]>
1325
1326	* libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
1327	do_fancy_upsampling=FALSE in order to read raw data.  Resolves
1328	"Bug 2090 - OJPEG crash with libjpeg v7".
1329	http://bugzilla.maptools.org/show_bug.cgi?id=2090
1330
13312009-09-03  Frank Warmerdam  <[email protected]>
1332
1333	* libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
1334	interface when stoponerror is set.
1335	http://bugzilla.maptools.org/show_bug.cgi?id=2071
1336
13372009-08-30  Bob Friesenhahn  <[email protected]>
1338
1339	* tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
1340	fix build with gcc when using the "-Wformat
1341	-Werror=format-security" flags.
1342
13432009-08-29  Bob Friesenhahn  <[email protected]>
1344
1345	* test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
1346	ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
1347	utilities tests.
1348
13492009-08-28  Bob Friesenhahn  <[email protected]>
1350
1351	* tools/tiffinfo.c: tiffinfo should return error status to the
1352	caller.  Register a private error callback to accomplish that.
1353
1354	* test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
1355	PNM formats so that we will be able to test more of the tools.
1356	While adding these test images I notice that bmp2tiff and gif2tiff
1357	only support ancient versions of their respective formats.
1358
13592009-08-27  Bob Friesenhahn  <[email protected]>
1360
1361	* libtiff 4.0.0alpha4 released.
1362
1363	* HOWTO-RELEASE: Improved release instructions.
1364
13652009-08-24  Bob Friesenhahn  <[email protected]>
1366
1367	* man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
1368	fixes for "Bug 2023 - nroff errors in manual pages".
1369	http://bugzilla.maptools.org/show_bug.cgi?id=2023
1370
1371	* tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
1372	CVE-2009-2347 libtiff: integer overflows in various inter-color
1373	space conversion tools".
1374	http://bugzilla.maptools.org/show_bug.cgi?id=2079
1375
1376	* libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
1377	Berkenbilt for "Bug 2024 - possible null pointer dereference with
1378	one-line fix".
1379	http://bugzilla.maptools.org/show_bug.cgi?id=2024
1380
1381	* libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
1382	from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
1383	segfault after setting tdir_tag = IGNORE".
1384	http://bugzilla.maptools.org/show_bug.cgi?id=1895
1385
13862009-08-23  Bob Friesenhahn  <[email protected]>
1387
1388	* test/Makefile.am, test/tiffcrop*.sh: Split previously existing
1389	tiffcrop.sh into a collection of many specific tests.  Re-wrote
1390	all of the existing tests to be based on some simple shell
1391	functions.  Make distcheck works again.
1392
1393	Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
1394	added 'memcheck' and 'ptrcheck' targets to make it easy to run the
1395	tests under valgrind.
1396
13972009-08-21  Bob Friesenhahn  <[email protected]>
1398
1399	* test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
1400	build.
1401
1402	* test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
1403	actually activated since it needed to be enabled in this
1404	Makefile.am.  Also activated parallel-tests mode since it offers
1405	useful features such as per-test .log files and a summary test
1406	report .log file.
1407
14082009-08-20  Bob Friesenhahn  <[email protected]>
1409
1410	* configure.ac: Updated autotools.  Autoconf 2.64, Automake 1.11,
1411	libtool 2.2.6.  Enabled support for silent build rules
1412	(--enable-silent-rules or 'make V=0') and colorized tests.
1413
1414	* html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
1415
14162009-06-30  Frank Warmerdam  <[email protected]>
1417
1418	* tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
1419
1420	* tools/tiffcp.c: add -c sgilog support.
1421
1422	* libtiff/tif_luv.c: correct return codes from encoderow to be
1423	1 on success instead of zero.
1424	http://bugzilla.maptools.org/show_bug.cgi?id=2069
1425
1426	* libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
1427	#1085 for a better underflow fix that errors properly.
1428	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1429	http://bugzilla.maptools.org/show_bug.cgi?id=1985
1430
14312009-06-26  Frank Warmerdam  <[email protected]>
1432
1433	* libtiff/tif_strip.c: Remove an inappropriate assertion that often
1434	fails on oddly sized 12bit jpeg compressed ycbcr images.
1435
14362009-06-22  Frank Warmerdam  <[email protected]>
1437
1438	* libtiff/tif_lzw.c: Fix buffer underflow bug.
1439	http://bugzilla.maptools.org/show_bug.cgi?id=2065
1440
14412009-06-21  Frank Warmerdam  <[email protected]>
1442
1443	* configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
1444	for dual mode 8/12 bit jpeg support.
1445
14462009-06-03  Frank Warmerdam  <[email protected]>
1447
1448	* libtiff/tif_write.c: do not override the planar configuration to be
1449	contig for one sample files if planar configuration is already set.
1450	http://bugzilla.maptools.org/show_bug.cgi?id=2057
1451
14522009-06-02  Frank Warmerdam  <[email protected]>
1453
1454	* libtiff/libtiff.def: Add TIFFUnsetField.
1455
14562009-05-03  Frank Warmerdam  <[email protected]>
1457
1458	* libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
1459	error reports to use "%s" as format string.
1460	http://trac.osgeo.org/gdal/ticket/2976
1461
14622009-03-12  Frank Warmerdam  <[email protected]>
1463
1464	* libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
1465	for some codecs (#2020).
1466
14672009-02-12  Frank Warmerdam  <[email protected]>
1468
1469	* libtiff/tif_luv.c: Fix handling of tiled logluv images.
1470	http://bugzilla.maptools.org/show_bug.cgi?id=2005
1471
14722009-02-09  Frank Warmerdam  <[email protected]>
1473
1474	* libtiff/tif_dirread.c: Improve allocation safety when allocated
1475	buffer for large tags.  (#1998)  Related to (#1993)
1476
14772009-02-06  Frank Warmerdam  <[email protected]>
1478
1479	* tools/tiffcrop.c: Don't default image->res_unit to INCH.  Now the
1480	test suite should pass.
1481
14822009-02-05  Frank Warmerdam  <[email protected]>
1483
1484	* libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
1485	but at the 2GB boundary to avoid overflow on 32bit systems.
1486	http://bugzilla.maptools.org/show_bug.cgi?id=1993
1487
1488	* libtiff/tif_dirread.c: Remove some assertions that blow due to
1489	corrupt files rather than in response to library internal
1490	inconsistencies.
1491	http://bugzilla.maptools.org/show_bug.cgi?id=1995
1492	http://bugzilla.maptools.org/show_bug.cgi?id=1991
1493
1494	* libtiff/tif_dirread.c: Fixed testing for failed result from
1495	TIFFReadDirectoryFindFieldInfo().
1496	http://bugzilla.maptools.org/show_bug.cgi?id=1992
1497
14982009-01-23  Frank Warmerdam  <[email protected]>
1499
1500	* libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
1501	http://bugzilla.maptools.org/show_bug.cgi?id=1911
1502
1503	* libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
1504
1505	http://bugzilla.maptools.org/show_bug.cgi?id=1924
1506
1507	* tools/tiffcrop.c: initialize xres/yres values.
1508
1509	* test/*.sh - default ${srcdir} to local directory.
1510
1511	* test/common.sh - start verbose mode after common settings.
1512
1513	* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
1514	avoid type mismatches on different platforms.
1515	http://bugzilla.maptools.org/show_bug.cgi?id=1889
1516
15172009-01-22  Frank Warmerdam  <[email protected]>
1518
1519	* tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
1520	tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
1521
1522	* port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
1523	defined, primarily to reduce prototype warnings on windows.
1524
1525	* libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
1526	about unused parameters, and uninitialized variables.
1527
15282009-01-21  Bob Friesenhahn  <[email protected]>
1529
1530	* test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
1531	order to trace full execution detail while executing the test suite.
1532
15332009-01-20  Frank Warmerdam  <[email protected]>
1534
1535	* tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
1536
15372009-01-20  Bob Friesenhahn  <[email protected]>
1538
1539	* test/Makefile.am (CLEANFILES): Make sure that test output files
1540	are removed by 'make clean'
1541
1542	* Update autotools for 4.0.0 beta3
1543
1544	* 4.0.0 beta3 produced.
1545
15462009-01-12  Bob Friesenhahn  <[email protected]>
1547
1548	* test/tiffcrop.sh: New test script for tiffcrop from Richard
1549	Nolde.
1550
1551	* tools/tiff2ps.c: Remove spurious message to stderr.
1552
15532009-01-11  Bob Friesenhahn  <[email protected]>
1554
1555	* tools/tiff2ps.c: Incorporated significant functionality update
1556	from Richard Nolde.  In particular, support for rotating the image
1557	by 90, 180, 270, and 'auto' has been added.
1558
1559	* man/tiffcrop.1: Incorporated documentation updates from Richard
1560	Nolde.
1561
1562	* tools/tiffcrop.c: Incorporated significant functionality update
1563	from Richard Nolde.
1564
15652008-12-31  Bob Friesenhahn  <[email protected]>
1566
1567	* libtiff/tiffio.h: GCC will now validate format specifications
1568	for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
1569	TIFFWarningExt() in order to reveal bugs.
1570
1571	* Many fixes throughout to work better as a 64-bit build.
1572
15732008-12-30  Bob Friesenhahn  <[email protected]>
1574
1575	* tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
1576	tags now require 64-bit parameter rather than 32-bit.
1577
1578	* libtiff/tif_dirread.c: Fixed issues with unaligned access to
1579	64-bit values.
1580
1581	* tools/thumbnail.c: Eliminate crash noticed while running test
1582	suite.
1583
15842008-12-29  Bob Friesenhahn  <[email protected]>
1585
1586	* libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
1587	Initialize stack variables to avoid compiler warning.
1588
1589	* tools/tiffinfoce.c (main): Use toff_t for offset type when
1590	retrieving offset of EXIF IFD.
1591
1592	* libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
1593	TIFFClientOpen() callback and other external function definitions.
1594
1595	* tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
1596	type now.  Fixes crash when dumping files containing an EXIF IFD.
1597
1598	* m4/libtool.m4: Update to libtool 2.2.6.
1599
16002008-12-21  Frank Warmerdam  <[email protected]>
1601
1602	* libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
1603
1604	* libtiff/tif_jpeg.c: Avoid errors if the application writes a full
1605	strip for the last partial strip in a jpeg compressed file.
1606	http://bugzilla.maptools.org/show_bug.cgi?id=1981
1607
16082008-10-29  Frank Warmerdam  <[email protected]>
1609
1610	* libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
1611	we take the shortcut to only update the strip/tile offsets in place.
1612	http://trac.osgeo.org/gdal/ticket/2621
1613
16142008-10-21  Andrey Kiselev  <[email protected]>
1615
1616	* libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
1617	the older versions retained).
1618
16192008-10-09  Frank Warmerdam  <[email protected]>
1620
1621	* libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
1622	IPP enabled version of libjpeg from Intel.
1623	http://bugzilla.maptools.org/show_bug.cgi?id=1951
1624
16252008-09-05  Andrey Kiselev  <[email protected]>
1626
1627	* tools/tiffsplit.c: Use byte counts of proper size (uint64).
1628	Required for libtiff 4.0.
1629
1630	* tools/tiffsplit.c: Use dynamically allocated array instead of static
1631	when constructing output file names.
1632
16332008-09-03  Andrey Kiselev  <[email protected]>
1634
1635	* tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
1636	doing the filename/path construction.
1637
1638	* tools/tiff2pdf.c: More appropriate format string in
1639	t2p_write_pdf_string(); avoid signed/unsigned mismatch.
1640
1641	* libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
1642
1643	http://bugzilla.maptools.org/show_bug.cgi?id=1929
1644
1645	* libtiff/tif_lzw.c: Properly zero out the string table. Fixes
1646	CVE-2008-2327 security issue.
1647
16482008-09-01  Frank Warmerdam  <[email protected]>
1649
1650	* libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
1651
1652	* libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
1653	depending on whether the file is bigtiff or classic tiff.
1654	http://bugzilla.maptools.org/show_bug.cgi?id=1917
1655
16562008-08-12  Edward Lam  <[email protected]>
1657
1658	* tools/tiffdump.c: When compiling for Microsoft Windows, apply
1659	consistent (__int64) casting when testing if _lseeki64 has
1660	successfully seeked as requested.  This is necessary for large
1661	file support to work since off_t is only 32-bit.
1662
16632008-07-29  Frank Warmerdam  <[email protected]>
1664
1665	* tif_strip.c: Replace assertions related to samplesperpixel != 3 or
1666	the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
1667	with control logic to return runtime errors (c/o Even Rouault) (#1927).
1668
16692008-06-17  Frank Warmerdam  <[email protected]>
1670
1671	* tools/tiffcrop.c: Fix some portability problems.
1672
1673	* libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
1674	used in tif_jpeg.c.
1675
1676	* libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
1677	as TIFFOpen().
1678
16792008-06-01  Frank Warmerdam  <[email protected]>
1680
1681	* libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
1682	like Sparc/Solaris.
1683	http://bugzilla.maptools.org/show_bug.cgi?id=1892
1684
16852008-05-27  Frank Warmerdam  <[email protected]>
1686
1687	* libtiff.def: Add TIFFFindField
1688	http://bugzilla.maptools.org/show_bug.cgi?id=1891
1689
16902008-05-26  Frank Warmerdam  <[email protected]>
1691
1692	* tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
1693
1694	* li2008-04-15  Andrey Kiselev  <[email protected]>
1695
1696btiff/tif_win32.c: Replace custom Win32 memory api with generic
1697	POSIX one.  No apparent value to use of GlobalAlloc() in the modern
1698	age.  http://bugzilla.maptools.org/show_bug.cgi?id=1885
1699
1700	* libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
1701	in windows version (care of Edward Lam).
1702
17032008-05-24  Frank Warmerdam  <[email protected]>
1704
1705	* tif_codec.c: Avoid NULL pointer dereferencing for exotic
1706	compression codec codes.
1707
1708	* tif_dirwrite.c: fix potential memory leak.
1709
1710	* tif_dirread.c: Fix unchecked malloc result.
1711
17122008-05-24  Bob Friesenhahn  <[email protected]>
1713
1714	* test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
1715	tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
1716	tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
1717	tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
1718	tiffdump.sh tiffinfo.sh}: Added more test scripts based on
1719	suggestions from Lee Howard posted to the tiff list on 13 Sep
1720	2007.
1721
17222008-05-23  Frank Warmerdam  <[email protected]>
1723
1724	* libtiff/tif_fax3.c: Add an assert in an effort to detect a
1725	possible runtime problem reported by coverity.
1726
1727	* contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
1728
1729	* tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
1730	http://bugzilla.maptools.org/show_bug.cgi?id=1888
1731
1732	* tools/tiffdither.c: remove dead onestrip code.  avoid memory leak.
1733
1734	* tools/rgb2ycbcr.c: fix memory leak of raster buffer.
1735
1736	* tools/tiffcp.c: Simplify inknames code to avoid pointless test.
1737	Cleanup scanline allocation to avoid coverity warning.
1738
1739	* tools/thumbnail.c: Check for TIFFOpen() failure.
1740
17412008-05-18  Frank Warmerdam  <[email protected]>
1742
1743	* libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
1744	and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED.  Not exactly clear
1745	why this is needed.
1746
17472008-05-09  Bob Friesenhahn  <[email protected]>
1748
1749	* Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
1750	"ACLOCAL_AMFLAGS=-I ./m4".  It wants "ACLOCAL_AMFLAGS=-I m4".
1751
17522008-04-15  Andrey Kiselev  <[email protected]>
1753
1754	* test/: Test suite updated. Everything is passed now.
1755
1756	* libtiff/tif_dirinfo.c: Fixed description of the
1757	TIFFTAG_NUMBEROFINKS tag.
1758
17592008-04-14  Andrey Kiselev  <[email protected]>
1760
1761	* libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
1762	Get rid of some of "dereferencing type-punned" warnings by converting
1763	tdir_offset field of TIFFDirEntry structure into union.
1764
17652008-04-10  Andrey Kiselev  <[email protected]>
1766
1767	* libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
1768	TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
1769	from the public interface. Type of its 'count' parameter changed
1770	from uint32 to tmsize_t.
1771
1772	* /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
1773	of the tiff structure have the size_t type instead of uint32.
1774
17752008-04-09  Andrey Kiselev  <[email protected]>
1776
1777	* tools/tiffdump.c: Added support for MSVS 6.0.
1778
1779	* libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
1780	and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
1781	point values on MSVS 6.0 platform.
1782
17832008-03-14  Frank Warmerdam  <[email protected]>
1784
1785	* tif_dirread.c: Removed sanity checks on tags larger than 4MB in
1786	TIFFReadDirEntryArray() since they are interfering with seemingly
1787	legitimate files.  http://trac.osgeo.org/gdal/ticket/2005
1788
17892008-02-09  Joris Van Damme  <[email protected]>
1790
1791	* tif_dirread.c: Added handling for the case of number of values for
1792	PageNumber tag different from 2 (previously resulted in an assert
1793	indicating lack of handling and was forgotten about)
1794
17952008-02-01  Frank Warmerdam  <[email protected]>
1796
1797	* libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
1798	the actual jpeg data stream if the first strip/tile has zero size.
1799	This is the case when GDAL creates a new file with zero sizes, closes
1800	and reopens it.
1801
18022008-01-07  Frank Warmerdam  <[email protected]>
1803
1804	* tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
1805
18062008-01-01  Frank Warmerdam  <[email protected]>
1807
1808	* libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
1809
1810	* Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
1811	targets.
1812
1813	* tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
1814	tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
1815	(x64).
1816
1817	* tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
1818	and TIFFFieldWithName() now return TIFFField pointers instead of
1819	TIFFFieldInfo pointers.
1820
1821	* tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
1822	exist. This makes it compile again on Windows
1823
1824	* tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
1825	tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
1826
1827	* test/rewrite_tag.c: New test for TIFFRewriteField().
1828
18292007-12-31  Frank Warmerdam  <[email protected]>
1830
1831	* tif_dirwrite.c: Added TIFFRewriteField().  This new function
1832	rewrites one field "on disk" updating an existing directory
1833	entry.  Lots of limitations still...
1834
1835	* tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
1836	TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
1837	the strip offset/size values are dirty but nothing else about the
1838	directory is dirty.  In flush handle "just stripmaps dirty" as a
1839	special case that just rewrites these values without otherwise
1840	modifying the directory on disk using TIFFRewriteField().
1841
1842	We also modify logic so that in update mode the directory is not
1843	marked dirty on read, but only when something is changed.  This
1844	means we need to keep track of updates to the stripmap stuff in
1845	TIFFAppendToStrip().
1846
18472007-12-10  Frank Warmerdam  <[email protected]>
1848
1849	* tif_jpeg.c: Improve ability to switch between encoding and decoding
1850	in the jpeg code (gdal bug #2033).
1851
18522007-11-23  Frank Warmerdam  <[email protected]>
1853
1854	* tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
1855	tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
1856	rawcp/rawcc buffer are for writing and thus may require flushing.
1857	Necessary to distinguish whether they need to be written to disk when
1858	in mixed read/write mode and doing a mixture of writing followed by
1859	reading.  http://trac.osgeo.org/gdal/ticket/1758
1860
18612007-11-23  Andrey Kiselev  <[email protected]>
1862
1863	* configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
1864	from Alexey Chupahin.
1865
18662007-11-02  Frank Warmerdam  <[email protected]>
1867
1868	* tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
1869	establishing if an existing tile can be rewritten to the same location
1870	by comparing the current size to all the other blocks in the same
1871	directory.  This is dangerous in many situations and can easily
1872	corrupt a file.  (observed in esoteric GDAL situation that's hard to
1873	document).  This change involves leaving the stripbytecount[] values
1874	unaltered till TIFFAppendToStrip().  Now we only write a block back
1875	to the same location it used to be at if the new data is the same
1876	size or smaller - otherwise we move it to the end of file.
1877
1878	* tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
1879	data when writing the directory just because we have BEENWRITING at
1880	some point in the past.  This was causing odd junk to be written out
1881	in a tile of data when a single tile had an interleaving of reading
1882	and writing with reading last.  (highlighted by gdal
1883	autotest/gcore/tif_write.py test 7.
1884
1885	* tif_predict.c: use working buffer in PredictorEncodeTile to avoid
1886	modifying callers buffer.
1887	http://trac.osgeo.org/gdal/ticket/1965
1888
1889	* tif_predict.c/h: more fixes related to last item, keeping a
1890	distinct pfunc for encode and decode cases as these were getting
1891	mixed up sometimes.
1892	http://trac.osgeo.org/gdal/ticket/1948
1893
18942007-11-01  Frank Warmerdam  <[email protected]>
1895
1896	* tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
1897	predictor based encoding and decoding works in read-write update
1898	mode properly.
1899	http://trac.osgeo.org/gdal/ticket/1948
1900
19012007-10-24  Joris Van Damme  <[email protected]>
1902
1903	* tif_dirread.c: Fixed problem with bogus file triggering
1904	assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
1905	ChopUpSingleUncompressedStrip
1906
19072007-10-22  Joris Van Damme  <[email protected]>
1908
1909	* tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
1910	at best, access violation at worst, when subsampled JPEG compressed imagery
1911	is decoded without the JPEG_COLORMODE feature
1912
19132007-10-11  Frank Warmerdam  <[email protected]>
1914
1915	* html/index.html: Update "people responsible" section.
1916
19172007-10-05  Frank Warmerdam  <[email protected]>
1918
1919	* tools/tiff2pdf.c: Fix problem with alpha setting in some cases
1920	as reported on the mailing list.
1921
19222007-10-01  Joris Van Damme  <[email protected]>
1923
1924	* changed some more incorrect %lud printf flags to %lu
1925
19262007-09-29  Joris Van Damme  <[email protected]>
1927
1928	* tif_dirread.c: Strip chopping interfered badly with uncompressed
1929	subsampled images because it tried to divide subsampled rowblocks,
1930	leading to all sorts of errors throughout the library for these
1931	images. Fixed by making strip chopping divide in row counts that
1932	are a multiple of vertical subsampling value.
1933
19342007-09-28  Joris Van Damme  <[email protected]>
1935
1936	* tif_dirread.c: Logical cast working around compiler warning
1937
1938	* tif_read.c: Correction of some error flags and parameter lists
1939
19402007-09-27  Joris Van Damme  <[email protected]>
1941
1942	* tif_dirread.c: Made calculation of td_maxsamplevalue more robust
1943	when dealing with large bitspersample values, shutting up purification
1944	tools that warn about truncation, though it remains incorrect and
1945	indicates a conceptual problem there.
1946
1947	* tif_open.c: Moved early exit in case of 'h' flag (to disable reading
1948	of first IFD) to proper place because it badly interfered with memory
1949	mapping, resulting in mapping flag even with dummy mapping functions
1950	that returned 0 whilst at the same time the mapping tif_size wasn't
1951	set, thus resulting in continuous incorrect beyond-eof errors.
1952
19532007-09-24  Joris Van Damme  <[email protected]>
1954
1955	* tif_dirinfo.c: Fixed (MSVC) compiler reports about
1956	inconsistent use of const in tiffFields and exifFields definition
1957
19582007-09-20  Frank Warmerdam  <[email protected]>
1959
1960	* tif_dirwrite.c: Always write tile/strip offsets and sizes
1961	using LONG8 type when output format is BigTIFF.  The
1962	TIFFWriteDirectoryTagLongLong8Array() function was restructured
1963	accordingly.
1964
1965	* tif_dirread.c: Improvements to error reporting text in
1966	TIFFFetchDirectory().
1967
19682007-09-19  Bob Friesenhahn  <[email protected]>
1969
1970	* test/images: Added a small collection of test images for use by
1971	test programs and scripts.
1972	* test/tiffinfo.sh: A trivial example test script.
1973	* test/common.sh: Added small script for setting the environment
1974	used by script-based tests.
1975
19762007-08-24  Frank Warmerdam  <[email protected]>
1977
1978	* tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
1979	zero when writing directory contents to preserve the ability to
1980	rewrite directories in place, even in the middle of a directory
1981	chain.
1982
1983	* tif_dirinfo.c:  _TIFFMergeFields() now only merges in field
1984	definitions that are missing.  Existing definitions are silently
1985	ignored.
1986
1987	* tif_dirread.c: Add runtime error for fields for which no definition
1988	is found (in addition to an assert for developers) in
1989	TIFFFetchNormalTag().  Not sure if this is needed, but it seems
1990	prudent.
1991
19922007-08-10  Joris Van Damme  <[email protected]>
1993
1994	* libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
1995	from _TIFFRGBAImage structure to revert unwanted ABI change.
1996
19972007-08-10  Joris Van Damme  <[email protected]>
1998
1999	* libtiff/tif_win32.c: use SetFilePointer instead of
2000	SetFilePointerEx, as per bug
2001
2002	http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
2003
20042007-07-19  Andrey Kiselev  <[email protected]>
2005
2006	* libtiff/tif_stream.cxx: Put all callback functions declarations
2007	inside extern "C" block.
2008
2009	* libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
2010	tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
2011	formatter instead of "%lld" with MSVC compiler.
2012
2013	* libtiff/{tiffiop.h, tif_aux.c}:  Added _TIFFUInt64ToFloat() and
2014	_TIFFUInt64ToDouble() functions.
2015
20162007-07-18  Andrey Kiselev  <[email protected]>
2017
2018	* libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
2019	integer constants.
2020
2021	* libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
2022	remove tif_config.h/tiffconf.h during cleaning. As per bug
2023
2024	http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
2025
2026	* libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
2027
2028	http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
2029
20302007-07-13  Andrey Kiselev  <[email protected]>
2031
2032	* libtiff 4.0.0alpha released.
2033
20342007-07-12  Andrey Kiselev  <[email protected]>
2035
2036	* tools/tiff2pdf.c: Added missed extern optind as per bug
2037
2038	http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
2039
2040	* libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
2041	tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
2042	extending scheme completed.
2043
20442007-07-11  Bob Friesenhahn  <[email protected]>
2045
2046	* libtiff/tif_stream.cxx: Adapt to use toff_t again.  Update to
2047	use standard C++ library size types and attempt to detect overflow
2048	cases.
2049
20502007-07-08  Andrey Kiselev  <[email protected]>
2051
2052	* libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
2053	tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
2054	tag extending scheme. Use the new scheme everywhere.
2055
2056	* libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
2057	tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
2058	tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
2059	TIFFFIeldInfo structure replaced with TIFFField structure.
2060	TIFFFieldInfo retained for the backward compatibility.
2061
20622007-07-05  Bob Friesenhahn  <[email protected]>
2063
2064	* tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
2065	defined.
2066
20672007-07-04  Andrey Kiselev  <[email protected]>
2068
2069	* libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
2070	TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
2071	removed.
2072
2073	* libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
2074	tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
2075	TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
2076	These tags are not codec-specific and relate to image content, so
2077	process them as other normal tags.
2078
2079	* libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
2080	public tiffio.h to private tif_dir.h.
2081
2082	* contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
2083	outdated.
2084
20852007-07-03  Andrey Kiselev  <[email protected]>
2086
2087	* libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
2088	tif_win3.c}: Obsoleted portability stuff removed.
2089
2090	* tools/tiff2ps.c:  Added support 16-bit images as per bug
2091
2092	http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
2093
2094	Patch from William Bader.
2095
2096	* tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
2097	significant upgrade of the whole utility as per bug
2098
2099	http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
2100
2101	Now we don't need tiffiop.h in tiff2pdf anymore and will open output
2102	PDF file using TIFFClientOpen() machinery as it is implemented
2103	by Leon Bottou.
2104
21052007-06-26  Bob Friesenhahn  <[email protected]>
2106
2107	* configure.ac: Fix typo when substituting value for unsigned 8 bit type.
2108	Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
2109	Added support for a TIFF_SSIZE_T in order to return memory sizes but still
2110	allow returning -1 for errors.
2111	* libtiff/tiffconf.vc.h: Add porting type defintions for WIN32.
2112
21132007-06-25  Bob Friesenhahn  <[email protected]>
2114
2115	* port/strtoull.c: New porting function in case strtoull() is not
2116	available on the target system.
2117	* configure.ac: Add configure support for determining sized types
2118	in a portable way and performing necessary substitutions in
2119	tif_config.h and tiffconf.h.  Updated tiff.h to use the new
2120	definitions.
2121
21222007-04-27  Andrey Kiselev  <[email protected]>
2123
2124	* tools/tiff2pdf.c: Check the tmpfile() return status as per bug
2125
2126	http://bugzilla.remotesensing.org/show_bug.cgi?id=154
2127
21282007-04-07  Andrey Kiselev  <[email protected]>
2129
2130	* libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
2131	tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
2132	tif_predict.c, tif_zip.c}: Finally fix bug
2133
2134	http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
2135
2136	by introducing _TIFFMergeFieldInfo() returning integer error status
2137	instead of void in case of problems with field merging (e.g., if the
2138	field with such a tag already registered). TIFFMergeFieldInfo() in
2139	public API remains void. Use _TIFFMergeFieldInfo() everywhere and
2140	check returned value.
2141
21422007-04-07  Frank Warmerdam  <[email protected]>
2143
2144	* contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
2145	blocks in TIFF_DownSample_Subsampled() (bug 1542).
2146
21472007-04-06  Frank Warmerdam  <[email protected]>
2148
2149	* libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
2150	will convert from decompressor to compressor or compress to decompress
2151	if required by the force arguments.  This works around a problem in
2152	where the JPEGFixupTestSubsampling() may cause a decompressor to
2153	be setup on a directory when later a compressor is required with the
2154	force flag set.  Occurs with the addtiffo program for instance.
2155
21562007-04-06  Andrey Kiselev  <[email protected]>
2157
2158	* tools/tiffcrop.c, man/tiffcrop.1: Significant update in
2159	functionality from Richard Nolde. As per bug
2160
2161	http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
2162
21632007-03-28  Frank Warmerdam  <[email protected]>
2164
2165	* libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
2166
21672007-03-17  Joris Van Damme  <[email protected]>
2168
2169	* start of BigTIFF upgrade - CVS HEAD unstable until further notice
2170
21712007-03-07  Joris Van Damme  <[email protected]>
2172
2173	* libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
2174	OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
2175	factor. This bug is mentioned in:
2176	http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
2177	http://www.asmail.be/msg0054766825.html
2178
21792007-03-07  Joris Van Damme  <[email protected]>
2180
2181	* libtiff/tif_win32.c: made inclusion of windows.h unconditional
2182
2183	* libtiff/tif_win32.c: replaced preprocessor indication for consiously
2184	unused arguments by standard C indication for the same
2185
21862007-02-27  Andrey Kiselev  <[email protected]>
2187
2188	* libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
2189	counters in TIFFFetchData(). Should finally fix the issue
2190
2191	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2192
21932007-02-24  Andrey Kiselev  <[email protected]>
2194
2195	* tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
2196	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
2197
2198	* libtiff/tif_dirread.c: Added special function to handle
2199	SubjectDistance EXIF tag as per bug
2200
2201	http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
2202
2203	* tools/tiff2pdf.c: Do not assume inches when the resolution units
2204	do not specified. As per bug
2205
2206	http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
2207
2208	* tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
2209	it was set as infinite. As per bug
2210
2211	http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
2212
2213	* tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
2214	by Richard Nolde. As per bug
2215
2216	http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
2217
22182007-02-22  Andrey Kiselev  <[email protected]>
2219
2220	* libtiff/tif_dir.c: Workaround for incorrect TIFFs with
2221	ExtraSamples == 999 produced by Corel Draw. As per bug
2222
2223	http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
2224
2225	* libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
2226	changed from tsize_t to uint32 to be able to work with data arrays
2227	larger than 2GB. Fixes bug
2228
2229	http://bugzilla.remotesensing.org/show_bug.cgi?id=890
2230
2231	Idea submitted by Matt Hancher.
2232
22332007-01-31  Andrey Kiselev  <[email protected]>
2234
2235	* tools/tif2rgba.c: This utility does not work properly on big-endian
2236	architectures. It was fixed including the bug
2237
2238	http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
2239
22402007-01-15  Mateusz Loskot <[email protected]>
2241
2242	* Submitted libtiff port for Windows CE platform
2243	* libtiff/tif_config.wince.h: Added configuration header for WinCE.
2244	* libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
2245	* libtiff/tif_wince.c: Added WinCE-specific implementation of some
2246	functons from tif_win32.c.
2247	* libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
2248	* libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
2249	standard header files for Windows CE build.
2250	* tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
2251
22522006-11-19  Frank Warmerdam  <[email protected]>
2253
2254	* libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
2255	we move a strip.
2256	http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
2257
22582006-10-13  Andrey Kiselev  <[email protected]>
2259
2260	* libtiff/tif_dir.c: More fixes for vulnerabilities, reported
2261	in Gentoo bug ():
2262
2263	http://bugs.gentoo.org/show_bug.cgi?id=142383
2264
2265	* libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
2266	Though it is still far from the state of being working and useful.
2267
22682006-10-12  Andrey Kiselev  <[email protected]>
2269
2270	* libtiff/tif_fax3.c: Save the state of printdir codec dependent
2271	method.
2272
2273	* libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
2274	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
2275
2276	* libtiff/tif_win32.c: Fixed problem with offset value manipulation
2277	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
2278
2279	* libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
2280	vulnerabilities, reported in Gentoo bug ():
2281
2282	http://bugs.gentoo.org/show_bug.cgi?id=142383
2283
22842006-09-28  Andrey Kiselev  <[email protected]>
2285
2286	* libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
2287	vulnerabilities, as per	Gentoo bug ():
2288
2289	http://bugs.gentoo.org/show_bug.cgi?id=142383
2290
22912006-09-27  Frank Warmerdam  <[email protected]>
2292
2293	* libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
2294	encoding and decoding on the same read-write TIFF handle.  The LZW
2295	code can now maintain encode and decode state at the same time. The
2296	ZIP code will switch back and forth as needed.
2297	http://bugzilla.remotesensing.org/show_bug.cgi?id=757
2298
22992006-09-20  Frank Warmerdam  <[email protected]>
2300
2301	* libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
2302	tif_config.vc.h for easier identification by folks using an IDE.
2303
23042006-07-25  Frank Warmerdam  <[email protected]>
2305
2306	* tif_msdos.c: Avoid handle leak for failed opens.  c/o Thierry Pierron
2307
23082006-07-19  Frank Warmerdam  <[email protected]>
2309
2310	* tif_dirwrite.c: take care not to flush out buffer of strip/tile
2311	data in _TIFFWriteDirectory if TIFF_BEENWRITING not set.  Relates
2312	to bug report by Peng Gao with black strip at bottom of images.
2313
23142006-07-12  Frank Warmerdam  <[email protected]>
2315
2316	* tif_dirwrite.c: make sure to use uint32 for wordcount in
2317	TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
2318	It already seems to have been done for other field types.  Needed
2319	for "tiffset" on files with geotiff ascii text.
2320
23212006-07-04  Bob Friesenhahn  <[email protected]>
2322
2323	* {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
2324	(JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
2325	its use does not appear to be required, so use it only when it is
2326	available.
2327
23282006-06-24  Andrey Kiselev  <[email protected]>
2329
2330	* libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
2331
2332	* libtiff/tif_dirread.c: Move IFD fetching code in the separate
2333	function TIFFFetchDirectory() avoiding code duplication in
2334	TIFFReadDirectory() and TIFFReadCustomDirectory().
2335
23362006-06-19  Frank Warmerdam  <[email protected]>
2337
2338	* tools/tiff2pdf.c: Fix handling of -q values.
2339	http://bugzilla.remotesensing.org/show_bug.cgi?id=587
2340
23412006-06-17  Frank Warmerdam  <[email protected]>
2342
2343	* tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
2344	files.  Modified TIFFReadDirectory() to not invoke
2345	EstimateStripByteCounts() for case where entry 0 and 1 are unequal
2346	but one of them is zero.
2347	  http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
2348
23492006-06-08  Andrey Kiselev  <[email protected]>
2350
2351	* libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
2352	checking code in the separate function TIFFCheckDirOffset().
2353
2354	* libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
2355
2356	* tools/tiffcmp.c: Fixed floating point comparison logic as per bug
2357
2358	http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
2359
2360	* libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
2361
2362	http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
2363
2364	* tools/tiff2pdf.c: Fixed buffer overflow condition in
2365	t2p_write_pdf_string() as per bug
2366
2367	http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
2368
23692006-06-07  Andrey Kiselev  <[email protected]>
2370
2371	* {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
2372	support for JBIG compression scheme (34661 code) contributed by Lee
2373	Howard. As per bug
2374
2375	http://bugzilla.remotesensing.org/show_bug.cgi?id=896
2376
2377	* configure, configure.ac: OJPEG support enabled by default.
2378
2379	* contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
2380
23812006-06-03  Bob Friesenhahn  <[email protected]>
2382
2383	* libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
2384	TIFFPrintDirectory().  Joris Van Damme authored the fix.
2385
23862006-04-21  Andrey Kiselev  <[email protected]>
2387
2388	* tools/tiff2pdf.c: Unified line ending characters (always use '\n')
2389	as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
2390
2391	* README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
2392	tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
2393	Added support for OpenVMS by Alexey Chupahin, [email protected].
2394
23952006-04-20  Andrey Kiselev  <[email protected]>
2396
2397	* tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
2398	Properly set the binary mode for stdin stream as per bug
2399	http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
2400
2401	* man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
2402	raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
2403	tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1,	tiffdump.1, tiffgt.1,
2404	tiffset.1}: Improvements in page formatting as per bug
2405	http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
2406
2407	* html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
2408	typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
2409
24102006-04-18  Frank Warmerdam  <[email protected]>
2411
2412	* nmake.opt: use /EHsc for VS2005 compatibility.  Also define
2413	_CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
2414
24152006-04-12  Joris Van Damme  <[email protected]>
2416
2417	* libtiff/tif_getimage.c: Added support for planarconfig separate
2418	non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
2419
24202006-04-11  Joris Van Damme  <[email protected]>
2421
2422	* libtiff/tif_getimage.c: Revision of all RGB(A) put routines
2423	- Conversion of unassociated alpha to associated alpha now done with
2424	  more performant LUT, and calculation more correct
2425	- Conversion of 16bit data to 8bit data now done with
2426	  more performant LUT, and calculation more correct
2427	- Bugfix of handling of 16bit RGB with unassociated alpha
2428
24292006-04-11  Joris Van Damme  <[email protected]>
2430
2431	* libtiff/tif_getimage.c:
2432	- When there is no alpha, gtTileSeparate and gtStripSeparate allocated
2433	  buffer for alpha strile and filled it, only to never read it back.
2434	  Removed allocation and fill.
2435	- Minor rename of vars in gtTileSeparate and gtStripSeparate
2436	  anticipating planned functionality extension
2437
24382006-04-08  Joris Van Damme  <[email protected]>
2439
2440	* libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
2441	and pickTileSeparateCase to PickSeparateCase as both work on strips as
2442	well
2443
2444	* libtiff/tif_getimage.c: moved img->get selection from
2445	TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
2446	logical hook for planned functionality extension
2447
24482006-04-08  Joris Van Damme  <[email protected]>
2449
2450	* libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
2451	of inappropriate use of jpeg_abort instead of jpeg_destroy
2452
24532006-04-07  Joris Van Damme  <[email protected]>
2454
2455	* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
2456	gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
2457	on subsampled images - this ought to get sorted when we feel brave
2458	enough to replace TIFFScanlineSize alltogether
2459
2460	* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
2461
24622006-04-04  Joris Van Damme  <[email protected]>
2463
2464	* libtiff/tiffio.h: added new type tstrile_t
2465
2466	* libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
2467	to new tstrile_t, types of td_stripoffset and td_stripbytecount to
2468	toff_t*
2469
2470	* libtiff/tif_ojpeg.c: totally new implementation
2471
2472	* libtiff/tif_dirread.c: added several hacks to suit new support of
2473	OJPEG
2474
2475	* libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
2476	of OJPEG images in favor of tif_getimage.c native handling of
2477	YCbCr and desubsampling
2478
24792006-03-29  Frank Warmerdam  <[email protected]>
2480
2481	* libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
2482	interpretation causes the "upsampled" flag to be recomputed.  Fixes
2483	peculiar bug where photometric flag had to be set before jpegcolormode
2484	flag.
2485
24862006-03-25  Joris Van Damme  <[email protected]>
2487
2488	* libtiff/tif_jpeg.c: strip size related bugfix in encode raw
2489
2490	* libtiff/tif_strip.c: temporarilly added two new versions of
2491	TIFFScanlineSize
2492	  - TIFFNewScanlineSize: proposed new version, after all related
2493	    issues and side-effects are sorted out
2494	  - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
2495	This needs further sorting out.
2496
24972006-03-25  Joris Van Damme  <[email protected]>
2498
2499	* contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
2500	of last truncated strip data to TIFFWriteEncodedStrip
2501
25022006-03-25  Joris Van Damme  <[email protected]>
2503
2504	* libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
2505
25062006-03-25  Joris Van Damme  <[email protected]>
2507
2508	* libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
2509
2510	* libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
2511
2512	* libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
2513	prepare	the path for new tif_ojpeg.c
2514
25152006-03-23  Andrey Kiselev  <[email protected]>
2516
2517	* libtiff 3.8.2 released.
2518
2519	* tools/Makefile.am: Use runtime paths linker flags when rpath
2520	option enabled.
2521
25222006-03-21  Andrey Kiselev  <[email protected]>
2523
2524	* libtiff/libtiff.def: Added missed exports as per bug
2525	http://bugzilla.remotesensing.org/attachment.cgi?id=337
2526
2527	* contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
2528	tools/Makefile.vc: Makefiles improvements as per bug
2529	http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
2530
2531	* nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
2532	tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
2533	usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
2534
2535	* libtiff/tif_strip.c: Take subsampling in account when calculating
2536	TIFFScanlineSize().
2537
2538	* tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
2539
25402006-03-17  Andrey Kiselev  <[email protected]>
2541
2542	* tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
2543	http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
2544
2545	* tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
2546	http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
2547
25482006-03-16  Andrey Kiselev  <[email protected]>
2549
2550	* libtiff/tiffiop.h: Added decalration for
2551	_TIFFSetDefaultCompressionState().
2552
2553	* libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
2554	tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
2555	codec cleanup methods. As per bug
2556
2557	http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
2558
25592006-03-15  Andrey Kiselev  <[email protected]>
2560
2561	* libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
2562	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
2563
2564	* tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
2565	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
2566
2567	* libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
2568	removed; move here the STRIP_SIZE_DEFAULT macro definition.
2569
2570	* libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
2571	macro definition.
2572
2573	* libtiff/tif_dir.c: Use double type instead of dblparam_t.
2574
25752006-03-14  Andrey Kiselev  <[email protected]>
2576
2577	* libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
2578	in TIFFReadDirectory, because it is always set at the start of
2579	function and we allow TIFFs without that tag set.
2580
25812005-03-13  Andrey Kiselev  <[email protected]>
2582
2583	* libtiff 3.8.1 released.
2584
25852006-03-07  Andrey Kiselev  <[email protected]>
2586
2587	* libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
2588	function as per bug
2589	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2590
2591	* libtiff/tif_dirread.c: More wise check for integer overflow
2592	condition as per bug
2593	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2594
2595	* libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
2596	Properly restore setfield/getfield methods in cleanup functions. As
2597	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2598
25992006-03-03  Andrey Kiselev  <[email protected]>
2600
2601	* libtiff/{tif_predict.c, tif_predict.h}: Added new function
2602	TIFFPredictorCleanup() to restore parent decode/encode/field methods.
2603
2604	* libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
2605	TIFFPredictorCleanup() in codec cleanup methods. As per bug
2606
2607	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2608
2609	* libtiff/tif_dirread.c: Fixed integer overflow condition in
2610	TIFFFetchData() function. As per bug
2611
2612	http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
2613
26142006-03-01  Andrey Kiselev  <[email protected]>
2615
2616	* libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
2617	TIFFSetField() method, not directly. As per bug
2618
2619	http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
2620
2621	* tools/ppm2tiff.c: Added support for PBM files as per bug
2622	http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
2623
26242006-02-27  Andrey Kiselev  <[email protected]>
2625
2626	* libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
2627	to avoid crash as per bug
2628
2629	http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
2630
26312006-02-26  Andrey Kiselev  <[email protected]>
2632
2633	* tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
2634	t2p_sample_rgba_to_rgb() was used in place of each other, that was
2635	resulted in problems with RGBA images with associated alpha.
2636	As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
2637
26382006-02-23  Andrey Kiselev  <[email protected]>
2639
2640	* libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
2641	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2642
2643	* libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
2644	TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
2645	tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
2646
2647	* tools/tiff2ps.c: Properly scale all the pages when converting
2648	multipage TIFF with /width/height/center options set. As per bug
2649
2650	http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
2651
26522006-02-15  Andrey Kiselev  <[email protected]>
2653
2654	* tools/tiff2pdf.c: Do not create output file until all option checks
2655	will be done. As per bug
2656
2657	http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
2658
2659	* tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
2660	list of input files as per bug:
2661
2662	http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
2663
26642006-02-09  Andrey Kiselev  <[email protected]>
2665
2666	* libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
2667	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
2668
2669	* tools/tiffgt.c: Avoid crashing in case of image unsupported by
2670	TIFFRGBAImage interface.
2671
2672	* libtiff/tif_color.c: Avoid overflow in case of wrong input as per
2673	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
2674
26752006-02-07  Frank Warmerdam  <[email protected]>
2676
2677	* tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
2678	compressed TIFF files, per submission from Dan Cobra.
2679
26802006-02-07  Andrey Kiselev  <[email protected]>
2681
2682	* libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
2683	cast values to avoid warnings. As per bug
2684	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2685
2686	* libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
2687	appropriate. As per bug
2688	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2689
2690	* libtiff/tif_aux.c: Fixed type of temporary variable in
2691	_TIFFCheckMalloc() as per bug
2692	http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
2693
26942006-02-06  Andrey Kiselev  <[email protected]>
2695
2696	* libtiff/tif_aux.c: Return static array when fetching default
2697	YCbCrCoefficients (another problem, reported a the
2698	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
2699
27002006-02-03  Andrey Kiselev  <[email protected]>
2701
2702	* libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
2703	YCbCrSubsampling and DotRange tags as per bugs
2704
2705	http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
2706	http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
2707
2708	* libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
2709	_TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
2710
2711	http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
2712
27132006-01-23  Andrey Kiselev  <[email protected]>
2714
2715	* libtool related stuff updated from the 2.1a branch.
2716
27172006-01-11  Frank Warmerdam  <[email protected]>
2718
2719	* tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
2720	tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
2721	properly as per bug:
2722	http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
2723
27242006-01-09  Bob Friesenhahn  <[email protected]>
2725
2726	* configure.ac: Fix with_default_strip_size comparison as reported
2727	by Norihiko Murase.
2728
27292006-01-08  Bob Friesenhahn  <[email protected]>
2730
2731	* test/Makefile.am (LIBTIFF): Due to linking against libtiff
2732	incorrectly, tests were not actually testing the uninstalled
2733	libtiff.  Now they are.
2734
27352006-01-04  Andrey Kiselev  <[email protected]>
2736
2737	* libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
2738	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
2739	should be uint32 value.
2740
27412006-01-02  Bob Friesenhahn  <[email protected]>
2742
2743	* html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
2744	be used if build directory is not the same as source directory.
2745	* man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
2746	TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
2747	and re-sorted tag names in alphabetical order.
2748
27492005-12-29  Andrey Kiselev  <[email protected]>
2750
2751	* libtiff 3.8.0 released.
2752
27532005-12-28  Bob Friesenhahn  <[email protected]>
2754
2755	* tools/bmp2tiff.c (main): Fixed warning regarding returning
2756	inconsistent types from a condition.
2757	* tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
2758	format.
2759	* tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
2760
27612005-12-28  Joris Van Damme  <[email protected]>
2762
2763	* html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
2764
27652005-12-27  Andrey Kiselev  <[email protected]>
2766
2767	* libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
2768	windows.h, to reduce the compile time.
2769
27702005-12-26  Bob Friesenhahn  <[email protected]>
2771
2772	* libtiff/tif_jpeg.c: Improve compilation under MinGW.
2773
27742005-12-26  Andrey Kiselev  <[email protected]>
2775
2776	* libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
2777	tiffFieldInfo and exifFieldInfo arrays definitions moved back to
2778	tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
2779	private functions to retrieve FieldInfo arrays.
2780
27812005-12-24  Bob Friesenhahn  <[email protected]>
2782
2783	* html/build.html: Added some additional instructions for when
2784	building using MSVC under Windows.  Also fixed two HTML syntax
2785	errors and used HTML Tidy to tidy up the HTML syntax and
2786	formatting.
2787
27882005-12-24  Andrey Kiselev  <[email protected]>
2789
2790	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
2791	tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
2792	StoNits tags custom.
2793
27942005-12-23  Andrey Kiselev  <[email protected]>
2795
2796	* libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
2797	WhitePoint tag custom.
2798
2799	* libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
2800
28012005-12-23  Joris Van Damme  <[email protected]>
2802
2803	* libtiff/tiffio.h: fixed typo that potentially resulted in
2804	redefininition of USE_WIN32_FILEIO
2805
2806	* libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
2807	calls in core LibTiff.
2808
28092005-12-21  Andrey Kiselev  <[email protected]>
2810
2811	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
2812	Photoshop and ICCProfile tags custom.
2813
28142005-12-21  Joris Van Damme  <[email protected]>
2815
2816	* libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
2817	newer code to get context indicator in error handler and still
2818	remain compatible with older code: Done TIFFError calls everywhere
2819	except in tools
2820
28212005-12-20  Andrey Kiselev  <[email protected]>
2822
2823	* tools/tiffcp.c: Added many error reporting messages; fixed integer
2824	overflow as per bug
2825
2826	http://bugzilla.remotesensing.org/show_bug.cgi?id=789
2827
28282005-12-16  Frank Warmerdam  <[email protected]>
2829
2830	* contrib/addtiffo/*: Major upgrade by Joris to support subsampled
2831	YCbCr images in jpeg compressed TIFF files.
2832
28332005-12-14  Andrey Kiselev  <[email protected]>
2834
2835	* tools/tiffcp.c: Return non-zero status when reading fails (again).
2836
28372005-12-13  Andrey Kiselev  <[email protected]>
2838
2839	* tools/tiffcp.c: Return non-zero status when reading fails.
2840
28412005-12-12  Andrey Kiselev  <[email protected]>
2842
2843	* libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
2844
28452005-12-09  Andrey Kiselev  <[email protected]>
2846
2847	* libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
2848	custom.
2849
2850	* tools/tiffinfo.c: Print EXIF directory contents if exist.
2851
2852	* libtiff/tiff.h: Few EXIF tag numbers added.
2853
2854	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
2855	tiffio.h}: Preliminary support to read custom directories. New
2856	functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
2857
28582005-12-07  Andrey Kiselev  <[email protected]>
2859
2860	* libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
2861	More work to implement custom directory read support.
2862
2863	* libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
2864	tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
2865	tags custom.
2866
28672005-12-05  Andrey Kiselev  <[email protected]>
2868
2869	* libtiff/tif_dirread.c: One more workaround for broken
2870	StripByteCounts tag. Handle the case when StripByteCounts array filled
2871	with completely wrong values.
2872
28732005-11-30  Andrey Kiselev  <[email protected]>
2874
2875	* libtiff/tif_dirinfo.c: Release file descriptor in case of failure
2876	in the TIFFOpenW() function as per bug
2877
2878	http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
2879
2880	* libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind()
2881	functions as per bug
2882
2883	http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
2884
28852005-11-20  Frank Warmerdam  <[email protected]>
2886
2887	* tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
2888	for MS MDI format.
2889	http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
2890
2891	* .cvsignore: many files added, and a few update according
2892	to suggestion of Brad HArds on tiff mailing list.
2893
28942005-11-03  Frank Warmerdam  <[email protected]>
2895
2896	* libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
2897	public.
2898
28992005-10-31  Andrey Kiselev  <[email protected]>
2900
2901	* tools/fax2tiff.c: Properly calculate sizes of temporary arrays
2902	as per bug
2903
2904	http://bugzilla.remotesensing.org/show_bug.cgi?id=943
2905
2906	* tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
2907	as per bug
2908
2909	http://bugzilla.remotesensing.org/show_bug.cgi?id=944
2910
2911	* tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
2912	problem as per bug
2913
2914	http://bugzilla.remotesensing.org/show_bug.cgi?id=946
2915
2916	* tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
2917
2918	http://bugzilla.remotesensing.org/show_bug.cgi?id=965
2919
2920	* libtiff/tif_dirinfo.c: Make XResolution, YResolution and
2921	ResolutionUnit tags modifiable during write process. As per bug
2922
2923	http://bugzilla.remotesensing.org/show_bug.cgi?id=977
2924
2925	* tools/tiffsplit.c: Copy fax related fields over splitted parts
2926	as per bug
2927
2928	http://bugzilla.remotesensing.org/show_bug.cgi?id=983
2929
29302005-10-21  Frank Warmerdam  <[email protected]>
2931
2932	* tif_dirread.c: Don't try and split single strips into "0" strips
2933	in ChopUpSingleUncompressedStrip.  This happens in some degenerate
2934	cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
2935
29362005-10-20  Joris Van Damme  <[email protected]>
2937
2938	* tif_fax3.c: changed 'at scanline ...' style warning/errors
2939	with incorrect use of tif_row, to 'at line ... of
2940	strip/tile ...' style
2941
29422005-10-15  Frank Warmerdam  <[email protected]>
2943
2944	* tif_write.c: fixed setting of planarconfig as per bug report
2945	on the mailing list from Joris.
2946
29472005-10-07  Andrey Kiselev  <[email protected]>
2948
2949	* configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
2950	tif_dirread.c}: Make the default strip size configurable via the
2951	--with-default-strip-size and STRIP_SIZE_DEFAULT options.
2952
29532005-09-30  Bob Friesenhahn  <[email protected]>
2954
2955	* html/support.html: Fixed link to documentation on Greg Ward's
2956	LogLuv TIFF format.
2957
29582005-09-28  Andrey Kiselev  <[email protected]>
2959
2960	* tools/tiffdump.c: Fixed crash when reading malformed tags.
2961
29622005-09-20  Andrey Kiselev  <[email protected]>
2963
2964	* tools/tiff2pdf.c: Added missed 'break' statement as per bug
2965	http://bugzilla.remotesensing.org/show_bug.cgi?id=932
2966
29672005-09-12  Andrey Kiselev  <[email protected]>
2968
2969	* libtiff 3.7.4 released.
2970
2971	* {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
2972	from Patrick Welche (all scripts moved in the 'config' and 'm4'
2973	directories).
2974
29752005-09-12  Frank Warmerdam  <[email protected]>
2976
2977	* libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
2978
29792005-09-05  Frank Warmerdam  <[email protected]>
2980
2981	* libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
2982	also set it to NULL to avoid double free when re-setting custom
2983	string fields as per:
2984
2985	http://bugzilla.remotesensing.org/show_bug.cgi?id=922
2986
29872005-08-12  Frank Warmerdam  <[email protected]>
2988
2989	* libtiff/tif_print.c: avoid signed/unsigned warning.
2990
2991	* libtiff/tif_dirread.c: removed unused variable.
2992
29932005-07-30  Frank Warmerdam  <[email protected]>
2994
2995	* libtiff/tif_dir.c: Fixed up support for swapping "double complex"
2996	values (128 bits as 2 64 bits doubles).  GDAL gcore tests now
2997	pass on bigendian (macosx) system.
2998
29992005-07-28  Andrey Kiselev  <[email protected]>
3000
3001	* libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
3002	CheckMalloc() function to _TIFFCheckMalloc() and make it available
3003	globally as an internal helper routine.
3004
30052005-07-27  Andrey Kiselev  <[email protected]>
3006
3007	* libtiff/tif_dir.c: More improvements in the "pass by value" part of
3008	the custom tags handling code.
3009
30102005-07-26  Andrey Kiselev  <[email protected]>
3011
3012	* libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
3013	SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
3014	function, use TIFFFetchNormalTag() instead as per bug
3015
3016	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3017
3018	Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
3019	instead.
3020
3021	* libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
3022
3023	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3024
30252005-07-25  Andrey Kiselev  <[email protected]>
3026
3027	* libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
3028
3029	* tools/tiffdump.c: Added support for TIFF_IFD datatype.
3030
30312005-07-21  Andrey Kiselev  <[email protected]>
3032
3033	* libtiff/tif_write.c: Do not check the PlanarConfiguration field in
3034	the TIFFWriteCheck() function in case of single band images (as per
3035	TIFF spec).
3036
30372005-07-12  Andrey Kiselev  <[email protected]>
3038
3039	* SConstruct, libtiff/SConstruct: Added the first very preliminary
3040	support for SCons software building tool (http://www.scons.org/).
3041	This is experimental infrastructure and it will exist along with the
3042	autotools mechanics.
3043
30442005-07-07  Andrey Kiselev  <[email protected]>
3045
3046	* port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
3047	the NetBSD source tree (the old	4-clause BSD license changed to
3048	the new 3-clause one).
3049
3050	* configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
3051	replacement module.
3052
3053	* port/dummy.c: Make the dummy function static.
3054
30552005-07-06  Andrey Kiselev  <[email protected]>
3056
3057	* tools/tiffcp.c: Fixed WhitePoint tag copying.
3058
3059	* libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
3060	Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
3061	ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
3062
30632005-07-04  Andrey Kiselev  <[email protected]>
3064
3065	* libtiff 3.7.3 released.
3066
3067	* configure, configure.ac: Do not use empty -R option when linking
3068	with --enable-rpath.
3069
30702005-07-01  Andrey Kiselev  <[email protected]>
3071
3072	* libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
3073	reading the first IFD when needed. As per bug
3074
3075	http://bugzilla.remotesensing.org/show_bug.cgi?id=875
3076
3077	* libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
3078	effects.
3079
30802005-06-23  Andrey Kiselev  <[email protected]>
3081
3082	* tools/tiff2pdf.c: Print two characters per loop in the
3083	t2p_write_pdf_trailer(). As per bug
3084
3085	http://bugzilla.remotesensing.org/show_bug.cgi?id=594
3086
3087	* tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
3088	per bug
3089
3090	http://bugzilla.remotesensing.org/show_bug.cgi?id=844
3091
3092	* acinclude.m4: Updated to latest OpenGL test macros versions.
3093
3094	* libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
3095	platform. As per bug
3096
3097	http://bugzilla.remotesensing.org/show_bug.cgi?id=855
3098
30992005-06-14  Andrey Kiselev  <[email protected]>
3100
3101	* libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
3102	and YClipPathUnits tags.
3103
31042005-06-07  Andrey Kiselev  <[email protected]>
3105
3106	* contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
3107	use pixel sized shift in contigous case.
3108
31092005-06-06  Andrey Kiselev  <[email protected]>
3110
3111	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
3112	Make overviews working for contiguos images.
3113
31142005-06-03  Andrey Kiselev  <[email protected]>
3115
3116	* libtiff/tif_open.c: Replace runtime endianess check with the compile
3117	time one.
3118
3119	* libtiff/tif_predict.c: Floating point predictor now works on
3120	big-endian hosts.
3121
31222005-06-01  Andrey Kiselev  <[email protected]>
3123
3124	* libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
3125	ASCII values.
3126
3127	* libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
3128	DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
3129	Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
3130	TargetPrinter tags custom.
3131
3132	* libtiff/tif_jpeg.c: Cleanup the codec state depending on
3133	TIFF_CODERSETUP flag (to fix memry leaks).
3134
3135	* libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
3136	allocating.
3137
31382005-05-26  Andrey Kiselev  <[email protected]>
3139
3140	* configure.ac, libtiff/Makefile.am: Added workaround for
3141	OpenBSD/MirOS soname problem as per bug
3142
3143	http://bugzilla.remotesensing.org/show_bug.cgi?id=838
3144
3145	* libtiff/tif_dirwrite.c: Use tdir_count when calling
3146	TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
3147	per bug
3148
3149	http://bugzilla.remotesensing.org/show_bug.cgi?id=845
3150
31512005-05-25  Andrey Kiselev  <[email protected]>
3152
3153	* tools/ppm2tiff.c: Fixed format string when read PPM file header with
3154	the fscanf() function. As per bug
3155
3156	http://bugzilla.remotesensing.org/show_bug.cgi?id=861
3157
3158	* libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
3159	uint16 array when fetching the BYTE and SBYTE filds, so we should
3160	consider result as pointer to uint16 array and not as array of chars.
3161	As per bug
3162
3163	http://bugzilla.remotesensing.org/show_bug.cgi?id=831
3164
3165	* libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
3166
3167	http://bugzilla.remotesensing.org/show_bug.cgi?id=830
3168
3169	* libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
3170	mode in CreateFile() call as per bug
3171
3172	http://bugzilla.remotesensing.org/show_bug.cgi?id=829
3173
3174	* libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
3175	libtiffxx libraries as per bug
3176
3177	http://bugzilla.remotesensing.org/show_bug.cgi?id=826
3178
3179	* contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
3180	GDAL.
3181
31822005-05-23  Frank Warmerdam  <[email protected]>
3183
3184	* libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
3185	JPEG encoded TIFF files.  Pre-allocate lots of space for jpegtables
3186	in directory.
3187
31882005-05-22  Frank Warmerdam  <[email protected]>
3189
3190	* libtiff/tif_dirread.c: Changed the code that computes
3191	stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
3192	zero. This is a common case with GDAL indicating a "null" tile/strip.
3193
31942005-05-17  Andrey Kiselev  <[email protected]>
3195
3196	* tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
3197
31982005-05-06  Frank Warmerdam  <[email protected]>
3199
3200	* libtiff/tif_dirread.c: Applied similar change to
3201	TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
3202
3203	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3204
3205	* libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
3206
32072005-05-06  Andrey Kiselev  <[email protected]>
3208	* tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
3209	added new option '-b' to use interpolation in output PDF files (Bruno
3210	Ledoux).
3211
32122005-05-05  Frank Warmerdam  <[email protected]>
3213
3214	* libtiff/tif_dirread.c: Ensure that broken files with too many
3215	values in PerSampleShorts work ok instead of crashing.
3216
3217	http://bugzilla.remotesensing.org/show_bug.cgi?id=843
3218
32192005-04-27  Andrey Kiselev  <[email protected]>
3220
3221	* tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
3222	input file.
3223
32242005-04-15  Andrey Kiselev  <[email protected]>
3225
3226	* libtiff/tif_predict.c: Added ability to encode floating point
3227	predictor, as per TIFF Technical Note 3.
3228
32292005-04-14  Andrey Kiselev  <[email protected]>
3230
3231	* libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
3232	floating point predictor, as per TIFF Technical Note 3.
3233
32342005-04-13  Andrey Kiselev  <[email protected]>
3235
3236	* libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
3237	Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
3238	swap 24-bit floating point values.
3239
3240	* libtiff/tiff.h: Added predictor constants.
3241
32422005-04-08  Andrey Kiselev  <[email protected]>
3243
3244	* libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
3245	values in _TIFFVSetField() function. Inspired by the bug
3246
3247	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3248
3249	* man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
3250	as per bug
3251
3252	http://bugzilla.remotesensing.org/show_bug.cgi?id=816
3253
32542005-03-30  Andrey Kiselev  <[email protected]>
3255
3256	* libtiff/tif_open.c: Do not read header in case the output file
3257	should be truncated (Ron).
3258
3259	* libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
3260	of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
3261
3262	* libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
3263
32642005-03-22  Andrey Kiselev  <[email protected]>
3265
3266	* configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
3267	rpath option.
3268
32692005-03-21  Andrey Kiselev  <[email protected]>
3270
3271	* libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
3272	tags.
3273
32742005-03-18  Andrey Kiselev  <[email protected]>
3275
3276	* libtiff/dirinfo.c: Added DNG tags.
3277
3278	* libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
3279	handling code.
3280
3281	* libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
3282	added DNG 1.1.0.0 tags.
3283
3284	* tools/tif2pdf.c: Fixed problem with alpha channel handling as per
3285	bug
3286
3287	http://bugzilla.remotesensing.org/show_bug.cgi?id=794
3288
3289	* man/TIFFGetField.3tiff: Add a note about autoregistered tags.
3290
32912005-03-17  Andrey Kiselev  <[email protected]>
3292
3293	* nmake.opt: Build with Win32 CRT library by default.
3294
3295	* tools/tiff2ps.c: Fixed typo in page size handling code.
3296
3297	* libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
3298	by value.
3299
3300	* libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
3301
33022005-03-15  Andrey Kiselev  <[email protected]>
3303
3304	* libtiff 3.7.2 released.
3305
33062005-03-09  Andrey Kiselev  <[email protected]>
3307
3308	* tools/tiffcmp.c: Added ability to compare the 32-bit integer and
3309	floating point data; complain on unsupported bit depths.
3310
33112005-03-05  Andrey Kiselev  <[email protected]>
3312
3313	* tif_stream.cxx: Use ios namespace instead of ios_base to support
3314	GCC 2.95.
3315
3316	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
3317	Lee Howard for HylaFax DCS tag
3318	(see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
3319
33202005-03-04  Andrey Kiselev  <[email protected]>
3321
3322	* configure, configure.ac: Use -rpath option instead of -R as per bug
3323
3324	http://bugzilla.remotesensing.org/show_bug.cgi?id=732
3325
3326	* libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
3327	Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
3328	software. As per bug
3329
3330	http://bugzilla.remotesensing.org/show_bug.cgi?id=771
3331
3332	* nmake.opt, html/build.html: Add more comments, change the config
3333	file organization a bit as per bug
3334
3335	http://bugzilla.remotesensing.org/show_bug.cgi?id=764
3336
3337	* tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
3338	as per bug
3339
3340	http://bugzilla.remotesensing.org/show_bug.cgi?id=785
3341
33422005-03-03  Andrey Kiselev  <[email protected]>
3343
3344	* libtiff/tif_dirread.c: More logic to guess missed strip size as per
3345	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3346
3347	* tools/fax2ps.c: Replace insecure mktemp() function with the
3348	tmpfile() as per bug
3349
3350	http://bugzilla.remotesensing.org/show_bug.cgi?id=786
3351
33522005-02-04  Andrey Kiselev  <[email protected]>
3353
3354	* libtiff/tiff.h: Changed the int8 definition to be always signed char
3355	as per bug
3356
3357	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3358
3359	* libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
3360	block as per bug
3361
3362	http://bugzilla.remotesensing.org/show_bug.cgi?id=763
3363
33642005-02-03  Bob Friesenhahn  <[email protected]>
3365
3366	* tools/tiffgt.c: Fix problem on big-endian CPUs so that images
3367	display more correctly.  Images display brighter than they should
3368	on a Sun workstation.
3369
33702005-02-03  Andrey Kiselev  <[email protected]>
3371
3372	* libtiff/tif_dirread.c: Estimate strip size in case of wrong or
3373	suspicious values in the tags. As per bugs
3374
3375	http://bugzilla.remotesensing.org/show_bug.cgi?id=705
3376
3377	and
3378
3379	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
3380
3381	* tools/tiff2ps.c: Fixed problem with page sizes as per bug
3382
3383	http://bugzilla.remotesensing.org/show_bug.cgi?id=742
3384
33852005-01-31  Bob Friesenhahn  <[email protected]>
3386
3387	* libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
3388	(TIFFTAG_TILELENGTH): Corrected description.
3389
33902005-01-30  Andrey Kiselev  <[email protected]>
3391
3392	* configure.ac: Fixes for --with-docdir option as per bug
3393
3394	http://bugzilla.remotesensing.org/show_bug.cgi?id=759
3395
3396	* libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
3397	bug
3398
3399	http://bugzilla.remotesensing.org/show_bug.cgi?id=756
3400
3401	* libtiff/tif_stream.cxx: Fixes for C++ stream interface from
3402	Michael Rinne and Edward Lam.
3403
34042005-01-15  Andrey Kiselev  <[email protected]>
3405
3406	* configure.ac: Make the documentation directory location configurable
3407	via the --with-docdir option (as suggested by Jeremy C. Reed).
3408
3409	* libtiff/tif_color.c: Use double as the second argument of pow()
3410	function in TIFFCIELabToRGBInit(). As per bug
3411
3412	http://bugzilla.remotesensing.org/show_bug.cgi?id=741
3413
3414	* libtiff/tif_pixarlog.c: Avoid warnings when converting float to
3415	integer as per bug
3416
3417	http://bugzilla.remotesensing.org/show_bug.cgi?id=740
3418
3419	* libtiff/tif_getimage.c: Always fill the error message buffer in
3420	TIFFRGBAImageBegin() as per bug
3421
3422	http://bugzilla.remotesensing.org/show_bug.cgi?id=739
3423
34242005-01-12  Andrey Kiselev  <[email protected]>
3425
3426	* libtiff/tif_jpeg.c: Added ability to read/write the fax specific
3427	TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
3428	tags as per bug
3429
3430	http://bugzilla.remotesensing.org/show_bug.cgi?id=736
3431
3432	* libtiff/tif_win32.c: Fixed message formatting in functions
3433	Win32WarningHandler() and Win32ErrorHandler() as per bug
3434
3435	http://bugzilla.remotesensing.org/show_bug.cgi?id=735
3436
3437	* tools/tiff2ps.c: Interpret the -w and -h options independently. As
3438	per bug
3439
3440	http://bugzilla.remotesensing.org/show_bug.cgi?id=689
3441
34422005-01-11  Andrey Kiselev  <[email protected]>
3443
3444	* libtiff/tiffio.h: Move the color conversion routines in the 'extern
3445	"C"' section as per bug
3446
3447	http://bugzilla.remotesensing.org/show_bug.cgi?id=727
3448
3449	* libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
3450	compiler to avoid double definition of BSD types as per bug
3451
3452	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
3453
3454	* libtiff/Makefile.am: Place the C++ stream API in the separate
3455	library called libtiffxx to avoid unneeded dependencies. Probably
3456	there will be more C++ API in the future. As per bugs
3457
3458	http://bugzilla.remotesensing.org/show_bug.cgi?id=733
3459
3460	and
3461
3462	http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3463
34642005-01-05  Andrey Kiselev  <[email protected]>
3465
3466	* tools/tiffdump.c: Fixed problem when read broken TIFFs with the
3467	wrong tag counts (Dmitry V. Levin, Martin Pitt).
3468
3469	* configure.ac: Replace --disable-c++ with the --disable-cxx option as
3470	per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
3471
34722004-12-25  Andrey Kiselev  <[email protected]>
3473
3474	* libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
3475	RGB-images as per bug
3476
3477	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3478
3479
3480	* tools/tiffset.c: Convert character option to integer value as per
3481	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
3482
34832004-12-20  Andrey Kiselev  <[email protected]>
3484
3485	* libtiff 3.7.1 released.
3486
3487	* html/tiffset.1.html: Add missed manual page as per bug
3488
3489	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3490
3491	* libtiff/tiff.h: Revert back libtiff data type definitions as per
3492	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
3493
34942004-12-19  Andrey Kiselev  <[email protected]>
3495
3496	* libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
3497	checking for tag count in TIFFReadDirectory() function. As per bug
3498
3499	http://bugzilla.remotesensing.org/show_bug.cgi?id=713
3500
3501	* libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
3502	CheckMallock() function.
3503
3504	* libtiff/tif_getimage.c: Support for multiple-alpha-channelled
3505	RGB-images as per bug
3506
3507	http://bugzilla.remotesensing.org/show_bug.cgi?id=718
3508
35092004-12-15  Frank Warmerdam  <[email protected]>
3510
3511	* libtiff/tif_getimage.c: #define A1 bracketing for clean build on
3512	SunPro compiler.
3513
35142004-12-11  Bob Friesenhahn  <[email protected]>
3515
3516	* autogen.sh: aclocal and autoheader should be executed after
3517	libtoolize.  Also add '-I .' to aclocal invocation to check
3518	current directory for macros.
3519
35202004-12-10  Andrey Kiselev  <[email protected]>
3521
3522	* libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
3523	as per bugs
3524
3525	http://bugzilla.remotesensing.org/show_bug.cgi?id=703
3526
3527	and
3528
3529	http://bugzilla.remotesensing.org/show_bug.cgi?id=704
3530
35312004-12-04  Andrey Kiselev  <[email protected]>
3532
3533	* nmake.opt: Link with the user32.lib in windowed mode. As per bug
3534
3535	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3536
3537	* libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
3538	mode as per bug
3539
3540	http://bugzilla.remotesensing.org/show_bug.cgi?id=697
3541
3542	* libtiff/tif_config.in.vc: Removed unneded definitions for
3543	read/open/close/lseek functions to fix the
3544
3545	http://bugzilla.remotesensing.org/show_bug.cgi?id=680
3546
35472004-12-03  Andrey Kiselev  <[email protected]>
3548
3549	* libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
3550	call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
3551	must be removed in the future, as it was never used properly. As per
3552	bug
3553
3554	http://bugzilla.remotesensing.org/show_bug.cgi?id=692
3555
35562004-11-30  Bob Friesenhahn  <[email protected]>
3557
3558	* libtiff/tif_jpeg.c: Added a work-around in order to allow
3559	compilation with the heavily modified version of libjpeg delivered
3560	with Cygwin.
3561
35622004-11-29  Andrey Kiselev  <[email protected]>
3563
3564	* libtiff/tif_dir.c: Properly handle tags, which have the uint32
3565	counts. As per bug
3566
3567	http://bugzilla.remotesensing.org/show_bug.cgi?id=693
3568
3569	* tools/fax2ps.c: Be able to extract the first page (#0). As per bug
3570
3571	http://bugzilla.remotesensing.org/show_bug.cgi?id=690
3572
35732004-11-28  Andrey Kiselev  <[email protected]>
3574
3575	* libtiff/tif_unix.c: Make UNIX module compilable (and usable)
3576	on Windows.
3577
3578	* nmake.opt: Add missed DLLNAME variable.
3579
35802004-11-26  Frank Warmerdam  <[email protected]>
3581
3582	* libtiff/makefile.vc: make it easier to rename the libtiff DLL.
3583
35842004-11-24  Andrey Kiselev  <[email protected]>
3585
3586	* man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
3587	per bug
3588
3589	http://bugzilla.remotesensing.org/show_bug.cgi?id=545
3590
3591	* man/tiffset.1: Added manual page for tiffset tool written by Jay
3592	Berkenbilt. As per bug
3593
3594	http://bugzilla.remotesensing.org/show_bug.cgi?id=678
3595
35962004-11-23  Frank Warmerdam  <[email protected]>
3597
3598	* libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
3599
36002004-11-21  Frank Warmerdam  <[email protected]>
3601
3602	* html/document.html: Updated Adobe web links as per email from Joris.
3603
36042004-11-21  Andrey Kiselev  <[email protected]>
3605
3606	* libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
3607	file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
3608	use C++ streams should #include <tiffio.hxx>.
3609
36102004-11-13  Andrey Kiselev  <[email protected]>
3611
3612	* libtiff/tiff.h: Added Adobe DNG tags.
3613
3614	* libtiff/tif_win32.c: Typo fixed.
3615
3616	* libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
3617	be compliant with the latest standard. Appropriate additions in
3618	makefiles now completed.
3619
36202004-11-11  Andrey Kiselev  <[email protected]>
3621
3622	* tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
3623	different tag types. As per bug
3624
3625	http://bugzilla.remotesensing.org/show_bug.cgi?id=600
3626
36272004-11-10  Andrey Kiselev  <[email protected]>
3628
3629	* libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
3630	YCbCr image which lacks that tag (noted by Hans Petter Selasky).
3631
36322004-11-09  Andrey Kiselev  <[email protected]>
3633
3634	* libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
3635
36362004-11-07  Andrey Kiselev  <[email protected]>
3637
3638	* libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
3639	contributed by Edward Lam (see
3640	http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
3641	Though no changes in any makefiles yet.
3642
36432004-11-05  Frank Warmerdam  <[email protected]>
3644
3645	* libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
3646	is bad. This is the callers responsibility.
3647	http://bugzilla.remotesensing.org/show_bug.cgi?id=651
3648
36492004-11-05  Andrey Kiselev  <[email protected]>
3650
3651	* libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
3652	function to work with the double byte strings (used to represent
3653	filenames in some locales). As per bug
3654
3655	http://bugzilla.remotesensing.org/show_bug.cgi?id=625
3656
3657	* libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
3658	Compression tags of type LONG from broken TIFFS as per bug
3659
3660	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3661
3662	* libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
3663	the writecount should have uint32 type. As per bug
3664
3665	http://bugzilla.remotesensing.org/show_bug.cgi?id=662
3666
3667	* libtiff/tif_write.c: Fixed wrong if() statement in
3668	TIFFAppendToStrip() function as per bug
3669
3670	http://bugzilla.remotesensing.org/show_bug.cgi?id=660
3671
36722004-11-04  Andrey Kiselev  <[email protected]>
3673
3674	* libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
3675	field. The caller should supply a count when setting this field. As
3676	per bug
3677
3678	 http://bugzilla.remotesensing.org/show_bug.cgi?id=648
3679
3680	* libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
3681	uint32 count. Use this type everywhere.
3682
36832004-11-03  Frank Warmerdam  <[email protected]>
3684
3685	* libtiff/tif_next.c: avoid use of u_long and u_char types.  Bug 653.
3686
36872004-11-02  Frank Warmerdam  <[email protected]>
3688
3689	* tools/tiff2rgba.c: removed extra newlines in usage message.
3690
36912004-10-30  Andrey Kiselev  <[email protected]>
3692
3693	* libtiff/tif_dirwrite.c: Improvements in tag writing code.
3694
3695	* tools/tiff2ps.c: Fixed wrong variable data type when read Position
3696	tags (Tristan Hill).
3697
36982004-10-30  Frank Warmerdam  <[email protected]>
3699
3700	* libtiff/tiffiop.h: added fallback definition of assert() if we
3701	don't have assert.h.
3702
37032004-10-29  Andrey Kiselev  <[email protected]>
3704
3705	* libtiff/tif_fax3.c: Fixed case with the wrong decode routines
3706	choosing when the incorrect Group4Options tag set. As per bug
3707
3708	http://bugzilla.remotesensing.org/show_bug.cgi?id=323
3709
3710	* libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
3711	wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
3712	TIFFWriteNormalTag().
3713
37142004-10-28  Andrey Kiselev  <[email protected]>
3715
3716	* tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
3717	tags (Peter Fales).
3718
3719	* tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
3720
37212004-10-28  Frank Warmerdam  <[email protected]>
3722
3723	* tools/tiff2pdf.c: added casts to avoid warnings.
3724
3725	* libtiff/libtiff.def: Added several more entry points required
3726	to link fax2tiff.c against the DLL on windows.
3727
37282004-10-27  Andrey Kiselev  <[email protected]>
3729
3730	* configure, configure.ac: Added --enable-rpath option to embed linker
3731	paths into library binary.
3732
37332004-10-26  Andrey Kiselev  <[email protected]>
3734
3735	* tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
3736
3737	* libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
3738	(Vladimir Nadvornik, Dmitry V. Levin).
3739
37402004-10-16  Andrey Kiselev  <[email protected]>
3741
3742	* libtiff 3.7.0 released.
3743
37442004-10-15  Bob Friesenhahn  <[email protected]>
3745
3746	* libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
3747	in this file so its inclusion is removed.  Including stdio.h
3748	sometimes incurs an INT32 typedef conflict between MinGW's
3749	basetsd.h and libjpeg's jmorecfg.h.
3750
37512004-10-15  Andrey Kiselev  <[email protected]>
3752
3753	* man/bmp2tiff.1: Added manual page for bmp2tiff utility.
3754
37552004-10-13  Bob Friesenhahn  <[email protected]>
3756
3757	* tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
3758	conflict noticed under MinGW.
3759	* ltmain.sh: Fix for MinGW compilation.
3760
37612004-10-13  Frank Warmerdam  <[email protected]>
3762
3763	* man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
3764	http://bugzilla.remotesensing.org/show_bug.cgi?id=635
3765
37662004-10-12  Andrey Kiselev  <[email protected]>
3767
3768	* libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
3769	tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
3770	properly (Dmitry V. Levin, Marcus Meissner).
3771
37722004-10-11  Andrey Kiselev  <[email protected]>
3773
3774	* libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
3775	to TIFF_IFD.
3776
37772004-10-10  Andrey Kiselev  <[email protected]>
3778
3779	* tools/bmp2tif.c: Check the space allocation results.
3780
37812004-10-09  Andrey Kiselev  <[email protected]>
3782
3783	* libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
3784	of the TIFFDirectory structure with the 0 instead of -1 to avoid
3785	confusing integer overflows in TIFFTileRowSize() for striped images.
3786
3787	* tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
3788	by Ross A. Finlayson.
3789
3790	* libtiff/tif_dir.c: Fixed custom tags handling as per bug
3791
3792	http://bugzilla.remotesensing.org/show_bug.cgi?id=629
3793
37942004-10-08  Frank Warmerdam  <[email protected]>
3795
3796	* libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
3797	of tif_fieldinfo.
3798
3799	http://bugzilla.remotesensing.org/show_bug.cgi?id=630
3800
38012004-10-04  Bob Friesenhahn  <[email protected]>
3802
3803	* contrib/iptcutil/README: Added the missing README which goes
3804	along with iptcutil.
3805
38062004-10-03  Andrey Kiselev  <[email protected]>
3807
3808	* libtiff/tif_compress.c: Improved error reporting in
3809	TIFFGetConfiguredCODECs() (Dmitry V. Levin).
3810
38112004-10-02  Andrey Kiselev  <[email protected]>
3812
3813	* libtiff 3.7.0beta2 released.
3814
3815	* libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
3816	tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
3817	tif_pixarlog.c, tif_write.c}: Added checks for failed memory
3818	allocations and	integer overflows (Dmitry V. Levin).
3819
3820	* libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
3821
38222004-10-01  Frank Warmerdam  <[email protected]>
3823
3824	* libtiff/tif_open.c: added a more informative message if a BigTIFF
3825	file is opened.
3826
38272004-09-30  Frank Warmerdam  <[email protected]>
3828
3829	* libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
3830	TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
3831	in the Adobe XMP Specification.
3832
38332004-09-29  Andrey Kiselev  <[email protected]>
3834
3835	* libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
3836	memset().
3837
3838	* libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
3839	from Dmitry V. Levin to fix possible integer overflow problems.
3840
38412004-09-28  Andrey Kiselev  <[email protected]>
3842
3843	* libtiff/tif_getimage.c: Check for allocated buffers before clearing
3844	(Dmitry V. Levin).
3845
38462004-09-26  Andrey Kiselev  <[email protected]>
3847
3848	* libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
3849	Optimize checking for the strip bounds.
3850
3851	* libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
3852	TIFFRasterScanlineSize() functions report zero in the case of integer
3853	overflow now. Properly handle this case in TIFFReadDirectory()
3854	(patches from Dmitry V. Levin).
3855
38562004-09-25  Andrey Kiselev  <[email protected]>
3857
3858	* libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
3859	macro where appropriate.
3860
3861	* tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
3862	noted by Gennady Khokhorin.
3863
3864	* libtiff/tif_dirread.c: Always check the return values, returned
3865	by the _TIFFmalloc() (Dmitry V. Levin).
3866
3867	* libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
3868	functions (Dmitry V. Levin).
3869
3870	* libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
3871	Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
3872	TIFFGrowStrips() (found by Dmitry V. Levin).
3873
38742004-09-24  Andrey Kiselev  <[email protected]>
3875
3876	* libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
3877	to get the list of configured codecs.
3878
3879	* libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
3880	Dmitry V. Levin.
3881
38822004-09-23  Andrey Kiselev  <[email protected]>
3883
3884	* libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
3885	possible integer overflow in CheckMalloc() function.
3886
38872004-09-22  Andrey Kiselev  <[email protected]>
3888
3889	* libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
3890	of plain TIFFhowmany() where appropriate.
3891
38922004-09-21  Andrey Kiselev  <[email protected]>
3893
3894	* libtiff/tif_getimage.c: Initialize arrays after space allocation.
3895
38962004-09-19  Andrey Kiselev  <[email protected]>
3897
3898	* libtiff 3.7.0beta released.
3899
3900	* libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
3901	overruns fixed, as noted by Chris Evans.
3902
39032004-09-14  Bob Friesenhahn  <[email protected]>
3904
3905	* commit: Added a script to make it more convenient to commit
3906	updates.  The CVS commit message is extracted from this ChangeLog
3907	file.
3908
39092004-09-14  Andrey Kiselev  <[email protected]>
3910
3911	* configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
3912	tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
3913	tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
3914	tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
3915	tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
3916	tif_config.h.in, tiffiop.h}:
3917	Get rid of BSD data types (u_char, u_short, u_int, u_long).
3918
39192004-09-13  Bob Friesenhahn  <[email protected]>
3920
3921	* libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
3922	specification. Reference libtiff bug tracking system to submit
3923	private tag additions.
3924
39252004-09-12  Bob Friesenhahn  <[email protected]>
3926
3927	* tools/tiffgt.c: Include "tif_config.h".
3928
3929	* configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
3930	tiffgt.  This results in the 'compile' script being added to the
3931	project.
3932
3933	* tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
3934	required to find OpenGL headers necessary to build tiffgt.  Also
3935	ensure that the libtiff that we built is used rather than some other
3936	libtiff installed on the system.
3937
39382004-09-12  Andrey Kiselev  <[email protected]>
3939
3940	* configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
3941	libraries.
3942
39432004-09-11  Bob Friesenhahn  <[email protected]>
3944
3945	* configure.ac: Pass library configuration defines via
3946	tif_config.h rather than extending CPPFLAGS. Configure a
3947	libtiff/tiffconf.h in order to satisfy application requirements
3948	(not used by library build). Do not define _POSIX_C_SOURCE=2 since
3949	this causes failure to build on systems which properly respect
3950	this request.
3951
3952	* libtiff/tiffconf.h.in: New file to act as the template for the
3953	configured tiffconf.h
3954
3955	* libtiff/files.lst (HDRS): Install the configured tiffconf.h.
3956
39572004-09-10  Frank Warmerdam  <[email protected]>
3958
3959	* html/internals.html: Split off a discussion of adding new tags
3960	into addingtags.html.
3961
39622004-09-10  Andrey Kiselev  <[email protected]>
3963
3964	* test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
3965
3966	* tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
3967
3968	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
3969
3970	* libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
3971
3972	* libtiff/tif_dirread.c: Don't reject to read tags of the
3973	SamplesPerPixel size when the tag count is greater than number of
3974	samples as per bug
3975
3976	http://bugzilla.remotesensing.org/show_bug.cgi?id=576
3977
3978	* libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
3979	defining int8/uint8/... etc. types. As per bug
3980
3981	http://bugzilla.remotesensing.org/show_bug.cgi?id=607
3982
39832004-09-09  Frank Warmerdam  <[email protected]>
3984
3985	* tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
3986	to avoid compile warnings about getopt() and a few other things.
3987
39882004-09-02  Andrey Kiselev  <[email protected]>
3989
3990	* libtiff/tif_dirread.c: Use memcpy() function instead of pointer
3991	assigning magic in TIFFFetchFloat().
3992
39932004-09-01  Andrey Kiselev  <[email protected]>
3994
3995	* libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
3996	to avoid requirement for tiffiop.h inclusion in some applications. See
3997	here
3998
3999	http://www.asmail.be/msg0054799560.html
4000
4001	for details.
4002
4003	* tools/fax2tiff.c: Use the new functions in the code.
4004
40052004-08-25  Andrey Kiselev  <[email protected]>
4006
4007	* tools/tiff2pdf.c: Initialize arrays properly.
4008
4009	* tools/tiff2ps.c: Avoid zero division in setupPageState() function;
4010	properly initialize array in PSDataBW().
4011
40122004-08-24  Andrey Kiselev  <[email protected]>
4013
4014	* tools/tiff2pdf.c: More fixes for bug
4015
4016	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4017
4018	from Ross Finlayson.
4019
40202004-08-23  Andrey Kiselev  <[email protected]>
4021
4022	* tools/tiff2ps.c: Fixed problem with uninitialized values.
4023
4024	* libtiff/tif_dir.c: Initialize tif_foundfield data member in the
4025	TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
4026
4027	* tools/tiff2pdf.c: Fixed a bunch of problems as per bug
4028
4029	http://bugzilla.remotesensing.org/show_bug.cgi?id=590
4030
40312004-08-20  Andrey Kiselev  <[email protected]>
4032
4033	* tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
4034	that the input file has compression, photometric interpretation,
4035	etcetra, tags or if not than a more descriptive error is returned.
4036
4037	* libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
4038	code, responsible for tag data type checking.
4039
40402004-08-19  Andrey Kiselev  <[email protected]>
4041
4042	* libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
4043	variable as per bug
4044
4045	http://bugzilla.remotesensing.org/show_bug.cgi?id=593
4046
40472004-08-16  Andrey Kiselev  <[email protected]>
4048
4049	* tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
4050	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
4051
40522004-08-01  Andrey Kiselev  <[email protected]>
4053
4054	* libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
4055	config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
4056
40572004-07-24  Andrey Kiselev  <[email protected]>
4058
4059	* libtiff/tif_lzw.c: LZW compression code is merged back from the
4060	separate package. All libtiff tools are updated to not advertise an
4061	abcence of LZW support.
4062
40632004-07-12  Andrey Kiselev  <[email protected]>
4064
4065	* libtiff/tiffio.h: Revert thandle_t back to void* type.
4066
40672004-07-11  Andrey Kiselev  <[email protected]>
4068
4069	* libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
4070	messages, as suggested by Bernd Herd.
4071
40722004-07-03  Andrey Kiselev  <[email protected]>
4073
4074	* libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
4075	when setting custom tags by value. Reported by Eric Fieleke.
4076
40772004-06-14  Andrey Kiselev  <[email protected]>
4078
4079	* tools/bmp2tiff.c: Add missed RawsPerStrip setting.
4080
40812004-06-08  Andrey Kiselev  <[email protected]>
4082
4083	* tools/bmp2tiff.c: Added new utility to convert Windows BMP files
4084	into TIFFs.
4085
40862004-06-07  Andrey Kiselev  <[email protected]>
4087
4088	* libtiff 3.7.0alpha released.
4089
40902004-06-06  Andrey Kiselev  <[email protected]>
4091
4092	* libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
4093	of ugly 64-bit hacks, replace them with the clever (autoconf based )
4094	ones :-).
4095
4096	* libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
4097	problems in 64-bit environment).
4098
40992004-06-05  Andrey Kiselev  <[email protected]>
4100
4101	* tools/tiffset.c: tiffset now can set any libtiff supported tags.
4102	Tags can be supplied by the mnemonic name or number.
4103
4104	* libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
4105	functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
4106
41072004-05-27  Andrey Kiselev  <[email protected]>
4108
4109	* libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
4110	markers as per bug
4111
4112	http://bugzilla.remotesensing.org/show_bug.cgi?id=581
4113
41142004-05-24  Andrey Kiselev  <[email protected]>
4115
4116	* tools/tiffsplit.c: Don't forget to copy Photometric
4117	Interpretation tag.
4118
41192004-05-20  Andrey Kiselev  <[email protected]>
4120
4121	* libtiff/{tif_open.c, tiffio.h}: New function added:
4122	TIFFIsBigEndian(). Function returns nonzero if given was file written
4123	in big-endian order.
4124
4125	* tools/tiffsplit.c: Fixed problem with unproperly written multibyte
4126	files. Now output files will be written using the same byte order
4127	flag as	in the input image. See
4128
4129	http://bugzilla.remotesensing.org/show_bug.cgi?id=574
4130
4131	for details.
4132
41332004-05-19  Frank Warmerdam  <[email protected]>
4134
4135	* libtiff/tif_print.c: added (untested) support for printing
4136	SSHORT, SLONG and SRATIONAL fields.
4137
4138	* tools/tiffcp.c: close output file on normal exit.
4139
41402004-05-17  Andrey Kiselev  <[email protected]>
4141
4142	* libtiff/tif_fax3.c: Avoid reading CCITT compression options
4143	if compression type mismatches. See
4144
4145	http://bugzilla.remotesensing.org/show_bug.cgi?id=565
4146
41472004-04-30  Andrey Kiselev  <[email protected]>
4148
4149	* libtiff/tif_strip.c: Never return 0 from the
4150	TIFFNumberOfStrips().
4151
41522004-04-29  Andrey Kiselev  <[email protected]>
4153
4154	* libtiff/tif_dirread.c: Workaround for broken TIFF writers which
4155	store single SampleFormat value for multisampled images. See
4156
4157	http://bugzilla.remotesensing.org/show_bug.cgi?id=562
4158
41592004-04-25  Andrey Kiselev  <[email protected]>
4160
4161	* configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
4162	int16 and int32 types to avoid complains on some compilers. Details at
4163
4164	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4165
41662004-04-20  Andrey Kiselev  <[email protected]>
4167
4168	* tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
4169
4170	http://bugzilla.remotesensing.org/show_bug.cgi?id=555
4171
41722004-04-14  Andrey Kiselev  <[email protected]>
4173
4174	* libtiff/tif_write.c: Allow in-place updating of the compressed
4175	images (don't work properly with all codecs). For details see GDAL bug
4176
4177	http://bugzilla.remotesensing.org/show_bug.cgi?id=534
4178
41792004-04-06  Andrey Kiselev  <[email protected]>
4180
4181	* libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
4182	in the Intergarph JPEG compressed TIFF images as per bug:
4183
4184	http://bugzilla.remotesensing.org/show_bug.cgi?id=532
4185
41862004-04-04  Frank Warmerdam  <[email protected]>
4187
4188	* libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
4189	via bad2.
4190
41912004-03-26  Andrey Kiselev  <[email protected]>
4192
4193	* tools/tiffcp.c: Properly set Photometric Interpretation in case of
4194	JPEG compression of grayscale images.
4195
4196	* tools/tiffcp.c: Don't emit warnings when Orientation tag does not
4197	present in the input image.
4198
41992004-03-19  Andrey Kiselev  <[email protected]>
4200
4201	* {many}: The first attempt to switch to autotools.
4202
42032004-03-03  Andrey Kiselev  <[email protected]>
4204
4205	* libtiff/tif_open.c: Use dummy mmap/munmap functions in
4206	TIFFClientOpen() when the appropriate client functions was not
4207	supplied by user.
4208
42092004-03-02  Frank Warmerdam  <[email protected]>
4210
4211	* tools/ycbcr.c: fixed main() declaration as per:
4212	http://bugzilla.remotesensing.org/show_bug.cgi?id=513
4213
42142004-02-26  Andrey Kiselev  <[email protected]>
4215
4216	* tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
4217	images. Reported by Artem Mirolubov.
4218
4219	* libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
4220	tag type in TIFFFetchNormalTag() as per bug
4221
4222	http://bugzilla.remotesensing.org/show_bug.cgi?id=508
4223
42242004-02-17  Frank Warmerdam  <[email protected]>
4225
4226	* libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
4227	http://bugzilla.remotesensing.org/show_bug.cgi?id=494
4228
42292004-02-05  Andrey Kiselev  <[email protected]>
4230
4231	* libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
4232	bug
4233
4234	http://bugzilla.remotesensing.org/show_bug.cgi?id=483
4235
4236	But we need more work on fax codec to support update mode.
4237
42382004-01-30  Frank Warmerdam  <[email protected]>
4239
4240	* libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
4241	TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
4242	Scott Reynolds.
4243
42442004-01-29  Andrey Kiselev  <[email protected]>
4245
4246	* libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
4247	and TIFFTAG_INDEXED as per bug
4248
4249	http://bugzilla.remotesensing.org/show_bug.cgi?id=475
4250
4251	* libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
4252	NULL before proceeding further as per bug
4253
4254	http://bugzilla.remotesensing.org/show_bug.cgi?id=474
4255
4256	Check results, returned by the TIFFFdOpen() before returning and close
4257	file if TIFFFdOpen() failed as per bug
4258
4259	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4260
4261	* libtiff/tif_open.c: More fixes for
4262
4263	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4264
42652004-01-28  Andrey Kiselev  <[email protected]>
4266
4267	* libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
4268	TIFFCleanup() from the TIFFClose() in order to fix the bug
4269
4270	http://bugzilla.remotesensing.org/show_bug.cgi?id=468
4271
4272	* tools/tiffcp.c: Fixed problem with wrong interpretation of the
4273	InkNames tag as per bug
4274
4275	http://bugzilla.remotesensing.org/show_bug.cgi?id=466
4276
4277	Memory leak fixed.
4278
42792004-01-21  Frank Warmerdam  <[email protected]>
4280
4281	* libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
4282	are field_passcount=TRUE properly.  Arguably anonymous custom tags
4283	should be declared as passcount=FALSE, but I don't want to change
4284	that without a careful review.
4285
42862004-01-20  Andrey Kiselev  <[email protected]>
4287
4288	* libtiff/tif_write.c: Fixed reporting size of the buffer in case of
4289	stripped image in TIFFWriteBufferSetup(). As per bug
4290
4291	http://bugzilla.remotesensing.org/show_bug.cgi?id=460
4292
42932004-01-11  Andrey Kiselev  <[email protected]>
4294
4295	* libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
4296	patch from Gerben Koopmans.
4297
4298	* libtiff/tif_dirread.c: Check field_passcount value before setting
4299	the value of undefined type, patch from Gerben Koopmans.
4300
43012004-01-02  Andrey Kiselev  <[email protected]>
4302
4303	* tools/tiffcp.c: Fixed problem with wrong Photometric setting for
4304	non-RGB images.
4305
43062003-12-31  Andrey Kiselev  <[email protected]>
4307
4308	* libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
4309	pointer passed. Patch supplied by Larry Grill.
4310
4311	* libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
4312	suggested by Jeremy C. Reed.
4313
43142003-12-26  Andrey Kiselev  <[email protected]>
4315
4316	* libtiff 3.6.1 released.
4317
43182003-12-24  Andrey Kiselev  <[email protected]>
4319
4320	* config.guess, config.sub: Updated from the recent upstream.
4321
43222003-12-22  Andrey Kiselev  <[email protected]>
4323
4324	* libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
4325	More cleanups in color conversion interface, added appropriate manual
4326	page.
4327
43282003-12-19  Andrey Kiselev  <[email protected]>
4329
4330	* libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
4331	per bug
4332
4333	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4334
4335	* tools/tiff2ps.c: Added support for alpha channel. Fixes
4336
4337	http://bugzilla.remotesensing.org/show_bug.cgi?id=428
4338
4339	* libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
4340	Interface for Lab->RGB color conversion is finally cleaned up.
4341	Added support for ReferenceBlackWhite tag handling when converted from
4342	YCbCr color space. The latter closes
4343
4344	http://bugzilla.remotesensing.org/show_bug.cgi?id=120
4345
43462003-12-07  Andrey Kiselev  <[email protected]>
4347
4348	* libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
4349
4350	* libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
4351	library.
4352
43532003-12-06  Andrey Kiselev  <[email protected]>
4354
4355	* libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
4356	file and properly use it for CIE Lab->RGB transform.
4357
43582003-12-04  Andrey Kiselev  <[email protected]>
4359
4360	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
4361	conversion routines now in the tif_color.c module. New function
4362	TIFFYCbCrtoRGB() available in TIFF API.
4363
4364	* libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
4365
43662003-12-03  Andrey Kiselev  <[email protected]>
4367
4368	* libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
4369	CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
4370	module.
4371
4372	* libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
4373	TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
4374	Finally resolved problems with orientation handling. TIFFRGBAImage
4375	interface now properly supports all possible orientations, i.e. images
4376	will be flipped both in horizontal and vertical directions if
4377	required. 'Known bugs' section now removed from the appropriate manual
4378	pages. Closed bug entry:
4379
4380	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4381
43822003-12-02  Andrey Kiselev  <[email protected]>
4383
4384	* libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
4385	function calls as per bug
4386
4387	http://bugzilla.remotesensing.org/show_bug.cgi?id=440
4388
43892003-11-28 Ross Finlayson  <[email protected]>
4390
4391	* tools/tiff2pdf.c:  Some bugs fixed.
4392
43932003-11-27  Andrey Kiselev  <[email protected]>
4394
4395	* libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
4396	reported by Antonio Scuri.
4397
4398	* man/tiff2pdf.1: Few improvements in page layout.
4399
4400	* Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
4401	 Added support fpr tiff2pdf manual page.
4402
44032003-11-26 Ross Finlayson  <[email protected]>
4404
4405	* /man/tiff2pdf.1:  File added to repository.
4406
44072003-11-26  Andrey Kiselev  <[email protected]>
4408
4409	* Makefile.in, /tools/{Makefile.in, makefile.vc}:
4410	 Added support fpr tiff2pdf utility.
4411
44122003-11-25  Ross Finlayson  <[email protected]>
4413
4414	* /tools/tiff2pdf.c:  File added to repository.
4415
44162003-11-22  Andrey Kiselev  <[email protected]>
4417
4418	* /tools/raw2tiff.c: sqrtf() replaced with sqrt().
4419
44202003-11-21  Andrey Kiselev  <[email protected]>
4421
4422	* /tools/raw2tiff.c: #include <getopt.h> removed.
4423
4424	* tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
4425	sgigt utility removed and replaced with the completely rewritten
4426	portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
4427	there is a lot of things to improve.
4428
4429	* libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
4430	extract the fields from the OJPEG files. Patch supplied by Ross
4431	Finlayson.
4432
4433	* libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
4434	Added new function TIFFIsCODECConfigured(), suggested by Ross
4435	Finlayson.
4436
44372003-11-18  Andrey Kiselev  <[email protected]>
4438
4439	* libtiff/tif_dirinfo.c: Implemented binary search in
4440	_TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
4441
4442	* libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
4443	with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
4444
44452003-11-17  Frank Warmerdam  <[email protected]>
4446
4447	* tif_dirread.c: do not mark all anonymously defined tags to be
4448	IGNOREd.
4449
44502003-11-17  Andrey Kiselev  <[email protected]>
4451
4452	* contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
4453	TIFFDataWidth() function insted of tiffDataWidth array.
4454
44552003-11-16  Andrey Kiselev  <[email protected]>
4456
4457	* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
4458	datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
4459
44602003-11-15  Frank Warmerdam  <[email protected]>
4461
4462	* Makefile.in: fixed missing backslash for tif_color.c in list.
4463
44642003-11-13  Andrey Kiselev  <[email protected]>
4465
4466	* libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
4467	New color space conversion code: CIE L*a*b* 1976 images now supported
4468	by the TIFFRGBAImage interface. All introduced routines go to new
4469	module tif_color.c. Eventually all color conversion functions should
4470	be moved there.
4471
44722003-11-12  Andrey Kiselev  <[email protected]>
4473
4474	* tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
4475	with the reverse byte order (it is reported by the magic header
4476	field). Problem reported by Andreas Wiesmann.
4477
4478	* tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
4479	calculation function. Guessing mechanics now documented in manual page.
4480
44812003-11-11  Andrey Kiselev  <[email protected]>
4482
4483	* tools/raw2tiff.c: Implemented image size guessing using
4484	correlation coefficient calculation between two neighbour lines.
4485
44862003-11-09  Frank Warmerdam  <[email protected]>
4487
4488	* libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
4489	planarconfig_contig case in TIFFComputeTile().
4490
4491	http://bugzilla.remotesensing.org/show_bug.cgi?id=387
4492
44932003-11-09  Andrey Kiselev  <[email protected]>
4494
4495	* libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
4496
44972003-11-07  Andrey Kiselev  <[email protected]>
4498
4499	* libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
4500	Added TIFFRawStripSize() function as suggested by Chris Hanson.
4501
45022003-11-03  Andrey Kiselev  <[email protected]>
4503
4504	* libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
4505	per bug
4506
4507	http://bugzilla.remotesensing.org/show_bug.cgi?id=424
4508
45092003-10-29  Andrey Kiselev  <[email protected]>
4510
4511	* libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
4512
4513	* html/build.html: Added note about GNU make requirement.
4514
45152003-10-25  Andrey Kiselev  <[email protected]>
4516
4517	* Makefile.in: Fixes in using MAKEFLAGS as per bug
4518
4519	http://bugzilla.remotesensing.org/show_bug.cgi?id=418
4520
4521	* port/install.sh.in: Option -p added to the mkdir command to create
4522	all directory tree structure before installing.
4523
45242003-10-18  Andrey Kiselev  <[email protected]>
4525
4526	* /tools/tiff2ps.c: #include <strings.h> replaced with the
4527	#include <string.h>.
4528
45292003-10-16  Andrey Kiselev  <[email protected]>
4530
4531	* Makefile.in: Add an absolute path to the test_pics.sh call.
4532
45332003-10-12  Andrey Kiselev  <[email protected]>
4534
4535	* libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
4536	typedefs.
4537
45382003-10-09  Andrey Kiselev  <[email protected]>
4539
4540	* configure, libtiff/{Makefile.in, mkversion.c}:
4541	Relative buildings fixed.
4542
4543	* tools/Makefile.in: Added "-I../libtiff" to the tiffset building
4544	rule.
4545
45462003-10-07  Andrey Kiselev  <[email protected]>
4547
4548	* Makefile.in: Added missed v3.6.0.html.
4549
4550	* libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
4551	ORIENTATION_BOTLEFT.
4552
45532003-10-04  Andrey Kiselev  <[email protected]>
4554
4555	* 3.6.0 final release.
4556
45572003-10-03  Andrey Kiselev  <[email protected]>
4558
4559	* libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
4560	function TIFFReadRGBAImageOriented() implemented to retrieve raster
4561	array with user-specified origin position as suggested by Jason Frank.
4562	See
4563
4564	http://bugzilla.remotesensing.org/show_bug.cgi?id=322
4565
4566	for details.
4567
4568	* tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
4569	instead of TIFFReadRGBAImage().
4570
4571	* tools/tiff2ps.c: Fixed possible endless loop as per bug
4572
4573	http://bugzilla.remotesensing.org/show_bug.cgi?id=404
4574
45752003-09-30  Andrey Kiselev  <[email protected]>
4576
4577	* libtiff/tif_dirread.c: Check field counter against number of fields
4578	in order to fix
4579
4580	http://bugzilla.remotesensing.org/show_bug.cgi?id=366
4581
4582	* libtiff/tif_fax3.c: Fix wrong line numbering as per bug
4583
4584	http://bugzilla.remotesensing.org/show_bug.cgi?id=342
4585
45862003-09-25  Andrey Kiselev  <[email protected]>
4587
4588	* libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
4589	tif_close.c}: Store a list of opened IFD to prevent looping as per bug
4590
4591	http://bugzilla.remotesensing.org/show_bug.cgi?id=383
4592
45932003-09-23  Andrey Kiselev  <[email protected]>
4594
4595	* libtiff/tif_dirread.c: More fixes for	EstimateStripByteCounts(). See
4596
4597	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4598
45992003-08-21  Andrey Kiselev  <[email protected]>
4600
4601	* tools/tiffmedian.c: int declaration replaced with the uint32 to
4602	support large images as per bug
4603
4604	http://bugzilla.remotesensing.org/show_bug.cgi?id=382
4605
46062003-08-12  Andrey Kiselev  <[email protected]>
4607
4608 	* libtiff/Makefile.in: Fixed problem with building in different
4609	directory.
4610
4611	* tools/tiff2ps.c: Added missing #include <strings.h>.
4612
4613	* libtiff/tif_dirwrite.c: More fixes for custom tags code
4614	from Ashley Dreier.
4615
46162003-08-07  Andrey Kiselev  <[email protected]>
4617
4618	* tools/tiff2ps.c: Added page size setting when creating PS Level 2.
4619	Patch submitted by Balatoni Denes (with corrections from Tom
4620	Kacvinsky).
4621
4622	* tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
4623	being used. Reported by Tom Kacvinsky.
4624
4625	* libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
4626	reported by Ashley Dreier.
4627
4628	* libtiff/tif_print.c: Fixed problem with float tags reading, support
4629	for printing RATIONAL and BYTE tags added.
4630
46312003-08-05  Andrey Kiselev  <[email protected]>
4632
4633	* libtiff/tif_lzw.c: Move LZW codec state block allocation back to
4634	TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
4635	problems with predictor initialization. Remove O_RDONLY check during
4636	state block allocation to be able open LZW compressed files in update
4637	mode.
4638
4639	Problem exist for libtiff version of the tif_lzw.c module. One from
4640	lzw-compression-kit hasn't such troubles.
4641
46422003-08-04  Frank Warmerdam  <[email protected]>
4643
4644	* libtiff/tif_write.c: modified tif_write.c so that the various
4645	encoded write functions use tif_postdecode() to apply byte order
4646	swapping (swab) to the application passed data buffer if the same
4647	would be done when reading.  This allows us to write pixel data with
4648	more than 8 bits per sample to existing files of a non-native byte
4649	order.  One side effect of this change is the applications buffer
4650	itself is altered in this case by the act of writing.
4651
4652	http://bugzilla.remotesensing.org/show_bug.cgi?id=171
4653
46542003-07-25  Frank Warmerdam  <[email protected]>
4655
4656	* libtiff/tif_open.c: avoid signed/unsigned casting warning
4657	initializing typemask as per patch from J.A. Strother.
4658
4659	* tools/tiffcp.c: fixed signed/unsigned casting warning.
4660
4661	* libtiff/tif_print.c: dos2unix conversion.
4662
4663	* tools/tiffsplit.c: increased the maximum number of pages that
4664	can be split.  Patch provided by Andrew J. Montalenti.
4665
46662003-07-11  Andrey Kiselev  <[email protected]>
4667
4668	* tools/raw2tiff.c: Added option `-p' to explicitly select color
4669	space of input image data. Closes
4670
4671	http://bugzilla.remotesensing.org/show_bug.cgi?id=364
4672
46732003-07-08  Frank Warmerdam  <[email protected]>
4674
4675	* tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
4676	tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
4677	tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
4678	avoid casting warning at /W4.
4679
46802003-07-03  Andrey Kiselev  <[email protected]>
4681
4682	* tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
4683
46842003-06-30  Andrey Kiselev  <[email protected]>
4685
4686	* libtiff/tif_pixarlog.c: Unused variables removed.
4687
4688	* libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
4689	EstimateStripByteCounts() as per bug
4690
4691	http://bugzilla.remotesensing.org/show_bug.cgi?id=358
4692
4693	* libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
4694	64-bit architectures as per bug
4695
4696	http://bugzilla.remotesensing.org/show_bug.cgi?id=357
4697
4698	* libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
4699	unknown data type.
4700
47012003-06-19  Frank Warmerdam  <[email protected]>
4702
4703	* libtiff/tif_print.c: fixed some serious bugs when printing
4704	custom tags ... almost certain to crash.
4705
4706	* libtiff/tif_dirread.c: Don't ignore custom fields that are
4707	autodefined.  Not sure how this got to be like this.
4708
47092003-06-18  Andrey Kiselev  <[email protected]>
4710
4711	* 3.6.0 Beta2 released.
4712
4713	* tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
4714	comparing as per bug
4715
4716	http://bugzilla.remotesensing.org/show_bug.cgi?id=349
4717
4718	`-z' option now can be used to set the number of reported different
4719	bytes.
4720
47212003-06-09  Andrey Kiselev  <[email protected]>
4722
4723	* tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
4724	to -r option to get the entire image as one strip. See
4725
4726	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4727
4728	for details.
4729
47302003-06-04  Andrey Kiselev  <[email protected]>
4731
4732	* tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
4733	values as per bug
4734
4735	http://bugzilla.remotesensing.org/show_bug.cgi?id=343
4736
47372003-05-27  Frank Warmerdam  <[email protected]>
4738
4739	* libtiff/tif_jpeg.c: modified segment_height calculation to always
4740	be a full height tile for tiled images.  Also changed error to just
4741	be a warning.
4742
47432003-05-25  Andrey Kiselev  <[email protected]>
4744
4745	* tools/fax2tiff.c: Page numbering fixed, as per bug
4746
4747	http://bugzilla.remotesensing.org/show_bug.cgi?id=341
4748
47492003-05-20  Andrey Kiselev  <[email protected]>
4750
4751	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4752	configure, Makefile.in:	Switched back to the old behaviour. Likely
4753	better solution should be found for OJPEG support.
4754
47552003-05-11  Andrey Kiselev  <[email protected]>
4756
4757	* libtiff/mkversion.c: Fixed problem with wrong string size when
4758	reading RELEASE-DATE file.
4759
47602003-05-07  Andrey Kiselev  <[email protected]>
4761
4762	* tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
4763	index was out of range.
4764
47652003-05-06  Andrey Kiselev  <[email protected]>
4766
4767	* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
4768	configure, Makefile.in:	Improved libtiff compilation with OJPEG
4769	support. Now no need for patching IJG JPEG library, hack requred by
4770	libtiff will be compiled and used in-place. Implemented with
4771	suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
4772
4773	* libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
4774	TIFFVGetFieldDefaulted() function.
4775
47762003-05-05  Andrey Kiselev  <[email protected]>
4777
4778	* tools/ppm2tiff.c: PPM header parser improved: now able to skip
4779	comments.
4780
4781	* tools/tiffdither.c: Fixed problem with bit fill order tag setting:
4782	was not copied from source image.
4783
4784	* libtiff/getimage.c: Workaround for some images without correct
4785	info about alpha channel as per bug
4786
4787	http://bugzilla.remotesensing.org/show_bug.cgi?id=331
4788
47892003-04-29  Andrey Kiselev  <[email protected]>
4790
4791	* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
4792	It basically allows one to use the /flateDecode filter for ZIP
4793	compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
4794
4795	http://bugzilla.remotesensing.org/show_bug.cgi?id=328
4796
4797	* tools/tiff2ps.c: Force deadzone printing when EPS output specified
4798	as per bug
4799
4800	http://bugzilla.remotesensing.org/show_bug.cgi?id=325
4801
48022003-04-17  Andrey Kiselev  <[email protected]>
4803
4804	* libtiff/tif_dirread.c: Removed additional check for StripByteCounts
4805	due to problems with multidirectory images. Quality of error messages
4806	improved.
4807
48082003-04-16  Andrey Kiselev  <[email protected]>
4809
4810	* tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
4811	encoded images. See bug entries
4812
4813	http://bugzilla.remotesensing.org/show_bug.cgi?id=275
4814
4815	and
4816
4817	http://bugzilla.remotesensing.org/show_bug.cgi?id=23
4818
4819	* libtiff/tif_dirread.c: Additional check for StripByteCounts
4820	correctness. Fixes
4821
4822	http://bugzilla.remotesensing.org/show_bug.cgi?id=320
4823
48242003-03-12  Andrey Kiselev  <[email protected]>
4825
4826	* tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
4827	ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
4828	tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
4829	tiffmedian.c}: Added library version reporting facility to all tools.
4830
48312003-03-06  Frank Warmerdam  <[email protected]>
4832
4833	* port/install.sh.in: Fixed problems with install producing paths
4834	like ///usr/local/lib on cygwin.
4835
48362003-02-27  Andrey Kiselev  <[email protected]>
4837
4838	* tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
4839	raw input page. Patch supplied by Julien Gaulmin. See
4840
4841	http://bugzilla.remotesensing.org/show_bug.cgi?id=293
4842
4843	for details.
4844
48452003-02-26  Frank Warmerdam  <[email protected]>
4846
4847	* libtiff/tif_dir.c: fixed up the tif_postdecode settings
4848	responsible for byte swapping complex image data.
4849
4850	* libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
4851	LZWSetupDecode().  Needed to read LZW files in "r+" mode.
4852
48532003-02-07  Andrey Kiselev  <[email protected]>
4854
4855	* tools/ppm2tiff.c: Fixed problem with too many arguments.
4856
48572003-02-04  Andrey Kiselev  <[email protected]>
4858
4859	* tools/raw2tiff.c: Memory leak fixed.
4860
48612003-02-03  Andrey Kiselev  <[email protected]>
4862
4863	* tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
4864	(thanks, Julien!). More switches for fax2tiff tool for better control
4865	of input and output. Details at
4866
4867	http://bugzilla.remotesensing.org/show_bug.cgi?id=272
4868
48692003-02-03  Frank Warmerdam  <[email protected]>
4870
4871	* libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
4872	library so that we can check if there is already any tile/strip data
4873	before deciding between creating a compressor or a decompressor.
4874
48752003-01-31  Frank Warmerdam  <[email protected]>
4876
4877	* libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
4878	a pre-existing compressed image.  That is, image writing to
4879	pre-existing compressed images is not allowed.
4880
4881	* libtiff/tif_open.c: Removed error if opening a compressed file
4882	in update mode.
4883
4884	http://bugzilla.remotesensing.org/show_bug.cgi?id=198
4885
48862003-01-31  Andrey Kiselev  <[email protected]>
4887
4888	* config.guess, config.sub: Updated to recent upstream versions.
4889
48902003-01-15  Frank Warmerdam  <[email protected]>
4891
4892	* cut 3.6.0 Beta release.
4893
48942002-12-20  Andrey Kiselev  <[email protected]>
4895
4896	* tools/fax2ps.c, man/fax2ps.1: Page size was determined
4897	in wrong way as per bug
4898
4899	http://bugzilla.remotesensing.org/show_bug.cgi?id=239
4900
49012002-12-17  Frank Warmerdam  <[email protected]>
4902
4903	* libtiff/tif_dirread.c: Allow wrong sized arrays in
4904	TIFFFetchStripThing().
4905
4906	http://bugzilla.remotesensing.org/show_bug.cgi?id=49
4907
49082002-12-02  Frank Warmerdam  <[email protected]>
4909
4910	* libtiff/tif_dir.c: fix problem with test on td_customValueCount.
4911	Was using realloc even first time.  Fix by Igor Venevtsev.
4912
49132002-11-30  Frank Warmerdam  <[email protected]>
4914
4915	* libtiff/tif_dir.c: fixed bug with resetting an existing custom
4916	field value.
4917
4918	* libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
4919	tags in TIFFVGetField() ... added missing break.
4920
49212002-10-14  Frank Warmerdam  <[email protected]>
4922
4923	* tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
4924	the scanline buffer long enough when writing rgb triplets.
4925	The scanline needs to be 3 X the number of dots or else it will
4926	contain	an incomplete triplet and programs that try to separate
4927	the eps by redefining the colorimage operator will get messed up.
4928	Patch supplied by William Bader.
4929
4930	* Makefile.in: added tif_extension.c to file list as per
4931	http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
4932
49332002-10-11  Andrey Kiselev  <[email protected]>
4934
4935	* configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
4936	large files (>2GiB) supporting. New option in the config.site:
4937	LARGEFILE="yes". Should be enough for I/O of the large files.
4938
49392002-10-10  Frank Warmerdam  <[email protected]>
4940
4941	* libtiff/html/v3.6.0.html: new release notes.
4942
4943	* libtiff/index.html: removed faq, cvs snapshot cruft.  Added email
4944	link for Andrey.  Pointer to v3.6.0.html.
4945
4946	* libtiff/Makefile.in: added direct rule for tiffvers.h for release.
4947
49482002-10-07  Andrey Kiselev  <[email protected]>
4949	* tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
4950	(thanks, Sebastian!). New switches:
4951	-b # for a bottom margin of # inches
4952	-c   center image
4953	-l # for a left margin of # inches
4954	-r   rotate the image by 180 degrees
4955	New features merged with code for shrinking/overlapping.
4956	Previously added -c and -n switches (for overriding PS units) renamed
4957	in -x and -y respectively.
4958
4959	http://bugzilla.remotesensing.org/show_bug.cgi?id=200
4960
4961	* html/man/*.html: Updated from actual manual pages.
4962
49632002-10-06  Frank Warmerdam  <[email protected]>
4964
4965	* libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
4966	size on windows.  Use #define boolean hack.
4967
4968	http://bugzilla.remotesensing.org/show_bug.cgi?id=188
4969
4970	* libtiff/tiff.h: Don't do special type handling in tiff.h unless
4971	USING_VISUALAGE is defined.
4972
4973	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
4974
49752002-10-03  Frank Warmerdam  <[email protected]>
4976
4977	* libtiff/tiff.h: added COMPRESSION_JP2000.
4978
49792002-10-02  Andrey Kiselev  <[email protected]>
4980
4981	* libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
4982	by the TIFFFetchByteArray() function. Should finally resolve
4983
4984	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
4985
4986	* configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
4987
4988	* html/Makefile.in: New targets added: html and groffhtml for
4989	producing HTML representations of the manual pages automatically.
4990	html target uses man2html tool, groffhtml uses groff tool.
4991
49922002-09-29  Frank Warmerdam  <[email protected]>
4993
4994	* configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
4995	from John H. DuBois III.
4996
49972002-09-15  Andrey Kiselev  <[email protected]>
4998
4999	* Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
5000	manual page for raw2tiff(1) tool.
5001
50022002-09-12  Andrey Kiselev  <[email protected]>
5003
5004	* /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
5005	the tiffio.h header file.
5006
5007	* Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
5008	manual page for TIFFDataWidth() function
5009
50102002-09-08  Frank Warmerdam  <[email protected]>
5011
5012	* libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
5013	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
5014
5015	* tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
5016	since we are unable to properly include the amount to skip.
5017
5018	http://bugzilla.remotesensing.org/show_bug.cgi?id=80
5019
50202002-09-02  Andrey Kiselev  <[email protected]>
5021
5022	* /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
5023	in TIFFFetchByteArray(). Problem described at
5024	http://bugzilla.remotesensing.org/show_bug.cgi?id=52
5025
50262002-08-22  Andrey Kiselev  <[email protected]>
5027
5028	* /libtiff/tif_dirinfo.c: Further additions to free custom fields
5029	in _TIFFSetupFieldInfo() function.
5030	See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
5031
5032	* /libtiff/tif_lzw.c: Additional consistency checking added in
5033	LZWDecode() and LZWDecodeCompat().
5034	Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
5035	and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5036
5037	* /libtiff/tif_lzw.c:
5038	Added check for valid code lengths in LZWDecode() and
5039	LZWDecodeCompat(). Fixes
5040	http://bugzilla.remotesensing.org/show_bug.cgi?id=115
5041
50422002-08-16  Andrey Kiselev  <[email protected]>
5043
5044	* /libtiff/{Makefile.vc, libtiff.def}:
5045	Missed declarations added.
5046
50472002-08-15  Frank Warmerdam  <[email protected]>
5048
5049	* tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
5050	return code from the underlying pick function.
5051
5052	http://bugzilla.remotesensing.org/show_bug.cgi?id=177
5053
5054	* tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
5055	with FIELD_CUSTOM as mentioned in bug 169.
5056
5057	* tif_close.c: added logic to free dynamically created anonymous
5058	field definitions to correct a small memory leak.
5059
5060	http://bugzilla.remotesensing.org/show_bug.cgi?id=169
5061
50622002-08-10  Andrey Kiselev  <[email protected]>
5063
5064	* /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
5065	New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
5066
50672002-07-31  Frank Warmerdam  <[email protected]>
5068
5069	* libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
5070	JPEGDecode() as per bugzilla bug (issue 1):
5071
5072	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5073
5074	* libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
5075	fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
5076	present in the tiff tags.
5077
5078	http://bugzilla.remotesensing.org/show_bug.cgi?id=168
5079
5080	* libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
5081	TIFFWriteScanline() now set tif_row explicitly in case the codec has
5082	fooled with the value.
5083
5084	http://bugzilla.remotesensing.org/show_bug.cgi?id=129
5085
50862002-06-22  Andrey Kiselev  <[email protected]>
5087
5088	* /tools/tiff2ps.c: Added workaround for some software that may crash
5089	when last strip of image contains fewer number of scanlines than
5090	specified by the `/Height' variable. See
5091	http://bugzilla.remotesensing.org/show_bug.cgi?id=164
5092	for explanation.
5093
50942002-06-21  Andrey Kiselev  <[email protected]>
5095
5096	* tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
5097	splitting long images in several pages. See
5098	http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
5099	Patch granted by John Williams <[email protected]>.
5100
51012002-06-11  Frank Warmerdam  <[email protected]>
5102
5103	* libtiff/contrib/win95: renamed to contrib/win_dib.  Added new
5104	Tiffile.cpp example of converting TIFF files into a DIB on Win32.
5105	This one is described in:
5106
5107	http://bugzilla.remotesensing.org/show_bug.cgi?id=143
5108
5109	* libtiff/tif_ojpeg.c: Major upgrade from Scott.  See details at:
5110
5111	http://bugzilla.remotesensing.org/show_bug.cgi?id=156
5112
51132002-05-10  Andrey Kiselev  <[email protected]>
5114
5115	* tools/tiff2ps: New commandline switches to override resolution
5116	units obtained from the input file. Closes
5117	http://bugzilla.remotesensing.org/show_bug.cgi?id=131
5118
51192002-04-26  Andrey Kiselev  <[email protected]>
5120
5121	* libtiff/libtiff.def: Added missed declaration.
5122
51232002-04-22  Andrey Kiselev  <[email protected]>
5124
5125	* tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
5126	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
5127
51282002-04-20  Andrey Kiselev  <[email protected]>
5129
5130	* libtiff/tif_open.c: Pointers to custom procedures
5131	in TIFFClientOpen() are checked to be not NULL-pointers.
5132
51332002-04-18  Andrey Kiselev  <[email protected]>
5134
5135	* libtiff/libtiff.def: Added missed declarations.
5136
5137	* libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
5138
51392002-04-16  Andrey Kiselev  <[email protected]>
5140
5141	* libtiff/tif_lzw.c: Additional checks for data integrity introduced.
5142	Should finally close
5143	http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5144
51452002-04-10  Andrey Kiselev  <[email protected]>
5146
5147	* tools/tiff2ps: Division by zero fixed.
5148	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
5149
51502002-04-09  Andrey Kiselev  <[email protected]>
5151
5152	* libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
5153	TIFFCheckpointDirectory() routine added.
5154	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
5155
5156	* man/: TIFFWriteDirectory.3t,  Makefile.in: Added description
5157	for the new function.
5158
51592002-04-08  Andrey Kiselev  <[email protected]>
5160
5161	* libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
5162	additional members tif->tif_decodestatus and tif->tif_encodestatus
5163	for correct handling of unconfigured codecs (we should not try to read
5164	data or to define data size without correct codecs).
5165
5166	* libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
5167	changed. Now it has used tif->tif_decodestatus and
5168	tif->tif_encodestatus.
5169	Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
5170	case of __cvs_8.tif test image).
5171
5172	* libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
5173	tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
5174	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
5175	of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
5176
51772002-04-04  Andrey Kiselev  <[email protected]>
5178
5179	* libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
5180	replaced by warnings. Now libtiff should read corrupted LZW-compressed
5181	files by skipping bad strips.
5182	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
5183
51842002-04-03  Frank Warmerdam  <[email protected]>
5185
5186	* libtiff/tif_dirwrite.c: Removed some dead code.
5187
5188	* libtiff/*: Cleanup some warnings.
5189
5190	* libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
5191	for variable length FIELD_CUSTOM values.  Was int * but should be
5192	u_short *.
5193
51942002-04-01  Andrey Kiselev  <[email protected]>
5195
5196	* tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
5197	utility (at cpStripToTile routine).
5198
51992002-03-27  Frank Warmerdam  <[email protected]>
5200
5201	* tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
5202
5203	http://bugzilla.remotesensing.org/show_bug.cgi?id=111
5204
5205	* tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
5206	passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
5207
5208	* libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
5209	that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
5210
52112002-03-26  Dwight Kelly  <[email protected]>
5212
5213	* libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5214	tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
5215	in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
5216	INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
5217	CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
5218	INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
5219
52202002-03-26  Andrey Kiselev  <[email protected]>
5221
5222	* libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
5223	now also uses TIFFRGBAImageOK before reading. This is additional fix
5224	for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5225
52262002-03-25  Andrey Kiselev  <[email protected]>
5227
5228	* libtiff/: tif_getimage.c: Additional check for supported
5229	codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
5230	TIFFRGBAImageOK before reading.
5231	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
5232
52332002-03-15  Andrey Kiselev  <[email protected]>
5234
5235	* libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
5236	tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
5237	TIFFDataType sizes instead of working with tiffDataWidth array
5238	directly. Should prevent out-of-borders bugs in case of unknown or
5239	broken data types.  EstimateStripByteCounts routine modified, so it
5240	won't work when tags with uknown sizes founded.
5241	Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
5242
52432002-03-13  Andrey Kiselev  <[email protected]>
5244
5245	* libtiff/tif_getimage.c: Added support for correct handling
5246	`Orientation' tag in gtTileContig. Should be added in other gt*
5247	functions as well, but I have not images for testing yet. Partially
5248	resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
5249
52502002-03-10  Andrey Kiselev  <[email protected]>
5251
5252	* libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
5253	read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
5254	TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC.  Closes
5255	http://bugzilla.remotesensing.org/show_bug.cgi?id=99
5256
52572002-03-08  Andrey Kiselev  <[email protected]>
5258
5259	* libtiff/Makefile.in, tools/Makefile.in: Shared library will not
5260	be stripped when installing, utility binaries will do.	Closes
5261	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5262
52632002-02-28  Frank Warmerdam  <[email protected]>
5264
5265	* man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
5266
5267	* man/libtiff.3t: added copyright tag info.
5268
52692002-02-11  Frank Warmerdam  <[email protected]>
5270
5271	* libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
5272
5273	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5274
5275	* man/Makefile.in: Patch DESTDIR handling
5276
5277	http://bugzilla.remotesensing.org/show_bug.cgi?id=95
5278
5279	* configure: OpenBSD changes for Sparc64 and DSO version.
5280
5281	http://bugzilla.remotesensing.org/show_bug.cgi?id=96
5282
52832002-02-05  Frank Warmerdam  <[email protected]>
5284
5285	* config.site/configure: added support for OJPEG=yes option to enable
5286	OJPEG support from config.site.
5287
52882002-01-27  Frank Warmerdam  <[email protected]>
5289
5290	* html/document.html: fixed links for TIFf 6 docs.
5291
52922002-01-18  Frank Warmerdam  <[email protected]>
5293
5294	* config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
5295
5296	* libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
5297	decodestrip function returns anything not greater than zero as per
5298	http://bugzilla.remotesensing.org/show_bug.cgi?id=97
5299
5300	* configure: Modify CheckForBigEndian so it can work in a cross
5301	compiled situation.
5302
53032002-01-16  Frank Warmerdam  <[email protected]>
5304
5305	* tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
5306
5307	* tools/tiffset.c: fix bug in error reporting.
5308
5309	* tools/tiffcp.c: fix several warnings that show up with -Wall.
5310
53112002-01-04  Frank Warmerdam  <[email protected]>
5312
5313	* libtiff/tif_jpeg.c: fixed computation of segment_width for
5314	tiles files to avoid error about it not matching the
5315	cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
5316	size.") for ITIFF files.  Apparently the problem was incorporated since
5317	3.5.5, presumably during the OJPEG/JPEG work recently.
5318
53192001-12-15  Frank Warmerdam  <[email protected]>
5320
5321	* configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
5322
5323	http://bugzilla.remotesensing.org/show_bug.cgi?id=94
5324
5325	* libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
5326	(defined in tiffconf.h - 1 by default) then the RGBA interface
5327	will assume that a fourth extra sample is ASSOCALPHA if the
5328	EXTRASAMPLE value isn't set for it.  This changes the behaviour of
5329	the library, but makes it work better with RGBA files produced by
5330	lots of applications that don't mark the alpha values properly.
5331
5332	http://bugzilla.remotesensing.org/show_bug.cgi?id=93
5333	http://bugzilla.remotesensing.org/show_bug.cgi?id=65
5334
53352001-12-12  Frank Warmerdam  <[email protected]>
5336
5337	* libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
5338	override those from tiff directory.  This makes this work with
5339	ImageGear generated files.
5340
53412001-12-07  Frank Warmerdam  <[email protected]>
5342
5343	* html/Makefile.in: added missing images per bug 92.
5344
5345	* port/Makefile.in: fixed clean target per bug 92.
5346
53472001-11-28  Frank Warmerdam  <[email protected]>
5348
5349	* Reissue 3.5.7 release.
5350
5351	* libtiff/mkversion.c: Fix output of TIFF_VERSION to be
5352	YYYYMMDD so that it is increasing over time.
5353
5354	* Makefile.in: Ensure that tiffvers.h is regenerated in the
5355	make release target.
5356
5357	* Makefile.in: added libtiff/tiffvers.h to the release file list.
5358
53592001-11-23  Frank Warmerdam  <[email protected]>
5360
5361	* added html/v3.5.7.html, updated html/index.html.
5362
5363	* Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
5364
53652001-11-15  Frank Warmerdam  <[email protected]>
5366
5367	* configure: fixed test for -lm.
5368
53692001-11-02  Frank Warmerdam  <[email protected]>
5370
5371	* Added PHOTOMETRIC_ITULAB as per bug 90.
5372
5373	http://bugzilla.remotesensing.org/show_bug.cgi?id=90
5374
53752001-10-10  Frank Warmerdam  <[email protected]>
5376
5377	* libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
5378	COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
5379	in keeping with TIFF 6.0 standard in tiff.h
5380
5381	http://bugzilla.remotesensing.org/show_bug.cgi?id=83
5382
53832001-09-26  Frank Warmerdam  <[email protected]>
5384
5385	* libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
5386	Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
5387
53882001-09-24  Frank Warmerdam  <[email protected]>
5389
5390	* libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
5391
5392	http://bugzilla.remotesensing.org/show_bug.cgi?id=78
5393
5394	* libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
5395	error about LZW not being available.
5396
5397	* libtiff/tif_dir.c: propagate failure to initialize compression
5398	back from TIFFSetField() as an error status, so applications can
5399	detect failure.
5400
5401	* libtiff/tif_dir.c: removed the auto replacement of
5402	COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
5403
5404	* Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
5405	from CVS as they are all supposed to be auto-generated by configure.
5406
54072001-09-22  Frank Warmerdam  <[email protected]>
5408
5409	* libtiff/tif_ojpeg.c: new update from Scott.
5410
54112001-09-09  Frank Warmerdam  <[email protected]>
5412
5413	* libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
5414	always use the "safe" version, even if there is a very slight
5415	cost in performance.
5416
5417	http://bugzilla.remotesensing.org/show_bug.cgi?id=54
5418
5419	* libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
5420	in two places.
5421
5422	* libtiff/tif_getimage.c: Fixed problem with reading strips or
5423	tiles that don't start on a tile boundary.  Fix contributed by
5424	Josep Vallverdu (from HP), and further described in bug 47.
5425
5426	http://bugzilla.remotesensing.org/show_bug.cgi?id=47
5427
5428	* tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
5429
5430	* libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
5431
54322001-09-06  Frank Warmerdam  <[email protected]>
5433
5434	* libtiff/tif_packbits.c: fixed memory overrun error.
5435
5436	http://bugzilla.remotesensing.org/show_bug.cgi?id=77
5437
54382001-08-31  Frank Warmerdam  <[email protected]>
5439
5440	* libtiff/tif_getimage.c: relax handling of contig case where
5441	there are extra samples that are supposed to be ignored.  This
5442	should now work for 8bit greyscale or palletted images.
5443
5444	http://bugzilla.remotesensing.org/show_bug.cgi?id=75
5445
54462001-08-28  Frank Warmerdam  <[email protected]>
5447
5448	* libtiff/tif_getimage.c: Don't complain for CMYK (separated)
5449	images with more than four samples per pixel.  See:
5450
5451	http://bugzilla.remotesensing.org/show_bug.cgi?id=73
5452
54532001-08-10  Frank Warmerdam  <[email protected]>
5454
5455	* libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
5456	in TIFFReadRGBATile() to avoid issues in cases of overlapping
5457	buffers.  See Bug 69 in Bugzilla.
5458
5459	http://bugzilla.remotesensing.org/show_bug.cgi?id=69
5460
5461	* tools/tiff2rgba.c: fixed getopt() call so that -b works again.
5462
54632001-08-09  Frank Warmerdam  <[email protected]>
5464
5465	* libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
5466	when checking for 64 bit architectures as per bugzilla bug 67.
5467
54682001-07-27  Frank Warmerdam  <[email protected]>
5469
5470	* man/Makefile.in: add TIFFClientOpen link as per debian submitted
5471	bug 66.
5472
54732001-07-20  Frank Warmerdam  <[email protected]>
5474
5475	* libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
5476	has been included.
5477
54782001-07-19  Frank Warmerdam  <[email protected]>
5479
5480	* libtiff/tif_open.c: Seek back to zero after failed read,
5481	before writing header.
5482
54832001-07-18  Frank Warmerdam  <[email protected]>
5484
5485	* libtiff/tif_ojpeg.c: updates from Scott.  Handles colors
5486	much better.  Now depends on having patched libjpeg as per
5487	patch in contrib/ojpeg/*.
5488
54892001-07-17  Frank Warmerdam  <[email protected]>
5490
5491	* */Makefile.in: added DESTDIR support.
5492
5493	http://bugzilla.remotesensing.org/show_bug.cgi?id=60
5494
54952001-07-16  Frank Warmerdam  <[email protected]>
5496
5497	* configure, libtiff/Makefile.in: applied OpenBSD patches
5498	as per:
5499
5500	http://bugzilla.remotesensing.org/show_bug.cgi?id=61
5501
55022001-06-28  Frank Warmerdam  <[email protected]>
5503
5504	* libtiff/tif_getimage.c: Fixed so that failure is properly
5505	reported by gtTileContig, gtStripContig, gtTileSeparate and
5506	gtStripSeparate.
5507
5508	See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
5509
5510	* tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
5511	Updated bug section of tiffcmp.1 to note tiled file issues.
5512
5513	See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
5514
55152001-06-22  Frank Warmerdam  <[email protected]>
5516
5517	* configure: Changes for DSO generation on AIX provided by
5518	John Marquart <[email protected]>.
5519
5520	* configure, libtiff/Makeifle.in: Modified to build DSOs properly
5521	on Darwin thanks to Robert Krajewski ([email protected]) and
5522	Keisuke Fujii ([email protected]).
5523
55242001-06-13  Frank Warmerdam  <[email protected]>
5525
5526	* tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
5527
5528	* man/tiff2rgba.1: new
5529
55302001-05-22  Frank Warmerdam  <[email protected]>
5531
5532	* Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
5533
55342001-05-13  Frank Warmerdam  <[email protected]>
5535
5536	* libtiff/tools/thumbnail.c: changed default output compression
5537	to packbits from LZW since LZW isn't generally available.
5538
55392001-05-12  Frank Warmerdam  <[email protected]>
5540
5541	* libtiff/tif_ojpeg.c: New.
5542	libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
5543	to OJPEG support.
5544
5545	Scott Marovich <[email protected]> supplied OJPEG support.
5546
55472001-05-11  Frank Warmerdam  <[email protected]>
5548
5549	* tiff.h: removed, it duplicates libtiff/tiff.h.
5550
55512001-05-08  Frank Warmerdam  <[email protected]>
5552
5553	* libtiff/tif_dirinfo.c: moved pixar and copyright flags to
5554	ensure everything is in order.
5555
5556	* libtiff/libtiff.def: added TIFFCreateDirectory and
5557	TIFFDefaultStripSize as per:
5558
5559	  http://bugzilla.remotesensing.org/show_bug.cgi?id=46
5560
55612001-05-02  Frank Warmerdam  <[email protected]>
5562
5563	* libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
5564	TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
5565	force use of uint32 counts instead of short counts.
5566
5567	* libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
5568	case of writing TIFF_BYTE/TIFF_SBYTE fields.
5569
5570	http://bugzilla.remotesensing.org/show_bug.cgi?id=43
5571
55722001-05-01  Frank Warmerdam  <[email protected]>
5573
5574	* libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
5575	bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
5576
55772001-04-05  Frank Warmerdam  <[email protected]>
5578
5579	* tiffio.h: removed C++ style comment.
5580
5581	* configure: fixed up SCRIPT_SH/SHELL handling.
5582
5583	* Makefile.in: Fixed SCRIPT_SH/SHELL handling.
5584
5585	* config.guess: documented more variables as per bug 40.
5586
55872001-04-03  Frank Warmerdam  <[email protected]>
5588
5589	* configure, *Makefile.in: Various changes to improve configuration
5590	for HP/UX specifically, and also in general.  They include:
5591	 - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
5592	 - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
5593	 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
5594	 - Use -${MAKEFLAGS} in sub makes from makefiles.
5595
5596	http://bugzilla.remotesensing.org/show_bug.cgi?id=40
5597
55982001-04-02  Frank Warmerdam  <[email protected]>
5599
5600	* libtiff/tiff.h: Applied hac to try and resolve the problem
5601	with the inttypes.h include file on AIX.
5602
5603	See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5604
5605	* VERSION: update to 3.5.7 beta in preparation for release.
5606
5607	* configure/config.site: modified to check if -lm is needed for
5608	MACHDEPLIBS if not supplied by config.site.  Needed for Darwin.
5609
5610	* config.guess: updated wholesale to an FSF version apparently
5611	from 1998 (as opposed to 1994).  This is mainly inspired by
5612	providing for MacOS X support.
5613
56142001-03-29  Frank Warmerdam  <[email protected]>
5615
5616	* configure, Makefile.in, etc: added support for OPTIMIZER being
5617	set from config.site.
5618
56192001-03-28  Frank Warmerdam  <[email protected]>
5620
5621	* fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
5622
5623	Here's a fix for fax2ps that corrects behaviour for non-Letter paper
5624	sizes. It fixes two problems:
5625
5626	Without	scaling (-S) the fax is now centered on the page size specified
5627	with -H	and/or -W. Before, fax2ps was using an obscure and practially
5628	useless algorithm to allocate the image relative to Letter sized paper
5629	which sometime sled to useless whitespace on the paper, while at the
5630	same time cutting of the faxes printable area at the opposite border.
5631
5632	Second, scaling now preserves aspect ratio, which makes unusual faxes
5633	(in particular short ones) print properly.
5634
5635	See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
5636
5637	* tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
5638	Bruce A. Mallett.  See check message for detailed information
5639	on all the changes, including a faster encoder, fixes for level
5640	2 PostScript, and support for the imagemask operator.
5641
56422001-03-27  Frank Warmerdam  <[email protected]>
5643
5644	* libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
5645	"#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
5646
5647	http://bugzilla.remotesensing.org/show_bug.cgi?id=39
5648
56492001-03-16  Frank Warmerdam  <[email protected]>
5650
5651	* tif_dirinfo.c: moved definition of copyright tag in field list.
5652	Apparently they have to be in sorted order by tag id.
5653
56542001-03-13  Frank Warmerdam  <[email protected]>
5655
5656	* tif_getimage.c: Added support for 16bit minisblack/miniswhite
5657	images in RGBA interface.
5658
56592001-03-02  Frank Warmerdam  <[email protected]>
5660
5661	* Added TIFFTAG_COPYRIGHT support.
5662
56632001-02-19  Frank Warmerdam  <[email protected]>
5664
5665	* Brent Roman contributed updated tiffcp utility (and tiffcp.1)
5666	with support for extracting subimages with the ,n syntax, and also
5667	adding the -b bias removal flag.
5668
56692001-02-16  Frank Warmerdam  <[email protected]>
5670
5671	* libtiff/libtiff.def: Brent Roman submitted new version adding
5672	serveral missing entry points.
5673
5674	* libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
5675	Some sort of weird VMS thing.
5676
5677	http://bugzilla.remotesensing.org/show_bug.cgi?id=31
5678
5679	* tif_luv.c/tiff.h/tiffio.h:
5680	New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
5681	([email protected]).  He writes:
5682
5683	1) I improved the gamut-mapping function in tif_luv.c for imaginary
5684	colors, because some images were being super-saturated on the input
5685	side and this resulted in some strange color shifts in the output.
5686
5687	2) I added a psuedotag in tiff.h to control random dithering during
5688	LogLuv encoding.  This is turned off by default for 32-bit LogLuv and
5689	on for 24-bit LogLuv output.  Dithering improves the average color
5690	accuracy over the image.
5691
5692	3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
5693	tiffio.h, to expose internal routines for converting between LogLuv and
5694	XYZ coordinates.  This is helpful for writing more efficient,
5695	specialized conversion routines, especially for reading LogLuv files.
5696
5697	Changes applied with minor edits.
5698
56992001-01-23  Frank Warmerdam  <[email protected]>
5700
5701	* tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
5702	whether we are encoding or decoding.  This is to ensure graceful
5703	recovery if TIFFClientOpen() discovers an attempt to open a compressed
5704	file for "r+" access, and subsequently close it, as it resets the
5705	tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
5706	compressor's concept of whether it is in encode or decode mode.
5707
57082001-01-08  Mike Welles <[email protected]>
5709
5710	* Makefile.in:  Now cleaning up after itself after creating the .tar.gz and .zip
5711
57122001-01-07  Frank Warmerdam  <[email protected]>
5713
5714	* html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
5715	as per bug report by Patrick Connor.
5716
57172000-12-28  Frank Warmerdam  <[email protected]>
5718
5719	* Added RELEASE-DATE file to release file list.
5720
5721	* Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
5722
57232000-12-22  Mike Welles <[email protected]>
5724        * added link to CVS mirror from index.html
5725
5726	* updated html/internals.html to note that LZW compression is
5727	  not supported by default.
5728
57292000-12-22  Frank Warmerdam  <[email protected]>
5730
5731	* updated html/libtiff.html to not point at Niles' old JPL web site
5732	for the man pages, point at www.libtiff.org.
5733
57342000-12-21  Frank Warmerdam  <[email protected]>
5735
5736	* libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
5737	Leonard Rosenthol <[email protected]>.  May interfere
5738	with correct building on older systems.  If so, please let me know.
5739
57402000-12-19 Mike Welles <[email protected]>
5741
5742	* Took out LZW Encoding from tif_lzw.c
5743
5744	* Created HOWTO-RELEASE
5745
5746	* Created html/v3.5.6.html
5747
5748	* updated index.html
5749
57502000-12-01  Frank Warmerdam  <[email protected]>
5751
5752	* Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
5753	Patches supplied by Frank Cringle <[email protected]>
5754	Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
5755
57562000-11-24  Frank Warmerdam  <[email protected]>
5757
5758	* libtiff/Makefile.in: Added an installPrivateHdrs and install-private
5759	target so that the private headers required by libgeotiff can be
5760	installed with the others.  They are not installed by default.
5761
5762	* libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
5763	targets so libtiff.so will be built with an explicit dependency
5764	on libm.so.
5765
5766	* libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
5767	libtiff.so.3.5.5.
5768
5769	* libtiff/Makefile.in & configure: Remove all references to the ALPHA
5770	file, or ALPHA version logic.  Added stuff about DIST_POINT in
5771	place of DIST_TYPE and the alpha release number stuff.
5772
57732000-11-22  Frank Warmerdam  <[email protected]>
5774
5775	* I have applied a patch from Steffen Moeller <[email protected]> to
5776	the configure script so that it now accepts the --prefix, and
5777	--exec-prefix directives.
5778
57792000-11-13  Frank Warmerdam  <warmerda@cs46980-c>
5780
5781	* I have made a variety of modifications in an effort to ensure the
5782	TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
5783	file which seems to be updated regularly.
5784
5785	 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
5786	   version include file.
5787	 o renamed version.h to tiffvers.h because we now have to install it
5788	   with the public libtiff include files.
5789	 o include tiffvers.h in tiffio.h.
5790	 o updated tif_version.c to use tiffvers.h.
5791	 o Updated Makefile.in accordingly.
5792
5793	* As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
5794	I have updated the win32 detection rules in tiffcomp.h.
5795
57962000-10-20  Frank Warmerdam  <warmerda@cs46980-c>
5797
5798	* tif_getimage.c: Fixed RGBA translation for YCbCr images for which
5799	the strip/tile width and height aren't multiples of the sampling size.
5800	See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
5801	Some patches from Rick LaMont of Dot C Software.
5802
5803	* Modified tif_packbits.c encoder to avoid compressing more
5804	data than provided if rowsize doesn't factor into provided data
5805	(such as occurs for YCbCr).
5806
58072000-10-19  Frank Warmerdam  <warmerda@cs46980-c>
5808
5809	* tools/rgb2ycbcr.c: fixed output strip size to account for vertical
5810	roundup if rows_per_strip not a multiple of vertical sample size.
5811
58122000-10-16  Frank Warmerdam  <warmerda@cs46980-c>
5813
5814	* tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
5815	as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5816	from [email protected].
5817
5818	* Modified tif_packbits.c decoding to avoid overrunning the
5819	output buffer, and to issue a warning if data needs to be
5820	discarded.  See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
5821
58222000-10-12  Frank Warmerdam  <warmerda@cs46980-c>
5823
5824	* Modified tiff2bw to ensure portions add to 100%, and that
5825	white is properly recovered.
5826
5827	See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
5828	Patch c/o Stanislav Brabec <[email protected]>
5829
58302000-09-30  Frank Warmerdam  <warmerda@cs46980-c>
5831
5832	* Modified TIFFClientOpen() to emit an error on an attempt to
5833	open a comperessed file for update (O_RDWR/r+) access.  This is
5834	because the compressor/decompressor code gets very confused when
5835	the mode is O_RDWR, assuming this means writing only.  See
5836	bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
5837
58382000-09-27  Frank Warmerdam  <warmerda@cs46980-c>
5839
5840	* Added GNULDdso target an`d switched linux and freebsd to use it.
5841
58422000-09-26  Frank Warmerdam  <warmerda@cs46980-c>
5843
5844	* Applied patch for 0x0000 sequences in tif_fax3.h's definition
5845	of EXPAND1D() as per bug 11 (from Roman).
5846
58472000-09-25  Frank Warmerdam  <warmerda@cs46980-c>
5848	* Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
5849	cygwin compatibility.
5850
5851	* Applied patch from Roman Shpount to tif_fax3.c.  This seems to
5852	be a proper fix to the buffer sizing problem.  See
5853	http://bugzilla.remotesensing.org/show_bug.cgi?id=11
5854
5855	* Fixed tif_getimage.c to fix overrun bug with YCbCr images without
5856	downsampling.  http://bugzilla.remotesensing.org/show_bug.cgi?id=10
5857	Thanks to Nick Lamb <[email protected]> for reporting the
5858	bug and proving the patch.
5859
58602000-09-18  Frank Warmerdam  <warmerda@cs46980-c>
5861
5862	* Fixed tif_jpeg.c so avoid destroying the decompressor before
5863	we are done access data thanks to bug report from:
5864	Michael Eckstein <[email protected]>.
5865
5866	* Reverted tif_flush change.
5867
58682000-09-14  Frank Warmerdam  <warmerda@cs46980-c>
5869
5870	* tif_flush.c: Changed so that TIFFFlushData() doesn't return an
5871	error when TIFF_BEENWRITING is not set.  This ensures that the
5872	directory contents can still be flushed by TIFFFlush().
5873
58742000-08-14  Frank Warmerdam  <[email protected]>
5875
5876	* tif_open.c: Don't set MMAP for O_RDWR files.
5877
5878	* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
5879	so that files opened for update can be strip chopped too.
5880
5881	* tif_read.c: fixed up bug with files missing rowsperstrip and
5882	the strips per separation fix done a few weeks ago.
5883
58842000-07-17  Frank Warmerdam  <warmerda@cs46980-c>
5885
5886	* Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
5887	SAMPLEFORMAT_COMPLEXINT.
5888
58892000-07-13  Mike Welles <[email protected]>
5890
5891	* index.html, bugs.html: added bugzilla info.
5892
58932000-07-12  Frank Warmerdam  <[email protected]>
5894
5895	* tif_read.c: fix subtle bug with determining the number of
5896	rows for strips that are the last strip in a separation but
5897	not the last strip of all in TIFFReadEncodedStrip().
5898
5899	* Applied 16/32 bit fix to tif_fax3.c.  Fix supplied by
5900	Peter Skarpetis <[email protected]>
5901
59022000-06-15  Frank Warmerdam  <[email protected]>
5903
5904	* Modified tiffio.h logic with regard to including windows.h.  It
5905	won't include it when building with __CYGWIN__.
5906
59072000-05-11  Frank Warmerdam  <warmerda@cs46980-c>
5908
5909	* README: update to mention www.libtiff.org, don't list Sam's old
5910	email address.
5911
5912	* configure: Fixed DSO test for Linux as per patch from
5913	  Jan Van Buggenhout <[email protected]>.
5914
59152000-04-21  Frank Warmerdam  <[email protected]>
5916
5917	* libtiff/tif_dirread.c: Don't use estimate strip byte count for
5918	one tile/strip images with an offset, and byte count of zero. These
5919	could be "unpopulated" images.
5920
59212000-04-18  Frank Warmerdam  <[email protected]>
5922
5923	* contrib/addtiffo: Added "averaging" resampling option.
5924
5925	* tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
5926
5927Tue Apr 18 16:18:08 2000  Frank Warmerdam  <[email protected]>
5928
5929	* tools/Makefile.in: Modified to install properly on SGI.
5930
59312000-04-12  Mike Welles	     <[email protected]>
5932	* configure:  Fixed stupid mistake in libc6 test on Linux
5933
59342000-04-04  Mike Welles	     <[email protected]>
5935	* tif_win32.c:  Applied patch to fix overreads and ovverwrites
5936	  caught by BoundsChecker.  From Arvan Pritchard
5937	  <[email protected]>  (untested).
5938
5939	* tif_getimage.c:  Applied patch to silence VC6 warnings.  From
5940	  Arvan Pritchard <[email protected]>
5941
5942	* tif_lzw.c:  Applied patch to silence VC6 warnings.  From
5943	  Arvan Pritchard <[email protected]>
5944
59452000-03-28  Frank Warmerdam  <warmerda@cs46980-c>
5946
5947	* Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
5948
59492000-03-28  Frank Warmerdam  <warmerda@cs46980-c>    *** 3.5.5 release ***
5950
5951	* fax2ps: Fixed mixup of width and height in bounding box statement
5952	as per submission by Nalin Dahyabhai <[email protected]>.
5953
59542000-03-27  Mike Welles	     <[email protected]>
5955
5956	* fax2ps:  Modified printruns to take uint32 instead of uint16.
5957	Patch courtesy of Bernt Herd <[email protected]>
5958
59592000-03-20  Mike Welles	     <[email protected]>
5960
5961	* configure: added test for libc6 for linux targets.  Bug reported by
5962        Stanislav Brabec <[email protected]>
5963
5964	* Added 3.5 docs to html/Makefile.in.
5965	Thanks to  Stanislav Brabec <[email protected]>
5966
5967	* configure: fixed bugs in sed scripts
5968	(applied sed script s:/@:s;@:;s:/s;;:;: to configure).
5969	fix submitted to Stanislav Brabec <[email protected]>
5970
5971	* tools/iptcutil was not in files list, and wasn't being
5972	added to tar archive.  Updated Makefile.in.
5973
59742000-03-17  Frank Warmerdam  <warmerda@cs46980-c>
5975
5976	* tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
5977	conversion for the run arrays.
5978
59792000-03-03  Frank Warmerdam  <[email protected]>
5980
5981	* Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
5982	SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
5983
59842000-03-02  Frank Warmerdam  <[email protected]>
5985
5986	* Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
5987
5988	* Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
5989	to avoid overruns encountered with frle_bug.tif.
5990
5991Tue Feb 15 22:01:05 2000  Frank Warmerdam  <[email protected]>
5992
5993	* Fixed tools/tiffcmp so that stopondiff testing works.
5994	  Patch care of Joseph Orost <[email protected]>.
5995
59962000-01-28    <warmerda@CS46980-B>
5997
5998	* Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
5999	  set to 1, and added default (off) setting in tiffconf.h.  This
6000	  should eventually be set by the configure script somehow.
6001
6002	  The original work on all these 2-4GB changes was done by
6003	  Peter Smith ([email protected]).
6004
6005	* Modified tif_win32.c to support 2-4GB seeks.
6006
6007	* tentatively changed toff_t to be unsigned instead of signed to
6008	  facilitate support for 2-4GB files.
6009
6010	* Updated a variety of files to use toff_t.  Fixed some mixups
6011	  between toff_t and tsize_t.
6012
6013Fri Jan 28 10:13:49 2000  Frank Warmerdam  <[email protected]>
6014
6015	* Largely reimplemented contrib/addtiffo to avoid temp files,
6016	updating the TIFF file in place.  Fixed a few other bugs to.
6017
6018	* Set tif_rawdatasize to zero when freeing raw data buffer in
6019	TIFFWriteDirectory().
6020
6021	* Enabled "REWRITE_HACK" in tif_write.c by default.
6022
6023	* Fix bug in tif_write.c when switching between reading one directory
6024	and writing to another.
6025
6026	* Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
6027
6028Wed Jan  5 12:37:48 2000  Frank Warmerdam  <[email protected]>
6029
6030	* Added TIFFmemory(3t) functions to libtiff.def.
6031
6032Tue Jan  4 13:39:00 2000  Frank Warmerdam  <[email protected]>
6033
6034	* Added libtiff/libtiff.def to TIFFILES distribution list.
6035
6036Mon Dec 27 12:13:39 EST 1999  Mike Welles <[email protected]>
6037
6038	* Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
6039
6040	* Altered descriptions in tools to reflect "by default" lzw not supported
6041
6042	* Updated index.html to note lzw compression kit.
6043
6044Tue Dec 21 14:01:51 1999  Frank Warmerdam  <[email protected]>
6045
6046	* Added fax3sm_winnt.c to distribution list in Makefile.in.
6047
6048Tue Dec 21 11:04:45 EST 1999  Mike Welles <[email protected]> *** 3.5.4 release ***
6049
6050	* Aadded Pixar tag support.  Contributed by Phil Beffery <[email protected]>
6051
6052	* Made one more change to tif_dir.c for removal of LZW compression. Also added notice
6053	  when LZW compression invoked.
6054
6055	* Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
6056	  in tools to reflect removal of LZW compression
6057
6058Mon Dec 20 18:39:02 EST 1999  Mike Welles  <[email protected]>
6059
6060        * Fixed bug that caused LZW (non) compression to segfault. Added
6061	  warning about LZW compression removed being removed, and why.
6062
6063	* Added nostrip to install in tools/Makefile.in so that debugging
6064	  symbols are kept.
6065
6066Tue Dec  7 12:04:47 EST 1999  Mike Welles  <[email protected]>
6067
6068	* Added patch from Ivo Penzar <[email protected]>,
6069	  supporting Adobe ZIP deflate.  Untested.
6070
6071Sat Dec  4 15:47:11 1999  Frank Warmerdam  <[email protected]>
6072
6073	* Made Packbits the default compression in tools/tiff2rgba.c instead
6074	of LZW.
6075
6076Tue Nov 30 14:41:43 1999  Frank Warmerdam  <[email protected]>    *** 3.5.3. release ***
6077
6078	* Added tif_luv to contrib/djgpp/Makefile.lib.
6079
6080Tue Nov 30 14:15:32 EST 1999   Mike Welles <[email protected]>
6081
6082        * Added zip creation to relase makefile target
6083
6084	* Added html for TIFFWriteTile.3t man page.
6085
6086Tue Nov 30 09:20:16 1999  Frank Warmerdam  <[email protected]>
6087
6088	* Added some changes to tif_write.c to support rewriting existing
6089	fixed sized tiles and strips.  Code mods disabled by default, only
6090	enabled if REWRITE_HACK is defined for now.
6091
6092Mon Nov 29 11:43:42 1999  Frank Warmerdam  <[email protected]>
6093
6094	* Added TIFFWriteTile.3t man page.
6095
6096Sun Nov 28 20:36:18 1999  Frank Warmerdam  <[email protected]>
6097
6098	* Added notes on use of makefile.vc in build.html, and fixed
6099	email subscription address.
6100
6101199-11-28  Mike Welles <[email protected]>
6102
6103	*  Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
6104
6105	*  Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
6106	   from Bruce Carmeron <[email protected]> -- modifications of
6107	   changes made by Frank (sun cc still complained on cast).
6108
6109	*  Added tiffconf.h to install target per request from Bill
6110	   Radcliffe <[email protected]>: "We need a way for ImageMagick to
6111 	   know features have been compiled into the TIFF library in order to
6112	   handle things properly".
6113
6114Sat Nov 27 16:49:21 1999  Frank Warmerdam  <[email protected]>
6115
6116	* fixed various VC++ warnings as suggested by Gilles Vollant
6117	<[email protected]>.
6118
6119Wed Nov 24 12:08:16 1999  Frank Warmerdam  <[email protected]>
6120
6121	* Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
6122	not imply applications are responsible for image data swapping.
6123
61241999-11-22  Mike Welles <[email protected]>
6125	*  HTML-ized the man pages, added to html/man
6126
6127	*  Removed LZW Compression to comply with Unisys patent extortion.
6128
61291999-09-29  Mike Welles		<[email protected]>
6130	*  Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
6131	   From Ivo Penzar <[email protected].
6132
6133	*  Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
6134	   memory mapped files. <[email protected]>
6135
61361999-09-26  Mike Welles 	<[email protected]>  *** 3.5.2 release ***
6137	* Corrected alpha versioning.
6138
6139	* Removed distinction between  alpha and release targets in Makefile.in.
6140
6141	* added release.stamp target, which tags cvs tree, and updates
6142	  "RELEASE-DATE"
6143
6144	* added releasediff target, which diffs tree with source as of
6145	  date in "RELEASE-DATE"
6146
6147	* Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
6148	  away from alpha/non-alpha distinctions).
6149
6150	* updated html to reflect release
6151
61521999-09-23    <warmerda@CS46980-B>
6153
6154	* Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
6155
6156	* Added CYGWIN case in configure.
6157
6158Fri Sep 17 00:13:51 CEST 1999  Mike Welles <[email protected]>
6159
6160	* Applied Francois Dagand's patch to handle fax decompression bug.
6161	  (sizes >= 65536 were failing)
6162
6163Tue Sep 14 21:31:43 1999  Frank Warmerdam  <[email protected]>
6164
6165	* Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
6166	  by Christopher Lawton <[email protected]>
6167
6168Wed Sep  8 08:19:18 1999  Frank Warmerdam  <[email protected]>
6169
6170	* Added IRIX/gcc, and OSF/1 4.x support on behalf of
6171	  Albert Chin-A-Young <[email protected]>
6172
6173	* Added TIFFReassignTagToIgnore() API on behalf of
6174	  Bruce Cameron <[email protected]>.  Man page still pending.
6175
6176Wed Aug 25 11:39:07 1999  Frank Warmerdam  <[email protected]>
6177
6178	* Added test target in Makefile, test_pics.sh script and pics/*.rpt
6179	files to provide for a rudimentary testsuite.
6180
6181	* Added contrib/tags back from old distribution ... fixed up a bit.
6182
61831999-08-16    <warmerda@CS46980-B>
6184
6185	* Added simple makefile.vc makefiles for building with MS VC++
6186	on Windows NT/98/95 in console mode.  Stuff in contrib/win* make give
6187	better solutions for some users.
6188
6189Mon Aug 16 21:52:11 1999  Frank Warmerdam  <[email protected]>
6190
6191	* Added addtiffo (add overviews to a TIFF file) in contrib.  Didn't
6192	put it in tools since part of it is in C++.
6193
61941999-08-16  Michael L. Welles  <[email protected]>
6195
6196	* Updated html/index.html with anon CVS instructions.
6197
6198Mon Aug 16 13:18:41 1999  Frank Warmerdam  <[email protected]>
6199
6200	* pre-remove so link before softlink in LINUXdso action in
6201	libtiff/Makefile.in to avoid failure on LINUXdso builds other than
6202	the first.
6203
6204	* Fixed problem with cvtcmap() in tif_getimage.c modifying the
6205	colormaps owned by the TIFF handle itself when trying to fixup wrong
6206	(eight bit) colormaps.  Corrected by maintaining a private copy of
6207	the colormap.
6208
6209	* Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
6210	tif_getimage.c.
6211
6212	* CVS Repository placed at remotesensing.org.  ChangeLog added.
6213