12015-08-20 Bob Friesenhahn <[email protected]> 2 3 * tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to 4 fix build issues when using Cmake due to Windows large file 5 changes. 6 72015-08-18 Bob Friesenhahn <[email protected]> 8 9 * libtiff/tiffiop.h: First cut at supporting large files under 10 Microsoft Windows using tif_unix.c and the libtiff tools. This 11 only works if the Windows CDK is new enough to support the APIs 12 used (Visual C++ 2005 or later). Support for large files is not 13 actually tested yet. 14 152015-08-15 Bob Friesenhahn <[email protected]> 16 17 * libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that 18 client_data is initialized to a known value, and to report an 19 error on two memory allocation failures. 20 212015-08-13 Bob Friesenhahn <[email protected]> 22 23 * CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx 24 symbol versioning. Patch was mailed to libtiff list on Thu, 13 25 Aug 2015. 26 272015-07-04 Bob Friesenhahn <[email protected]> 28 29 * cmake: Add d suffix to debug libraries with MSVC. Patch #3 of 3 30 by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 31 +0100. 32 33 * cmake: Add extra warning flags. Patch #2 of 3 by Roger Leigh 34 posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 35 36 * cmake: Correct snprintf fallback for VS2015. Patch #1 of 3 by 37 Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 38 392015-06-24 Bob Friesenhahn <[email protected]> 40 41 * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to 42 libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several 43 corrections to ensure that the autotools build still works were 44 added by me. I have not yet tested the build using 'cmake' or 45 MSVC with 'nmake'. 46 472015-06-21 Bob Friesenhahn <[email protected]> 48 49 * test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG 50 library so only execute if JPEG is available. 51 52 * libtiff 4.0.4 released. 53 54 * configure.ac: Add a HAVE_FOO Automake conditional for each 55 add-on library. 56 57 * test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode 58 requires JPEG support to compile. Use Automake conditional to 59 only include it when JPEG support is available. 60 61 * html/build.html: Try to improve the nmake-based VC++ build 62 description. 63 64 * libtiff/tiffconf.vc.h: Build fixes based on testing. 65 66 * libtiff/tif_config.vc.h: Build fixes based on testing. 67 68 * libtiff/libtiff.def: TIFFRasterScanline does not exist so remove 69 export for it. 70 712015-06-20 Bob Friesenhahn <[email protected]> 72 73 * libtiff/tif_config.vc.h: Make adjustments to match the new 74 definitions that configure produces, including for WIN64. Still 75 needs to be tested. 76 77 * configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting 78 specifier. 64-bit MinGW supports 'long long' but support for 79 'lld' is not assured by the run-time DLLs and so GCC warns. 80 Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition 81 and printf format specifier to deal with printing values of 82 'size_t' type. In particular, this was necessary for WIN64. 83 Added a configure test for if the system headers provide 'optarg' 84 (normal case) and block out the many explicit 'extern' statements 85 in the utilities. This was found to be necessary under Windows 86 when getopt is in a DLL and the symbols are already imported with 87 dllimport via standard header files. 88 89 * test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32 90 and boolean in MinGW build due to including jpeglib.h. 91 92 * test/rewrite_tag.c (main): Fix problem with location of variable 93 declaration. 94 95 * libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs, 96 TIFFReadRGBAImageOriented, TIFFSetCompressionScheme, 97 TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc, 98 TIFFRasterScanline, TIFFSetErrorHandlerExt, 99 TIFFSetWarningHandlerExt, TIFFNumberOfDirectories, 100 TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory, 101 TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by 102 Roger Leigh and justified by use in libtiff tests, documentation, 103 and changelog notes. Also sorted symbol list and removed 104 duplicate entries. 105 1062015-06-16 Bob Friesenhahn <[email protected]> 107 108 * libtiff/tif_getimage.c: Fix four Coverity issues related to 109 unintended sign extension. 110 1112015-06-16 Even Rouault <even.rouault at spatialys.com> 112 113 * libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna) 114 1152015-06-14 Lee Howard <[email protected]> 116 117 * libtiff/tif_unix.c: contribution from Vadim Zeitlin on 118 Bugzilla Bug #2510 fixes several harmless but still annoying 119 warnings 120 121 * configure: contribution from Ludolf Holzheid on Bugzilla 122 Bug #2498. Adds an option to select the file I/O style on 123 Windows hosts. 124 125 * libtiff/tif_getimage.c: contribution from Gary Cramblitt 126 on Bugzilla Bug #2409. Correct reading of certain tiled TIFFs. 127 128 * configure, configure.ac: contribution from Marcos H. Woehrmann 129 on Bugzilla Bug #2405. Correct shell equality operator. 130 131 * tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt 132 on Bugzilla Bug #2401. Appropriately call glFlush(). 133 134 * tools/tiff2pdf.c: change ColorTransform from "0" to "1" 135 following Bugzilla Bug #2150. 136 1372015-06-13 Lee Howard <[email protected]> 138 139 * libtiff/tif_lzw.c: contribution from Andy Cave - decode 140 files that contain consecutive CODE_CLEAR codes. 141 142 * tools/tiff2pdf.c: contribution from Antti S. Lankila on 143 Bugzilla Bug #2078. Suppress initial output of the header. 144 145 * tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy - 146 Take care in using the return value from snprintf(). 147 148 * tools/tiffcrop.c: contribution from Eduardo Robles Elvira - 149 correctly copy the compression tag from the source TIFF. 150 151 * tools/tiff2ps.c: contribution from Eduardo Robles Elvira - 152 correct sizing and scaling problems with output document. 153 1542015-06-10 Bob Friesenhahn <[email protected]> 155 156 * libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two 157 clean implementations in order to avoid pre-processor hell. Only 158 one of the implementations is used in a given build. 159 1602015-06-08 Even Rouault <even.rouault at spatialys.com> 161 162 * libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12 163 case 164 1652015-06-07 Bob Friesenhahn <[email protected]> 166 167 * libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975 168 "Division or modulo by zero". 169 (TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division 170 or modulo by zero". 171 (TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by 172 zero". 173 (TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by 174 zero". 175 176 * libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and 177 715974 "Division or modulo by zero". 178 1792015-05-31 Bob Friesenhahn <[email protected]> 180 181 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity 182 1134470 "Logically dead code" by making the roll-over check 183 explicit. 184 185 * libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227 186 "Division or modulo by zero". 187 (LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by 188 zero". 189 (LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by 190 zero". 191 (LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by 192 zero". 193 194 * libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix 195 Coverity 298626 "Logically dead code". 196 (TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead 197 code". 198 (TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead 199 code". 200 (TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead 201 code" 202 203 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++ 204 operator precedenc in evaluation. Might quench Coverity 1134470 205 "Logically dead code". 206 207 * libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands 208 don't affect result". This change uses ifdefs to include 209 applicable code based on properties of libjpeg. Still needs to be 210 re-tested with 12-bit "6b" and "MK1". 211 2122015-05-30 Bob Friesenhahn <[email protected]> 213 214 * libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310 215 "Resource leak". 216 217 * libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix 218 Coverity 601720 "Resource leak". 219 220 * libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624 221 "Dereference before null check". 222 223 * libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400 224 "Missing break in switch". 225 226 * contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer 227 size calculation for overflow. 228 229 * contrib/addtiffo/addtiffo.c (main): Possibly address Coverity 230 1024226 "Untrusted value as argument". 231 232 * tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted 233 value as argument". 234 (checksignature): Fix Coverity 1024894 "Ignoring number of bytes 235 read". 236 (readextension): Fix Coverity 1024893 "Ignoring number of bytes 237 read". 238 (readgifimage): Fix Coverity 1024890 "Ignoring number of bytes 239 read". 240 (readraster): Fix Coverity 1024891 "Ignoring number of bytes 241 read". 242 (readgifimage): Fix Coverity 1024892 "Ignoring number of bytes 243 read". 244 245 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181 246 "Structurally dead code". 247 248 * tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return 249 value from library". 250 (guessSize): Fix Coverity 1024888 "Unchecked return value from 251 library". 252 (guessSize): Fix Coverity 1214162 "Ignoring number of bytes read". 253 (guessSize): Fix Coverity 1024889 "Unchecked return value from 254 library". 255 256 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621 257 "Resource leak". 258 (t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead 259 code". 260 (t2p_write_pdf): Fix Coverity 1227690 "Unused value". 261 2622015-05-29 Bob Friesenhahn <[email protected]> 263 264 * contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468 265 "Infinite loop". 266 (formatIPTC): Fix Coverity 1024727 "Truncated stdio return value". 267 (formatIPTC): Fix Coverity 1214240 "Untrusted loop bound". 268 2692015-05-28 Bob Friesenhahn <[email protected]> 270 271 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 272 Coverity 298615 "Resource leak". 273 (TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign 274 extension". 275 276 * tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value 277 as argument". 278 (main): Fix Coverity 1024678 "Unchecked return value from 279 library". 280 (main): Fix Coverity 1024679 "Unchecked return value from 281 library". 282 (main): Fix Coverity 1214160 "Ignoring number of bytes read". 283 284 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 285 Coverity 298615 "Resource leak". 286 287 * tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309 288 "Resource leak". 289 290 * tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource 291 leak". 292 (cpStrips): Fix Coverity 1024305 "Resource leak". 293 2942015-05-27 Bob Friesenhahn <[email protected]> 295 296 * tools/ras2tiff.c: Fix Sun Raster header definition to be safe 297 for 64-bit systems. Add some header validations. Should fix many 298 Coverity issues. 299 (main): Fix Coverity 1301206: "Integer handling issues (BAD_SHIFT)". 300 (main): Quiet Coverity 1024223 "Untrusted value as argument". 301 302 * tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting 303 level does not match indentation". 304 (get_histogram): Quiet Coverity 1024386 "Out-of-bounds read". 305 This was a benign mis-diagnosis but added code to enforce against 306 buffer overflow. 307 308 * tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical 309 vs. bitwise operator". 310 (readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or 311 modulo by zero". 312 (readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead 313 code". 314 (writeSingleSection): Fix Coverity 1024796 "Nesting level does not 315 match indentation". 316 (writeCroppedImage): Fix Coverity 1024797 "Nesting level does not 317 match indentation". 318 (loadImage): Fix Coverity 1299741 "Dereference before null check". 319 (loadImage): Fix Coverity 1299740 "Out-of-bounds write". 320 3212015-03-02 Even Rouault <[email protected]> 322 323 * tools/tiffdither.c: check memory allocations to avoid writing to 324 NULL pointer. Also check multiplication overflow. Fixes #2501, 325 CVE-2014-8128. Derived from patch by Petr Gajdos. 326 3272015-01-26 Even Rouault <[email protected]> 328 329 * add html/v4.0.4beta.html under version control 330 * HOWTO-RELEASE: write that cvs add html/vX.X.html must be used 331 3322015-01-26 Even Rouault <[email protected]> 333 334 * libtiff 4.0.4beta released 335 3362015-01-26 Even Rouault <[email protected]> 337 338 * automake: updated to 1.15 339 * libtool: updated to 2.4.5 340 3412015-01-22 Even Rouault <[email protected]> 342 343 * tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013) 344 3452015-01-05 Frank Warmerdam <[email protected]> 346 347 * html/bugs.html: remove note about needing to email the tiff mailing 348 list administrator about being approved for membership, this appears 349 not to be true. 350 3512015-01-05 Olivier Paquet <[email protected]> 352 353 * tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection. 354 3552015-01-03 Even Rouault <[email protected]> 356 357 * libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow 358 when reading more than 65535 directories, and effectively error out when 359 reaching that limit. 360 3612014-12-29 Even Rouault <[email protected]> 362 363 * libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10 364 markers to avoid emitting a warning (even if, according to the TechNote, 365 there are admitedly unusual/not recommended or even forbidden variants, but 366 they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2, 367 SOF9 and SOF10). 368 Define in_color_space and input_components to the right values in 369 JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by 370 libjpeg API documentation, so as to be compatible with mozjpeg library. 371 Note: the default settings of mozjpeg will produce progressive scans, which 372 is forbidden by the TechNote. 373 3742014-12-29 Even Rouault <[email protected]> 375 376 * libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling. 377 to avoid buffer leak (fix previous fix, found by Coverity scan) 378 3792014-12-29 Even Rouault <[email protected]> 380 381 * libtiff/tif_next.c: add new tests to check that we don't read outside of 382 the compressed input stream buffer. 383 384 * libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height 385 in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and 386 putcontig8bitYCbCr21tile cases. 387 3882014-12-27 Even Rouault <[email protected]> 389 390 * libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing 391 extented tags installed by user code through the extender mechaninm before 392 calling the extender callback (GDAL #5054) 393 3942014-12-26 Bob Friesenhahn <[email protected]> 395 396 * tools/tiffcrop.c: Fix warnings about variables set but not used. 397 398 * contrib/iptcutil/iptcutil.c: Fix warnings about variables set 399 but not used. 400 401 * tools/tiffgt.c: Fix warnings about unused parameters. 402 403 * libtiff/tif_stream.cxx: Fix warnings about unused parameters. 404 4052014-12-25 Even Rouault <[email protected]> 406 407 * libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix 408 various typos found by Debian lintian tool (GDAL #5756) 409 4102014-12-24 Even Rouault <[email protected]> 411 412 * libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling. 413 http://bugzilla.maptools.org/show_bug.cgi?id=2235 414 4152014-12-24 Even Rouault <[email protected]> 416 417 * tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images. 418 http://bugzilla.maptools.org/show_bug.cgi?id=2445 419 4202014-12-24 Even Rouault <[email protected]> 421 422 * tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image. 423 Derived from patch by Petr Gajdos, 424 http://bugzilla.maptools.org/show_bug.cgi?id=2443 425 4262014-12-23 Even Rouault <[email protected]> 427 428 * libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code 429 of _TIFFFillStriles(). This solves crashing bug on corrupted 430 images generated by afl. 431 4322014-12-23 Even Rouault <[email protected]> 433 434 * libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with 435 <= 0 by casting it to int64 first. This solves crashing bug on corrupted 436 images generated by afl. 437 4382014-12-21 Bob Friesenhahn <[email protected]> 439 440 * tools/tiffdump.c: Guard against arithmetic overflow when 441 calculating allocation buffer sizes. 442 4432014-12-21 Even Rouault <[email protected]> 444 445 * tools/tiff2bw.c: when Photometric=RGB, the utility only works if 446 SamplesPerPixel = 3. Enforce that 447 http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127) 448 4492014-12-21 Even Rouault <[email protected]> 450 451 * tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES 452 copying. The right fix would be to properly copy it, but not worth the burden 453 for those esoteric utilities. 454 http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127) 455 4562014-12-21 Even Rouault <[email protected]> 457 458 * tools/thumbnail.c: fix out-of-buffer write 459 http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128) 460 4612014-12-21 Even Rouault <[email protected]> 462 463 * tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS 464 or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or 465 COMPRESSION_CCITTFAX4 466 http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128) 467 4682014-12-21 Even Rouault <[email protected]> 469 470 * libtiff/tif_next.c: check that BitsPerSample = 2. Fixes 471 http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129) 472 4732014-12-21 Even Rouault <[email protected]> 474 475 * tools/tiff2pdf.c: check return code of TIFFGetField() when reading 476 TIFFTAG_SAMPLESPERPIXEL 477 4782014-12-21 Even Rouault <[email protected]> 479 480 * tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none. 481 Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480) 482 Description: fix for Debian bug #741451 483 tiffcp crashes when converting JPEG-encoded TIFF to a different 484 encoding (like none or lzw). For example this will probably fail: 485 tiffcp -c none jpeg_encoded_file.tif output.tif 486 The reason is that when the input file contains JPEG data, 487 the tiffcp code forces conversion to RGB space. However, 488 the output normally inherits YCbCr subsampling parameters 489 from the input, which leads to a smaller working buffer 490 than necessary. The buffer is subsequently overrun inside 491 cpStripToTile() (called from writeBufferToContigTiles). 492 Note that the resulting TIFF file would be scrambled even 493 if tiffcp wouldn't crash, since the output file would contain 494 RGB data intepreted as subsampled YCbCr values. 495 This patch fixes the problem by forcing RGB space on the output 496 TIF if the input is JPEG-encoded and output is *not* JPEG-encoded. 497 Author: Tomasz Buchert <[email protected]> 498 4992014-12-21 Even Rouault <[email protected]> 500 501 Fix various crasher bugs on fuzzed images. 502 * libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for 503 TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing 504 the directory 505 * libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or 506 TransferFunction if BitsPerSample has not yet been read, otherwise reading 507 it later will cause user code to crash if BitsPerSample > 1 508 * libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with 509 SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8 510 * libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images 511 instead of imagewidth to avoid crash 512 * tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions 513 * tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by 514 libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB 515 * tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight 516 * tools/tiffdump.c: fix crash due to overflow of entry count. 517 5182014-12-15 Even Rouault <[email protected]> 519 520 * libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused 521 all tiles/strips to include quantization tables even when the jpegtablesmode 522 had the JPEGTABLESMODE_QUANT bit set. 523 Also add explicit removal of Huffman tables when jpegtablesmode has the 524 JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the 525 first tile/strip (only useful in update scenarios. create-only was 526 fine) 527 5282014-12-09 Bob Friesenhahn <[email protected]> 529 530 * tools/tiff2pdf.c: Assure that memory size calculations for 531 _TIFFmalloc() do not overflow the range of tmsize_t. 532 5332014-12-07 Even Rouault <[email protected]> 534 535 * tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with 536 Valgrind and Address Sanitizer on test suite 537 5382014-12-07 Bob Friesenhahn <[email protected]> 539 540 * tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION 541 tag can return one channel, with the other two channels set to 542 NULL. The tiff2pdf code was expecting that other two channels 543 were duplicate pointers in the case where there is only one 544 channel. Detect this condition in order to avoid a crash, and 545 presumably perform correctly with just one channel. 546 5472014-12-06 Bob Friesenhahn <[email protected]> 548 549 * tools/tiffdump.c: Fix double-free bug. 550 5512014-11-27 Even Rouault <[email protected]> 552 553 * libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with 554 Visual Studio 2015 aka VC 14 aka MSVC 1900 555 5562014-11-20 Even Rouault <[email protected]> 557 558 * libtiff/tif_lzw.c: prevent potential null dereference of 559 sp->dec_codetab in LZWPreDecode (bug #2459) 560 561 * libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size 562 to TIFFmalloc() if passed user buffer size is 0 (bug #2459) 563 564 * libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459) 565 566 * libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make 567 Coverity happier (not a bug, #2459) 568 569 * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier 570 (not a bug, #2459) 571 572 * tools/tiff2pdf.c: close PDF file (bug #2479) 573 574 * tools/fax2ps.c: check malloc()/realloc() result (bug #2470) 575 576 * tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463) 577 and avoid passing a NULL pointer to read() if seek() failed before (bug #2459) 578 579 * tools/tiffcrop.c: fix segfault if bad value passed to -Z option 580 (bug #2459) and add missing va_end in dump_info (#2459) 581 582 * tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451) 583 5842014-11-20 Even Rouault <[email protected]> 585 * libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on 586 corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471) 587 5882014-11-20 Even Rouault <[email protected]> 589 * automake: updated to 1.14.1 590 * libtool: updated to 2.4.3 591 * HOWTO-RELEASE: small update about autotools building order 592 5932014-10-20 Olivier Paquet <[email protected]> 594 * tools/tiff2pdf.c: Preserve input file directory order when pages 595 are tagged with the same page number. 596 5972014-08-31 Bob Friesenhahn <[email protected]> 598 599 * libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect 600 count for tag should be a warning rather than an error since 601 errors terminate processing. 602 6032014-06-07 Bob Friesenhahn <[email protected]> 604 605 * tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip 606 was wrongly described. Fix suggested by Miguel Medalha. 607 6082014-05-06 Bob Friesenhahn <[email protected]> 609 610 * libtiff/tif_dirinfo.c (TIFFField) : Fix data type for 611 TIFFTAG_GLOBALPARAMETERSIFD tag. Patch by Steve Underwood. 612 Reviewed and forwarded by Lee Howard. 613 6142013-11-30 Frank Warmerdam <[email protected]> 615 616 * libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories() 617 6182013-10-21 Frank Warmerdam <[email protected]> 619 620 * libtiff/tif_dir.c: generate error in case of directory count 621 overflow. 622 6232013-10-01 Frank Warmerdam <[email protected]> 624 625 * libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for 626 TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457) 627 6282013-09-12 Bob Friesenhahn <[email protected]> 629 630 * libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to 631 be defective, then set it to zero before returning error in order 632 to terminate processing of truncated TIFF. Issue found and fix 633 suggested by Richard Nolde. 634 6352013-08-14 Frank Warmerdam <[email protected]> 636 637 * tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244) 638 6392013-08-13 Frank Warmerdam <[email protected]> 640 641 * tools/gif2tiff.c: Be more careful about corrupt or 642 hostile input files (#2450, CVE-2013-4231) 643 644 * tools/tiff2pdf.c: terminate after failure of allocating 645 ycbcr buffer (bug #2449, CVE-2013-4232) 646 6472013-07-09 Frank Warmerdam <[email protected]> 648 649 * tools/tiffinfo.c: Default various values fetched with 650 TIFFGetField() to avoid being uninitialized. 651 6522013-05-02 Tom Lane <[email protected]> 653 654 * tools/tiff2pdf.c: Rewrite JPEG marker parsing in 655 t2p_process_jpeg_strip to be at least marginally competent. The 656 approach is still fundamentally flawed, but at least now it won't 657 stomp all over memory when given bogus input. Fixes CVE-2013-1960. 658 6592013-05-02 Tom Lane <[email protected]> 660 661 * contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c, 662 libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c, 663 tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c, 664 tools/tiffdither.c: Enlarge some fixed-size buffers that weren't 665 large enough, and eliminate substantially all uses of sprintf(buf, 666 ...) in favor of using snprintf(buf, sizeof(buf), ...), so as to 667 protect against overflow of fixed-size buffers. This responds in 668 particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's 669 t2p_write_pdf_page(), but in general it seems like a good idea to 670 deprecate use of sprintf(). 671 6722013-03-29 Bob Friesenhahn <[email protected]> 673 674 * configure.ac: Applied patch by Brad Smith to improve pkg-config 675 static linking by adding -lm to Libs.private when needed. 676 6772013-03-05 Tom Lane <[email protected]> 678 679 * html/man/tiff2ps.1.html, html/man/tiffcp.1.html, 680 html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1, 681 man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c, 682 tools/tiffdither.c: Sync tool usage printouts and man pages with 683 reality (quite a few options had escaped being documented in one 684 or both places). Per an old report from Miroslav Vadkerti. 685 6862013-01-25 Bob Friesenhahn <[email protected]> 687 688 * tools/tiff2ps.c:Fix bug in auto rotate option code. Once a 689 rotation angle was set by the auto rotate check, it was retained 690 for all pages that followed instead ofa being retested for each 691 page. Patch by Richard Nolde. 692 6932013-01-18 Frank Warmerdam <[email protected]> 694 695 * libtiff/tif_write.c: tmsize_t related casting warning fixed for 696 64bit linux. 697 698 * libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings. 699 http://bugzilla.maptools.org/show_bug.cgi?id=2427 700 7012012-12-20 Tom Lane <[email protected]> 702 703 * test/raw_decode.c: Relax raw_decode's pixel-value checks so that 704 it will pass with more versions of libjpeg. (There are at least 705 three in active use now, and JPEG_LIB_VERSION doesn't tell us 706 enough to uniquely identify expected results.) 707 7082012-12-12 Tom Lane <[email protected]> 709 710 * libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of 711 field_passcount fields: it had the TIFF_VARIABLE and 712 TIFF_VARIABLE2 cases backwards. 713 7142012-12-10 Tom Lane <[email protected]> 715 716 * tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564: 717 check the linebytes calculation too, get the max() calculation 718 straight, avoid redundant error messages, check for malloc 719 failure. 720 7212012-12-10 Tom Lane <[email protected]> 722 723 * libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447 724 (to enlarge tbuf for possible partial stride at end) so that 725 overflow in the integer addition is detected. Per gripe from 726 Huzaifa Sidhpurwala. 727 7282012-12-03 Bob Friesenhahn <[email protected]> 729 730 * tools/tiffset.c: tiffset now supports a -u option to unset a 731 tag. Patch by Zach Baker. See 732 http://bugzilla.maptools.org/show_bug.cgi?id=2419 733 7342012-11-18 Bob Friesenhahn <[email protected]> 735 736 * automake: Update Automake to 1.12.5 release. 737 738 * libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not 739 require malloc() to return NULL pointer if requested allocation 740 size is zero. Assure that _TIFFmalloc does. 741 7422012-11-01 Frank Warmerdam <[email protected]> 743 744 * tools/ppm2tiff.c: avoid zero size buffer vulnerability. 745 CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the 746 Red Hat Security Response team for the fix. 747 7482012-10-18 Frank Warmerdam <[email protected]> 749 750 * tif_zip.c: Avoid crash on NULL error messages. 751 7522012-09-22 Bob Friesenhahn <[email protected]> 753 754 * libtiff 4.0.3 released. 755 7562012-09-20 Bob Friesenhahn <[email protected]> 757 758 * Makefile.am: Update to Automake 1.12.4 759 7602012-08-19 Bob Friesenhahn <[email protected]> 761 762 * Makefile.in: Update to Automake 1.12.3 763 764 * libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add 765 some TIFF/FX support in libtiff. Add the tag definitions to 766 tiff.h. Add the related TIFF field definitions to tif_dirinfo.c, 767 and also fixes an error in a comment. Adds the photometric values 768 to tif_print.c, and fixes a bug. These changes are by Steve 769 Underwood. 770 7712012-08-13 Frank Warmerdam <[email protected]> 772 773 * libtiff/tif_write.c: Fix bug rewriting image tiles in a 774 compressed file: http://trac.osgeo.org/gdal/ticket/4771 775 7762012-08-02 Frank Warmerdam <[email protected]> 777 778 * libtiff/tif_dirread.c: report error in case of mismatch value 779 counts for tags (ie. DotRange). 780 7812012-07-26 Tom Lane <[email protected]> 782 783 * libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new 784 functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(), 785 TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount() 786 as external accessors for the opaque type TIFFField. 787 788 * tools/tiffset.c: Make tiffset use the above functions instead of 789 relying on library private headers. 790 7912012-07-19 Tom Lane <[email protected]> 792 793 * tools/tiff2pdf.c: Fix two places where t2p_error didn't get set 794 after a malloc failure. No crash risk AFAICS, but the program 795 might not report exit code 1 as desired. h/t [email protected] 796 7972012-07-18 Tom Lane <[email protected]> 798 799 * tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails. This 800 prevents core dumps or perhaps even arbitrary code execution when 801 processing a corrupt input file (CVE-2012-3401). 802 8032012-07-06 Bob Friesenhahn <[email protected]> 804 805 * test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+. 806 IJG JPEG 7+ uses a different upsampling algorithm which produces 807 different numeric results. 808 809 * libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to 810 work with IJG JPEG 7+. 811 8122012-07-04 Bob Friesenhahn <[email protected]> 813 814 * test/raw_decode.c: Add changes so that test can run with build 815 directory outside of source directory. 816 8172012-07-02 Frank Warmerdam <[email protected]> 818 819 * libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed 820 imagery (http://trac.osgeo.org/gdal/ticket/4732) 821 8222012-06-20 Frank Warmerdam <[email protected]> 823 824 * libtiff/tif_fax3.c: fix memory initialization of runs, only 825 partly done. 826 827 * libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one 828 full "stride" past the end. 829 8302012-06-19 Frank Warmerdam <[email protected]> 831 832 * libtiff/tif_packbits.c: fix read past end of data buffer. 833 8342012-06-15 Frank Warmerdam <[email protected]> 835 836 * libtiff 4.0.2 released. 837 838 * tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable 839 warnings with clang. 840 8412012-06-15 Tom Lane <[email protected]> 842 843 * tools/tiff2pdf.c: Defend against integer overflows while 844 calculating required buffer sizes (CVE-2012-2113). 845 8462012-06-12 Frank Warmerdam <[email protected]> 847 848 * libtiff/tif_print.c: Be careful about printing corrupt inknames. 849 850 * libtiff/tif_fax3.c: Ensure runs array is initialized to zeros. 851 8522012-06-07 Frank Warmerdam <[email protected]> 853 854 * libtiff/tif_print.c: avoid pretty printing other fields when 855 we don't have the proper amount and type of data or if the field 856 is actually autodefined. 857 8582012-06-05 Frank Warmerdam <[email protected]> 859 860 * libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal 861 ycbcrsubsampling values result in a runtime error, not just an 862 assertion. 863 864 * tests/custom_dir.c: Add testing of EXIF and custom directory 865 reading and writing. 866 867 * libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory() 868 and TIFFCreateEXIFDirectory() functions. 869 870 * libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for 871 PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING. Implement DOTRANGE 872 differently. This is to avoid using special TIFFGetField/TIFFSetField 873 rules for these fields in non-image directories (like EXIF). 874 8752012-06-04 Frank Warmerdam <[email protected]> 876 877 * libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling 878 in JPEGPreDecode(). If a fixup will be done it needs to be done sooner 879 in JPEGFixupTagsSubsampling() or else buffer sized may be wrong. 880 8812012-06-01 Frank Warmerdam <[email protected]> 882 883 * tools/tiffinfo.c: Do not try to read image data in EXIF directories. 884 885 * libtiff/tif_getimage.c: added support for _SEPARATED CMYK images. 886 http://bugzilla.maptools.org/show_bug.cgi?id=2379 887 888 * libtiff/tif_unix.c: use strerror() to return a more specific error message 889 on failed open. 890 http://bugzilla.maptools.org/show_bug.cgi?id=2341 891 892 * libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs. 893 http://bugzilla.maptools.org/show_bug.cgi?id=2386 894 895 * tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support 896 for testing jpeg in tiff image decoding including the "raw" decode interface. 897 8982012-05-31 Frank Warmerdam <[email protected]> 899 900 * libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in 901 JPEGDecodeRaw() - mostly likely to occur when there is confusion about 902 sampling values. 903 904 * libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed. 905 906 * libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval. 907 http://bugzilla.maptools.org/show_bug.cgi?id=2398 908 9092012-05-29 Frank Warmerdam <[email protected]> 910 911 * libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories, 912 like EXIF directories. This fixes problems like a tag "320" existing in a custom directory getting 913 processed as if it were a colormap when it isn't really. Damn the wide variety of argument formulations 914 to get/set functions for different tags! 915 916 * libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata 917 is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag. 918 9192012-05-24 Frank Warmerdam <[email protected]> 920 921 * libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward 922 accumulate" and overwrite the end by one word in at least some cases. 923 9242012-05-23 Frank Warmerdam <[email protected]> 925 926 * libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs. 927 928 * tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files. 929 930 * libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on 931 the same image. 932 933 * libtiff/tif_ojpeg.c: make things more resilient in the face of files without 934 stripbytecounts or stripoffsets or where loading these fails. 935 936 * libtiff/tif_print.c: be careful about whether min/max values are singular 937 or one per sample. 938 939 * libtiff/tif_print.c: Avoid confusion about count size when printing custom fields. 940 May affect things like ISOSpeedRatings. 941 942 * libtiff/tif_dir.c: avoid one byte past end of ink names reading 943 in some cases. 944 9452012-05-19 Bob Friesenhahn <[email protected]> 946 947 * man/TIFFGetField.3tiff: Correct the 'count' field type in the 948 example for how to retreive the value of unsupported tags. 949 9502012-03-30 Frank Warmerdam <[email protected]> 951 952 * tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173) 953 care of Tom Lane @ Red Hat. 954 9552012-02-18 Bob Friesenhahn <[email protected]> 956 957 * libtiff 4.0.1 released. 958 959 * Update automake used to 1.11.3. 960 961 * libtiff/tiffio.h: Use double-underbar syntax in GCC printf 962 attribute specification to lessen the risk of accidental macro 963 substitution. Patch from Vincent Torri. 964 9652012-01-31 Frank Warmerdam <[email protected]> 966 967 * libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around 968 assumption tag fetching is always successful. 969 970 * libtiff/tif_jpeg.c: Extra caution for case where sp is NULL. 971 9722012-01-22 Bob Friesenhahn <[email protected]> 973 974 * configure.ac: Add support for using library symbol versioning on 975 ELF systems with the GNU linker. Support is enabled via 976 --enable-ld-version-script. Disabled by default for now until 977 there is a decision for how to deploy a libtiff with versioned 978 symbols after libtiff 4.0.0 was already released. 979 9802011-12-22 Bob Friesenhahn <[email protected]> 981 982 * libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in 983 984 tif_win32.c. Patch by Edward Lam. 985 986 * configure.ac: Add libtiff private dependency on -llzma for 987 pkg-config. Patch by Mark Brand. 988 Updated Automake to 1.11.2. 989 9902011-12-21 Bob Friesenhahn <[email protected]> 991 992 * libtiff 4.0.0 released. 993 9942011-12-08 Frank Warmerdam <[email protected]> 995 996 * libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking 997 of _TIFFFillStriles() results (#gdal 4372) 998 9992011-12-07 Frank Warmerdam <[email protected]> 1000 1001 * libtiff/tif_dirread.c: fixes to deal with invalid files where 1002 _TIFFFillStriles() fails, and we try to chop up strips (gdal #4372) 1003 1004 * libtiff/tif_dirread.c: fix error reporting when there is no 1005 tag information struct and name (gdal #4373) 1006 10072011-10-22 Bob Friesenhahn <[email protected]> 1008 1009 * Update GNU libtool to 2.4.2. 1010 1011 * tools/tiffsplit.c (tiffcp): TIFFGetField count field should be 1012 uint32 type for TIFFTAG_JPEGTABLES. Patch by Christophe 1013 Deroulers. 1014 10152011-06-21 Frank Warmerdam <[email protected]> 1016 1017 * libtiff/libtiff.def: Restore TIFFMergeFieldInfo. 1018 10192011-05-31 Jim Meyering <[email protected]> 1020 1021 * libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also 1022 upon failure to allocate "resizeddata". 1023 * tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for 1024 allocation failure, not before. 1025 * libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path 1026 * tools/rgb2ycbcr.c (cvtRaster): unchecked malloc 1027 * libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark 1028 NULL-deref and possible overflow 1029 * tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written" 1030 * libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration 1031 and set of otherwise unused local, data_is_empty. 1032 * libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]: 1033 Diagnose out-of-memory failure and return 0 rather than 1034 dereferencing NULL. 1035 10362011-05-24 Frank Warmerdam <[email protected]> 1037 1038 * libtiff/tif_dirread.c: produce special error message for zero tag 1039 directories instead of error out on the malloc(0) failure. 1040 10412011-05-16 Frank Warmerdam <[email protected]> 1042 1043 * libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and 1044 related declarations as they are in active use by libraries 1045 such as libgeotiff, and work just fine. (#2315) 1046 10472011-04-20 Frank Warmerdam <[email protected]> 1048 1049 * libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete 1050 TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API. 1051 http://bugzilla.maptools.org/show_bug.cgi?id=2315 1052 1053 * libtiff/libtiff.def: add some missing (64bit) APIs. 1054 http://bugzilla.maptools.org/show_bug.cgi?id=2316 1055 10562011-04-09 Bob Friesenhahn <[email protected]> 1057 1058 * libtiff 4.0.0beta7 released. 1059 10602011-04-09 Bob Friesenhahn <[email protected]> 1061 1062 * configure.ac: Should use AC_CANONICAL_HOST since host specifies 1063 the run-time target whereas target is used to specify the final 1064 output target if the package is a build tool (like a compiler), 1065 which libtiff is not. Resolves libtiff bug 2307 "Use 1066 AC_CANONICAL_HOST macro". 1067 10682011-04-02 Bob Friesenhahn <[email protected]> 1069 1070 * configure.ac: Support configuring TIFF_INT64_FORMAT and 1071 TIFF_UINT64_FORMAT appropriately for MinGW32. 1072 1073 * tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32 1074 printf conventions for 64-bit types because it uses the WIN32 CRT. 1075 1076 * libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c, 1077 tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32 1078 printf conventions for 64-bit types because it uses the WIN32 CRT. 1079 1080 * tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not 1081 understood by WIN32 CRT. 1082 1083 * libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC. 1084 1085 * tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since 1086 it is much more portable. Tmpfile is included in ISO/IEC 1087 9899:1990 and the WIN32 CRT. 1088 10892011-03-26 Frank Warmerdam <[email protected]> 1090 1091 * tools/tiffset.c: add -d and -sd switches to allow operation on 1092 a particular directory, not just the first (jef). 1093 10942011-03-21 Frank Warmerdam <[email protected]> 1095 1096 * libtiff/tif_thunder.c: Correct potential buffer overflow with 1097 thunder encoded files with wrong bitspersample set. The libtiff 1098 development team would like to thank Marin Barbella and TippingPoint's 1099 Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004, 1100 CVE-2011-1167). 1101 http://bugzilla.maptools.org/show_bug.cgi?id=2300 1102 11032011-03-10 Frank Warmerdam <[email protected]> 1104 1105 * libtiff/tif_fax3.h: Fix to last change allowing zero length 1106 runs at the start of a scanline - needed for legal cases. 1107 11082011-03-02 Frank Warmerdam <[email protected]> 1109 1110 * libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding 1111 a move left. Without this, a malicious input file can generate an 1112 indefinitely large series of runs without a0 ever reaching the right 1113 margin, thus overrunning our buffer of run lengths. Per CVE-2011-0192. 1114 This is a modified version of a patch proposed by Drew Yao of Apple 1115 Product Security. It adds an unexpected() report, and disallows the 1116 equality case, since emitting a run without increasing a0 still allows 1117 buffer overrun. 1118 11192011-02-23 Frank Warmerdam <[email protected]> 1120 1121 * libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296) 1122 1123 * tools/tiff2rgba.c: close source file on error to make leak 1124 detection easier. 1125 1126 * libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails. 1127 1128 http://bugzilla.maptools.org/show_bug.cgi?id=2295 1129 11302011-02-22 Frank Warmerdam <[email protected]> 1131 1132 * libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ 1133 _SUPPORT) 1134 11352011-02-18 Frank Warmerdam <[email protected]> 1136 1137 * configure.ac, configure: Added support for --enable-chunky-strip-read 1138 configure option to enable the experimental feature from a couple 1139 months ago for reading big strips in chunks. 1140 1141 * configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h, 1142 tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c: 1143 Implement optional support for deferring the load of strip/tile 1144 offset and size tags for optimized scanning of directories. Enabled 1145 with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD 1146 #define in tif_config.h). 1147 11482011-02-11 Frank Warmerdam <[email protected]> 1149 1150 * libtiff/tif_print.c: remove unused variable. 1151 11522011-02-09 Frank Warmerdam <[email protected]> 1153 1154 * libtiff/tif_win32.c: avoid error/warning buffer overrun problem 1155 with non-console (popup message) builds on win32. 1156 1157 http://bugzilla.maptools.org/show_bug.cgi?id=2293 1158 11592011-01-24 Olivier Paquet <[email protected]> 1160 1161 * libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c, 1162 tif_print.c, tiff.h, tiffiop.h} : Added support for 1163 TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different 1164 values for each sample. Presents the min/max of all samples by default for 1165 compatibility. TIFFSetField/TIFFGetField can be made to handle those tags 1166 as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag. 1167 http://www.asmail.be/msg0055458208.html 1168 11692011-01-06 Frank Warmerdam <[email protected]> 1170 1171 * libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not 1172 maintained. 1173 1174 * libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding 1175 for CHUNKY_STRIP_READ_SUPPORT. 1176 1177 * libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained 1178 during JPEGPreDecode and JPEGDecode calls. 1179 * libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT, 1180 as compression formats like JPEG keep 16 lines interleaved in a sense 1181 and might need to touch quite a bit of data. 1182 1183 http://trac.osgeo.org/gdal/ticket/3894 1184 11852011-01-03 Lee Howard <[email protected]> 1186 1187 * libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images 1188 caused by commit on 2010-12-14. Submitted by e-mail from 1189 Even Rouault <[email protected]> 1190 11912010-12-31 Olivier Paquet <[email protected]> 1192 1193 * libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE. 1194 http://bugzilla.maptools.org/show_bug.cgi?id=2266 1195 11962010-12-23 Andrey Kiselev <[email protected]> 1197 1198 * tools/tiffcp.c, man/tiffcp.1: Added support for specifying the 1199 compression level parameter (preset) for Deflate and LZMA encoders, 1200 e.g "-c lzma:p1" or "-c zip:p9". 1201 1202 * libtiff/tif_lzma.c: Properly set the LZMA2 compression level 1203 (preset) in LZMAVSetField(). 1204 12052010-12-18 Bob Friesenhahn <[email protected]> 1206 1207 * libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to 1208 Makefile. 1209 12102010-12-14 Andrey Kiselev <[email protected]> 1211 1212 * configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h, 1213 tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new 1214 TIFF compression scheme LZMA reserving a new value 34925 for 1215 Compression tag. As per 1216 bug http://bugzilla.maptools.org/show_bug.cgi?id=2221 1217 12182010-12-14 Lee Howard <[email protected]> 1219 1220 * libtiff/tif_dirread.c: tolerate some cases where 1221 FIELD_COLORMAP is missing 1222 http://bugzilla.maptools.org/show_bug.cgi?id=2189 1223 12242010-12-14 Lee Howard <[email protected]> 1225 1226 * libtiff/tif_read.c: change read_ahead to tmsize_t 1227 http://bugzilla.maptools.org/show_bug.cgi?id=2222 1228 12292010-12-14 Lee Howard <[email protected]> 1230 1231 * configure.ac, libtiff/Makefile.am: Build tif_win32.c on 1232 Windows except on Cygwin 1233 http://bugzilla.maptools.org/show_bug.cgi?id=2224 1234 12352010-12-14 Lee Howard <[email protected]> 1236 1237 * tools/gif2tiff.c: fix buffer overrun 1238 http://bugzilla.maptools.org/show_bug.cgi?id=2270 1239 12402010-12-14 Lee Howard <[email protected]> 1241 1242 * libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order 1243 to improve compatibility with various viewers 1244 submitted by e-mail from Dwight Kelly <[email protected]> 1245 12462010-12-13 Lee Howard <[email protected]> 1247 1248 * tools/fax2ps.c: be consistent with page-numbering 1249 http://bugzilla.maptools.org/show_bug.cgi?id=2225 1250 12512010-12-13 Lee Howard <[email protected]> 1252 1253 * libtiff/tif_color.c: prevent crash in handling bad TIFFs 1254 resolves CVE-2010-2595 1255 http://bugzilla.maptools.org/show_bug.cgi?id=2208 1256 12572010-12-13 Lee Howard <[email protected]> 1258 1259 * tools/tiffcrop.c: new release by Richard Nolde 1260 http://bugzilla.maptools.org/show_bug.cgi?id=2004 1261 12622010-12-12 Lee Howard <[email protected]> 1263 1264 * tools/tiff2pdf.c: fix colors for images with RGBA 1265 interleaved data 1266 http://bugzilla.maptools.org/show_bug.cgi?id=2250 1267 12682010-12-12 Lee Howard <[email protected]> 1269 1270 * libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files 1271 http://bugzilla.maptools.org/show_bug.cgi?id=2164 1272 12732010-12-11 Lee Howard <[email protected]> 1274 1275 * tools/tiff2pdf.c: remove invalid duplication for Lab 1276 http://bugzilla.maptools.org/show_bug.cgi?id=2162 1277 12782010-12-11 Lee Howard <[email protected]> 1279 1280 * libtiff/tif_jpeg.c: fix use of clumplines calculation 1281 http://bugzilla.maptools.org/show_bug.cgi?id=2149 1282 12832010-12-11 Lee Howard <[email protected]> 1284 1285 * tools/fax2ps.c: replace unsafe tmpfile() with mkstemp() 1286 http://bugzilla.maptools.org/show_bug.cgi?id=2118 1287 12882010-12-11 Lee Howard <[email protected]> 1289 1290 * libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c, 1291 libtiff/tif_zip.c: fix build errors for VC6 1292 http://bugzilla.maptools.org/show_bug.cgi?id=2105 1293 12942010-12-11 Lee Howard <[email protected]> 1295 1296 * libtiff/tif_stream.cxx: warnings cleanup 1297 http://bugzilla.maptools.org/show_bug.cgi?id=2091 1298 * libtiff/tif_dirread.c: warnings cleanup 1299 http://bugzilla.maptools.org/show_bug.cgi?id=2092 1300 13012010-12-11 Lee Howard <[email protected]> 1302 1303 * tools/tiff2pdf.c: add fill-page option 1304 http://bugzilla.maptools.org/show_bug.cgi?id=2051 1305 13062010-12-11 Lee Howard <[email protected]> 1307 1308 * libtiff/tif_dirread.c: modify warnings 1309 http://bugzilla.maptools.org/show_bug.cgi?id=2016 1310 13112010-12-11 Lee Howard <[email protected]> 1312 1313 * libtiff/tif_ojpeg.c: fix buffer overflow on problem data 1314 http://bugzilla.maptools.org/show_bug.cgi?id=1999 1315 13162010-12-11 Lee Howard <[email protected]> 1317 1318 * tools/tiffinfoce.c: strip byte counts are uint64* now 1319 13202010-12-11 Lee Howard <[email protected]> 1321 1322 * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero 1323 or missing byte-count tag 1324 * tools/tiffsplit.c: abort when reading a TIFF without a byte-count 1325 per http://bugzilla.maptools.org/show_bug.cgi?id=1996 1326 13272010-12-08 Lee Howard <[email protected]> 1328 1329 * libtiff/tif_dirread.c: fix crash when reading a badly-constructed 1330 TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994 1331 13322010-12-06 Lee Howard <[email protected]> 1333 1334 * libtiff/tif_open.c: Fix mode check before opening a file. 1335 http://bugzilla.maptools.org/show_bug.cgi?id=1906 1336 13372010-11-27 Bob Friesenhahn <[email protected]> 1338 1339 * libtiff-4.pc.in: Added libtiff pkg-config .pc file support. 1340 Patch by Vincent Torri. 1341 13422010-10-21 Frank Warmerdam <[email protected]> 1343 1344 * tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler. 1345 1346 * libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf. 1347 1348 * libtiff/libtiff.def: export _TIFFCheckMalloc for tools. 1349 13502010-09-25 Lee Howard <[email protected]> 1351 1352 * tools/tiff2ps.c: improvements and enhancements from Richard Nolde 1353 with additional command line options for Document Title, 1354 Document Creator, and Page Orientation 1355 13562010-07-13 Bob Friesenhahn <[email protected]> 1357 1358 * tools/tiffcrop.c: Patch from Richard Nolde to avoid a 1359 potentially unterminated buffer due to using an exceptionally long 1360 file name. 1361 13622010-07-08 Andrey Kiselev <[email protected]> 1363 1364 * tools/tiff2pdf.c: Fixed ID buffer filling in 1365 t2p_write_pdf_trailer(), thanks to Dmitry V. Levin. 1366 13672010-07-07 Andrey Kiselev <[email protected]> 1368 1369 * libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount() 1370 to expected value as the warning message suggests. As per bug 1371 http://bugzilla.maptools.org/show_bug.cgi?id=1963 1372 13732010-07-06 Andrey Kiselev <[email protected]> 1374 1375 * tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER, 1376 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE 1377 which should be set by value. 1378 1379 * libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag() 1380 and _TIFFFieldWithName() if the tag is not found in the tag table. 1381 This should be normal situation and returned NULL value should be 1382 properly handled by the caller. 1383 13842010-07-02 Andrey Kiselev <[email protected]> 1385 1386 * libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned 1387 integer type conversions. As per bug 1388 http://bugzilla.maptools.org/show_bug.cgi?id=2207 1389 1390 * tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for 1391 WhitePoint tag as per bug 1392 http://bugzilla.maptools.org/show_bug.cgi?id=2042 1393 1394 * libtiff/tif_getimage.c: Check the number of samples per pixel when 1395 working with YCbCr image in PickContigCase(). As per bug 1396 http://bugzilla.maptools.org/show_bug.cgi?id=2216 1397 1398 * libtiff/tif_dir.c: Set the bogus post-decoding hook when processing 1399 TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when 1400 we don't need any post-processing. That helps to reset the hook if we 1401 previously set this field to some other value and the hook was 1402 initialized accordingly. As per bug 1403 http://bugzilla.maptools.org/show_bug.cgi?id=2035 1404 14052010-07-01 Andrey Kiselev <[email protected]> 1406 1407 * tools/tiffgt.c: Properly check the raster buffer allocations for 1408 integer overflows. As per bug 1409 http://bugzilla.maptools.org/show_bug.cgi?id=2108 1410 1411 * m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the 1412 upstream. 1413 1414 * libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move 1415 multiply_32() and multiply_64() functions into tif_aux.c file and 1416 rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively. 1417 14182010-06-30 Andrey Kiselev <[email protected]> 1419 1420 * tools/tiff2pdf.c: Better generation of ID field in 1421 t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings. 1422 1423 * tools/tiff2pdf.c: Fixed computation of the tile buffer size when 1424 converting JPEG encoded tiles. 1425 1426 * tools/tiff2pdf.c: Better handling of string fields, use static 1427 string buffers instead of dynamically allocated, use strncpy() instead 1428 of strcpy(), control the string lengths. 1429 14302010-06-25 Andrey Kiselev <[email protected]> 1431 1432 * tools/tiffcp.c: Initialize buffer arrays with zero to avoid 1433 referencing to uninitialized memory in some cases (e.g. when tile size 1434 set bigger than the image size). 1435 14362010-06-15 Bob Friesenhahn <[email protected]> 1437 1438 * tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr 1439 subsampled data since tiffcrop currently doesn't support it. Fix 1440 JPEG support. 1441 14422010-06-13 Frank Warmerdam <[email protected]> 1443 1444 * libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201) 1445 1446 * tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return" 1447 in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely 1448 wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual 1449 size is larger. Also, there are a bunch of places that try to 1450 memset() a malloc'd buffer before checking for malloc failure, which 1451 would result in core dump if there actually were a failure. (#2211) 1452 14532010-06-11 Bob Friesenhahn <[email protected]> 1454 1455 * libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to 1456 avoid compiler warnings if parameter types are not sign 1457 consistent. 1458 1459 * libtiff 4.0.0alpha6 released. 1460 1461 * tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected 1462 European page size dimensions. Added an option to allow the user 1463 to specify a custom page size on the command line. Fix the case 1464 where a page size specified with a fractional part was being 1465 coerced to an integer by retyping the variables that define the 1466 paper size. 1467 1468 * html/index.html: Update for the 3.9.3 release. 1469 1470 * tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject 1471 YCbCr subsampled data since tiffcp currently doesn't support it. 1472 http://bugzilla.maptools.org/show_bug.cgi?id=2097 1473 1474 * Update libtool to version 2.2.10. 1475 14762010-06-10 Bob Friesenhahn <[email protected]> 1477 1478 * libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if 1479 multiplier is zero. 1480 14812010-06-09 Bob Friesenhahn <[email protected]> 1482 1483 * libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for 1484 CVE-2010-1411 was not complete. 1485 1486 * libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely 1487 multiply two integers. Returns zero if there is an integer 1488 overflow. 1489 1490 * tools/tiffcp.c (main): tiffcp should not leak memory if an error 1491 is reported when reading the input file. 1492 14932010-06-08 Bob Friesenhahn <[email protected]> 1494 1495 * Update libtool to version 2.2.8. 1496 1497 * libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of 1498 buffer due to integer overflow in TIFFroundup() and several other 1499 potential overflows. In conjunction with the fix to TIFFhowmany(), 1500 fixes CVE-2010-1411. 1501 1502 * libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would 1503 result in an integer overflow. This causes TIFFroundup() to also 1504 return zero if there would be an integer overflow. 1505 1506 * contrib: Add an emacs formatting mode footer to all source files 1507 so that emacs can be effectively used. 1508 15092010-06-03 Oliver Chen Feng <[email protected]> 1510 1511 * libtiff/tools/tiffcp.c: add a new option -x to force merged tiff 1512 file PAGENUMBER value in sequence for users who care the page 1513 sequence, this will also prevent tiff2pdf from creating pdf file from 1514 the merged tiff file with wrong page sequence. 1515 15162010-05-08 Olivier Paquet <[email protected]> 1517 1518 * libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order 1519 to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag. 1520 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1521 TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2). 1522 http://bugzilla.maptools.org/show_bug.cgi?id=2192 1523 15242010-05-07 Frank Warmerdam <[email protected]> 1525 1526 * libtiff/tif_jpeg.c: Ensure that quality is always set in 1527 JPEGPreEncode(), not just when we want to output local tables. 1528 Otherwise the quality used during compression may not be right and 1529 might not match the tables in the tables tag. This bug only occurs 1530 when seeking between directories in the midst of writing blocks. 1531 http://trac.osgeo.org/gdal/ticket/3539 1532 15332010-05-06 Andrey Kiselev <[email protected]> 1534 1535 * html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html: 1536 Regenerated from the source. 1537 15382010-05-05 Olivier Paquet <[email protected]> 1539 1540 * libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which 1541 had stopped working. Also made it always print 6 floats instead of 1542 2*SamplesPerPixel. 1543 http://bugzilla.maptools.org/show_bug.cgi?id=2191 1544 http://bugzilla.maptools.org/show_bug.cgi?id=2186 1545 * man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the 1546 fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats. 1547 15482010-05-05 Frank Warmerdam <[email protected]> 1549 1550 * libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking 1551 if the jpeg table was written. This is a fix for the last fix on 04-21. 1552 15532010-04-21 Frank Warmerdam <[email protected]> 1554 1555 * libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime 1556 JPEGSetupEncode() is called if the tables already seem to be 1557 established. This prevents spurious updates and rewriting of 1558 directories with jpegtables when doing updates to existing images. 1559 http://trac.osgeo.org/gdal/ticket/3539 1560 15612010-04-20 Olivier Paquet <[email protected]> 1562 1563 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1564 TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH, 1565 TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA. 1566 They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2. 1567 http://bugzilla.maptools.org/show_bug.cgi?id=2139 1568 15692010-04-10 Bob Friesenhahn <[email protected]> 1570 1571 * libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for 1572 when the tag count value is zero. Error handling is still a 1573 regression since in 3.9.2, empty tags are skipped (with a warning) 1574 rather than returning a hard error and refusing to read the file. 1575 1576 * tools/ppm2tiff.c (main): While case for parsing comment line 1577 requires extra parenthesis to work as expected. Reported by 1578 Thomas Sinclair. 1579 15802010-04-02 Frank Warmerdam <[email protected]> 1581 1582 * libtiff/tif_read.c (primarily): Add support for 1583 CHUNKY_STRIP_READ_SUPPORT where large strips are 1584 read in chunks for applications using TIFFReadScanline(). 1585 This is intended to make it more practical work with very 1586 large compressed one-strip files. Feature is off by default. 1587 Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro. 1588 http://trac.osgeo.org/gdal/ticket/3514 1589 15902010-03-31 Frank Warmerdam <[email protected]> 1591 1592 * libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing 1593 directories so previously placed directories will be migrated to 1594 the end of file if needed. 1595 15962010-03-30 Frank Warmerdam <[email protected]> 1597 1598 * libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64 1599 to support operating on strips/tiles of more than 256MB. 1600 http://trac.osgeo.org/gdal/ticket/3512 1601 16022010-03-10 Bob Friesenhahn <[email protected]> 1603 1604 * libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so 1605 that it is clearly a memory allocation error message, and also 1606 includes the size of the allocation request. 1607 16082010-02-22 Lee Howard <[email protected]> 1609 1610 * libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating 1611 the JPEG TIFF as is is not required in order to prevent it from 1612 being unused and filled with invalid data. (Leave it to be 1613 generated by later activity.) 1614 http://bugzilla.maptools.org/show_bug.cgi?id=2135 1615 * tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip 1616 data rather than skipping them. This fixes the ability to view in 1617 Acrobat Reader, Evince, and Ghostscript. 1618 http://bugzilla.maptools.org/show_bug.cgi?id=2135 1619 * libtiff/tif_fax3.c: Don't return error on badly-terminated MMR 1620 strips. 1621 http://bugzilla.maptools.org/show_bug.cgi?id=2029 1622 16232009-12-03 Frank Warmerdam <[email protected]> 1624 1625 * libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns. 1626 Made so that when working with downsampled images a stub function 1627 reporting an error is used for tif_decoderow. We cannot meaningfully 1628 support reading scanlines in this situation. (#1936) 1629 1630 * libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after 1631 resetting of the upsampling values (gdal:#3259). 1632 http://bugzilla.maptools.org/show_bug.cgi?id=1936 1633 16342009-11-30 Frank Warmerdam <[email protected]> 1635 1636 * contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c, 1637 tools/ras2tiff.c: Fix resource leaks on error. 1638 http://bugzilla.maptools.org/show_bug.cgi?id=2121 1639 1640 * libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling 1641 TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead 1642 of as a custom(generic) field to avoid a potential reentrancy problem. 1643 http://bugzilla.maptools.org/show_bug.cgi?id=2125 1644 1645 * libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h, 1646 man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit 1647 const, and display_sRGB static and const. 1648 http://bugzilla.maptools.org/show_bug.cgi?id=2124 1649 16502009-11-04 Bob Friesenhahn <[email protected]> 1651 1652 * libtiff 4.0.0alpha5 released. 1653 16542009-11-03 Bob Friesenhahn <[email protected]> 1655 1656 * tools/tiffcrop.c: Updated tiffcrop from Richard Nolde. This 1657 version has undergone substantial testing with arbitrary sample 1658 bit depths. Also eliminates GCC compilation warnings. 1659 16602009-11-02 Bob Friesenhahn <[email protected]> 1661 1662 * port/libport.h: Add extern declarations for getopt standard 1663 globals. 1664 16652009-10-31 Bob Friesenhahn <[email protected]> 1666 1667 * libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings 1668 noticed in 64-bit build of libtiff with Visual Studio 2005. 1669 Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in 1670 tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067 1671 1672 * libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important 1673 warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 - 1674 Visual Studio 2005 64-bit warning in tif_pixarlog.c", 1675 http://bugzilla.maptools.org/show_bug.cgi?id=2068 1676 16772009-10-29 Bob Friesenhahn <[email protected]> 1678 1679 * libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned 1680 pointer" warnings. 1681 16822009-10-28 Bob Friesenhahn <[email protected]> 1683 1684 * html/tools.html: Add manual page links, and a summary 1685 description of tiffcrop. 1686 16872009-10-07 Bob Friesenhahn <[email protected]> 1688 1689 * configure.ac: x86_64 should use the same fill order as i386. 1690 16912009-09-24 Bob Friesenhahn <[email protected]> 1692 1693 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard 1694 Nolde. Major updates to add significant functionality for reading 1695 and writing tile based images with bit depths not a multiple of 8 1696 which cannot be handled by tiffcp. 1697 16982009-09-03 Bob Friesenhahn <[email protected]> 1699 1700 * libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs 1701 do_fancy_upsampling=FALSE in order to read raw data. Resolves 1702 "Bug 2090 - OJPEG crash with libjpeg v7". 1703 http://bugzilla.maptools.org/show_bug.cgi?id=2090 1704 17052009-09-03 Frank Warmerdam <[email protected]> 1706 1707 * libtiff/tif_getimage.c: Fixed error recognition handling in RGBA 1708 interface when stoponerror is set. 1709 http://bugzilla.maptools.org/show_bug.cgi?id=2071 1710 17112009-08-30 Bob Friesenhahn <[email protected]> 1712 1713 * tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to 1714 fix build with gcc when using the "-Wformat 1715 -Werror=format-security" flags. 1716 17172009-08-29 Bob Friesenhahn <[email protected]> 1718 1719 * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh, 1720 ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional 1721 utilities tests. 1722 17232009-08-28 Bob Friesenhahn <[email protected]> 1724 1725 * tools/tiffinfo.c: tiffinfo should return error status to the 1726 caller. Register a private error callback to accomplish that. 1727 1728 * test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and 1729 PNM formats so that we will be able to test more of the tools. 1730 While adding these test images I notice that bmp2tiff and gif2tiff 1731 only support ancient versions of their respective formats. 1732 17332009-08-27 Bob Friesenhahn <[email protected]> 1734 1735 * libtiff 4.0.0alpha4 released. 1736 1737 * HOWTO-RELEASE: Improved release instructions. 1738 17392009-08-24 Bob Friesenhahn <[email protected]> 1740 1741 * man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied 1742 fixes for "Bug 2023 - nroff errors in manual pages". 1743 http://bugzilla.maptools.org/show_bug.cgi?id=2023 1744 1745 * tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 - 1746 CVE-2009-2347 libtiff: integer overflows in various inter-color 1747 space conversion tools". 1748 http://bugzilla.maptools.org/show_bug.cgi?id=2079 1749 1750 * libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay 1751 Berkenbilt for "Bug 2024 - possible null pointer dereference with 1752 one-line fix". 1753 http://bugzilla.maptools.org/show_bug.cgi?id=2024 1754 1755 * libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch 1756 from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c: 1757 segfault after setting tdir_tag = IGNORE". 1758 http://bugzilla.maptools.org/show_bug.cgi?id=1895 1759 17602009-08-23 Bob Friesenhahn <[email protected]> 1761 1762 * test/Makefile.am, test/tiffcrop*.sh: Split previously existing 1763 tiffcrop.sh into a collection of many specific tests. Re-wrote 1764 all of the existing tests to be based on some simple shell 1765 functions. Make distcheck works again. 1766 1767 Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and 1768 added 'memcheck' and 'ptrcheck' targets to make it easy to run the 1769 tests under valgrind. 1770 17712009-08-21 Bob Friesenhahn <[email protected]> 1772 1773 * test/tiffcp-logluv.sh: Fix test so that it works with a VPATH 1774 build. 1775 1776 * test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not 1777 actually activated since it needed to be enabled in this 1778 Makefile.am. Also activated parallel-tests mode since it offers 1779 useful features such as per-test .log files and a summary test 1780 report .log file. 1781 17822009-08-20 Bob Friesenhahn <[email protected]> 1783 1784 * configure.ac: Updated autotools. Autoconf 2.64, Automake 1.11, 1785 libtool 2.2.6. Enabled support for silent build rules 1786 (--enable-silent-rules or 'make V=0') and colorized tests. 1787 1788 * html/{index.html, v3.9.0.html}: Update for 3.9.0 release. 1789 17902009-06-30 Frank Warmerdam <[email protected]> 1791 1792 * tests/tiffcp-logluv.sh: minimal testing of sgilog compression. 1793 1794 * tools/tiffcp.c: add -c sgilog support. 1795 1796 * libtiff/tif_luv.c: correct return codes from encoderow to be 1797 1 on success instead of zero. 1798 http://bugzilla.maptools.org/show_bug.cgi?id=2069 1799 1800 * libtiff/tif_lzw.c: back out patch from #2065 and apply patch from 1801 #1085 for a better underflow fix that errors properly. 1802 http://bugzilla.maptools.org/show_bug.cgi?id=2065 1803 http://bugzilla.maptools.org/show_bug.cgi?id=1985 1804 18052009-06-26 Frank Warmerdam <[email protected]> 1806 1807 * libtiff/tif_strip.c: Remove an inappropriate assertion that often 1808 fails on oddly sized 12bit jpeg compressed ycbcr images. 1809 18102009-06-22 Frank Warmerdam <[email protected]> 1811 1812 * libtiff/tif_lzw.c: Fix buffer underflow bug. 1813 http://bugzilla.maptools.org/show_bug.cgi?id=2065 1814 18152009-06-21 Frank Warmerdam <[email protected]> 1816 1817 * configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support 1818 for dual mode 8/12 bit jpeg support. 1819 18202009-06-03 Frank Warmerdam <[email protected]> 1821 1822 * libtiff/tif_write.c: do not override the planar configuration to be 1823 contig for one sample files if planar configuration is already set. 1824 http://bugzilla.maptools.org/show_bug.cgi?id=2057 1825 18262009-06-02 Frank Warmerdam <[email protected]> 1827 1828 * libtiff/libtiff.def: Add TIFFUnsetField. 1829 18302009-05-03 Frank Warmerdam <[email protected]> 1831 1832 * libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various 1833 error reports to use "%s" as format string. 1834 http://trac.osgeo.org/gdal/ticket/2976 1835 18362009-03-12 Frank Warmerdam <[email protected]> 1837 1838 * libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining 1839 for some codecs (#2020). 1840 18412009-02-12 Frank Warmerdam <[email protected]> 1842 1843 * libtiff/tif_luv.c: Fix handling of tiled logluv images. 1844 http://bugzilla.maptools.org/show_bug.cgi?id=2005 1845 18462009-02-09 Frank Warmerdam <[email protected]> 1847 1848 * libtiff/tif_dirread.c: Improve allocation safety when allocated 1849 buffer for large tags. (#1998) Related to (#1993) 1850 18512009-02-06 Frank Warmerdam <[email protected]> 1852 1853 * tools/tiffcrop.c: Don't default image->res_unit to INCH. Now the 1854 test suite should pass. 1855 18562009-02-05 Frank Warmerdam <[email protected]> 1857 1858 * libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size, 1859 but at the 2GB boundary to avoid overflow on 32bit systems. 1860 http://bugzilla.maptools.org/show_bug.cgi?id=1993 1861 1862 * libtiff/tif_dirread.c: Remove some assertions that blow due to 1863 corrupt files rather than in response to library internal 1864 inconsistencies. 1865 http://bugzilla.maptools.org/show_bug.cgi?id=1995 1866 http://bugzilla.maptools.org/show_bug.cgi?id=1991 1867 1868 * libtiff/tif_dirread.c: Fixed testing for failed result from 1869 TIFFReadDirectoryFindFieldInfo(). 1870 http://bugzilla.maptools.org/show_bug.cgi?id=1992 1871 18722009-01-23 Frank Warmerdam <[email protected]> 1873 1874 * libtiff/tif_predict.c: Add support for 32bit integer horz. predictors. 1875 http://bugzilla.maptools.org/show_bug.cgi?id=1911 1876 1877 * libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset. 1878 1879 http://bugzilla.maptools.org/show_bug.cgi?id=1924 1880 1881 * tools/tiffcrop.c: initialize xres/yres values. 1882 1883 * test/*.sh - default ${srcdir} to local directory. 1884 1885 * test/common.sh - start verbose mode after common settings. 1886 1887 * libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to 1888 avoid type mismatches on different platforms. 1889 http://bugzilla.maptools.org/show_bug.cgi?id=1889 1890 18912009-01-22 Frank Warmerdam <[email protected]> 1892 1893 * tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c, 1894 tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues. 1895 1896 * port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT 1897 defined, primarily to reduce prototype warnings on windows. 1898 1899 * libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings 1900 about unused parameters, and uninitialized variables. 1901 19022009-01-21 Bob Friesenhahn <[email protected]> 1903 1904 * test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in 1905 order to trace full execution detail while executing the test suite. 1906 19072009-01-20 Frank Warmerdam <[email protected]> 1908 1909 * tools/tiffsplit.c: fix sampleformat to be shortv instead of longv. 1910 19112009-01-20 Bob Friesenhahn <[email protected]> 1912 1913 * test/Makefile.am (CLEANFILES): Make sure that test output files 1914 are removed by 'make clean' 1915 1916 * Update autotools for 4.0.0 beta3 1917 1918 * 4.0.0 beta3 produced. 1919 19202009-01-12 Bob Friesenhahn <[email protected]> 1921 1922 * test/tiffcrop.sh: New test script for tiffcrop from Richard 1923 Nolde. 1924 1925 * tools/tiff2ps.c: Remove spurious message to stderr. 1926 19272009-01-11 Bob Friesenhahn <[email protected]> 1928 1929 * tools/tiff2ps.c: Incorporated significant functionality update 1930 from Richard Nolde. In particular, support for rotating the image 1931 by 90, 180, 270, and 'auto' has been added. 1932 1933 * man/tiffcrop.1: Incorporated documentation updates from Richard 1934 Nolde. 1935 1936 * tools/tiffcrop.c: Incorporated significant functionality update 1937 from Richard Nolde. 1938 19392008-12-31 Bob Friesenhahn <[email protected]> 1940 1941 * libtiff/tiffio.h: GCC will now validate format specifications 1942 for TIFFError(), TIFFErrorExt(), TIFFWarning(), and 1943 TIFFWarningExt() in order to reveal bugs. 1944 1945 * Many fixes throughout to work better as a 64-bit build. 1946 19472008-12-30 Bob Friesenhahn <[email protected]> 1948 1949 * tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length 1950 tags now require 64-bit parameter rather than 32-bit. 1951 1952 * libtiff/tif_dirread.c: Fixed issues with unaligned access to 1953 64-bit values. 1954 1955 * tools/thumbnail.c: Eliminate crash noticed while running test 1956 suite. 1957 19582008-12-29 Bob Friesenhahn <[email protected]> 1959 1960 * libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer): 1961 Initialize stack variables to avoid compiler warning. 1962 1963 * tools/tiffinfoce.c (main): Use toff_t for offset type when 1964 retrieving offset of EXIF IFD. 1965 1966 * libtiff/tiffio.h: Undeprecate toff_t and restore its use in the 1967 TIFFClientOpen() callback and other external function definitions. 1968 1969 * tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit 1970 type now. Fixes crash when dumping files containing an EXIF IFD. 1971 1972 * m4/libtool.m4: Update to libtool 2.2.6. 1973 19742008-12-21 Frank Warmerdam <[email protected]> 1975 1976 * libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function. 1977 1978 * libtiff/tif_jpeg.c: Avoid errors if the application writes a full 1979 strip for the last partial strip in a jpeg compressed file. 1980 http://bugzilla.maptools.org/show_bug.cgi?id=1981 1981 19822008-10-29 Frank Warmerdam <[email protected]> 1983 1984 * libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when 1985 we take the shortcut to only update the strip/tile offsets in place. 1986 http://trac.osgeo.org/gdal/ticket/2621 1987 19882008-10-21 Andrey Kiselev <[email protected]> 1989 1990 * libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with 1991 the older versions retained). 1992 19932008-10-09 Frank Warmerdam <[email protected]> 1994 1995 * libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using 1996 IPP enabled version of libjpeg from Intel. 1997 http://bugzilla.maptools.org/show_bug.cgi?id=1951 1998 19992008-09-05 Andrey Kiselev <[email protected]> 2000 2001 * tools/tiffsplit.c: Use byte counts of proper size (uint64). 2002 Required for libtiff 4.0. 2003 2004 * tools/tiffsplit.c: Use dynamically allocated array instead of static 2005 when constructing output file names. 2006 20072008-09-03 Andrey Kiselev <[email protected]> 2008 2009 * tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when 2010 doing the filename/path construction. 2011 2012 * tools/tiff2pdf.c: More appropriate format string in 2013 t2p_write_pdf_string(); avoid signed/unsigned mismatch. 2014 2015 * libtiff/tif_lzw.c: Properly zero out the codetable. As per bug 2016 2017 http://bugzilla.maptools.org/show_bug.cgi?id=1929 2018 2019 * libtiff/tif_lzw.c: Properly zero out the string table. Fixes 2020 CVE-2008-2327 security issue. 2021 20222008-09-01 Frank Warmerdam <[email protected]> 2023 2024 * libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function. 2025 2026 * libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD 2027 depending on whether the file is bigtiff or classic tiff. 2028 http://bugzilla.maptools.org/show_bug.cgi?id=1917 2029 20302008-08-12 Edward Lam <[email protected]> 2031 2032 * tools/tiffdump.c: When compiling for Microsoft Windows, apply 2033 consistent (__int64) casting when testing if _lseeki64 has 2034 successfully seeked as requested. This is necessary for large 2035 file support to work since off_t is only 32-bit. 2036 20372008-07-29 Frank Warmerdam <[email protected]> 2038 2039 * tif_strip.c: Replace assertions related to samplesperpixel != 3 or 2040 the subsampling values not being 1, 2 or 4 (for jpeg compressed images) 2041 with control logic to return runtime errors (c/o Even Rouault) (#1927). 2042 20432008-06-17 Frank Warmerdam <[email protected]> 2044 2045 * tools/tiffcrop.c: Fix some portability problems. 2046 2047 * libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are 2048 used in tif_jpeg.c. 2049 2050 * libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags 2051 as TIFFOpen(). 2052 20532008-06-01 Frank Warmerdam <[email protected]> 2054 2055 * libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures 2056 like Sparc/Solaris. 2057 http://bugzilla.maptools.org/show_bug.cgi?id=1892 2058 20592008-05-27 Frank Warmerdam <[email protected]> 2060 2061 * libtiff.def: Add TIFFFindField 2062 http://bugzilla.maptools.org/show_bug.cgi?id=1891 2063 20642008-05-26 Frank Warmerdam <[email protected]> 2065 2066 * tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused. 2067 2068 * li2008-04-15 Andrey Kiselev <[email protected]> 2069 2070btiff/tif_win32.c: Replace custom Win32 memory api with generic 2071 POSIX one. No apparent value to use of GlobalAlloc() in the modern 2072 age. http://bugzilla.maptools.org/show_bug.cgi?id=1885 2073 2074 * libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items 2075 in windows version (care of Edward Lam). 2076 20772008-05-24 Frank Warmerdam <[email protected]> 2078 2079 * tif_codec.c: Avoid NULL pointer dereferencing for exotic 2080 compression codec codes. 2081 2082 * tif_dirwrite.c: fix potential memory leak. 2083 2084 * tif_dirread.c: Fix unchecked malloc result. 2085 20862008-05-24 Bob Friesenhahn <[email protected]> 2087 2088 * test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh 2089 tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh 2090 tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh 2091 tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh 2092 tiffdump.sh tiffinfo.sh}: Added more test scripts based on 2093 suggestions from Lee Howard posted to the tiff list on 13 Sep 2094 2007. 2095 20962008-05-23 Frank Warmerdam <[email protected]> 2097 2098 * libtiff/tif_fax3.c: Add an assert in an effort to detect a 2099 possible runtime problem reported by coverity. 2100 2101 * contrib/iptcutil/iptcutil.c: Fixed memory leak of str. 2102 2103 * tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde. 2104 http://bugzilla.maptools.org/show_bug.cgi?id=1888 2105 2106 * tools/tiffdither.c: remove dead onestrip code. avoid memory leak. 2107 2108 * tools/rgb2ycbcr.c: fix memory leak of raster buffer. 2109 2110 * tools/tiffcp.c: Simplify inknames code to avoid pointless test. 2111 Cleanup scanline allocation to avoid coverity warning. 2112 2113 * tools/thumbnail.c: Check for TIFFOpen() failure. 2114 21152008-05-18 Frank Warmerdam <[email protected]> 2116 2117 * libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT 2118 and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED. Not exactly clear 2119 why this is needed. 2120 21212008-05-09 Bob Friesenhahn <[email protected]> 2122 2123 * Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like 2124 "ACLOCAL_AMFLAGS=-I ./m4". It wants "ACLOCAL_AMFLAGS=-I m4". 2125 21262008-04-15 Andrey Kiselev <[email protected]> 2127 2128 * test/: Test suite updated. Everything is passed now. 2129 2130 * libtiff/tif_dirinfo.c: Fixed description of the 2131 TIFFTAG_NUMBEROFINKS tag. 2132 21332008-04-14 Andrey Kiselev <[email protected]> 2134 2135 * libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}: 2136 Get rid of some of "dereferencing type-punned" warnings by converting 2137 tdir_offset field of TIFFDirEntry structure into union. 2138 21392008-04-10 Andrey Kiselev <[email protected]> 2140 2141 * libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}: 2142 TIFFRewriteField() renamed into _TIFFRewriteField() and moved out 2143 from the public interface. Type of its 'count' parameter changed 2144 from uint32 to tmsize_t. 2145 2146 * /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields 2147 of the tiff structure have the size_t type instead of uint32. 2148 21492008-04-09 Andrey Kiselev <[email protected]> 2150 2151 * tools/tiffdump.c: Added support for MSVS 6.0. 2152 2153 * libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat() 2154 and _TIFFUInt64ToDouble() to convert 64-bit integers into floating 2155 point values on MSVS 6.0 platform. 2156 21572008-03-14 Frank Warmerdam <[email protected]> 2158 2159 * tif_dirread.c: Removed sanity checks on tags larger than 4MB in 2160 TIFFReadDirEntryArray() since they are interfering with seemingly 2161 legitimate files. http://trac.osgeo.org/gdal/ticket/2005 2162 21632008-02-09 Joris Van Damme <[email protected]> 2164 2165 * tif_dirread.c: Added handling for the case of number of values for 2166 PageNumber tag different from 2 (previously resulted in an assert 2167 indicating lack of handling and was forgotten about) 2168 21692008-02-01 Frank Warmerdam <[email protected]> 2170 2171 * libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on 2172 the actual jpeg data stream if the first strip/tile has zero size. 2173 This is the case when GDAL creates a new file with zero sizes, closes 2174 and reopens it. 2175 21762008-01-07 Frank Warmerdam <[email protected]> 2177 2178 * tools/tiff2ps.c: fix up 64bit issues (from Edward Lam). 2179 21802008-01-01 Frank Warmerdam <[email protected]> 2181 2182 * libtiff/tif_dirwrite.c: #ifdef out lots of unused functions. 2183 2184 * Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean 2185 targets. 2186 2187 * tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c 2188 tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005 2189 (x64). 2190 2191 * tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag() 2192 and TIFFFieldWithName() now return TIFFField pointers instead of 2193 TIFFFieldInfo pointers. 2194 2195 * tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't 2196 exist. This makes it compile again on Windows 2197 2198 * tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c, 2199 tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64. 2200 2201 * test/rewrite_tag.c: New test for TIFFRewriteField(). 2202 22032007-12-31 Frank Warmerdam <[email protected]> 2204 2205 * tif_dirwrite.c: Added TIFFRewriteField(). This new function 2206 rewrites one field "on disk" updating an existing directory 2207 entry. Lots of limitations still... 2208 2209 * tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of 2210 TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that 2211 the strip offset/size values are dirty but nothing else about the 2212 directory is dirty. In flush handle "just stripmaps dirty" as a 2213 special case that just rewrites these values without otherwise 2214 modifying the directory on disk using TIFFRewriteField(). 2215 2216 We also modify logic so that in update mode the directory is not 2217 marked dirty on read, but only when something is changed. This 2218 means we need to keep track of updates to the stripmap stuff in 2219 TIFFAppendToStrip(). 2220 22212007-12-10 Frank Warmerdam <[email protected]> 2222 2223 * tif_jpeg.c: Improve ability to switch between encoding and decoding 2224 in the jpeg code (gdal bug #2033). 2225 22262007-11-23 Frank Warmerdam <[email protected]> 2227 2228 * tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c, 2229 tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the 2230 rawcp/rawcc buffer are for writing and thus may require flushing. 2231 Necessary to distinguish whether they need to be written to disk when 2232 in mixed read/write mode and doing a mixture of writing followed by 2233 reading. http://trac.osgeo.org/gdal/ticket/1758 2234 22352007-11-23 Andrey Kiselev <[email protected]> 2236 2237 * configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches 2238 from Alexey Chupahin. 2239 22402007-11-02 Frank Warmerdam <[email protected]> 2241 2242 * tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for 2243 establishing if an existing tile can be rewritten to the same location 2244 by comparing the current size to all the other blocks in the same 2245 directory. This is dangerous in many situations and can easily 2246 corrupt a file. (observed in esoteric GDAL situation that's hard to 2247 document). This change involves leaving the stripbytecount[] values 2248 unaltered till TIFFAppendToStrip(). Now we only write a block back 2249 to the same location it used to be at if the new data is the same 2250 size or smaller - otherwise we move it to the end of file. 2251 2252 * tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile 2253 data when writing the directory just because we have BEENWRITING at 2254 some point in the past. This was causing odd junk to be written out 2255 in a tile of data when a single tile had an interleaving of reading 2256 and writing with reading last. (highlighted by gdal 2257 autotest/gcore/tif_write.py test 7. 2258 2259 * tif_predict.c: use working buffer in PredictorEncodeTile to avoid 2260 modifying callers buffer. 2261 http://trac.osgeo.org/gdal/ticket/1965 2262 2263 * tif_predict.c/h: more fixes related to last item, keeping a 2264 distinct pfunc for encode and decode cases as these were getting 2265 mixed up sometimes. 2266 http://trac.osgeo.org/gdal/ticket/1948 2267 22682007-11-01 Frank Warmerdam <[email protected]> 2269 2270 * tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that 2271 predictor based encoding and decoding works in read-write update 2272 mode properly. 2273 http://trac.osgeo.org/gdal/ticket/1948 2274 22752007-10-24 Joris Van Damme <[email protected]> 2276 2277 * tif_dirread.c: Fixed problem with bogus file triggering 2278 assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in 2279 ChopUpSingleUncompressedStrip 2280 22812007-10-22 Joris Van Damme <[email protected]> 2282 2283 * tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images 2284 at best, access violation at worst, when subsampled JPEG compressed imagery 2285 is decoded without the JPEG_COLORMODE feature 2286 22872007-10-11 Frank Warmerdam <[email protected]> 2288 2289 * html/index.html: Update "people responsible" section. 2290 22912007-10-05 Frank Warmerdam <[email protected]> 2292 2293 * tools/tiff2pdf.c: Fix problem with alpha setting in some cases 2294 as reported on the mailing list. 2295 22962007-10-01 Joris Van Damme <[email protected]> 2297 2298 * changed some more incorrect %lud printf flags to %lu 2299 23002007-09-29 Joris Van Damme <[email protected]> 2301 2302 * tif_dirread.c: Strip chopping interfered badly with uncompressed 2303 subsampled images because it tried to divide subsampled rowblocks, 2304 leading to all sorts of errors throughout the library for these 2305 images. Fixed by making strip chopping divide in row counts that 2306 are a multiple of vertical subsampling value. 2307 23082007-09-28 Joris Van Damme <[email protected]> 2309 2310 * tif_dirread.c: Logical cast working around compiler warning 2311 2312 * tif_read.c: Correction of some error flags and parameter lists 2313 23142007-09-27 Joris Van Damme <[email protected]> 2315 2316 * tif_dirread.c: Made calculation of td_maxsamplevalue more robust 2317 when dealing with large bitspersample values, shutting up purification 2318 tools that warn about truncation, though it remains incorrect and 2319 indicates a conceptual problem there. 2320 2321 * tif_open.c: Moved early exit in case of 'h' flag (to disable reading 2322 of first IFD) to proper place because it badly interfered with memory 2323 mapping, resulting in mapping flag even with dummy mapping functions 2324 that returned 0 whilst at the same time the mapping tif_size wasn't 2325 set, thus resulting in continuous incorrect beyond-eof errors. 2326 23272007-09-24 Joris Van Damme <[email protected]> 2328 2329 * tif_dirinfo.c: Fixed (MSVC) compiler reports about 2330 inconsistent use of const in tiffFields and exifFields definition 2331 23322007-09-20 Frank Warmerdam <[email protected]> 2333 2334 * tif_dirwrite.c: Always write tile/strip offsets and sizes 2335 using LONG8 type when output format is BigTIFF. The 2336 TIFFWriteDirectoryTagLongLong8Array() function was restructured 2337 accordingly. 2338 2339 * tif_dirread.c: Improvements to error reporting text in 2340 TIFFFetchDirectory(). 2341 23422007-09-19 Bob Friesenhahn <[email protected]> 2343 2344 * test/images: Added a small collection of test images for use by 2345 test programs and scripts. 2346 * test/tiffinfo.sh: A trivial example test script. 2347 * test/common.sh: Added small script for setting the environment 2348 used by script-based tests. 2349 23502007-08-24 Frank Warmerdam <[email protected]> 2351 2352 * tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed 2353 zero when writing directory contents to preserve the ability to 2354 rewrite directories in place, even in the middle of a directory 2355 chain. 2356 2357 * tif_dirinfo.c: _TIFFMergeFields() now only merges in field 2358 definitions that are missing. Existing definitions are silently 2359 ignored. 2360 2361 * tif_dirread.c: Add runtime error for fields for which no definition 2362 is found (in addition to an assert for developers) in 2363 TIFFFetchNormalTag(). Not sure if this is needed, but it seems 2364 prudent. 2365 23662007-08-10 Joris Van Damme <[email protected]> 2367 2368 * libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer 2369 from _TIFFRGBAImage structure to revert unwanted ABI change. 2370 23712007-08-10 Joris Van Damme <[email protected]> 2372 2373 * libtiff/tif_win32.c: use SetFilePointer instead of 2374 SetFilePointerEx, as per bug 2375 2376 http://bugzilla.remotesensing.org/show_bug.cgi?id=1580 2377 23782007-07-19 Andrey Kiselev <[email protected]> 2379 2380 * libtiff/tif_stream.cxx: Put all callback functions declarations 2381 inside extern "C" block. 2382 2383 * libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c, 2384 tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf() 2385 formatter instead of "%lld" with MSVC compiler. 2386 2387 * libtiff/{tiffiop.h, tif_aux.c}: Added _TIFFUInt64ToFloat() and 2388 _TIFFUInt64ToDouble() functions. 2389 23902007-07-18 Andrey Kiselev <[email protected]> 2391 2392 * libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit 2393 integer constants. 2394 2395 * libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h, 2396 remove tif_config.h/tiffconf.h during cleaning. As per bug 2397 2398 http://bugzilla.remotesensing.org/show_bug.cgi?id=1573 2399 2400 * libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug 2401 2402 http://bugzilla.remotesensing.org/show_bug.cgi?id=1577 2403 24042007-07-13 Andrey Kiselev <[email protected]> 2405 2406 * libtiff 4.0.0alpha released. 2407 24082007-07-12 Andrey Kiselev <[email protected]> 2409 2410 * tools/tiff2pdf.c: Added missed extern optind as per bug 2411 2412 http://bugzilla.remotesensing.org/show_bug.cgi?id=1567 2413 2414 * libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c, 2415 tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag 2416 extending scheme completed. 2417 24182007-07-11 Bob Friesenhahn <[email protected]> 2419 2420 * libtiff/tif_stream.cxx: Adapt to use toff_t again. Update to 2421 use standard C++ library size types and attempt to detect overflow 2422 cases. 2423 24242007-07-08 Andrey Kiselev <[email protected]> 2425 2426 * libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h, 2427 tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new 2428 tag extending scheme. Use the new scheme everywhere. 2429 2430 * libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c, 2431 tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c, 2432 tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}: 2433 TIFFFIeldInfo structure replaced with TIFFField structure. 2434 TIFFFieldInfo retained for the backward compatibility. 2435 24362007-07-05 Bob Friesenhahn <[email protected]> 2437 2438 * tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not 2439 defined. 2440 24412007-07-04 Andrey Kiselev <[email protected]> 2442 2443 * libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused 2444 TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration 2445 removed. 2446 2447 * libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move 2448 tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS, 2449 TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory. 2450 These tags are not codec-specific and relate to image content, so 2451 process them as other normal tags. 2452 2453 * libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the 2454 public tiffio.h to private tif_dir.h. 2455 2456 * contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and 2457 outdated. 2458 24592007-07-03 Andrey Kiselev <[email protected]> 2460 2461 * libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c, 2462 tif_win3.c}: Obsoleted portability stuff removed. 2463 2464 * tools/tiff2ps.c: Added support 16-bit images as per bug 2465 2466 http://bugzilla.remotesensing.org/show_bug.cgi?id=1566 2467 2468 Patch from William Bader. 2469 2470 * tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and 2471 significant upgrade of the whole utility as per bug 2472 2473 http://bugzilla.remotesensing.org/show_bug.cgi?id=1560 2474 2475 Now we don't need tiffiop.h in tiff2pdf anymore and will open output 2476 PDF file using TIFFClientOpen() machinery as it is implemented 2477 by Leon Bottou. 2478 24792007-06-26 Bob Friesenhahn <[email protected]> 2480 2481 * configure.ac: Fix typo when substituting value for unsigned 8 bit type. 2482 Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic. 2483 Added support for a TIFF_SSIZE_T in order to return memory sizes but still 2484 allow returning -1 for errors. 2485 * libtiff/tiffconf.vc.h: Add porting type defintions for WIN32. 2486 24872007-06-25 Bob Friesenhahn <[email protected]> 2488 2489 * port/strtoull.c: New porting function in case strtoull() is not 2490 available on the target system. 2491 * configure.ac: Add configure support for determining sized types 2492 in a portable way and performing necessary substitutions in 2493 tif_config.h and tiffconf.h. Updated tiff.h to use the new 2494 definitions. 2495 24962007-04-27 Andrey Kiselev <[email protected]> 2497 2498 * tools/tiff2pdf.c: Check the tmpfile() return status as per bug 2499 2500 http://bugzilla.remotesensing.org/show_bug.cgi?id=154 2501 25022007-04-07 Andrey Kiselev <[email protected]> 2503 2504 * libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c, 2505 tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c, 2506 tif_predict.c, tif_zip.c}: Finally fix bug 2507 2508 http://bugzilla.remotesensing.org/show_bug.cgi?id=1274 2509 2510 by introducing _TIFFMergeFieldInfo() returning integer error status 2511 instead of void in case of problems with field merging (e.g., if the 2512 field with such a tag already registered). TIFFMergeFieldInfo() in 2513 public API remains void. Use _TIFFMergeFieldInfo() everywhere and 2514 check returned value. 2515 25162007-04-07 Frank Warmerdam <[email protected]> 2517 2518 * contrib/addtiffo/tif_overview.c: Fix problems with odd sized output 2519 blocks in TIFF_DownSample_Subsampled() (bug 1542). 2520 25212007-04-06 Frank Warmerdam <[email protected]> 2522 2523 * libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it 2524 will convert from decompressor to compressor or compress to decompress 2525 if required by the force arguments. This works around a problem in 2526 where the JPEGFixupTestSubsampling() may cause a decompressor to 2527 be setup on a directory when later a compressor is required with the 2528 force flag set. Occurs with the addtiffo program for instance. 2529 25302007-04-06 Andrey Kiselev <[email protected]> 2531 2532 * tools/tiffcrop.c, man/tiffcrop.1: Significant update in 2533 functionality from Richard Nolde. As per bug 2534 2535 http://bugzilla.remotesensing.org/show_bug.cgi?id=1525 2536 25372007-03-28 Frank Warmerdam <[email protected]> 2538 2539 * libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC. 2540 25412007-03-17 Joris Van Damme <[email protected]> 2542 2543 * start of BigTIFF upgrade - CVS HEAD unstable until further notice 2544 25452007-03-07 Joris Van Damme <[email protected]> 2546 2547 * libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading 2548 OJPEG images with rowsperstrip that is not a multiple of vertical subsampling 2549 factor. This bug is mentioned in: 2550 http://bugzilla.remotesensing.org/show_bug.cgi?id=1390 2551 http://www.asmail.be/msg0054766825.html 2552 25532007-03-07 Joris Van Damme <[email protected]> 2554 2555 * libtiff/tif_win32.c: made inclusion of windows.h unconditional 2556 2557 * libtiff/tif_win32.c: replaced preprocessor indication for consiously 2558 unused arguments by standard C indication for the same 2559 25602007-02-27 Andrey Kiselev <[email protected]> 2561 2562 * libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte 2563 counters in TIFFFetchData(). Should finally fix the issue 2564 2565 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 2566 25672007-02-24 Andrey Kiselev <[email protected]> 2568 2569 * tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount. 2570 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350 2571 2572 * libtiff/tif_dirread.c: Added special function to handle 2573 SubjectDistance EXIF tag as per bug 2574 2575 http://bugzilla.remotesensing.org/show_bug.cgi?id=1362 2576 2577 * tools/tiff2pdf.c: Do not assume inches when the resolution units 2578 do not specified. As per bug 2579 2580 http://bugzilla.remotesensing.org/show_bug.cgi?id=1366 2581 2582 * tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if 2583 it was set as infinite. As per bug 2584 2585 http://bugzilla.remotesensing.org/show_bug.cgi?id=1368 2586 2587 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed 2588 by Richard Nolde. As per bug 2589 2590 http://bugzilla.remotesensing.org/show_bug.cgi?id=1383 2591 25922007-02-22 Andrey Kiselev <[email protected]> 2593 2594 * libtiff/tif_dir.c: Workaround for incorrect TIFFs with 2595 ExtraSamples == 999 produced by Corel Draw. As per bug 2596 2597 http://bugzilla.remotesensing.org/show_bug.cgi?id=1490 2598 2599 * libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters 2600 changed from tsize_t to uint32 to be able to work with data arrays 2601 larger than 2GB. Fixes bug 2602 2603 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 2604 2605 Idea submitted by Matt Hancher. 2606 26072007-01-31 Andrey Kiselev <[email protected]> 2608 2609 * tools/tif2rgba.c: This utility does not work properly on big-endian 2610 architectures. It was fixed including the bug 2611 2612 http://bugzilla.remotesensing.org/show_bug.cgi?id=1149 2613 26142007-01-15 Mateusz Loskot <[email protected]> 2615 2616 * Submitted libtiff port for Windows CE platform 2617 * libtiff/tif_config.wince.h: Added configuration header for WinCE. 2618 * libtiff/tiffconf.wince.h: Ported old configuration header for WinCE. 2619 * libtiff/tif_wince.c: Added WinCE-specific implementation of some 2620 functons from tif_win32.c. 2621 * libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c. 2622 * libtiff/tiffiop.h, port/lfind.c: Added conditional include of some 2623 standard header files for Windows CE build. 2624 * tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE. 2625 26262006-11-19 Frank Warmerdam <[email protected]> 2627 2628 * libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if 2629 we move a strip. 2630 http://bugzilla.remotesensing.org/show_bug.cgi?id=1359 2631 26322006-10-13 Andrey Kiselev <[email protected]> 2633 2634 * libtiff/tif_dir.c: More fixes for vulnerabilities, reported 2635 in Gentoo bug (): 2636 2637 http://bugs.gentoo.org/show_bug.cgi?id=142383 2638 2639 * libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable. 2640 Though it is still far from the state of being working and useful. 2641 26422006-10-12 Andrey Kiselev <[email protected]> 2643 2644 * libtiff/tif_fax3.c: Save the state of printdir codec dependent 2645 method. 2646 2647 * libtiff/tif_jpeg.c: Save the state of printdir codec dependent method 2648 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273 2649 2650 * libtiff/tif_win32.c: Fixed problem with offset value manipulation 2651 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322 2652 2653 * libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for 2654 vulnerabilities, reported in Gentoo bug (): 2655 2656 http://bugs.gentoo.org/show_bug.cgi?id=142383 2657 26582006-09-28 Andrey Kiselev <[email protected]> 2659 2660 * libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple 2661 vulnerabilities, as per Gentoo bug (): 2662 2663 http://bugs.gentoo.org/show_bug.cgi?id=142383 2664 26652006-09-27 Frank Warmerdam <[email protected]> 2666 2667 * libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing 2668 encoding and decoding on the same read-write TIFF handle. The LZW 2669 code can now maintain encode and decode state at the same time. The 2670 ZIP code will switch back and forth as needed. 2671 http://bugzilla.remotesensing.org/show_bug.cgi?id=757 2672 26732006-09-20 Frank Warmerdam <[email protected]> 2674 2675 * libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and 2676 tif_config.vc.h for easier identification by folks using an IDE. 2677 26782006-07-25 Frank Warmerdam <[email protected]> 2679 2680 * tif_msdos.c: Avoid handle leak for failed opens. c/o Thierry Pierron 2681 26822006-07-19 Frank Warmerdam <[email protected]> 2683 2684 * tif_dirwrite.c: take care not to flush out buffer of strip/tile 2685 data in _TIFFWriteDirectory if TIFF_BEENWRITING not set. Relates 2686 to bug report by Peng Gao with black strip at bottom of images. 2687 26882006-07-12 Frank Warmerdam <[email protected]> 2689 2690 * tif_dirwrite.c: make sure to use uint32 for wordcount in 2691 TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields. 2692 It already seems to have been done for other field types. Needed 2693 for "tiffset" on files with geotiff ascii text. 2694 26952006-07-04 Bob Friesenhahn <[email protected]> 2696 2697 * {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c} 2698 (JBIGDecode): jbg_newlen is not available in older JBIG-KIT and 2699 its use does not appear to be required, so use it only when it is 2700 available. 2701 27022006-06-24 Andrey Kiselev <[email protected]> 2703 2704 * libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961). 2705 2706 * libtiff/tif_dirread.c: Move IFD fetching code in the separate 2707 function TIFFFetchDirectory() avoiding code duplication in 2708 TIFFReadDirectory() and TIFFReadCustomDirectory(). 2709 27102006-06-19 Frank Warmerdam <[email protected]> 2711 2712 * tools/tiff2pdf.c: Fix handling of -q values. 2713 http://bugzilla.remotesensing.org/show_bug.cgi?id=587 2714 27152006-06-17 Frank Warmerdam <[email protected]> 2716 2717 * tif_readdir.c: Added case in EstimateStripByteCounts() for tiled 2718 files. Modified TIFFReadDirectory() to not invoke 2719 EstimateStripByteCounts() for case where entry 0 and 1 are unequal 2720 but one of them is zero. 2721 http://bugzilla.remotesensing.org/show_bug.cgi?id=1204 2722 27232006-06-08 Andrey Kiselev <[email protected]> 2724 2725 * libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping 2726 checking code in the separate function TIFFCheckDirOffset(). 2727 2728 * libtiff/tif_aux.c: Added _TIFFCheckRealloc() function. 2729 2730 * tools/tiffcmp.c: Fixed floating point comparison logic as per bug 2731 2732 http://bugzilla.remotesensing.org/show_bug.cgi?id=1191 2733 2734 * libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug 2735 2736 http://bugzilla.remotesensing.org/show_bug.cgi?id=1194 2737 2738 * tools/tiff2pdf.c: Fixed buffer overflow condition in 2739 t2p_write_pdf_string() as per bug 2740 2741 http://bugzilla.remotesensing.org/show_bug.cgi?id=1196 2742 27432006-06-07 Andrey Kiselev <[email protected]> 2744 2745 * {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added 2746 support for JBIG compression scheme (34661 code) contributed by Lee 2747 Howard. As per bug 2748 2749 http://bugzilla.remotesensing.org/show_bug.cgi?id=896 2750 2751 * configure, configure.ac: OJPEG support enabled by default. 2752 2753 * contrib/ojpeg/: Removed. New OJPEG support does not need this patch. 2754 27552006-06-03 Bob Friesenhahn <[email protected]> 2756 2757 * libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in 2758 TIFFPrintDirectory(). Joris Van Damme authored the fix. 2759 27602006-04-21 Andrey Kiselev <[email protected]> 2761 2762 * tools/tiff2pdf.c: Unified line ending characters (always use '\n') 2763 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163 2764 2765 * README.vms, Makefile.am, configure.com, libtiff/{Makefile.am, 2766 tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}: 2767 Added support for OpenVMS by Alexey Chupahin, [email protected]. 2768 27692006-04-20 Andrey Kiselev <[email protected]> 2770 2771 * tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}: 2772 Properly set the binary mode for stdin stream as per bug 2773 http://bugzilla.remotesensing.org/show_bug.cgi?id=1141 2774 2775 * man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1, 2776 raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1, 2777 tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1, tiffdump.1, tiffgt.1, 2778 tiffset.1}: Improvements in page formatting as per bug 2779 http://bugzilla.remotesensing.org/show_bug.cgi?id=1140 2780 2781 * html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed 2782 typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139 2783 27842006-04-18 Frank Warmerdam <[email protected]> 2785 2786 * nmake.opt: use /EHsc for VS2005 compatibility. Also define 2787 _CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005. 2788 27892006-04-12 Joris Van Damme <[email protected]> 2790 2791 * libtiff/tif_getimage.c: Added support for planarconfig separate 2792 non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1]) 2793 27942006-04-11 Joris Van Damme <[email protected]> 2795 2796 * libtiff/tif_getimage.c: Revision of all RGB(A) put routines 2797 - Conversion of unassociated alpha to associated alpha now done with 2798 more performant LUT, and calculation more correct 2799 - Conversion of 16bit data to 8bit data now done with 2800 more performant LUT, and calculation more correct 2801 - Bugfix of handling of 16bit RGB with unassociated alpha 2802 28032006-04-11 Joris Van Damme <[email protected]> 2804 2805 * libtiff/tif_getimage.c: 2806 - When there is no alpha, gtTileSeparate and gtStripSeparate allocated 2807 buffer for alpha strile and filled it, only to never read it back. 2808 Removed allocation and fill. 2809 - Minor rename of vars in gtTileSeparate and gtStripSeparate 2810 anticipating planned functionality extension 2811 28122006-04-08 Joris Van Damme <[email protected]> 2813 2814 * libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase 2815 and pickTileSeparateCase to PickSeparateCase as both work on strips as 2816 well 2817 2818 * libtiff/tif_getimage.c: moved img->get selection from 2819 TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create 2820 logical hook for planned functionality extension 2821 28222006-04-08 Joris Van Damme <[email protected]> 2823 2824 * libtiff/tif_ojpeg.c: resolved memory leak that was a consequence 2825 of inappropriate use of jpeg_abort instead of jpeg_destroy 2826 28272006-04-07 Joris Van Damme <[email protected]> 2828 2829 * libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in 2830 gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour 2831 on subsampled images - this ought to get sorted when we feel brave 2832 enough to replace TIFFScanlineSize alltogether 2833 2834 * libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip 2835 28362006-04-04 Joris Van Damme <[email protected]> 2837 2838 * libtiff/tiffio.h: added new type tstrile_t 2839 2840 * libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips 2841 to new tstrile_t, types of td_stripoffset and td_stripbytecount to 2842 toff_t* 2843 2844 * libtiff/tif_ojpeg.c: totally new implementation 2845 2846 * libtiff/tif_dirread.c: added several hacks to suit new support of 2847 OJPEG 2848 2849 * libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling 2850 of OJPEG images in favor of tif_getimage.c native handling of 2851 YCbCr and desubsampling 2852 28532006-03-29 Frank Warmerdam <[email protected]> 2854 2855 * libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric 2856 interpretation causes the "upsampled" flag to be recomputed. Fixes 2857 peculiar bug where photometric flag had to be set before jpegcolormode 2858 flag. 2859 28602006-03-25 Joris Van Damme <[email protected]> 2861 2862 * libtiff/tif_jpeg.c: strip size related bugfix in encode raw 2863 2864 * libtiff/tif_strip.c: temporarilly added two new versions of 2865 TIFFScanlineSize 2866 - TIFFNewScanlineSize: proposed new version, after all related 2867 issues and side-effects are sorted out 2868 - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change 2869 This needs further sorting out. 2870 28712006-03-25 Joris Van Damme <[email protected]> 2872 2873 * contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size 2874 of last truncated strip data to TIFFWriteEncodedStrip 2875 28762006-03-25 Joris Van Damme <[email protected]> 2877 2878 * libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw 2879 28802006-03-25 Joris Van Damme <[email protected]> 2881 2882 * libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile 2883 2884 * libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile 2885 2886 * libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to 2887 prepare the path for new tif_ojpeg.c 2888 28892006-03-23 Andrey Kiselev <[email protected]> 2890 2891 * libtiff 3.8.2 released. 2892 2893 * tools/Makefile.am: Use runtime paths linker flags when rpath 2894 option enabled. 2895 28962006-03-21 Andrey Kiselev <[email protected]> 2897 2898 * libtiff/libtiff.def: Added missed exports as per bug 2899 http://bugzilla.remotesensing.org/attachment.cgi?id=337 2900 2901 * contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc, 2902 tools/Makefile.vc: Makefiles improvements as per bug 2903 http://bugzilla.remotesensing.org/show_bug.cgi?id=1128 2904 2905 * nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h}, 2906 tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions 2907 usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127 2908 2909 * libtiff/tif_strip.c: Take subsampling in account when calculating 2910 TIFFScanlineSize(). 2911 2912 * tools/tiffcp.c: Do not set RowsPerStrip bigger than image length. 2913 29142006-03-17 Andrey Kiselev <[email protected]> 2915 2916 * tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug 2917 http://bugzilla.remotesensing.org/show_bug.cgi?id=1125 2918 2919 * tools/fax2ps.c: Fixed reading the input stream from stdin as per bug 2920 http://bugzilla.remotesensing.org/show_bug.cgi?id=1124 2921 29222006-03-16 Andrey Kiselev <[email protected]> 2923 2924 * libtiff/tiffiop.h: Added decalration for 2925 _TIFFSetDefaultCompressionState(). 2926 2927 * libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c, 2928 tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all 2929 codec cleanup methods. As per bug 2930 2931 http://bugzilla.remotesensing.org/show_bug.cgi?id=1120 2932 29332006-03-15 Andrey Kiselev <[email protected]> 2934 2935 * libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As 2936 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119 2937 2938 * tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength. 2939 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110 2940 2941 * libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro 2942 removed; move here the STRIP_SIZE_DEFAULT macro definition. 2943 2944 * libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT 2945 macro definition. 2946 2947 * libtiff/tif_dir.c: Use double type instead of dblparam_t. 2948 29492006-03-14 Andrey Kiselev <[email protected]> 2950 2951 * libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence 2952 in TIFFReadDirectory, because it is always set at the start of 2953 function and we allow TIFFs without that tag set. 2954 29552005-03-13 Andrey Kiselev <[email protected]> 2956 2957 * libtiff 3.8.1 released. 2958 29592006-03-07 Andrey Kiselev <[email protected]> 2960 2961 * libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray() 2962 function as per bug 2963 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 2964 2965 * libtiff/tif_dirread.c: More wise check for integer overflow 2966 condition as per bug 2967 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 2968 2969 * libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}: 2970 Properly restore setfield/getfield methods in cleanup functions. As 2971 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 2972 29732006-03-03 Andrey Kiselev <[email protected]> 2974 2975 * libtiff/{tif_predict.c, tif_predict.h}: Added new function 2976 TIFFPredictorCleanup() to restore parent decode/encode/field methods. 2977 2978 * libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use 2979 TIFFPredictorCleanup() in codec cleanup methods. As per bug 2980 2981 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 2982 2983 * libtiff/tif_dirread.c: Fixed integer overflow condition in 2984 TIFFFetchData() function. As per bug 2985 2986 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 2987 29882006-03-01 Andrey Kiselev <[email protected]> 2989 2990 * libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the 2991 TIFFSetField() method, not directly. As per bug 2992 2993 http://bugzilla.remotesensing.org/show_bug.cgi?id=1043 2994 2995 * tools/ppm2tiff.c: Added support for PBM files as per bug 2996 http://bugzilla.remotesensing.org/show_bug.cgi?id=1044 2997 29982006-02-27 Andrey Kiselev <[email protected]> 2999 3000 * libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline() 3001 to avoid crash as per bug 3002 3003 http://bugzilla.remotesensing.org/show_bug.cgi?id=1081. 3004 30052006-02-26 Andrey Kiselev <[email protected]> 3006 3007 * tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and 3008 t2p_sample_rgba_to_rgb() was used in place of each other, that was 3009 resulted in problems with RGBA images with associated alpha. 3010 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097 3011 30122006-02-23 Andrey Kiselev <[email protected]> 3013 3014 * libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per 3015 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3016 3017 * libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER, 3018 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE 3019 tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3020 3021 * tools/tiff2ps.c: Properly scale all the pages when converting 3022 multipage TIFF with /width/height/center options set. As per bug 3023 3024 http://bugzilla.remotesensing.org/show_bug.cgi?id=1080 3025 30262006-02-15 Andrey Kiselev <[email protected]> 3027 3028 * tools/tiff2pdf.c: Do not create output file until all option checks 3029 will be done. As per bug 3030 3031 http://bugzilla.remotesensing.org/show_bug.cgi?id=1072 3032 3033 * tools/bmp2tiff.c: Added ability to create multipage TIFFs from the 3034 list of input files as per bug: 3035 3036 http://bugzilla.remotesensing.org/show_bug.cgi?id=1077 3037 30382006-02-09 Andrey Kiselev <[email protected]> 3039 3040 * libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per 3041 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063. 3042 3043 * tools/tiffgt.c: Avoid crashing in case of image unsupported by 3044 TIFFRGBAImage interface. 3045 3046 * libtiff/tif_color.c: Avoid overflow in case of wrong input as per 3047 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065. 3048 30492006-02-07 Frank Warmerdam <[email protected]> 3050 3051 * tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG 3052 compressed TIFF files, per submission from Dan Cobra. 3053 30542006-02-07 Andrey Kiselev <[email protected]> 3055 3056 * libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly 3057 cast values to avoid warnings. As per bug 3058 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3059 3060 * libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when 3061 appropriate. As per bug 3062 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3063 3064 * libtiff/tif_aux.c: Fixed type of temporary variable in 3065 _TIFFCheckMalloc() as per bug 3066 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3067 30682006-02-06 Andrey Kiselev <[email protected]> 3069 3070 * libtiff/tif_aux.c: Return static array when fetching default 3071 YCbCrCoefficients (another problem, reported a the 3072 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry). 3073 30742006-02-03 Andrey Kiselev <[email protected]> 3075 3076 * libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints, 3077 YCbCrSubsampling and DotRange tags as per bugs 3078 3079 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 3080 http://bugzilla.remotesensing.org/show_bug.cgi?id=1034 3081 3082 * libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of 3083 _TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug 3084 3085 http://bugzilla.remotesensing.org/show_bug.cgi?id=1026. 3086 30872006-01-23 Andrey Kiselev <[email protected]> 3088 3089 * libtool related stuff updated from the 2.1a branch. 3090 30912006-01-11 Frank Warmerdam <[email protected]> 3092 3093 * tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff, 3094 tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works 3095 properly as per bug: 3096 http://bugzilla.remotesensing.org/show_bug.cgi?id=1025 3097 30982006-01-09 Bob Friesenhahn <[email protected]> 3099 3100 * configure.ac: Fix with_default_strip_size comparison as reported 3101 by Norihiko Murase. 3102 31032006-01-08 Bob Friesenhahn <[email protected]> 3104 3105 * test/Makefile.am (LIBTIFF): Due to linking against libtiff 3106 incorrectly, tests were not actually testing the uninstalled 3107 libtiff. Now they are. 3108 31092006-01-04 Andrey Kiselev <[email protected]> 3110 3111 * libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE, 3112 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount 3113 should be uint32 value. 3114 31152006-01-02 Bob Friesenhahn <[email protected]> 3116 3117 * html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can 3118 be used if build directory is not the same as source directory. 3119 * man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented 3120 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET, 3121 and re-sorted tag names in alphabetical order. 3122 31232005-12-29 Andrey Kiselev <[email protected]> 3124 3125 * libtiff 3.8.0 released. 3126 31272005-12-28 Bob Friesenhahn <[email protected]> 3128 3129 * tools/bmp2tiff.c (main): Fixed warning regarding returning 3130 inconsistent types from a condition. 3131 * tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf 3132 format. 3133 * tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs. 3134 31352005-12-28 Joris Van Damme <[email protected]> 3136 3137 * html/{index.html, support.hml, libtiff.html}: Cleaned up HTML 3138 31392005-12-27 Andrey Kiselev <[email protected]> 3140 3141 * libtiff/tiffio.h: Added VC_EXTRALEAN definition before including 3142 windows.h, to reduce the compile time. 3143 31442005-12-26 Bob Friesenhahn <[email protected]> 3145 3146 * libtiff/tif_jpeg.c: Improve compilation under MinGW. 3147 31482005-12-26 Andrey Kiselev <[email protected]> 3149 3150 * libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}: 3151 tiffFieldInfo and exifFieldInfo arrays definitions moved back to 3152 tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo() 3153 private functions to retrieve FieldInfo arrays. 3154 31552005-12-24 Bob Friesenhahn <[email protected]> 3156 3157 * html/build.html: Added some additional instructions for when 3158 building using MSVC under Windows. Also fixed two HTML syntax 3159 errors and used HTML Tidy to tidy up the HTML syntax and 3160 formatting. 3161 31622005-12-24 Andrey Kiselev <[email protected]> 3163 3164 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c, 3165 tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and 3166 StoNits tags custom. 3167 31682005-12-23 Andrey Kiselev <[email protected]> 3169 3170 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make 3171 WhitePoint tag custom. 3172 3173 * libtiff/{tif_dir.h, tiff.h}: More EXIF tags added. 3174 31752005-12-23 Joris Van Damme <[email protected]> 3176 3177 * libtiff/tiffio.h: fixed typo that potentially resulted in 3178 redefininition of USE_WIN32_FILEIO 3179 3180 * libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning 3181 calls in core LibTiff. 3182 31832005-12-21 Andrey Kiselev <[email protected]> 3184 3185 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC, 3186 Photoshop and ICCProfile tags custom. 3187 31882005-12-21 Joris Van Damme <[email protected]> 3189 3190 * libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling 3191 newer code to get context indicator in error handler and still 3192 remain compatible with older code: Done TIFFError calls everywhere 3193 except in tools 3194 31952005-12-20 Andrey Kiselev <[email protected]> 3196 3197 * tools/tiffcp.c: Added many error reporting messages; fixed integer 3198 overflow as per bug 3199 3200 http://bugzilla.remotesensing.org/show_bug.cgi?id=789 3201 32022005-12-16 Frank Warmerdam <[email protected]> 3203 3204 * contrib/addtiffo/*: Major upgrade by Joris to support subsampled 3205 YCbCr images in jpeg compressed TIFF files. 3206 32072005-12-14 Andrey Kiselev <[email protected]> 3208 3209 * tools/tiffcp.c: Return non-zero status when reading fails (again). 3210 32112005-12-13 Andrey Kiselev <[email protected]> 3212 3213 * tools/tiffcp.c: Return non-zero status when reading fails. 3214 32152005-12-12 Andrey Kiselev <[email protected]> 3216 3217 * libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags. 3218 32192005-12-09 Andrey Kiselev <[email protected]> 3220 3221 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag 3222 custom. 3223 3224 * tools/tiffinfo.c: Print EXIF directory contents if exist. 3225 3226 * libtiff/tiff.h: Few EXIF tag numbers added. 3227 3228 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c, 3229 tiffio.h}: Preliminary support to read custom directories. New 3230 functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory(). 3231 32322005-12-07 Andrey Kiselev <[email protected]> 3233 3234 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}: 3235 More work to implement custom directory read support. 3236 3237 * libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h, 3238 tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite 3239 tags custom. 3240 32412005-12-05 Andrey Kiselev <[email protected]> 3242 3243 * libtiff/tif_dirread.c: One more workaround for broken 3244 StripByteCounts tag. Handle the case when StripByteCounts array filled 3245 with completely wrong values. 3246 32472005-11-30 Andrey Kiselev <[email protected]> 3248 3249 * libtiff/tif_dirinfo.c: Release file descriptor in case of failure 3250 in the TIFFOpenW() function as per bug 3251 3252 http://bugzilla.remotesensing.org/show_bug.cgi?id=1003 3253 3254 * libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind() 3255 functions as per bug 3256 3257 http://bugzilla.remotesensing.org/show_bug.cgi?id=1008 3258 32592005-11-20 Frank Warmerdam <[email protected]> 3260 3261 * tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support 3262 for MS MDI format. 3263 http://bugzilla.remotesensing.org/show_bug.cgi?id=1002 3264 3265 * .cvsignore: many files added, and a few update according 3266 to suggestion of Brad HArds on tiff mailing list. 3267 32682005-11-03 Frank Warmerdam <[email protected]> 3269 3270 * libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory 3271 public. 3272 32732005-10-31 Andrey Kiselev <[email protected]> 3274 3275 * tools/fax2tiff.c: Properly calculate sizes of temporary arrays 3276 as per bug 3277 3278 http://bugzilla.remotesensing.org/show_bug.cgi?id=943 3279 3280 * tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter 3281 as per bug 3282 3283 http://bugzilla.remotesensing.org/show_bug.cgi?id=944 3284 3285 * tools/tiffdump.c: Fixed typeshift and typemask arrays initialization 3286 problem as per bug 3287 3288 http://bugzilla.remotesensing.org/show_bug.cgi?id=946 3289 3290 * tools/bmp2tiff.c: Fixed possible integer overflow error as per bug 3291 3292 http://bugzilla.remotesensing.org/show_bug.cgi?id=965 3293 3294 * libtiff/tif_dirinfo.c: Make XResolution, YResolution and 3295 ResolutionUnit tags modifiable during write process. As per bug 3296 3297 http://bugzilla.remotesensing.org/show_bug.cgi?id=977 3298 3299 * tools/tiffsplit.c: Copy fax related fields over splitted parts 3300 as per bug 3301 3302 http://bugzilla.remotesensing.org/show_bug.cgi?id=983 3303 33042005-10-21 Frank Warmerdam <[email protected]> 3305 3306 * tif_dirread.c: Don't try and split single strips into "0" strips 3307 in ChopUpSingleUncompressedStrip. This happens in some degenerate 3308 cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff) 3309 33102005-10-20 Joris Van Damme <[email protected]> 3311 3312 * tif_fax3.c: changed 'at scanline ...' style warning/errors 3313 with incorrect use of tif_row, to 'at line ... of 3314 strip/tile ...' style 3315 33162005-10-15 Frank Warmerdam <[email protected]> 3317 3318 * tif_write.c: fixed setting of planarconfig as per bug report 3319 on the mailing list from Joris. 3320 33212005-10-07 Andrey Kiselev <[email protected]> 3322 3323 * configure.ac, configure, nmake.opt, libtiff/{tif_config.h, 3324 tif_dirread.c}: Make the default strip size configurable via the 3325 --with-default-strip-size and STRIP_SIZE_DEFAULT options. 3326 33272005-09-30 Bob Friesenhahn <[email protected]> 3328 3329 * html/support.html: Fixed link to documentation on Greg Ward's 3330 LogLuv TIFF format. 3331 33322005-09-28 Andrey Kiselev <[email protected]> 3333 3334 * tools/tiffdump.c: Fixed crash when reading malformed tags. 3335 33362005-09-20 Andrey Kiselev <[email protected]> 3337 3338 * tools/tiff2pdf.c: Added missed 'break' statement as per bug 3339 http://bugzilla.remotesensing.org/show_bug.cgi?id=932 3340 33412005-09-12 Andrey Kiselev <[email protected]> 3342 3343 * libtiff 3.7.4 released. 3344 3345 * {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch 3346 from Patrick Welche (all scripts moved in the 'config' and 'm4' 3347 directories). 3348 33492005-09-12 Frank Warmerdam <[email protected]> 3350 3351 * libtiff/tif_open.c: reintroduce seek to avoid problem on solaris. 3352 33532005-09-05 Frank Warmerdam <[email protected]> 3354 3355 * libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV 3356 also set it to NULL to avoid double free when re-setting custom 3357 string fields as per: 3358 3359 http://bugzilla.remotesensing.org/show_bug.cgi?id=922 3360 33612005-08-12 Frank Warmerdam <[email protected]> 3362 3363 * libtiff/tif_print.c: avoid signed/unsigned warning. 3364 3365 * libtiff/tif_dirread.c: removed unused variable. 3366 33672005-07-30 Frank Warmerdam <[email protected]> 3368 3369 * libtiff/tif_dir.c: Fixed up support for swapping "double complex" 3370 values (128 bits as 2 64 bits doubles). GDAL gcore tests now 3371 pass on bigendian (macosx) system. 3372 33732005-07-28 Andrey Kiselev <[email protected]> 3374 3375 * libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename 3376 CheckMalloc() function to _TIFFCheckMalloc() and make it available 3377 globally as an internal helper routine. 3378 33792005-07-27 Andrey Kiselev <[email protected]> 3380 3381 * libtiff/tif_dir.c: More improvements in the "pass by value" part of 3382 the custom tags handling code. 3383 33842005-07-26 Andrey Kiselev <[email protected]> 3385 3386 * libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to 3387 SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples() 3388 function, use TIFFFetchNormalTag() instead as per bug 3389 3390 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3391 3392 Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag() 3393 instead. 3394 3395 * libtiff/tiffconf.h.in: One more attempt to fix the AIX bug 3396 3397 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 3398 33992005-07-25 Andrey Kiselev <[email protected]> 3400 3401 * libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays. 3402 3403 * tools/tiffdump.c: Added support for TIFF_IFD datatype. 3404 34052005-07-21 Andrey Kiselev <[email protected]> 3406 3407 * libtiff/tif_write.c: Do not check the PlanarConfiguration field in 3408 the TIFFWriteCheck() function in case of single band images (as per 3409 TIFF spec). 3410 34112005-07-12 Andrey Kiselev <[email protected]> 3412 3413 * SConstruct, libtiff/SConstruct: Added the first very preliminary 3414 support for SCons software building tool (http://www.scons.org/). 3415 This is experimental infrastructure and it will exist along with the 3416 autotools mechanics. 3417 34182005-07-07 Andrey Kiselev <[email protected]> 3419 3420 * port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from 3421 the NetBSD source tree (the old 4-clause BSD license changed to 3422 the new 3-clause one). 3423 3424 * configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind() 3425 replacement module. 3426 3427 * port/dummy.c: Make the dummy function static. 3428 34292005-07-06 Andrey Kiselev <[email protected]> 3430 3431 * tools/tiffcp.c: Fixed WhitePoint tag copying. 3432 3433 * libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}: 3434 Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera, 3435 ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom. 3436 34372005-07-04 Andrey Kiselev <[email protected]> 3438 3439 * libtiff 3.7.3 released. 3440 3441 * configure, configure.ac: Do not use empty -R option when linking 3442 with --enable-rpath. 3443 34442005-07-01 Andrey Kiselev <[email protected]> 3445 3446 * libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid 3447 reading the first IFD when needed. As per bug 3448 3449 http://bugzilla.remotesensing.org/show_bug.cgi?id=875 3450 3451 * libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side 3452 effects. 3453 34542005-06-23 Andrey Kiselev <[email protected]> 3455 3456 * tools/tiff2pdf.c: Print two characters per loop in the 3457 t2p_write_pdf_trailer(). As per bug 3458 3459 http://bugzilla.remotesensing.org/show_bug.cgi?id=594 3460 3461 * tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As 3462 per bug 3463 3464 http://bugzilla.remotesensing.org/show_bug.cgi?id=844 3465 3466 * acinclude.m4: Updated to latest OpenGL test macros versions. 3467 3468 * libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler 3469 platform. As per bug 3470 3471 http://bugzilla.remotesensing.org/show_bug.cgi?id=855 3472 34732005-06-14 Andrey Kiselev <[email protected]> 3474 3475 * libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits 3476 and YClipPathUnits tags. 3477 34782005-06-07 Andrey Kiselev <[email protected]> 3479 3480 * contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size; 3481 use pixel sized shift in contigous case. 3482 34832005-06-06 Andrey Kiselev <[email protected]> 3484 3485 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}: 3486 Make overviews working for contiguos images. 3487 34882005-06-03 Andrey Kiselev <[email protected]> 3489 3490 * libtiff/tif_open.c: Replace runtime endianess check with the compile 3491 time one. 3492 3493 * libtiff/tif_predict.c: Floating point predictor now works on 3494 big-endian hosts. 3495 34962005-06-01 Andrey Kiselev <[email protected]> 3497 3498 * libtiff/tif_dir.c: Use _TIFFsetString() function when read custom 3499 ASCII values. 3500 3501 * libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make 3502 DocumentName, Artist, HostComputer, ImageDescription, Make, Model, 3503 Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and 3504 TargetPrinter tags custom. 3505 3506 * libtiff/tif_jpeg.c: Cleanup the codec state depending on 3507 TIFF_CODERSETUP flag (to fix memry leaks). 3508 3509 * libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after 3510 allocating. 3511 35122005-05-26 Andrey Kiselev <[email protected]> 3513 3514 * configure.ac, libtiff/Makefile.am: Added workaround for 3515 OpenBSD/MirOS soname problem as per bug 3516 3517 http://bugzilla.remotesensing.org/show_bug.cgi?id=838 3518 3519 * libtiff/tif_dirwrite.c: Use tdir_count when calling 3520 TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as 3521 per bug 3522 3523 http://bugzilla.remotesensing.org/show_bug.cgi?id=845 3524 35252005-05-25 Andrey Kiselev <[email protected]> 3526 3527 * tools/ppm2tiff.c: Fixed format string when read PPM file header with 3528 the fscanf() function. As per bug 3529 3530 http://bugzilla.remotesensing.org/show_bug.cgi?id=861 3531 3532 * libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns 3533 uint16 array when fetching the BYTE and SBYTE filds, so we should 3534 consider result as pointer to uint16 array and not as array of chars. 3535 As per bug 3536 3537 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3538 3539 * libtiff/tif_dir.c: More efficient custom tags retrieval as per bug 3540 3541 http://bugzilla.remotesensing.org/show_bug.cgi?id=830 3542 3543 * libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share 3544 mode in CreateFile() call as per bug 3545 3546 http://bugzilla.remotesensing.org/show_bug.cgi?id=829 3547 3548 * libtiff/Makefile.am: Fixed parallel compilation of the libtiff and 3549 libtiffxx libraries as per bug 3550 3551 http://bugzilla.remotesensing.org/show_bug.cgi?id=826 3552 3553 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with 3554 GDAL. 3555 35562005-05-23 Frank Warmerdam <[email protected]> 3557 3558 * libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with 3559 JPEG encoded TIFF files. Pre-allocate lots of space for jpegtables 3560 in directory. 3561 35622005-05-22 Frank Warmerdam <[email protected]> 3563 3564 * libtiff/tif_dirread.c: Changed the code that computes 3565 stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is 3566 zero. This is a common case with GDAL indicating a "null" tile/strip. 3567 35682005-05-17 Andrey Kiselev <[email protected]> 3569 3570 * tools/tiffsplit.c: Check for JPEGTables tag presence before copying. 3571 35722005-05-06 Frank Warmerdam <[email protected]> 3573 3574 * libtiff/tif_dirread.c: Applied similar change to 3575 TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys. 3576 3577 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 3578 3579 * libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw(). 3580 35812005-05-06 Andrey Kiselev <[email protected]> 3582 * tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly; 3583 added new option '-b' to use interpolation in output PDF files (Bruno 3584 Ledoux). 3585 35862005-05-05 Frank Warmerdam <[email protected]> 3587 3588 * libtiff/tif_dirread.c: Ensure that broken files with too many 3589 values in PerSampleShorts work ok instead of crashing. 3590 3591 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 3592 35932005-04-27 Andrey Kiselev <[email protected]> 3594 3595 * tools/tiffdither.c: Copy the PhotometricInterpretation tag from the 3596 input file. 3597 35982005-04-15 Andrey Kiselev <[email protected]> 3599 3600 * libtiff/tif_predict.c: Added ability to encode floating point 3601 predictor, as per TIFF Technical Note 3. 3602 36032005-04-14 Andrey Kiselev <[email protected]> 3604 3605 * libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode 3606 floating point predictor, as per TIFF Technical Note 3. 3607 36082005-04-13 Andrey Kiselev <[email protected]> 3609 3610 * libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}: 3611 Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to 3612 swap 24-bit floating point values. 3613 3614 * libtiff/tiff.h: Added predictor constants. 3615 36162005-04-08 Andrey Kiselev <[email protected]> 3617 3618 * libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate 3619 values in _TIFFVSetField() function. Inspired by the bug 3620 3621 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 3622 3623 * man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag 3624 as per bug 3625 3626 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 3627 36282005-03-30 Andrey Kiselev <[email protected]> 3629 3630 * libtiff/tif_open.c: Do not read header in case the output file 3631 should be truncated (Ron). 3632 3633 * libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead 3634 of bsearch() in _TIFFFindFieldInfoByName() function (Ron). 3635 3636 * libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron). 3637 36382005-03-22 Andrey Kiselev <[email protected]> 3639 3640 * configure.ac, libtiff/Makefile.am: Use libtool machinery to pass 3641 rpath option. 3642 36432005-03-21 Andrey Kiselev <[email protected]> 3644 3645 * libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom 3646 tags. 3647 36482005-03-18 Andrey Kiselev <[email protected]> 3649 3650 * libtiff/dirinfo.c: Added DNG tags. 3651 3652 * libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag 3653 handling code. 3654 3655 * libtiff/tiff.h: More comments; added missed DNG tag (LensInfo); 3656 added DNG 1.1.0.0 tags. 3657 3658 * tools/tif2pdf.c: Fixed problem with alpha channel handling as per 3659 bug 3660 3661 http://bugzilla.remotesensing.org/show_bug.cgi?id=794 3662 3663 * man/TIFFGetField.3tiff: Add a note about autoregistered tags. 3664 36652005-03-17 Andrey Kiselev <[email protected]> 3666 3667 * nmake.opt: Build with Win32 CRT library by default. 3668 3669 * tools/tiff2ps.c: Fixed typo in page size handling code. 3670 3671 * libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed 3672 by value. 3673 3674 * libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags. 3675 36762005-03-15 Andrey Kiselev <[email protected]> 3677 3678 * libtiff 3.7.2 released. 3679 36802005-03-09 Andrey Kiselev <[email protected]> 3681 3682 * tools/tiffcmp.c: Added ability to compare the 32-bit integer and 3683 floating point data; complain on unsupported bit depths. 3684 36852005-03-05 Andrey Kiselev <[email protected]> 3686 3687 * tif_stream.cxx: Use ios namespace instead of ios_base to support 3688 GCC 2.95. 3689 3690 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from 3691 Lee Howard for HylaFax DCS tag 3692 (see http://bugzilla.remotesensing.org/show_bug.cgi?id=771) 3693 36942005-03-04 Andrey Kiselev <[email protected]> 3695 3696 * configure, configure.ac: Use -rpath option instead of -R as per bug 3697 3698 http://bugzilla.remotesensing.org/show_bug.cgi?id=732 3699 3700 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee 3701 Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax 3702 software. As per bug 3703 3704 http://bugzilla.remotesensing.org/show_bug.cgi?id=771 3705 3706 * nmake.opt, html/build.html: Add more comments, change the config 3707 file organization a bit as per bug 3708 3709 http://bugzilla.remotesensing.org/show_bug.cgi?id=764 3710 3711 * tools/tiffcmp.c: Use properly sized buffer in short arrays comparison 3712 as per bug 3713 3714 http://bugzilla.remotesensing.org/show_bug.cgi?id=785 3715 37162005-03-03 Andrey Kiselev <[email protected]> 3717 3718 * libtiff/tif_dirread.c: More logic to guess missed strip size as per 3719 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705 3720 3721 * tools/fax2ps.c: Replace insecure mktemp() function with the 3722 tmpfile() as per bug 3723 3724 http://bugzilla.remotesensing.org/show_bug.cgi?id=786 3725 37262005-02-04 Andrey Kiselev <[email protected]> 3727 3728 * libtiff/tiff.h: Changed the int8 definition to be always signed char 3729 as per bug 3730 3731 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 3732 3733 * libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{} 3734 block as per bug 3735 3736 http://bugzilla.remotesensing.org/show_bug.cgi?id=763 3737 37382005-02-03 Bob Friesenhahn <[email protected]> 3739 3740 * tools/tiffgt.c: Fix problem on big-endian CPUs so that images 3741 display more correctly. Images display brighter than they should 3742 on a Sun workstation. 3743 37442005-02-03 Andrey Kiselev <[email protected]> 3745 3746 * libtiff/tif_dirread.c: Estimate strip size in case of wrong or 3747 suspicious values in the tags. As per bugs 3748 3749 http://bugzilla.remotesensing.org/show_bug.cgi?id=705 3750 3751 and 3752 3753 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 3754 3755 * tools/tiff2ps.c: Fixed problem with page sizes as per bug 3756 3757 http://bugzilla.remotesensing.org/show_bug.cgi?id=742 3758 37592005-01-31 Bob Friesenhahn <[email protected]> 3760 3761 * libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description. 3762 (TIFFTAG_TILELENGTH): Corrected description. 3763 37642005-01-30 Andrey Kiselev <[email protected]> 3765 3766 * configure.ac: Fixes for --with-docdir option as per bug 3767 3768 http://bugzilla.remotesensing.org/show_bug.cgi?id=759 3769 3770 * libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per 3771 bug 3772 3773 http://bugzilla.remotesensing.org/show_bug.cgi?id=756 3774 3775 * libtiff/tif_stream.cxx: Fixes for C++ stream interface from 3776 Michael Rinne and Edward Lam. 3777 37782005-01-15 Andrey Kiselev <[email protected]> 3779 3780 * configure.ac: Make the documentation directory location configurable 3781 via the --with-docdir option (as suggested by Jeremy C. Reed). 3782 3783 * libtiff/tif_color.c: Use double as the second argument of pow() 3784 function in TIFFCIELabToRGBInit(). As per bug 3785 3786 http://bugzilla.remotesensing.org/show_bug.cgi?id=741 3787 3788 * libtiff/tif_pixarlog.c: Avoid warnings when converting float to 3789 integer as per bug 3790 3791 http://bugzilla.remotesensing.org/show_bug.cgi?id=740 3792 3793 * libtiff/tif_getimage.c: Always fill the error message buffer in 3794 TIFFRGBAImageBegin() as per bug 3795 3796 http://bugzilla.remotesensing.org/show_bug.cgi?id=739 3797 37982005-01-12 Andrey Kiselev <[email protected]> 3799 3800 * libtiff/tif_jpeg.c: Added ability to read/write the fax specific 3801 TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME 3802 tags as per bug 3803 3804 http://bugzilla.remotesensing.org/show_bug.cgi?id=736 3805 3806 * libtiff/tif_win32.c: Fixed message formatting in functions 3807 Win32WarningHandler() and Win32ErrorHandler() as per bug 3808 3809 http://bugzilla.remotesensing.org/show_bug.cgi?id=735 3810 3811 * tools/tiff2ps.c: Interpret the -w and -h options independently. As 3812 per bug 3813 3814 http://bugzilla.remotesensing.org/show_bug.cgi?id=689 3815 38162005-01-11 Andrey Kiselev <[email protected]> 3817 3818 * libtiff/tiffio.h: Move the color conversion routines in the 'extern 3819 "C"' section as per bug 3820 3821 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 3822 3823 * libtiff/tiff.h: Restore back the workaround for AIX Visual Age C 3824 compiler to avoid double definition of BSD types as per bug 3825 3826 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 3827 3828 * libtiff/Makefile.am: Place the C++ stream API in the separate 3829 library called libtiffxx to avoid unneeded dependencies. Probably 3830 there will be more C++ API in the future. As per bugs 3831 3832 http://bugzilla.remotesensing.org/show_bug.cgi?id=733 3833 3834 and 3835 3836 http://bugzilla.remotesensing.org/show_bug.cgi?id=730 3837 38382005-01-05 Andrey Kiselev <[email protected]> 3839 3840 * tools/tiffdump.c: Fixed problem when read broken TIFFs with the 3841 wrong tag counts (Dmitry V. Levin, Martin Pitt). 3842 3843 * configure.ac: Replace --disable-c++ with the --disable-cxx option as 3844 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730 3845 38462004-12-25 Andrey Kiselev <[email protected]> 3847 3848 * libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled 3849 RGB-images as per bug 3850 3851 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 3852 3853 3854 * tools/tiffset.c: Convert character option to integer value as per 3855 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725 3856 38572004-12-20 Andrey Kiselev <[email protected]> 3858 3859 * libtiff 3.7.1 released. 3860 3861 * html/tiffset.1.html: Add missed manual page as per bug 3862 3863 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 3864 3865 * libtiff/tiff.h: Revert back libtiff data type definitions as per 3866 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687 3867 38682004-12-19 Andrey Kiselev <[email protected]> 3869 3870 * libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when 3871 checking for tag count in TIFFReadDirectory() function. As per bug 3872 3873 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 3874 3875 * libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in 3876 CheckMallock() function. 3877 3878 * libtiff/tif_getimage.c: Support for multiple-alpha-channelled 3879 RGB-images as per bug 3880 3881 http://bugzilla.remotesensing.org/show_bug.cgi?id=718 3882 38832004-12-15 Frank Warmerdam <[email protected]> 3884 3885 * libtiff/tif_getimage.c: #define A1 bracketing for clean build on 3886 SunPro compiler. 3887 38882004-12-11 Bob Friesenhahn <[email protected]> 3889 3890 * autogen.sh: aclocal and autoheader should be executed after 3891 libtoolize. Also add '-I .' to aclocal invocation to check 3892 current directory for macros. 3893 38942004-12-10 Andrey Kiselev <[email protected]> 3895 3896 * libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type 3897 as per bugs 3898 3899 http://bugzilla.remotesensing.org/show_bug.cgi?id=703 3900 3901 and 3902 3903 http://bugzilla.remotesensing.org/show_bug.cgi?id=704 3904 39052004-12-04 Andrey Kiselev <[email protected]> 3906 3907 * nmake.opt: Link with the user32.lib in windowed mode. As per bug 3908 3909 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 3910 3911 * libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed 3912 mode as per bug 3913 3914 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 3915 3916 * libtiff/tif_config.in.vc: Removed unneded definitions for 3917 read/open/close/lseek functions to fix the 3918 3919 http://bugzilla.remotesensing.org/show_bug.cgi?id=680 3920 39212004-12-03 Andrey Kiselev <[email protected]> 3922 3923 * libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore() 3924 call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore 3925 must be removed in the future, as it was never used properly. As per 3926 bug 3927 3928 http://bugzilla.remotesensing.org/show_bug.cgi?id=692 3929 39302004-11-30 Bob Friesenhahn <[email protected]> 3931 3932 * libtiff/tif_jpeg.c: Added a work-around in order to allow 3933 compilation with the heavily modified version of libjpeg delivered 3934 with Cygwin. 3935 39362004-11-29 Andrey Kiselev <[email protected]> 3937 3938 * libtiff/tif_dir.c: Properly handle tags, which have the uint32 3939 counts. As per bug 3940 3941 http://bugzilla.remotesensing.org/show_bug.cgi?id=693 3942 3943 * tools/fax2ps.c: Be able to extract the first page (#0). As per bug 3944 3945 http://bugzilla.remotesensing.org/show_bug.cgi?id=690 3946 39472004-11-28 Andrey Kiselev <[email protected]> 3948 3949 * libtiff/tif_unix.c: Make UNIX module compilable (and usable) 3950 on Windows. 3951 3952 * nmake.opt: Add missed DLLNAME variable. 3953 39542004-11-26 Frank Warmerdam <[email protected]> 3955 3956 * libtiff/makefile.vc: make it easier to rename the libtiff DLL. 3957 39582004-11-24 Andrey Kiselev <[email protected]> 3959 3960 * man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as 3961 per bug 3962 3963 http://bugzilla.remotesensing.org/show_bug.cgi?id=545 3964 3965 * man/tiffset.1: Added manual page for tiffset tool written by Jay 3966 Berkenbilt. As per bug 3967 3968 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 3969 39702004-11-23 Frank Warmerdam <[email protected]> 3971 3972 * libtiff/tif_error.c: fixed TIFFerror call to be TIFFError. 3973 39742004-11-21 Frank Warmerdam <[email protected]> 3975 3976 * html/document.html: Updated Adobe web links as per email from Joris. 3977 39782004-11-21 Andrey Kiselev <[email protected]> 3979 3980 * libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new 3981 file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to 3982 use C++ streams should #include <tiffio.hxx>. 3983 39842004-11-13 Andrey Kiselev <[email protected]> 3985 3986 * libtiff/tiff.h: Added Adobe DNG tags. 3987 3988 * libtiff/tif_win32.c: Typo fixed. 3989 3990 * libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to 3991 be compliant with the latest standard. Appropriate additions in 3992 makefiles now completed. 3993 39942004-11-11 Andrey Kiselev <[email protected]> 3995 3996 * tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the 3997 different tag types. As per bug 3998 3999 http://bugzilla.remotesensing.org/show_bug.cgi?id=600 4000 40012004-11-10 Andrey Kiselev <[email protected]> 4002 4003 * libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for 4004 YCbCr image which lacks that tag (noted by Hans Petter Selasky). 4005 40062004-11-09 Andrey Kiselev <[email protected]> 4007 4008 * libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky). 4009 40102004-11-07 Andrey Kiselev <[email protected]> 4011 4012 * libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface 4013 contributed by Edward Lam (see 4014 http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details). 4015 Though no changes in any makefiles yet. 4016 40172004-11-05 Frank Warmerdam <[email protected]> 4018 4019 * libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file 4020 is bad. This is the callers responsibility. 4021 http://bugzilla.remotesensing.org/show_bug.cgi?id=651 4022 40232004-11-05 Andrey Kiselev <[email protected]> 4024 4025 * libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW() 4026 function to work with the double byte strings (used to represent 4027 filenames in some locales). As per bug 4028 4029 http://bugzilla.remotesensing.org/show_bug.cgi?id=625 4030 4031 * libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and 4032 Compression tags of type LONG from broken TIFFS as per bug 4033 4034 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4035 4036 * libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC, 4037 the writecount should have uint32 type. As per bug 4038 4039 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4040 4041 * libtiff/tif_write.c: Fixed wrong if() statement in 4042 TIFFAppendToStrip() function as per bug 4043 4044 http://bugzilla.remotesensing.org/show_bug.cgi?id=660 4045 40462004-11-04 Andrey Kiselev <[email protected]> 4047 4048 * libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES 4049 field. The caller should supply a count when setting this field. As 4050 per bug 4051 4052 http://bugzilla.remotesensing.org/show_bug.cgi?id=648 4053 4054 * libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have 4055 uint32 count. Use this type everywhere. 4056 40572004-11-03 Frank Warmerdam <[email protected]> 4058 4059 * libtiff/tif_next.c: avoid use of u_long and u_char types. Bug 653. 4060 40612004-11-02 Frank Warmerdam <[email protected]> 4062 4063 * tools/tiff2rgba.c: removed extra newlines in usage message. 4064 40652004-10-30 Andrey Kiselev <[email protected]> 4066 4067 * libtiff/tif_dirwrite.c: Improvements in tag writing code. 4068 4069 * tools/tiff2ps.c: Fixed wrong variable data type when read Position 4070 tags (Tristan Hill). 4071 40722004-10-30 Frank Warmerdam <[email protected]> 4073 4074 * libtiff/tiffiop.h: added fallback definition of assert() if we 4075 don't have assert.h. 4076 40772004-10-29 Andrey Kiselev <[email protected]> 4078 4079 * libtiff/tif_fax3.c: Fixed case with the wrong decode routines 4080 choosing when the incorrect Group4Options tag set. As per bug 4081 4082 http://bugzilla.remotesensing.org/show_bug.cgi?id=323 4083 4084 * libtiff/tif_dirwrite.c: Fixed problem with passing count variable of 4085 wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in 4086 TIFFWriteNormalTag(). 4087 40882004-10-28 Andrey Kiselev <[email protected]> 4089 4090 * tools/tiff2ps.c: Fixed wrong variable data type when read Resolution 4091 tags (Peter Fales). 4092 4093 * tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions. 4094 40952004-10-28 Frank Warmerdam <[email protected]> 4096 4097 * tools/tiff2pdf.c: added casts to avoid warnings. 4098 4099 * libtiff/libtiff.def: Added several more entry points required 4100 to link fax2tiff.c against the DLL on windows. 4101 41022004-10-27 Andrey Kiselev <[email protected]> 4103 4104 * configure, configure.ac: Added --enable-rpath option to embed linker 4105 paths into library binary. 4106 41072004-10-26 Andrey Kiselev <[email protected]> 4108 4109 * tools/tiffset.c: Check the malloc return value (Dmitry V. Levin). 4110 4111 * libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed 4112 (Vladimir Nadvornik, Dmitry V. Levin). 4113 41142004-10-16 Andrey Kiselev <[email protected]> 4115 4116 * libtiff 3.7.0 released. 4117 41182004-10-15 Bob Friesenhahn <[email protected]> 4119 4120 * libtiff/tif_jpeg.c: There seems to be no need to include stdio.h 4121 in this file so its inclusion is removed. Including stdio.h 4122 sometimes incurs an INT32 typedef conflict between MinGW's 4123 basetsd.h and libjpeg's jmorecfg.h. 4124 41252004-10-15 Andrey Kiselev <[email protected]> 4126 4127 * man/bmp2tiff.1: Added manual page for bmp2tiff utility. 4128 41292004-10-13 Bob Friesenhahn <[email protected]> 4130 4131 * tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid 4132 conflict noticed under MinGW. 4133 * ltmain.sh: Fix for MinGW compilation. 4134 41352004-10-13 Frank Warmerdam <[email protected]> 4136 4137 * man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz. 4138 http://bugzilla.remotesensing.org/show_bug.cgi?id=635 4139 41402004-10-12 Andrey Kiselev <[email protected]> 4141 4142 * libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c, 4143 tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes 4144 properly (Dmitry V. Levin, Marcus Meissner). 4145 41462004-10-11 Andrey Kiselev <[email protected]> 4147 4148 * libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed 4149 to TIFF_IFD. 4150 41512004-10-10 Andrey Kiselev <[email protected]> 4152 4153 * tools/bmp2tif.c: Check the space allocation results. 4154 41552004-10-09 Andrey Kiselev <[email protected]> 4156 4157 * libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields 4158 of the TIFFDirectory structure with the 0 instead of -1 to avoid 4159 confusing integer overflows in TIFFTileRowSize() for striped images. 4160 4161 * tools/tiff2pdf.c: Fixed TransferFunction tag handling reported 4162 by Ross A. Finlayson. 4163 4164 * libtiff/tif_dir.c: Fixed custom tags handling as per bug 4165 4166 http://bugzilla.remotesensing.org/show_bug.cgi?id=629 4167 41682004-10-08 Frank Warmerdam <[email protected]> 4169 4170 * libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation 4171 of tif_fieldinfo. 4172 4173 http://bugzilla.remotesensing.org/show_bug.cgi?id=630 4174 41752004-10-04 Bob Friesenhahn <[email protected]> 4176 4177 * contrib/iptcutil/README: Added the missing README which goes 4178 along with iptcutil. 4179 41802004-10-03 Andrey Kiselev <[email protected]> 4181 4182 * libtiff/tif_compress.c: Improved error reporting in 4183 TIFFGetConfiguredCODECs() (Dmitry V. Levin). 4184 41852004-10-02 Andrey Kiselev <[email protected]> 4186 4187 * libtiff 3.7.0beta2 released. 4188 4189 * libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c, 4190 tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c, 4191 tif_pixarlog.c, tif_write.c}: Added checks for failed memory 4192 allocations and integer overflows (Dmitry V. Levin). 4193 4194 * libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added. 4195 41962004-10-01 Frank Warmerdam <[email protected]> 4197 4198 * libtiff/tif_open.c: added a more informative message if a BigTIFF 4199 file is opened. 4200 42012004-09-30 Frank Warmerdam <[email protected]> 4202 4203 * libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to 4204 TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info 4205 in the Adobe XMP Specification. 4206 42072004-09-29 Andrey Kiselev <[email protected]> 4208 4209 * libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of 4210 memset(). 4211 4212 * libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches 4213 from Dmitry V. Levin to fix possible integer overflow problems. 4214 42152004-09-28 Andrey Kiselev <[email protected]> 4216 4217 * libtiff/tif_getimage.c: Check for allocated buffers before clearing 4218 (Dmitry V. Levin). 4219 42202004-09-26 Andrey Kiselev <[email protected]> 4221 4222 * libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}: 4223 Optimize checking for the strip bounds. 4224 4225 * libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and 4226 TIFFRasterScanlineSize() functions report zero in the case of integer 4227 overflow now. Properly handle this case in TIFFReadDirectory() 4228 (patches from Dmitry V. Levin). 4229 42302004-09-25 Andrey Kiselev <[email protected]> 4231 4232 * libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8() 4233 macro where appropriate. 4234 4235 * tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as 4236 noted by Gennady Khokhorin. 4237 4238 * libtiff/tif_dirread.c: Always check the return values, returned 4239 by the _TIFFmalloc() (Dmitry V. Levin). 4240 4241 * libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array() 4242 functions (Dmitry V. Levin). 4243 4244 * libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}: 4245 Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(), 4246 TIFFGrowStrips() (found by Dmitry V. Levin). 4247 42482004-09-24 Andrey Kiselev <[email protected]> 4249 4250 * libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs() 4251 to get the list of configured codecs. 4252 4253 * libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from 4254 Dmitry V. Levin. 4255 42562004-09-23 Andrey Kiselev <[email protected]> 4257 4258 * libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix 4259 possible integer overflow in CheckMalloc() function. 4260 42612004-09-22 Andrey Kiselev <[email protected]> 4262 4263 * libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead 4264 of plain TIFFhowmany() where appropriate. 4265 42662004-09-21 Andrey Kiselev <[email protected]> 4267 4268 * libtiff/tif_getimage.c: Initialize arrays after space allocation. 4269 42702004-09-19 Andrey Kiselev <[email protected]> 4271 4272 * libtiff 3.7.0beta released. 4273 4274 * libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer 4275 overruns fixed, as noted by Chris Evans. 4276 42772004-09-14 Bob Friesenhahn <[email protected]> 4278 4279 * commit: Added a script to make it more convenient to commit 4280 updates. The CVS commit message is extracted from this ChangeLog 4281 file. 4282 42832004-09-14 Andrey Kiselev <[email protected]> 4284 4285 * configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c, 4286 tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c, 4287 tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c, 4288 tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c, 4289 tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h, 4290 tif_config.h.in, tiffiop.h}: 4291 Get rid of BSD data types (u_char, u_short, u_int, u_long). 4292 42932004-09-13 Bob Friesenhahn <[email protected]> 4294 4295 * libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP 4296 specification. Reference libtiff bug tracking system to submit 4297 private tag additions. 4298 42992004-09-12 Bob Friesenhahn <[email protected]> 4300 4301 * tools/tiffgt.c: Include "tif_config.h". 4302 4303 * configure.ac: Use AM_PROG_CC_C_O since it is now needed to build 4304 tiffgt. This results in the 'compile' script being added to the 4305 project. 4306 4307 * tools/Makefile.am (tiffgt_CFLAGS): Add extra build options 4308 required to find OpenGL headers necessary to build tiffgt. Also 4309 ensure that the libtiff that we built is used rather than some other 4310 libtiff installed on the system. 4311 43122004-09-12 Andrey Kiselev <[email protected]> 4313 4314 * configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT 4315 libraries. 4316 43172004-09-11 Bob Friesenhahn <[email protected]> 4318 4319 * configure.ac: Pass library configuration defines via 4320 tif_config.h rather than extending CPPFLAGS. Configure a 4321 libtiff/tiffconf.h in order to satisfy application requirements 4322 (not used by library build). Do not define _POSIX_C_SOURCE=2 since 4323 this causes failure to build on systems which properly respect 4324 this request. 4325 4326 * libtiff/tiffconf.h.in: New file to act as the template for the 4327 configured tiffconf.h 4328 4329 * libtiff/files.lst (HDRS): Install the configured tiffconf.h. 4330 43312004-09-10 Frank Warmerdam <[email protected]> 4332 4333 * html/internals.html: Split off a discussion of adding new tags 4334 into addingtags.html. 4335 43362004-09-10 Andrey Kiselev <[email protected]> 4337 4338 * test/{ascii_tag.c, long_tag.c}: Preliminary test suite added. 4339 4340 * tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug 4341 4342 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4343 4344 * libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting. 4345 4346 * libtiff/tif_dirread.c: Don't reject to read tags of the 4347 SamplesPerPixel size when the tag count is greater than number of 4348 samples as per bug 4349 4350 http://bugzilla.remotesensing.org/show_bug.cgi?id=576 4351 4352 * libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off 4353 defining int8/uint8/... etc. types. As per bug 4354 4355 http://bugzilla.remotesensing.org/show_bug.cgi?id=607 4356 43572004-09-09 Frank Warmerdam <[email protected]> 4358 4359 * tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files 4360 to avoid compile warnings about getopt() and a few other things. 4361 43622004-09-02 Andrey Kiselev <[email protected]> 4363 4364 * libtiff/tif_dirread.c: Use memcpy() function instead of pointer 4365 assigning magic in TIFFFetchFloat(). 4366 43672004-09-01 Andrey Kiselev <[email protected]> 4368 4369 * libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme 4370 to avoid requirement for tiffiop.h inclusion in some applications. See 4371 here 4372 4373 http://www.asmail.be/msg0054799560.html 4374 4375 for details. 4376 4377 * tools/fax2tiff.c: Use the new functions in the code. 4378 43792004-08-25 Andrey Kiselev <[email protected]> 4380 4381 * tools/tiff2pdf.c: Initialize arrays properly. 4382 4383 * tools/tiff2ps.c: Avoid zero division in setupPageState() function; 4384 properly initialize array in PSDataBW(). 4385 43862004-08-24 Andrey Kiselev <[email protected]> 4387 4388 * tools/tiff2pdf.c: More fixes for bug 4389 4390 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4391 4392 from Ross Finlayson. 4393 43942004-08-23 Andrey Kiselev <[email protected]> 4395 4396 * tools/tiff2ps.c: Fixed problem with uninitialized values. 4397 4398 * libtiff/tif_dir.c: Initialize tif_foundfield data member in the 4399 TIFFDefaultDirectory() (in addition to 2004-08-19 fix). 4400 4401 * tools/tiff2pdf.c: Fixed a bunch of problems as per bug 4402 4403 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4404 44052004-08-20 Andrey Kiselev <[email protected]> 4406 4407 * tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks 4408 that the input file has compression, photometric interpretation, 4409 etcetra, tags or if not than a more descriptive error is returned. 4410 4411 * libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the 4412 code, responsible for tag data type checking. 4413 44142004-08-19 Andrey Kiselev <[email protected]> 4415 4416 * libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static 4417 variable as per bug 4418 4419 http://bugzilla.remotesensing.org/show_bug.cgi?id=593 4420 44212004-08-16 Andrey Kiselev <[email protected]> 4422 4423 * tools/ras2tiff.c: Fixed issue with missed big-endian checks as per 4424 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586 4425 44262004-08-01 Andrey Kiselev <[email protected]> 4427 4428 * libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and 4429 config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc. 4430 44312004-07-24 Andrey Kiselev <[email protected]> 4432 4433 * libtiff/tif_lzw.c: LZW compression code is merged back from the 4434 separate package. All libtiff tools are updated to not advertise an 4435 abcence of LZW support. 4436 44372004-07-12 Andrey Kiselev <[email protected]> 4438 4439 * libtiff/tiffio.h: Revert thandle_t back to void* type. 4440 44412004-07-11 Andrey Kiselev <[email protected]> 4442 4443 * libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error 4444 messages, as suggested by Bernd Herd. 4445 44462004-07-03 Andrey Kiselev <[email protected]> 4447 4448 * libtiff/tif_dir.c: Call TIFFError() instead of producing warnings 4449 when setting custom tags by value. Reported by Eric Fieleke. 4450 44512004-06-14 Andrey Kiselev <[email protected]> 4452 4453 * tools/bmp2tiff.c: Add missed RawsPerStrip setting. 4454 44552004-06-08 Andrey Kiselev <[email protected]> 4456 4457 * tools/bmp2tiff.c: Added new utility to convert Windows BMP files 4458 into TIFFs. 4459 44602004-06-07 Andrey Kiselev <[email protected]> 4461 4462 * libtiff 3.7.0alpha released. 4463 44642004-06-06 Andrey Kiselev <[email protected]> 4465 4466 * libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid 4467 of ugly 64-bit hacks, replace them with the clever (autoconf based ) 4468 ones :-). 4469 4470 * libtiff/tiffio.h: Define thandle_t as int, not void* (may cause 4471 problems in 64-bit environment). 4472 44732004-06-05 Andrey Kiselev <[email protected]> 4474 4475 * tools/tiffset.c: tiffset now can set any libtiff supported tags. 4476 Tags can be supplied by the mnemonic name or number. 4477 4478 * libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new 4479 functions TIFFFindFieldInfoByName() and TIFFFieldWithName(). 4480 44812004-05-27 Andrey Kiselev <[email protected]> 4482 4483 * libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF 4484 markers as per bug 4485 4486 http://bugzilla.remotesensing.org/show_bug.cgi?id=581 4487 44882004-05-24 Andrey Kiselev <[email protected]> 4489 4490 * tools/tiffsplit.c: Don't forget to copy Photometric 4491 Interpretation tag. 4492 44932004-05-20 Andrey Kiselev <[email protected]> 4494 4495 * libtiff/{tif_open.c, tiffio.h}: New function added: 4496 TIFFIsBigEndian(). Function returns nonzero if given was file written 4497 in big-endian order. 4498 4499 * tools/tiffsplit.c: Fixed problem with unproperly written multibyte 4500 files. Now output files will be written using the same byte order 4501 flag as in the input image. See 4502 4503 http://bugzilla.remotesensing.org/show_bug.cgi?id=574 4504 4505 for details. 4506 45072004-05-19 Frank Warmerdam <[email protected]> 4508 4509 * libtiff/tif_print.c: added (untested) support for printing 4510 SSHORT, SLONG and SRATIONAL fields. 4511 4512 * tools/tiffcp.c: close output file on normal exit. 4513 45142004-05-17 Andrey Kiselev <[email protected]> 4515 4516 * libtiff/tif_fax3.c: Avoid reading CCITT compression options 4517 if compression type mismatches. See 4518 4519 http://bugzilla.remotesensing.org/show_bug.cgi?id=565 4520 45212004-04-30 Andrey Kiselev <[email protected]> 4522 4523 * libtiff/tif_strip.c: Never return 0 from the 4524 TIFFNumberOfStrips(). 4525 45262004-04-29 Andrey Kiselev <[email protected]> 4527 4528 * libtiff/tif_dirread.c: Workaround for broken TIFF writers which 4529 store single SampleFormat value for multisampled images. See 4530 4531 http://bugzilla.remotesensing.org/show_bug.cgi?id=562 4532 45332004-04-25 Andrey Kiselev <[email protected]> 4534 4535 * configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8, 4536 int16 and int32 types to avoid complains on some compilers. Details at 4537 4538 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 4539 45402004-04-20 Andrey Kiselev <[email protected]> 4541 4542 * tools/tiff2pdf.c: Fixed problem with unaligned access as per bug 4543 4544 http://bugzilla.remotesensing.org/show_bug.cgi?id=555 4545 45462004-04-14 Andrey Kiselev <[email protected]> 4547 4548 * libtiff/tif_write.c: Allow in-place updating of the compressed 4549 images (don't work properly with all codecs). For details see GDAL bug 4550 4551 http://bugzilla.remotesensing.org/show_bug.cgi?id=534 4552 45532004-04-06 Andrey Kiselev <[email protected]> 4554 4555 * libtiff/tif_jpeg.c: Workaround for wrong sampling factors used 4556 in the Intergarph JPEG compressed TIFF images as per bug: 4557 4558 http://bugzilla.remotesensing.org/show_bug.cgi?id=532 4559 45602004-04-04 Frank Warmerdam <[email protected]> 4561 4562 * libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails 4563 via bad2. 4564 45652004-03-26 Andrey Kiselev <[email protected]> 4566 4567 * tools/tiffcp.c: Properly set Photometric Interpretation in case of 4568 JPEG compression of grayscale images. 4569 4570 * tools/tiffcp.c: Don't emit warnings when Orientation tag does not 4571 present in the input image. 4572 45732004-03-19 Andrey Kiselev <[email protected]> 4574 4575 * {many}: The first attempt to switch to autotools. 4576 45772004-03-03 Andrey Kiselev <[email protected]> 4578 4579 * libtiff/tif_open.c: Use dummy mmap/munmap functions in 4580 TIFFClientOpen() when the appropriate client functions was not 4581 supplied by user. 4582 45832004-03-02 Frank Warmerdam <[email protected]> 4584 4585 * tools/ycbcr.c: fixed main() declaration as per: 4586 http://bugzilla.remotesensing.org/show_bug.cgi?id=513 4587 45882004-02-26 Andrey Kiselev <[email protected]> 4589 4590 * tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed 4591 images. Reported by Artem Mirolubov. 4592 4593 * libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED 4594 tag type in TIFFFetchNormalTag() as per bug 4595 4596 http://bugzilla.remotesensing.org/show_bug.cgi?id=508 4597 45982004-02-17 Frank Warmerdam <[email protected]> 4599 4600 * libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per: 4601 http://bugzilla.remotesensing.org/show_bug.cgi?id=494 4602 46032004-02-05 Andrey Kiselev <[email protected]> 4604 4605 * libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per 4606 bug 4607 4608 http://bugzilla.remotesensing.org/show_bug.cgi?id=483 4609 4610 But we need more work on fax codec to support update mode. 4611 46122004-01-30 Frank Warmerdam <[email protected]> 4613 4614 * libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck, 4615 TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by 4616 Scott Reynolds. 4617 46182004-01-29 Andrey Kiselev <[email protected]> 4619 4620 * libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS 4621 and TIFFTAG_INDEXED as per bug 4622 4623 http://bugzilla.remotesensing.org/show_bug.cgi?id=475 4624 4625 * libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is 4626 NULL before proceeding further as per bug 4627 4628 http://bugzilla.remotesensing.org/show_bug.cgi?id=474 4629 4630 Check results, returned by the TIFFFdOpen() before returning and close 4631 file if TIFFFdOpen() failed as per bug 4632 4633 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 4634 4635 * libtiff/tif_open.c: More fixes for 4636 4637 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 4638 46392004-01-28 Andrey Kiselev <[email protected]> 4640 4641 * libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate 4642 TIFFCleanup() from the TIFFClose() in order to fix the bug 4643 4644 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 4645 4646 * tools/tiffcp.c: Fixed problem with wrong interpretation of the 4647 InkNames tag as per bug 4648 4649 http://bugzilla.remotesensing.org/show_bug.cgi?id=466 4650 4651 Memory leak fixed. 4652 46532004-01-21 Frank Warmerdam <[email protected]> 4654 4655 * libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that 4656 are field_passcount=TRUE properly. Arguably anonymous custom tags 4657 should be declared as passcount=FALSE, but I don't want to change 4658 that without a careful review. 4659 46602004-01-20 Andrey Kiselev <[email protected]> 4661 4662 * libtiff/tif_write.c: Fixed reporting size of the buffer in case of 4663 stripped image in TIFFWriteBufferSetup(). As per bug 4664 4665 http://bugzilla.remotesensing.org/show_bug.cgi?id=460 4666 46672004-01-11 Andrey Kiselev <[email protected]> 4668 4669 * libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(), 4670 patch from Gerben Koopmans. 4671 4672 * libtiff/tif_dirread.c: Check field_passcount value before setting 4673 the value of undefined type, patch from Gerben Koopmans. 4674 46752004-01-02 Andrey Kiselev <[email protected]> 4676 4677 * tools/tiffcp.c: Fixed problem with wrong Photometric setting for 4678 non-RGB images. 4679 46802003-12-31 Andrey Kiselev <[email protected]> 4681 4682 * libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL 4683 pointer passed. Patch supplied by Larry Grill. 4684 4685 * libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as 4686 suggested by Jeremy C. Reed. 4687 46882003-12-26 Andrey Kiselev <[email protected]> 4689 4690 * libtiff 3.6.1 released. 4691 46922003-12-24 Andrey Kiselev <[email protected]> 4693 4694 * config.guess, config.sub: Updated from the recent upstream. 4695 46962003-12-22 Andrey Kiselev <[email protected]> 4697 4698 * libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t: 4699 More cleanups in color conversion interface, added appropriate manual 4700 page. 4701 47022003-12-19 Andrey Kiselev <[email protected]> 4703 4704 * libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as 4705 per bug 4706 4707 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 4708 4709 * tools/tiff2ps.c: Added support for alpha channel. Fixes 4710 4711 http://bugzilla.remotesensing.org/show_bug.cgi?id=428 4712 4713 * libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}: 4714 Interface for Lab->RGB color conversion is finally cleaned up. 4715 Added support for ReferenceBlackWhite tag handling when converted from 4716 YCbCr color space. The latter closes 4717 4718 http://bugzilla.remotesensing.org/show_bug.cgi?id=120 4719 47202003-12-07 Andrey Kiselev <[email protected]> 4721 4722 * libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings. 4723 4724 * libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG 4725 library. 4726 47272003-12-06 Andrey Kiselev <[email protected]> 4728 4729 * libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the 4730 file and properly use it for CIE Lab->RGB transform. 4731 47322003-12-04 Andrey Kiselev <[email protected]> 4733 4734 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB 4735 conversion routines now in the tif_color.c module. New function 4736 TIFFYCbCrtoRGB() available in TIFF API. 4737 4738 * libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly. 4739 47402003-12-03 Andrey Kiselev <[email protected]> 4741 4742 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in 4743 CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c 4744 module. 4745 4746 * libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t, 4747 TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}: 4748 Finally resolved problems with orientation handling. TIFFRGBAImage 4749 interface now properly supports all possible orientations, i.e. images 4750 will be flipped both in horizontal and vertical directions if 4751 required. 'Known bugs' section now removed from the appropriate manual 4752 pages. Closed bug entry: 4753 4754 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 4755 47562003-12-02 Andrey Kiselev <[email protected]> 4757 4758 * libtiff/tif_dir.c: Fixed order of the parameters in TIFFError() 4759 function calls as per bug 4760 4761 http://bugzilla.remotesensing.org/show_bug.cgi?id=440 4762 47632003-11-28 Ross Finlayson <[email protected]> 4764 4765 * tools/tiff2pdf.c: Some bugs fixed. 4766 47672003-11-27 Andrey Kiselev <[email protected]> 4768 4769 * libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine, 4770 reported by Antonio Scuri. 4771 4772 * man/tiff2pdf.1: Few improvements in page layout. 4773 4774 * Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html: 4775 Added support fpr tiff2pdf manual page. 4776 47772003-11-26 Ross Finlayson <[email protected]> 4778 4779 * /man/tiff2pdf.1: File added to repository. 4780 47812003-11-26 Andrey Kiselev <[email protected]> 4782 4783 * Makefile.in, /tools/{Makefile.in, makefile.vc}: 4784 Added support fpr tiff2pdf utility. 4785 47862003-11-25 Ross Finlayson <[email protected]> 4787 4788 * /tools/tiff2pdf.c: File added to repository. 4789 47902003-11-22 Andrey Kiselev <[email protected]> 4791 4792 * /tools/raw2tiff.c: sqrtf() replaced with sqrt(). 4793 47942003-11-21 Andrey Kiselev <[email protected]> 4795 4796 * /tools/raw2tiff.c: #include <getopt.h> removed. 4797 4798 * tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent 4799 sgigt utility removed and replaced with the completely rewritten 4800 portable tiffgt tool (depend on OpenGL and GLUT). Initial revision, 4801 there is a lot of things to improve. 4802 4803 * libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly 4804 extract the fields from the OJPEG files. Patch supplied by Ross 4805 Finlayson. 4806 4807 * libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}: 4808 Added new function TIFFIsCODECConfigured(), suggested by Ross 4809 Finlayson. 4810 48112003-11-18 Andrey Kiselev <[email protected]> 4812 4813 * libtiff/tif_dirinfo.c: Implemented binary search in 4814 _TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson. 4815 4816 * libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced 4817 with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson. 4818 48192003-11-17 Frank Warmerdam <[email protected]> 4820 4821 * tif_dirread.c: do not mark all anonymously defined tags to be 4822 IGNOREd. 4823 48242003-11-17 Andrey Kiselev <[email protected]> 4825 4826 * contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use 4827 TIFFDataWidth() function insted of tiffDataWidth array. 4828 48292003-11-16 Andrey Kiselev <[email protected]> 4830 4831 * libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13) 4832 datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes". 4833 48342003-11-15 Frank Warmerdam <[email protected]> 4835 4836 * Makefile.in: fixed missing backslash for tif_color.c in list. 4837 48382003-11-13 Andrey Kiselev <[email protected]> 4839 4840 * libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}: 4841 New color space conversion code: CIE L*a*b* 1976 images now supported 4842 by the TIFFRGBAImage interface. All introduced routines go to new 4843 module tif_color.c. Eventually all color conversion functions should 4844 be moved there. 4845 48462003-11-12 Andrey Kiselev <[email protected]> 4847 4848 * tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles 4849 with the reverse byte order (it is reported by the magic header 4850 field). Problem reported by Andreas Wiesmann. 4851 4852 * tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation 4853 calculation function. Guessing mechanics now documented in manual page. 4854 48552003-11-11 Andrey Kiselev <[email protected]> 4856 4857 * tools/raw2tiff.c: Implemented image size guessing using 4858 correlation coefficient calculation between two neighbour lines. 4859 48602003-11-09 Frank Warmerdam <[email protected]> 4861 4862 * libtiff/tif_tile.c: remove spurious use of "s" (sample) in the 4863 planarconfig_contig case in TIFFComputeTile(). 4864 4865 http://bugzilla.remotesensing.org/show_bug.cgi?id=387 4866 48672003-11-09 Andrey Kiselev <[email protected]> 4868 4869 * libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint. 4870 48712003-11-07 Andrey Kiselev <[email protected]> 4872 4873 * libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}: 4874 Added TIFFRawStripSize() function as suggested by Chris Hanson. 4875 48762003-11-03 Andrey Kiselev <[email protected]> 4877 4878 * libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as 4879 per bug 4880 4881 http://bugzilla.remotesensing.org/show_bug.cgi?id=424 4882 48832003-10-29 Andrey Kiselev <[email protected]> 4884 4885 * libtiff/libtiff.def: Added TIFFReadRGBAImageOriented. 4886 4887 * html/build.html: Added note about GNU make requirement. 4888 48892003-10-25 Andrey Kiselev <[email protected]> 4890 4891 * Makefile.in: Fixes in using MAKEFLAGS as per bug 4892 4893 http://bugzilla.remotesensing.org/show_bug.cgi?id=418 4894 4895 * port/install.sh.in: Option -p added to the mkdir command to create 4896 all directory tree structure before installing. 4897 48982003-10-18 Andrey Kiselev <[email protected]> 4899 4900 * /tools/tiff2ps.c: #include <strings.h> replaced with the 4901 #include <string.h>. 4902 49032003-10-16 Andrey Kiselev <[email protected]> 4904 4905 * Makefile.in: Add an absolute path to the test_pics.sh call. 4906 49072003-10-12 Andrey Kiselev <[email protected]> 4908 4909 * libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD 4910 typedefs. 4911 49122003-10-09 Andrey Kiselev <[email protected]> 4913 4914 * configure, libtiff/{Makefile.in, mkversion.c}: 4915 Relative buildings fixed. 4916 4917 * tools/Makefile.in: Added "-I../libtiff" to the tiffset building 4918 rule. 4919 49202003-10-07 Andrey Kiselev <[email protected]> 4921 4922 * Makefile.in: Added missed v3.6.0.html. 4923 4924 * libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with 4925 ORIENTATION_BOTLEFT. 4926 49272003-10-04 Andrey Kiselev <[email protected]> 4928 4929 * 3.6.0 final release. 4930 49312003-10-03 Andrey Kiselev <[email protected]> 4932 4933 * libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New 4934 function TIFFReadRGBAImageOriented() implemented to retrieve raster 4935 array with user-specified origin position as suggested by Jason Frank. 4936 See 4937 4938 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 4939 4940 for details. 4941 4942 * tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented() 4943 instead of TIFFReadRGBAImage(). 4944 4945 * tools/tiff2ps.c: Fixed possible endless loop as per bug 4946 4947 http://bugzilla.remotesensing.org/show_bug.cgi?id=404 4948 49492003-09-30 Andrey Kiselev <[email protected]> 4950 4951 * libtiff/tif_dirread.c: Check field counter against number of fields 4952 in order to fix 4953 4954 http://bugzilla.remotesensing.org/show_bug.cgi?id=366 4955 4956 * libtiff/tif_fax3.c: Fix wrong line numbering as per bug 4957 4958 http://bugzilla.remotesensing.org/show_bug.cgi?id=342 4959 49602003-09-25 Andrey Kiselev <[email protected]> 4961 4962 * libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c, 4963 tif_close.c}: Store a list of opened IFD to prevent looping as per bug 4964 4965 http://bugzilla.remotesensing.org/show_bug.cgi?id=383 4966 49672003-09-23 Andrey Kiselev <[email protected]> 4968 4969 * libtiff/tif_dirread.c: More fixes for EstimateStripByteCounts(). See 4970 4971 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 4972 49732003-08-21 Andrey Kiselev <[email protected]> 4974 4975 * tools/tiffmedian.c: int declaration replaced with the uint32 to 4976 support large images as per bug 4977 4978 http://bugzilla.remotesensing.org/show_bug.cgi?id=382 4979 49802003-08-12 Andrey Kiselev <[email protected]> 4981 4982 * libtiff/Makefile.in: Fixed problem with building in different 4983 directory. 4984 4985 * tools/tiff2ps.c: Added missing #include <strings.h>. 4986 4987 * libtiff/tif_dirwrite.c: More fixes for custom tags code 4988 from Ashley Dreier. 4989 49902003-08-07 Andrey Kiselev <[email protected]> 4991 4992 * tools/tiff2ps.c: Added page size setting when creating PS Level 2. 4993 Patch submitted by Balatoni Denes (with corrections from Tom 4994 Kacvinsky). 4995 4996 * tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is 4997 being used. Reported by Tom Kacvinsky. 4998 4999 * libtiff/tif_dirwrite.c: Fixed problem with custom tags writing, 5000 reported by Ashley Dreier. 5001 5002 * libtiff/tif_print.c: Fixed problem with float tags reading, support 5003 for printing RATIONAL and BYTE tags added. 5004 50052003-08-05 Andrey Kiselev <[email protected]> 5006 5007 * libtiff/tif_lzw.c: Move LZW codec state block allocation back to 5008 TIFFInitLZW(), because its initialization in LZWSetupDecode() cause 5009 problems with predictor initialization. Remove O_RDONLY check during 5010 state block allocation to be able open LZW compressed files in update 5011 mode. 5012 5013 Problem exist for libtiff version of the tif_lzw.c module. One from 5014 lzw-compression-kit hasn't such troubles. 5015 50162003-08-04 Frank Warmerdam <[email protected]> 5017 5018 * libtiff/tif_write.c: modified tif_write.c so that the various 5019 encoded write functions use tif_postdecode() to apply byte order 5020 swapping (swab) to the application passed data buffer if the same 5021 would be done when reading. This allows us to write pixel data with 5022 more than 8 bits per sample to existing files of a non-native byte 5023 order. One side effect of this change is the applications buffer 5024 itself is altered in this case by the act of writing. 5025 5026 http://bugzilla.remotesensing.org/show_bug.cgi?id=171 5027 50282003-07-25 Frank Warmerdam <[email protected]> 5029 5030 * libtiff/tif_open.c: avoid signed/unsigned casting warning 5031 initializing typemask as per patch from J.A. Strother. 5032 5033 * tools/tiffcp.c: fixed signed/unsigned casting warning. 5034 5035 * libtiff/tif_print.c: dos2unix conversion. 5036 5037 * tools/tiffsplit.c: increased the maximum number of pages that 5038 can be split. Patch provided by Andrew J. Montalenti. 5039 50402003-07-11 Andrey Kiselev <[email protected]> 5041 5042 * tools/raw2tiff.c: Added option `-p' to explicitly select color 5043 space of input image data. Closes 5044 5045 http://bugzilla.remotesensing.org/show_bug.cgi?id=364 5046 50472003-07-08 Frank Warmerdam <[email protected]> 5048 5049 * tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c, 5050 tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c, 5051 tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c: 5052 avoid casting warning at /W4. 5053 50542003-07-03 Andrey Kiselev <[email protected]> 5055 5056 * tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel. 5057 50582003-06-30 Andrey Kiselev <[email protected]> 5059 5060 * libtiff/tif_pixarlog.c: Unused variables removed. 5061 5062 * libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with 5063 EstimateStripByteCounts() as per bug 5064 5065 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 5066 5067 * libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on 5068 64-bit architectures as per bug 5069 5070 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 5071 5072 * libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of 5073 unknown data type. 5074 50752003-06-19 Frank Warmerdam <[email protected]> 5076 5077 * libtiff/tif_print.c: fixed some serious bugs when printing 5078 custom tags ... almost certain to crash. 5079 5080 * libtiff/tif_dirread.c: Don't ignore custom fields that are 5081 autodefined. Not sure how this got to be like this. 5082 50832003-06-18 Andrey Kiselev <[email protected]> 5084 5085 * 3.6.0 Beta2 released. 5086 5087 * tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data 5088 comparing as per bug 5089 5090 http://bugzilla.remotesensing.org/show_bug.cgi?id=349 5091 5092 `-z' option now can be used to set the number of reported different 5093 bytes. 5094 50952003-06-09 Andrey Kiselev <[email protected]> 5096 5097 * tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1 5098 to -r option to get the entire image as one strip. See 5099 5100 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5101 5102 for details. 5103 51042003-06-04 Andrey Kiselev <[email protected]> 5105 5106 * tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber 5107 values as per bug 5108 5109 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5110 51112003-05-27 Frank Warmerdam <[email protected]> 5112 5113 * libtiff/tif_jpeg.c: modified segment_height calculation to always 5114 be a full height tile for tiled images. Also changed error to just 5115 be a warning. 5116 51172003-05-25 Andrey Kiselev <[email protected]> 5118 5119 * tools/fax2tiff.c: Page numbering fixed, as per bug 5120 5121 http://bugzilla.remotesensing.org/show_bug.cgi?id=341 5122 51232003-05-20 Andrey Kiselev <[email protected]> 5124 5125 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5126 configure, Makefile.in: Switched back to the old behaviour. Likely 5127 better solution should be found for OJPEG support. 5128 51292003-05-11 Andrey Kiselev <[email protected]> 5130 5131 * libtiff/mkversion.c: Fixed problem with wrong string size when 5132 reading RELEASE-DATE file. 5133 51342003-05-07 Andrey Kiselev <[email protected]> 5135 5136 * tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array 5137 index was out of range. 5138 51392003-05-06 Andrey Kiselev <[email protected]> 5140 5141 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5142 configure, Makefile.in: Improved libtiff compilation with OJPEG 5143 support. Now no need for patching IJG JPEG library, hack requred by 5144 libtiff will be compiled and used in-place. Implemented with 5145 suggestion and help from Bill Allombert, Debian's libjpeg maintainer. 5146 5147 * libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in 5148 TIFFVGetFieldDefaulted() function. 5149 51502003-05-05 Andrey Kiselev <[email protected]> 5151 5152 * tools/ppm2tiff.c: PPM header parser improved: now able to skip 5153 comments. 5154 5155 * tools/tiffdither.c: Fixed problem with bit fill order tag setting: 5156 was not copied from source image. 5157 5158 * libtiff/getimage.c: Workaround for some images without correct 5159 info about alpha channel as per bug 5160 5161 http://bugzilla.remotesensing.org/show_bug.cgi?id=331 5162 51632003-04-29 Andrey Kiselev <[email protected]> 5164 5165 * tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3. 5166 It basically allows one to use the /flateDecode filter for ZIP 5167 compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes 5168 5169 http://bugzilla.remotesensing.org/show_bug.cgi?id=328 5170 5171 * tools/tiff2ps.c: Force deadzone printing when EPS output specified 5172 as per bug 5173 5174 http://bugzilla.remotesensing.org/show_bug.cgi?id=325 5175 51762003-04-17 Andrey Kiselev <[email protected]> 5177 5178 * libtiff/tif_dirread.c: Removed additional check for StripByteCounts 5179 due to problems with multidirectory images. Quality of error messages 5180 improved. 5181 51822003-04-16 Andrey Kiselev <[email protected]> 5183 5184 * tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG 5185 encoded images. See bug entries 5186 5187 http://bugzilla.remotesensing.org/show_bug.cgi?id=275 5188 5189 and 5190 5191 http://bugzilla.remotesensing.org/show_bug.cgi?id=23 5192 5193 * libtiff/tif_dirread.c: Additional check for StripByteCounts 5194 correctness. Fixes 5195 5196 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 5197 51982003-03-12 Andrey Kiselev <[email protected]> 5199 5200 * tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c, 5201 ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c, 5202 tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c, 5203 tiffmedian.c}: Added library version reporting facility to all tools. 5204 52052003-03-06 Frank Warmerdam <[email protected]> 5206 5207 * port/install.sh.in: Fixed problems with install producing paths 5208 like ///usr/local/lib on cygwin. 5209 52102003-02-27 Andrey Kiselev <[email protected]> 5211 5212 * tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of 5213 raw input page. Patch supplied by Julien Gaulmin. See 5214 5215 http://bugzilla.remotesensing.org/show_bug.cgi?id=293 5216 5217 for details. 5218 52192003-02-26 Frank Warmerdam <[email protected]> 5220 5221 * libtiff/tif_dir.c: fixed up the tif_postdecode settings 5222 responsible for byte swapping complex image data. 5223 5224 * libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till 5225 LZWSetupDecode(). Needed to read LZW files in "r+" mode. 5226 52272003-02-07 Andrey Kiselev <[email protected]> 5228 5229 * tools/ppm2tiff.c: Fixed problem with too many arguments. 5230 52312003-02-04 Andrey Kiselev <[email protected]> 5232 5233 * tools/raw2tiff.c: Memory leak fixed. 5234 52352003-02-03 Andrey Kiselev <[email protected]> 5236 5237 * tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin 5238 (thanks, Julien!). More switches for fax2tiff tool for better control 5239 of input and output. Details at 5240 5241 http://bugzilla.remotesensing.org/show_bug.cgi?id=272 5242 52432003-02-03 Frank Warmerdam <[email protected]> 5244 5245 * libtiff/tif_jpeg.c: Modified to defer initialization of jpeg 5246 library so that we can check if there is already any tile/strip data 5247 before deciding between creating a compressor or a decompressor. 5248 52492003-01-31 Frank Warmerdam <[email protected]> 5250 5251 * libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is 5252 a pre-existing compressed image. That is, image writing to 5253 pre-existing compressed images is not allowed. 5254 5255 * libtiff/tif_open.c: Removed error if opening a compressed file 5256 in update mode. 5257 5258 http://bugzilla.remotesensing.org/show_bug.cgi?id=198 5259 52602003-01-31 Andrey Kiselev <[email protected]> 5261 5262 * config.guess, config.sub: Updated to recent upstream versions. 5263 52642003-01-15 Frank Warmerdam <[email protected]> 5265 5266 * cut 3.6.0 Beta release. 5267 52682002-12-20 Andrey Kiselev <[email protected]> 5269 5270 * tools/fax2ps.c, man/fax2ps.1: Page size was determined 5271 in wrong way as per bug 5272 5273 http://bugzilla.remotesensing.org/show_bug.cgi?id=239 5274 52752002-12-17 Frank Warmerdam <[email protected]> 5276 5277 * libtiff/tif_dirread.c: Allow wrong sized arrays in 5278 TIFFFetchStripThing(). 5279 5280 http://bugzilla.remotesensing.org/show_bug.cgi?id=49 5281 52822002-12-02 Frank Warmerdam <[email protected]> 5283 5284 * libtiff/tif_dir.c: fix problem with test on td_customValueCount. 5285 Was using realloc even first time. Fix by Igor Venevtsev. 5286 52872002-11-30 Frank Warmerdam <[email protected]> 5288 5289 * libtiff/tif_dir.c: fixed bug with resetting an existing custom 5290 field value. 5291 5292 * libtiff/tif_dir.c: Fixed potential problem with ascii "custom" 5293 tags in TIFFVGetField() ... added missing break. 5294 52952002-10-14 Frank Warmerdam <[email protected]> 5296 5297 * tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make 5298 the scanline buffer long enough when writing rgb triplets. 5299 The scanline needs to be 3 X the number of dots or else it will 5300 contain an incomplete triplet and programs that try to separate 5301 the eps by redefining the colorimage operator will get messed up. 5302 Patch supplied by William Bader. 5303 5304 * Makefile.in: added tif_extension.c to file list as per 5305 http://bugzilla.remotesensing.org/show_bug.cgi?id=218. 5306 53072002-10-11 Andrey Kiselev <[email protected]> 5308 5309 * configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for 5310 large files (>2GiB) supporting. New option in the config.site: 5311 LARGEFILE="yes". Should be enough for I/O of the large files. 5312 53132002-10-10 Frank Warmerdam <[email protected]> 5314 5315 * libtiff/html/v3.6.0.html: new release notes. 5316 5317 * libtiff/index.html: removed faq, cvs snapshot cruft. Added email 5318 link for Andrey. Pointer to v3.6.0.html. 5319 5320 * libtiff/Makefile.in: added direct rule for tiffvers.h for release. 5321 53222002-10-07 Andrey Kiselev <[email protected]> 5323 * tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken 5324 (thanks, Sebastian!). New switches: 5325 -b # for a bottom margin of # inches 5326 -c center image 5327 -l # for a left margin of # inches 5328 -r rotate the image by 180 degrees 5329 New features merged with code for shrinking/overlapping. 5330 Previously added -c and -n switches (for overriding PS units) renamed 5331 in -x and -y respectively. 5332 5333 http://bugzilla.remotesensing.org/show_bug.cgi?id=200 5334 5335 * html/man/*.html: Updated from actual manual pages. 5336 53372002-10-06 Frank Warmerdam <[email protected]> 5338 5339 * libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong 5340 size on windows. Use #define boolean hack. 5341 5342 http://bugzilla.remotesensing.org/show_bug.cgi?id=188 5343 5344 * libtiff/tiff.h: Don't do special type handling in tiff.h unless 5345 USING_VISUALAGE is defined. 5346 5347 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 5348 53492002-10-03 Frank Warmerdam <[email protected]> 5350 5351 * libtiff/tiff.h: added COMPRESSION_JP2000. 5352 53532002-10-02 Andrey Kiselev <[email protected]> 5354 5355 * libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays 5356 by the TIFFFetchByteArray() function. Should finally resolve 5357 5358 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5359 5360 * configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT 5361 5362 * html/Makefile.in: New targets added: html and groffhtml for 5363 producing HTML representations of the manual pages automatically. 5364 html target uses man2html tool, groffhtml uses groff tool. 5365 53662002-09-29 Frank Warmerdam <[email protected]> 5367 5368 * configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support 5369 from John H. DuBois III. 5370 53712002-09-15 Andrey Kiselev <[email protected]> 5372 5373 * Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added 5374 manual page for raw2tiff(1) tool. 5375 53762002-09-12 Andrey Kiselev <[email protected]> 5377 5378 * /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to 5379 the tiffio.h header file. 5380 5381 * Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added 5382 manual page for TIFFDataWidth() function 5383 53842002-09-08 Frank Warmerdam <[email protected]> 5385 5386 * libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair() 5387 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196. 5388 5389 * tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments 5390 since we are unable to properly include the amount to skip. 5391 5392 http://bugzilla.remotesensing.org/show_bug.cgi?id=80 5393 53942002-09-02 Andrey Kiselev <[email protected]> 5395 5396 * /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching 5397 in TIFFFetchByteArray(). Problem described at 5398 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5399 54002002-08-22 Andrey Kiselev <[email protected]> 5401 5402 * /libtiff/tif_dirinfo.c: Further additions to free custom fields 5403 in _TIFFSetupFieldInfo() function. 5404 See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details. 5405 5406 * /libtiff/tif_lzw.c: Additional consistency checking added in 5407 LZWDecode() and LZWDecodeCompat(). 5408 Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190 5409 and http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5410 5411 * /libtiff/tif_lzw.c: 5412 Added check for valid code lengths in LZWDecode() and 5413 LZWDecodeCompat(). Fixes 5414 http://bugzilla.remotesensing.org/show_bug.cgi?id=115 5415 54162002-08-16 Andrey Kiselev <[email protected]> 5417 5418 * /libtiff/{Makefile.vc, libtiff.def}: 5419 Missed declarations added. 5420 54212002-08-15 Frank Warmerdam <[email protected]> 5422 5423 * tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the 5424 return code from the underlying pick function. 5425 5426 http://bugzilla.remotesensing.org/show_bug.cgi?id=177 5427 5428 * tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap 5429 with FIELD_CUSTOM as mentioned in bug 169. 5430 5431 * tif_close.c: added logic to free dynamically created anonymous 5432 field definitions to correct a small memory leak. 5433 5434 http://bugzilla.remotesensing.org/show_bug.cgi?id=169 5435 54362002-08-10 Andrey Kiselev <[email protected]> 5437 5438 * /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}: 5439 New tool: raw2tiff --- raw images to TIFF converter. No manual page yet. 5440 54412002-07-31 Frank Warmerdam <[email protected]> 5442 5443 * libtiff/tif_jpeg.c: Fixed problem with setting of nrows in 5444 JPEGDecode() as per bugzilla bug (issue 1): 5445 5446 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5447 5448 * libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to 5449 fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't 5450 present in the tiff tags. 5451 5452 http://bugzilla.remotesensing.org/show_bug.cgi?id=168 5453 5454 * libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and 5455 TIFFWriteScanline() now set tif_row explicitly in case the codec has 5456 fooled with the value. 5457 5458 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5459 54602002-06-22 Andrey Kiselev <[email protected]> 5461 5462 * /tools/tiff2ps.c: Added workaround for some software that may crash 5463 when last strip of image contains fewer number of scanlines than 5464 specified by the `/Height' variable. See 5465 http://bugzilla.remotesensing.org/show_bug.cgi?id=164 5466 for explanation. 5467 54682002-06-21 Andrey Kiselev <[email protected]> 5469 5470 * tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility: 5471 splitting long images in several pages. See 5472 http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation. 5473 Patch granted by John Williams <[email protected]>. 5474 54752002-06-11 Frank Warmerdam <[email protected]> 5476 5477 * libtiff/contrib/win95: renamed to contrib/win_dib. Added new 5478 Tiffile.cpp example of converting TIFF files into a DIB on Win32. 5479 This one is described in: 5480 5481 http://bugzilla.remotesensing.org/show_bug.cgi?id=143 5482 5483 * libtiff/tif_ojpeg.c: Major upgrade from Scott. See details at: 5484 5485 http://bugzilla.remotesensing.org/show_bug.cgi?id=156 5486 54872002-05-10 Andrey Kiselev <[email protected]> 5488 5489 * tools/tiff2ps: New commandline switches to override resolution 5490 units obtained from the input file. Closes 5491 http://bugzilla.remotesensing.org/show_bug.cgi?id=131 5492 54932002-04-26 Andrey Kiselev <[email protected]> 5494 5495 * libtiff/libtiff.def: Added missed declaration. 5496 54972002-04-22 Andrey Kiselev <[email protected]> 5498 5499 * tools/fax2tiff.c: Updated to reflect latest changes in libtiff. 5500 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125 5501 55022002-04-20 Andrey Kiselev <[email protected]> 5503 5504 * libtiff/tif_open.c: Pointers to custom procedures 5505 in TIFFClientOpen() are checked to be not NULL-pointers. 5506 55072002-04-18 Andrey Kiselev <[email protected]> 5508 5509 * libtiff/libtiff.def: Added missed declarations. 5510 5511 * libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure. 5512 55132002-04-16 Andrey Kiselev <[email protected]> 5514 5515 * libtiff/tif_lzw.c: Additional checks for data integrity introduced. 5516 Should finally close 5517 http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5518 55192002-04-10 Andrey Kiselev <[email protected]> 5520 5521 * tools/tiff2ps: Division by zero fixed. 5522 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88 5523 55242002-04-09 Andrey Kiselev <[email protected]> 5525 5526 * libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h: 5527 TIFFCheckpointDirectory() routine added. 5528 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124 5529 5530 * man/: TIFFWriteDirectory.3t, Makefile.in: Added description 5531 for the new function. 5532 55332002-04-08 Andrey Kiselev <[email protected]> 5534 5535 * libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced 5536 additional members tif->tif_decodestatus and tif->tif_encodestatus 5537 for correct handling of unconfigured codecs (we should not try to read 5538 data or to define data size without correct codecs). 5539 5540 * libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK 5541 changed. Now it has used tif->tif_decodestatus and 5542 tif->tif_encodestatus. 5543 Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in 5544 case of __cvs_8.tif test image). 5545 5546 * libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in 5547 tif_dirread.c when TIFFCreateAnonFieldInfo was introduced. 5548 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case 5549 of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif. 5550 55512002-04-04 Andrey Kiselev <[email protected]> 5552 5553 * libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat 5554 replaced by warnings. Now libtiff should read corrupted LZW-compressed 5555 files by skipping bad strips. 5556 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5557 55582002-04-03 Frank Warmerdam <[email protected]> 5559 5560 * libtiff/tif_dirwrite.c: Removed some dead code. 5561 5562 * libtiff/*: Cleanup some warnings. 5563 5564 * libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField() 5565 for variable length FIELD_CUSTOM values. Was int * but should be 5566 u_short *. 5567 55682002-04-01 Andrey Kiselev <[email protected]> 5569 5570 * tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp 5571 utility (at cpStripToTile routine). 5572 55732002-03-27 Frank Warmerdam <[email protected]> 5574 5575 * tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func. 5576 5577 http://bugzilla.remotesensing.org/show_bug.cgi?id=111 5578 5579 * tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with 5580 passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE). 5581 5582 * libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so 5583 that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example. 5584 55852002-03-26 Dwight Kelly <[email protected]> 5586 5587 * libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 5588 tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined 5589 in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec 5590 INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes: 5591 CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and 5592 INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9). 5593 55942002-03-26 Andrey Kiselev <[email protected]> 5595 5596 * libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile 5597 now also uses TIFFRGBAImageOK before reading. This is additional fix 5598 for http://bugzilla.remotesensing.org/show_bug.cgi?id=110 5599 56002002-03-25 Andrey Kiselev <[email protected]> 5601 5602 * libtiff/: tif_getimage.c: Additional check for supported 5603 codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses 5604 TIFFRGBAImageOK before reading. 5605 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110 5606 56072002-03-15 Andrey Kiselev <[email protected]> 5608 5609 * libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 5610 tif_dirwrite.c: Added routine TIFFDataWidth for detrmining 5611 TIFFDataType sizes instead of working with tiffDataWidth array 5612 directly. Should prevent out-of-borders bugs in case of unknown or 5613 broken data types. EstimateStripByteCounts routine modified, so it 5614 won't work when tags with uknown sizes founded. 5615 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109 5616 56172002-03-13 Andrey Kiselev <[email protected]> 5618 5619 * libtiff/tif_getimage.c: Added support for correct handling 5620 `Orientation' tag in gtTileContig. Should be added in other gt* 5621 functions as well, but I have not images for testing yet. Partially 5622 resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23 5623 56242002-03-10 Andrey Kiselev <[email protected]> 5625 5626 * libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to 5627 read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION, 5628 TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC. Closes 5629 http://bugzilla.remotesensing.org/show_bug.cgi?id=99 5630 56312002-03-08 Andrey Kiselev <[email protected]> 5632 5633 * libtiff/Makefile.in, tools/Makefile.in: Shared library will not 5634 be stripped when installing, utility binaries will do. Closes 5635 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 5636 56372002-02-28 Frank Warmerdam <[email protected]> 5638 5639 * man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT. 5640 5641 * man/libtiff.3t: added copyright tag info. 5642 56432002-02-11 Frank Warmerdam <[email protected]> 5644 5645 * libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__. 5646 5647 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 5648 5649 * man/Makefile.in: Patch DESTDIR handling 5650 5651 http://bugzilla.remotesensing.org/show_bug.cgi?id=95 5652 5653 * configure: OpenBSD changes for Sparc64 and DSO version. 5654 5655 http://bugzilla.remotesensing.org/show_bug.cgi?id=96 5656 56572002-02-05 Frank Warmerdam <[email protected]> 5658 5659 * config.site/configure: added support for OJPEG=yes option to enable 5660 OJPEG support from config.site. 5661 56622002-01-27 Frank Warmerdam <[email protected]> 5663 5664 * html/document.html: fixed links for TIFf 6 docs. 5665 56662002-01-18 Frank Warmerdam <[email protected]> 5667 5668 * config.guess, config.sub: Updated from ftp.gnu.org/pub/config. 5669 5670 * libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the 5671 decodestrip function returns anything not greater than zero as per 5672 http://bugzilla.remotesensing.org/show_bug.cgi?id=97 5673 5674 * configure: Modify CheckForBigEndian so it can work in a cross 5675 compiled situation. 5676 56772002-01-16 Frank Warmerdam <[email protected]> 5678 5679 * tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list. 5680 5681 * tools/tiffset.c: fix bug in error reporting. 5682 5683 * tools/tiffcp.c: fix several warnings that show up with -Wall. 5684 56852002-01-04 Frank Warmerdam <[email protected]> 5686 5687 * libtiff/tif_jpeg.c: fixed computation of segment_width for 5688 tiles files to avoid error about it not matching the 5689 cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile 5690 size.") for ITIFF files. Apparently the problem was incorporated since 5691 3.5.5, presumably during the OJPEG/JPEG work recently. 5692 56932001-12-15 Frank Warmerdam <[email protected]> 5694 5695 * configure, libtiff/Makefile.in: Changes for building on MacOS 10.1. 5696 5697 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 5698 5699 * libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1 5700 (defined in tiffconf.h - 1 by default) then the RGBA interface 5701 will assume that a fourth extra sample is ASSOCALPHA if the 5702 EXTRASAMPLE value isn't set for it. This changes the behaviour of 5703 the library, but makes it work better with RGBA files produced by 5704 lots of applications that don't mark the alpha values properly. 5705 5706 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 5707 http://bugzilla.remotesensing.org/show_bug.cgi?id=65 5708 57092001-12-12 Frank Warmerdam <[email protected]> 5710 5711 * libtiff/tif_jpeg.c: allow jpeg data stream sampling values to 5712 override those from tiff directory. This makes this work with 5713 ImageGear generated files. 5714 57152001-12-07 Frank Warmerdam <[email protected]> 5716 5717 * html/Makefile.in: added missing images per bug 92. 5718 5719 * port/Makefile.in: fixed clean target per bug 92. 5720 57212001-11-28 Frank Warmerdam <[email protected]> 5722 5723 * Reissue 3.5.7 release. 5724 5725 * libtiff/mkversion.c: Fix output of TIFF_VERSION to be 5726 YYYYMMDD so that it is increasing over time. 5727 5728 * Makefile.in: Ensure that tiffvers.h is regenerated in the 5729 make release target. 5730 5731 * Makefile.in: added libtiff/tiffvers.h to the release file list. 5732 57332001-11-23 Frank Warmerdam <[email protected]> 5734 5735 * added html/v3.5.7.html, updated html/index.html. 5736 5737 * Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}. 5738 57392001-11-15 Frank Warmerdam <[email protected]> 5740 5741 * configure: fixed test for -lm. 5742 57432001-11-02 Frank Warmerdam <[email protected]> 5744 5745 * Added PHOTOMETRIC_ITULAB as per bug 90. 5746 5747 http://bugzilla.remotesensing.org/show_bug.cgi?id=90 5748 57492001-10-10 Frank Warmerdam <[email protected]> 5750 5751 * libtiff/tiff.h: I have created COMPRESSION_CCITT_T4, 5752 COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases 5753 in keeping with TIFF 6.0 standard in tiff.h 5754 5755 http://bugzilla.remotesensing.org/show_bug.cgi?id=83 5756 57572001-09-26 Frank Warmerdam <[email protected]> 5758 5759 * libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function. 5760 Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory. 5761 57622001-09-24 Frank Warmerdam <[email protected]> 5763 5764 * libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug. 5765 5766 http://bugzilla.remotesensing.org/show_bug.cgi?id=78 5767 5768 * libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an 5769 error about LZW not being available. 5770 5771 * libtiff/tif_dir.c: propagate failure to initialize compression 5772 back from TIFFSetField() as an error status, so applications can 5773 detect failure. 5774 5775 * libtiff/tif_dir.c: removed the auto replacement of 5776 COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField(). 5777 5778 * Removed Makefile, tools/Makefile, port/install.sh, man/Makefile 5779 from CVS as they are all supposed to be auto-generated by configure. 5780 57812001-09-22 Frank Warmerdam <[email protected]> 5782 5783 * libtiff/tif_ojpeg.c: new update from Scott. 5784 57852001-09-09 Frank Warmerdam <[email protected]> 5786 5787 * libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to 5788 always use the "safe" version, even if there is a very slight 5789 cost in performance. 5790 5791 http://bugzilla.remotesensing.org/show_bug.cgi?id=54 5792 5793 * libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@ 5794 in two places. 5795 5796 * libtiff/tif_getimage.c: Fixed problem with reading strips or 5797 tiles that don't start on a tile boundary. Fix contributed by 5798 Josep Vallverdu (from HP), and further described in bug 47. 5799 5800 http://bugzilla.remotesensing.org/show_bug.cgi?id=47 5801 5802 * tools/tiff2ps.c: added OJPEG YCbCr to RGB support. 5803 5804 * libtiff/tif_ojpeg.c: Applied substantial patch from Scott. 5805 58062001-09-06 Frank Warmerdam <[email protected]> 5807 5808 * libtiff/tif_packbits.c: fixed memory overrun error. 5809 5810 http://bugzilla.remotesensing.org/show_bug.cgi?id=77 5811 58122001-08-31 Frank Warmerdam <[email protected]> 5813 5814 * libtiff/tif_getimage.c: relax handling of contig case where 5815 there are extra samples that are supposed to be ignored. This 5816 should now work for 8bit greyscale or palletted images. 5817 5818 http://bugzilla.remotesensing.org/show_bug.cgi?id=75 5819 58202001-08-28 Frank Warmerdam <[email protected]> 5821 5822 * libtiff/tif_getimage.c: Don't complain for CMYK (separated) 5823 images with more than four samples per pixel. See: 5824 5825 http://bugzilla.remotesensing.org/show_bug.cgi?id=73 5826 58272001-08-10 Frank Warmerdam <[email protected]> 5828 5829 * libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy() 5830 in TIFFReadRGBATile() to avoid issues in cases of overlapping 5831 buffers. See Bug 69 in Bugzilla. 5832 5833 http://bugzilla.remotesensing.org/show_bug.cgi?id=69 5834 5835 * tools/tiff2rgba.c: fixed getopt() call so that -b works again. 5836 58372001-08-09 Frank Warmerdam <[email protected]> 5838 5839 * libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__ 5840 when checking for 64 bit architectures as per bugzilla bug 67. 5841 58422001-07-27 Frank Warmerdam <[email protected]> 5843 5844 * man/Makefile.in: add TIFFClientOpen link as per debian submitted 5845 bug 66. 5846 58472001-07-20 Frank Warmerdam <[email protected]> 5848 5849 * libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H 5850 has been included. 5851 58522001-07-19 Frank Warmerdam <[email protected]> 5853 5854 * libtiff/tif_open.c: Seek back to zero after failed read, 5855 before writing header. 5856 58572001-07-18 Frank Warmerdam <[email protected]> 5858 5859 * libtiff/tif_ojpeg.c: updates from Scott. Handles colors 5860 much better. Now depends on having patched libjpeg as per 5861 patch in contrib/ojpeg/*. 5862 58632001-07-17 Frank Warmerdam <[email protected]> 5864 5865 * */Makefile.in: added DESTDIR support. 5866 5867 http://bugzilla.remotesensing.org/show_bug.cgi?id=60 5868 58692001-07-16 Frank Warmerdam <[email protected]> 5870 5871 * configure, libtiff/Makefile.in: applied OpenBSD patches 5872 as per: 5873 5874 http://bugzilla.remotesensing.org/show_bug.cgi?id=61 5875 58762001-06-28 Frank Warmerdam <[email protected]> 5877 5878 * libtiff/tif_getimage.c: Fixed so that failure is properly 5879 reported by gtTileContig, gtStripContig, gtTileSeparate and 5880 gtStripSeparate. 5881 5882 See http://bugzilla.remotesensing.org/show_bug.cgi?id=51 5883 5884 * tiffcmp.c: Fixed multi samples per pixel support for ContigCompare. 5885 Updated bug section of tiffcmp.1 to note tiled file issues. 5886 5887 See http://bugzilla.remotesensing.org/show_bug.cgi?id=53 5888 58892001-06-22 Frank Warmerdam <[email protected]> 5890 5891 * configure: Changes for DSO generation on AIX provided by 5892 John Marquart <[email protected]>. 5893 5894 * configure, libtiff/Makeifle.in: Modified to build DSOs properly 5895 on Darwin thanks to Robert Krajewski ([email protected]) and 5896 Keisuke Fujii ([email protected]). 5897 58982001-06-13 Frank Warmerdam <[email protected]> 5899 5900 * tools/tiff2rgba.c: added -n flag to avoid emitting alpha component. 5901 5902 * man/tiff2rgba.1: new 5903 59042001-05-22 Frank Warmerdam <[email protected]> 5905 5906 * Added tiffset and tif_ojpeg to the dist lists in Makefile.in. 5907 59082001-05-13 Frank Warmerdam <[email protected]> 5909 5910 * libtiff/tools/thumbnail.c: changed default output compression 5911 to packbits from LZW since LZW isn't generally available. 5912 59132001-05-12 Frank Warmerdam <[email protected]> 5914 5915 * libtiff/tif_ojpeg.c: New. 5916 libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related 5917 to OJPEG support. 5918 5919 Scott Marovich <[email protected]> supplied OJPEG support. 5920 59212001-05-11 Frank Warmerdam <[email protected]> 5922 5923 * tiff.h: removed, it duplicates libtiff/tiff.h. 5924 59252001-05-08 Frank Warmerdam <[email protected]> 5926 5927 * libtiff/tif_dirinfo.c: moved pixar and copyright flags to 5928 ensure everything is in order. 5929 5930 * libtiff/libtiff.def: added TIFFCreateDirectory and 5931 TIFFDefaultStripSize as per: 5932 5933 http://bugzilla.remotesensing.org/show_bug.cgi?id=46 5934 59352001-05-02 Frank Warmerdam <[email protected]> 5936 5937 * libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for 5938 TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to 5939 force use of uint32 counts instead of short counts. 5940 5941 * libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the 5942 case of writing TIFF_BYTE/TIFF_SBYTE fields. 5943 5944 http://bugzilla.remotesensing.org/show_bug.cgi?id=43 5945 59462001-05-01 Frank Warmerdam <[email protected]> 5947 5948 * libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per 5949 bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44 5950 59512001-04-05 Frank Warmerdam <[email protected]> 5952 5953 * tiffio.h: removed C++ style comment. 5954 5955 * configure: fixed up SCRIPT_SH/SHELL handling. 5956 5957 * Makefile.in: Fixed SCRIPT_SH/SHELL handling. 5958 5959 * config.guess: documented more variables as per bug 40. 5960 59612001-04-03 Frank Warmerdam <[email protected]> 5962 5963 * configure, *Makefile.in: Various changes to improve configuration 5964 for HP/UX specifically, and also in general. They include: 5965 - Try to handle /usr/bin/sh instead of /bin/sh where necessary. 5966 - Upgrade to HP/UX 10.x+ compiler, linker and dso options. 5967 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP 5968 - Use -${MAKEFLAGS} in sub makes from makefiles. 5969 5970 http://bugzilla.remotesensing.org/show_bug.cgi?id=40 5971 59722001-04-02 Frank Warmerdam <[email protected]> 5973 5974 * libtiff/tiff.h: Applied hac to try and resolve the problem 5975 with the inttypes.h include file on AIX. 5976 5977 See http://bugzilla.remotesensing.org/show_bug.cgi?id=39 5978 5979 * VERSION: update to 3.5.7 beta in preparation for release. 5980 5981 * configure/config.site: modified to check if -lm is needed for 5982 MACHDEPLIBS if not supplied by config.site. Needed for Darwin. 5983 5984 * config.guess: updated wholesale to an FSF version apparently 5985 from 1998 (as opposed to 1994). This is mainly inspired by 5986 providing for MacOS X support. 5987 59882001-03-29 Frank Warmerdam <[email protected]> 5989 5990 * configure, Makefile.in, etc: added support for OPTIMIZER being 5991 set from config.site. 5992 59932001-03-28 Frank Warmerdam <[email protected]> 5994 5995 * fax2ps.c: Helge (libtiff at oldach.net) submitted fix: 5996 5997 Here's a fix for fax2ps that corrects behaviour for non-Letter paper 5998 sizes. It fixes two problems: 5999 6000 Without scaling (-S) the fax is now centered on the page size specified 6001 with -H and/or -W. Before, fax2ps was using an obscure and practially 6002 useless algorithm to allocate the image relative to Letter sized paper 6003 which sometime sled to useless whitespace on the paper, while at the 6004 same time cutting of the faxes printable area at the opposite border. 6005 6006 Second, scaling now preserves aspect ratio, which makes unusual faxes 6007 (in particular short ones) print properly. 6008 6009 See http://bugzilla.remotesensing.org/show_bug.cgi?id=35 6010 6011 * tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by 6012 Bruce A. Mallett. See check message for detailed information 6013 on all the changes, including a faster encoder, fixes for level 6014 2 PostScript, and support for the imagemask operator. 6015 60162001-03-27 Frank Warmerdam <[email protected]> 6017 6018 * libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to 6019 "#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX. 6020 6021 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 6022 60232001-03-16 Frank Warmerdam <[email protected]> 6024 6025 * tif_dirinfo.c: moved definition of copyright tag in field list. 6026 Apparently they have to be in sorted order by tag id. 6027 60282001-03-13 Frank Warmerdam <[email protected]> 6029 6030 * tif_getimage.c: Added support for 16bit minisblack/miniswhite 6031 images in RGBA interface. 6032 60332001-03-02 Frank Warmerdam <[email protected]> 6034 6035 * Added TIFFTAG_COPYRIGHT support. 6036 60372001-02-19 Frank Warmerdam <[email protected]> 6038 6039 * Brent Roman contributed updated tiffcp utility (and tiffcp.1) 6040 with support for extracting subimages with the ,n syntax, and also 6041 adding the -b bias removal flag. 6042 60432001-02-16 Frank Warmerdam <[email protected]> 6044 6045 * libtiff/libtiff.def: Brent Roman submitted new version adding 6046 serveral missing entry points. 6047 6048 * libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS. 6049 Some sort of weird VMS thing. 6050 6051 http://bugzilla.remotesensing.org/show_bug.cgi?id=31 6052 6053 * tif_luv.c/tiff.h/tiffio.h: 6054 New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward 6055 ([email protected]). He writes: 6056 6057 1) I improved the gamut-mapping function in tif_luv.c for imaginary 6058 colors, because some images were being super-saturated on the input 6059 side and this resulted in some strange color shifts in the output. 6060 6061 2) I added a psuedotag in tiff.h to control random dithering during 6062 LogLuv encoding. This is turned off by default for 32-bit LogLuv and 6063 on for 24-bit LogLuv output. Dithering improves the average color 6064 accuracy over the image. 6065 6066 3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in 6067 tiffio.h, to expose internal routines for converting between LogLuv and 6068 XYZ coordinates. This is helpful for writing more efficient, 6069 specialized conversion routines, especially for reading LogLuv files. 6070 6071 Changes applied with minor edits. 6072 60732001-01-23 Frank Warmerdam <[email protected]> 6074 6075 * tif_fax3.c: keep rw_mode flag internal to fax3 state to remember 6076 whether we are encoding or decoding. This is to ensure graceful 6077 recovery if TIFFClientOpen() discovers an attempt to open a compressed 6078 file for "r+" access, and subsequently close it, as it resets the 6079 tif_mode flag to O_RDONLY in this case to avoid writes, confusing the 6080 compressor's concept of whether it is in encode or decode mode. 6081 60822001-01-08 Mike Welles <[email protected]> 6083 6084 * Makefile.in: Now cleaning up after itself after creating the .tar.gz and .zip 6085 60862001-01-07 Frank Warmerdam <[email protected]> 6087 6088 * html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet() 6089 as per bug report by Patrick Connor. 6090 60912000-12-28 Frank Warmerdam <[email protected]> 6092 6093 * Added RELEASE-DATE file to release file list. 6094 6095 * Fixed libtiff/makefile.vc to make tiffvers.h not version.h. 6096 60972000-12-22 Mike Welles <[email protected]> 6098 * added link to CVS mirror from index.html 6099 6100 * updated html/internals.html to note that LZW compression is 6101 not supported by default. 6102 61032000-12-22 Frank Warmerdam <[email protected]> 6104 6105 * updated html/libtiff.html to not point at Niles' old JPL web site 6106 for the man pages, point at www.libtiff.org. 6107 61082000-12-21 Frank Warmerdam <[email protected]> 6109 6110 * libtiff/tif_apple.c: Applied "Carbon" support patches supplied by 6111 Leonard Rosenthol <[email protected]>. May interfere 6112 with correct building on older systems. If so, please let me know. 6113 61142000-12-19 Mike Welles <[email protected]> 6115 6116 * Took out LZW Encoding from tif_lzw.c 6117 6118 * Created HOWTO-RELEASE 6119 6120 * Created html/v3.5.6.html 6121 6122 * updated index.html 6123 61242000-12-01 Frank Warmerdam <[email protected]> 6125 6126 * Added patches for EOFB support in tif_fax3.c and tif_fax3.h. 6127 Patches supplied by Frank Cringle <[email protected]> 6128 Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif 6129 61302000-11-24 Frank Warmerdam <[email protected]> 6131 6132 * libtiff/Makefile.in: Added an installPrivateHdrs and install-private 6133 target so that the private headers required by libgeotiff can be 6134 installed with the others. They are not installed by default. 6135 6136 * libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso 6137 targets so libtiff.so will be built with an explicit dependency 6138 on libm.so. 6139 6140 * libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to 6141 libtiff.so.3.5.5. 6142 6143 * libtiff/Makefile.in & configure: Remove all references to the ALPHA 6144 file, or ALPHA version logic. Added stuff about DIST_POINT in 6145 place of DIST_TYPE and the alpha release number stuff. 6146 61472000-11-22 Frank Warmerdam <[email protected]> 6148 6149 * I have applied a patch from Steffen Moeller <[email protected]> to 6150 the configure script so that it now accepts the --prefix, and 6151 --exec-prefix directives. 6152 61532000-11-13 Frank Warmerdam <warmerda@cs46980-c> 6154 6155 * I have made a variety of modifications in an effort to ensure the 6156 TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE 6157 file which seems to be updated regularly. 6158 6159 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in 6160 version include file. 6161 o renamed version.h to tiffvers.h because we now have to install it 6162 with the public libtiff include files. 6163 o include tiffvers.h in tiffio.h. 6164 o updated tif_version.c to use tiffvers.h. 6165 o Updated Makefile.in accordingly. 6166 6167 * As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25 6168 I have updated the win32 detection rules in tiffcomp.h. 6169 61702000-10-20 Frank Warmerdam <warmerda@cs46980-c> 6171 6172 * tif_getimage.c: Fixed RGBA translation for YCbCr images for which 6173 the strip/tile width and height aren't multiples of the sampling size. 6174 See http://bugzilla.remotesensing.org/show_bug.cgi?id=20 6175 Some patches from Rick LaMont of Dot C Software. 6176 6177 * Modified tif_packbits.c encoder to avoid compressing more 6178 data than provided if rowsize doesn't factor into provided data 6179 (such as occurs for YCbCr). 6180 61812000-10-19 Frank Warmerdam <warmerda@cs46980-c> 6182 6183 * tools/rgb2ycbcr.c: fixed output strip size to account for vertical 6184 roundup if rows_per_strip not a multiple of vertical sample size. 6185 61862000-10-16 Frank Warmerdam <warmerda@cs46980-c> 6187 6188 * tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory 6189 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6190 from [email protected]. 6191 6192 * Modified tif_packbits.c decoding to avoid overrunning the 6193 output buffer, and to issue a warning if data needs to be 6194 discarded. See http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6195 61962000-10-12 Frank Warmerdam <warmerda@cs46980-c> 6197 6198 * Modified tiff2bw to ensure portions add to 100%, and that 6199 white is properly recovered. 6200 6201 See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15 6202 Patch c/o Stanislav Brabec <[email protected]> 6203 62042000-09-30 Frank Warmerdam <warmerda@cs46980-c> 6205 6206 * Modified TIFFClientOpen() to emit an error on an attempt to 6207 open a comperessed file for update (O_RDWR/r+) access. This is 6208 because the compressor/decompressor code gets very confused when 6209 the mode is O_RDWR, assuming this means writing only. See 6210 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13 6211 62122000-09-27 Frank Warmerdam <warmerda@cs46980-c> 6213 6214 * Added GNULDdso target an`d switched linux and freebsd to use it. 6215 62162000-09-26 Frank Warmerdam <warmerda@cs46980-c> 6217 6218 * Applied patch for 0x0000 sequences in tif_fax3.h's definition 6219 of EXPAND1D() as per bug 11 (from Roman). 6220 62212000-09-25 Frank Warmerdam <warmerda@cs46980-c> 6222 * Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve 6223 cygwin compatibility. 6224 6225 * Applied patch from Roman Shpount to tif_fax3.c. This seems to 6226 be a proper fix to the buffer sizing problem. See 6227 http://bugzilla.remotesensing.org/show_bug.cgi?id=11 6228 6229 * Fixed tif_getimage.c to fix overrun bug with YCbCr images without 6230 downsampling. http://bugzilla.remotesensing.org/show_bug.cgi?id=10 6231 Thanks to Nick Lamb <[email protected]> for reporting the 6232 bug and proving the patch. 6233 62342000-09-18 Frank Warmerdam <warmerda@cs46980-c> 6235 6236 * Fixed tif_jpeg.c so avoid destroying the decompressor before 6237 we are done access data thanks to bug report from: 6238 Michael Eckstein <[email protected]>. 6239 6240 * Reverted tif_flush change. 6241 62422000-09-14 Frank Warmerdam <warmerda@cs46980-c> 6243 6244 * tif_flush.c: Changed so that TIFFFlushData() doesn't return an 6245 error when TIFF_BEENWRITING is not set. This ensures that the 6246 directory contents can still be flushed by TIFFFlush(). 6247 62482000-08-14 Frank Warmerdam <[email protected]> 6249 6250 * tif_open.c: Don't set MMAP for O_RDWR files. 6251 6252 * tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY 6253 so that files opened for update can be strip chopped too. 6254 6255 * tif_read.c: fixed up bug with files missing rowsperstrip and 6256 the strips per separation fix done a few weeks ago. 6257 62582000-07-17 Frank Warmerdam <warmerda@cs46980-c> 6259 6260 * Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and 6261 SAMPLEFORMAT_COMPLEXINT. 6262 62632000-07-13 Mike Welles <[email protected]> 6264 6265 * index.html, bugs.html: added bugzilla info. 6266 62672000-07-12 Frank Warmerdam <[email protected]> 6268 6269 * tif_read.c: fix subtle bug with determining the number of 6270 rows for strips that are the last strip in a separation but 6271 not the last strip of all in TIFFReadEncodedStrip(). 6272 6273 * Applied 16/32 bit fix to tif_fax3.c. Fix supplied by 6274 Peter Skarpetis <[email protected]> 6275 62762000-06-15 Frank Warmerdam <[email protected]> 6277 6278 * Modified tiffio.h logic with regard to including windows.h. It 6279 won't include it when building with __CYGWIN__. 6280 62812000-05-11 Frank Warmerdam <warmerda@cs46980-c> 6282 6283 * README: update to mention www.libtiff.org, don't list Sam's old 6284 email address. 6285 6286 * configure: Fixed DSO test for Linux as per patch from 6287 Jan Van Buggenhout <[email protected]>. 6288 62892000-04-21 Frank Warmerdam <[email protected]> 6290 6291 * libtiff/tif_dirread.c: Don't use estimate strip byte count for 6292 one tile/strip images with an offset, and byte count of zero. These 6293 could be "unpopulated" images. 6294 62952000-04-18 Frank Warmerdam <[email protected]> 6296 6297 * contrib/addtiffo: Added "averaging" resampling option. 6298 6299 * tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT. 6300 6301Tue Apr 18 16:18:08 2000 Frank Warmerdam <[email protected]> 6302 6303 * tools/Makefile.in: Modified to install properly on SGI. 6304 63052000-04-12 Mike Welles <[email protected]> 6306 * configure: Fixed stupid mistake in libc6 test on Linux 6307 63082000-04-04 Mike Welles <[email protected]> 6309 * tif_win32.c: Applied patch to fix overreads and ovverwrites 6310 caught by BoundsChecker. From Arvan Pritchard 6311 <[email protected]> (untested). 6312 6313 * tif_getimage.c: Applied patch to silence VC6 warnings. From 6314 Arvan Pritchard <[email protected]> 6315 6316 * tif_lzw.c: Applied patch to silence VC6 warnings. From 6317 Arvan Pritchard <[email protected]> 6318 63192000-03-28 Frank Warmerdam <warmerda@cs46980-c> 6320 6321 * Added contrib/stream (stream io) code submitted by Avi Bleiweiss. 6322 63232000-03-28 Frank Warmerdam <warmerda@cs46980-c> *** 3.5.5 release *** 6324 6325 * fax2ps: Fixed mixup of width and height in bounding box statement 6326 as per submission by Nalin Dahyabhai <[email protected]>. 6327 63282000-03-27 Mike Welles <[email protected]> 6329 6330 * fax2ps: Modified printruns to take uint32 instead of uint16. 6331 Patch courtesy of Bernt Herd <[email protected]> 6332 63332000-03-20 Mike Welles <[email protected]> 6334 6335 * configure: added test for libc6 for linux targets. Bug reported by 6336 Stanislav Brabec <[email protected]> 6337 6338 * Added 3.5 docs to html/Makefile.in. 6339 Thanks to Stanislav Brabec <[email protected]> 6340 6341 * configure: fixed bugs in sed scripts 6342 (applied sed script s:/@:s;@:;s:/s;;:;: to configure). 6343 fix submitted to Stanislav Brabec <[email protected]> 6344 6345 * tools/iptcutil was not in files list, and wasn't being 6346 added to tar archive. Updated Makefile.in. 6347 63482000-03-17 Frank Warmerdam <warmerda@cs46980-c> 6349 6350 * tif_fax3.c: Fixed serious bug introduced during the uint16->uint32 6351 conversion for the run arrays. 6352 63532000-03-03 Frank Warmerdam <[email protected]> 6354 6355 * Set td_sampleformat default to SAMPLEFORMAT_UINT instead of 6356 SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c. 6357 63582000-03-02 Frank Warmerdam <[email protected]> 6359 6360 * Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c. 6361 6362 * Patched tif_fax3.c so that dsp->runs is allocated a bit bigger 6363 to avoid overruns encountered with frle_bug.tif. 6364 6365Tue Feb 15 22:01:05 2000 Frank Warmerdam <[email protected]> 6366 6367 * Fixed tools/tiffcmp so that stopondiff testing works. 6368 Patch care of Joseph Orost <[email protected]>. 6369 63702000-01-28 <warmerda@CS46980-B> 6371 6372 * Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is 6373 set to 1, and added default (off) setting in tiffconf.h. This 6374 should eventually be set by the configure script somehow. 6375 6376 The original work on all these 2-4GB changes was done by 6377 Peter Smith ([email protected]). 6378 6379 * Modified tif_win32.c to support 2-4GB seeks. 6380 6381 * tentatively changed toff_t to be unsigned instead of signed to 6382 facilitate support for 2-4GB files. 6383 6384 * Updated a variety of files to use toff_t. Fixed some mixups 6385 between toff_t and tsize_t. 6386 6387Fri Jan 28 10:13:49 2000 Frank Warmerdam <[email protected]> 6388 6389 * Largely reimplemented contrib/addtiffo to avoid temp files, 6390 updating the TIFF file in place. Fixed a few other bugs to. 6391 6392 * Set tif_rawdatasize to zero when freeing raw data buffer in 6393 TIFFWriteDirectory(). 6394 6395 * Enabled "REWRITE_HACK" in tif_write.c by default. 6396 6397 * Fix bug in tif_write.c when switching between reading one directory 6398 and writing to another. 6399 6400 * Made TIFFWriteCheck() public, and added TIFFCreateDirectory() 6401 6402Wed Jan 5 12:37:48 2000 Frank Warmerdam <[email protected]> 6403 6404 * Added TIFFmemory(3t) functions to libtiff.def. 6405 6406Tue Jan 4 13:39:00 2000 Frank Warmerdam <[email protected]> 6407 6408 * Added libtiff/libtiff.def to TIFFILES distribution list. 6409 6410Mon Dec 27 12:13:39 EST 1999 Mike Welles <[email protected]> 6411 6412 * Created lzw compression kit, as a new module (libtiff-lzw-compression-kit). 6413 6414 * Altered descriptions in tools to reflect "by default" lzw not supported 6415 6416 * Updated index.html to note lzw compression kit. 6417 6418Tue Dec 21 14:01:51 1999 Frank Warmerdam <[email protected]> 6419 6420 * Added fax3sm_winnt.c to distribution list in Makefile.in. 6421 6422Tue Dec 21 11:04:45 EST 1999 Mike Welles <[email protected]> *** 3.5.4 release *** 6423 6424 * Aadded Pixar tag support. Contributed by Phil Beffery <[email protected]> 6425 6426 * Made one more change to tif_dir.c for removal of LZW compression. Also added notice 6427 when LZW compression invoked. 6428 6429 * Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions 6430 in tools to reflect removal of LZW compression 6431 6432Mon Dec 20 18:39:02 EST 1999 Mike Welles <[email protected]> 6433 6434 * Fixed bug that caused LZW (non) compression to segfault. Added 6435 warning about LZW compression removed being removed, and why. 6436 6437 * Added nostrip to install in tools/Makefile.in so that debugging 6438 symbols are kept. 6439 6440Tue Dec 7 12:04:47 EST 1999 Mike Welles <[email protected]> 6441 6442 * Added patch from Ivo Penzar <[email protected]>, 6443 supporting Adobe ZIP deflate. Untested. 6444 6445Sat Dec 4 15:47:11 1999 Frank Warmerdam <[email protected]> 6446 6447 * Made Packbits the default compression in tools/tiff2rgba.c instead 6448 of LZW. 6449 6450Tue Nov 30 14:41:43 1999 Frank Warmerdam <[email protected]> *** 3.5.3. release *** 6451 6452 * Added tif_luv to contrib/djgpp/Makefile.lib. 6453 6454Tue Nov 30 14:15:32 EST 1999 Mike Welles <[email protected]> 6455 6456 * Added zip creation to relase makefile target 6457 6458 * Added html for TIFFWriteTile.3t man page. 6459 6460Tue Nov 30 09:20:16 1999 Frank Warmerdam <[email protected]> 6461 6462 * Added some changes to tif_write.c to support rewriting existing 6463 fixed sized tiles and strips. Code mods disabled by default, only 6464 enabled if REWRITE_HACK is defined for now. 6465 6466Mon Nov 29 11:43:42 1999 Frank Warmerdam <[email protected]> 6467 6468 * Added TIFFWriteTile.3t man page. 6469 6470Sun Nov 28 20:36:18 1999 Frank Warmerdam <[email protected]> 6471 6472 * Added notes on use of makefile.vc in build.html, and fixed 6473 email subscription address. 6474 6475199-11-28 Mike Welles <[email protected]> 6476 6477 * Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c 6478 6479 * Did some casts cleaning up to reduce compiler warnings in tif_fax3.c, 6480 from Bruce Carmeron <[email protected]> -- modifications of 6481 changes made by Frank (sun cc still complained on cast). 6482 6483 * Added tiffconf.h to install target per request from Bill 6484 Radcliffe <[email protected]>: "We need a way for ImageMagick to 6485 know features have been compiled into the TIFF library in order to 6486 handle things properly". 6487 6488Sat Nov 27 16:49:21 1999 Frank Warmerdam <[email protected]> 6489 6490 * fixed various VC++ warnings as suggested by Gilles Vollant 6491 <[email protected]>. 6492 6493Wed Nov 24 12:08:16 1999 Frank Warmerdam <[email protected]> 6494 6495 * Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to 6496 not imply applications are responsible for image data swapping. 6497 64981999-11-22 Mike Welles <[email protected]> 6499 * HTML-ized the man pages, added to html/man 6500 6501 * Removed LZW Compression to comply with Unisys patent extortion. 6502 65031999-09-29 Mike Welles <[email protected]> 6504 * Corrected one remaining 16 -> 32 bit value in tif_fax3.c, 6505 From Ivo Penzar <[email protected]. 6506 6507 * Added patch from Ivo Penzar to have TiffAdvanceDirectory handle 6508 memory mapped files. <[email protected]> 6509 65101999-09-26 Mike Welles <[email protected]> *** 3.5.2 release *** 6511 * Corrected alpha versioning. 6512 6513 * Removed distinction between alpha and release targets in Makefile.in. 6514 6515 * added release.stamp target, which tags cvs tree, and updates 6516 "RELEASE-DATE" 6517 6518 * added releasediff target, which diffs tree with source as of 6519 date in "RELEASE-DATE" 6520 6521 * Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving 6522 away from alpha/non-alpha distinctions). 6523 6524 * updated html to reflect release 6525 65261999-09-23 <warmerda@CS46980-B> 6527 6528 * Set O_BINARY for tif_unix.c open() ... used on cygwin for instance. 6529 6530 * Added CYGWIN case in configure. 6531 6532Fri Sep 17 00:13:51 CEST 1999 Mike Welles <[email protected]> 6533 6534 * Applied Francois Dagand's patch to handle fax decompression bug. 6535 (sizes >= 65536 were failing) 6536 6537Tue Sep 14 21:31:43 1999 Frank Warmerdam <[email protected]> 6538 6539 * Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested 6540 by Christopher Lawton <[email protected]> 6541 6542Wed Sep 8 08:19:18 1999 Frank Warmerdam <[email protected]> 6543 6544 * Added IRIX/gcc, and OSF/1 4.x support on behalf of 6545 Albert Chin-A-Young <[email protected]> 6546 6547 * Added TIFFReassignTagToIgnore() API on behalf of 6548 Bruce Cameron <[email protected]>. Man page still pending. 6549 6550Wed Aug 25 11:39:07 1999 Frank Warmerdam <[email protected]> 6551 6552 * Added test target in Makefile, test_pics.sh script and pics/*.rpt 6553 files to provide for a rudimentary testsuite. 6554 6555 * Added contrib/tags back from old distribution ... fixed up a bit. 6556 65571999-08-16 <warmerda@CS46980-B> 6558 6559 * Added simple makefile.vc makefiles for building with MS VC++ 6560 on Windows NT/98/95 in console mode. Stuff in contrib/win* make give 6561 better solutions for some users. 6562 6563Mon Aug 16 21:52:11 1999 Frank Warmerdam <[email protected]> 6564 6565 * Added addtiffo (add overviews to a TIFF file) in contrib. Didn't 6566 put it in tools since part of it is in C++. 6567 65681999-08-16 Michael L. Welles <[email protected]> 6569 6570 * Updated html/index.html with anon CVS instructions. 6571 6572Mon Aug 16 13:18:41 1999 Frank Warmerdam <[email protected]> 6573 6574 * pre-remove so link before softlink in LINUXdso action in 6575 libtiff/Makefile.in to avoid failure on LINUXdso builds other than 6576 the first. 6577 6578 * Fixed problem with cvtcmap() in tif_getimage.c modifying the 6579 colormaps owned by the TIFF handle itself when trying to fixup wrong 6580 (eight bit) colormaps. Corrected by maintaining a private copy of 6581 the colormap. 6582 6583 * Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in 6584 tif_getimage.c. 6585 6586 * CVS Repository placed at remotesensing.org. ChangeLog added. 6587