12016-08-15 Even Rouault <even.rouault at spatialys.com> 2 3 * tools/tiff2rgba.c: Fix integer overflow in size of allocated 4 buffer, when -b mode is enabled, that could result in out-of-bounds 5 write. Based initially on patch tiff-CVE-2016-3945.patch from 6 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, with correction for 7 invalid tests that rejected valid files. 8 92016-07-11 Even Rouault <even.rouault at spatialys.com> 10 11 * tools/tiffcrop.c: Avoid access outside of stack allocated array 12 on a tiled separate TIFF with more than 8 samples per pixel. 13 Reported by Kaixiang Zhang of the Cloud Security Team, Qihoo 360 14 (CVE-2016-5321 / CVE-2016-5323 , bugzilla #2558 / #2559) 15 162016-07-10 Even Rouault <even.rouault at spatialys.com> 17 18 * libtiff/tif_read.c: Fix out-of-bounds read on 19 memory-mapped files in TIFFReadRawStrip1() and TIFFReadRawTile1() 20 when stripoffset is beyond tmsize_t max value (reported by 21 Mathias Svensson) 22 232016-07-10 Even Rouault <even.rouault at spatialys.com> 24 25 * tools/tiffdump.c: fix a few misaligned 64-bit reads warned 26 by -fsanitize 27 282016-07-03 Even Rouault <even.rouault at spatialys.com> 29 30 * libtiff/tif_read.c: make TIFFReadEncodedStrip() and 31 TIFFReadEncodedTile() directly use user provided buffer when 32 no compression (and other conditions) to save a memcpy(). 33 34 * libtiff/tif_write.c: make TIFFWriteEncodedStrip() and 35 TIFFWriteEncodedTile() directly use user provided buffer when 36 no compression to save a memcpy(). 37 382016-07-01 Even Rouault <even.rouault at spatialys.com> 39 40 * libtiff/tif_luv.c: validate that for COMPRESSION_SGILOG and 41 PHOTOMETRIC_LOGL, there is only one sample per pixel. Avoid 42 potential invalid memory write on corrupted/unexpected images when 43 using the TIFFRGBAImageBegin() interface (reported by 44 Clay Wood) 45 462016-06-28 Even Rouault <even.rouault at spatialys.com> 47 48 * libtiff/tif_pixarlog.c: fix potential buffer write overrun in 49 PixarLogDecode() on corrupted/unexpected images (reported by Mathias Svensson) 50 (CVE-2016-5875) 51 522016-06-15 Bob Friesenhahn <[email protected]> 53 54 * libtiff/libtiff.def: Added _TIFFMultiply32 and _TIFFMultiply64 55 to libtiff.def 56 572016-06-05 Bob Friesenhahn <[email protected]> 58 59 * tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff, 60 ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from 61 the distribution. The libtiff tools rgb2ycbcr and thumbnail are 62 only built in the build tree for testing. Old files are put in 63 new 'archive' subdirectory of the source repository, but not in 64 distribution archives. These changes are made in order to lessen 65 the maintenance burden. 66 672016-05-10 Bob Friesenhahn <[email protected]> 68 69 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Add a '1' to the 70 HAVE_SNPRINTF definition.' 71 722016-05-09 Bob Friesenhahn <[email protected]> 73 74 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Applied patch by Edward 75 Lam to define HAVE_SNPRINTF for Visual Studio 2015. 76 772016-04-27 Even Rouault <even.rouault at spatialys.com> 78 79 * libtiff/tif_dirread.c: when compiled with DEFER_STRILE_LOAD, 80 fix regression, introduced on 2014-12-23, when reading a one-strip 81 file without a StripByteCounts tag. GDAL #6490 82 832016-04-07 Bob Friesenhahn <[email protected]> 84 85 * html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for 86 purposes of security issue reporting. 87 882016-01-23 Even Rouault <even.rouault at spatialys.com> 89 90 * libtiff/*: upstream typo fixes (mostly contributed by Kurt Schwehr) 91 coming from GDAL internal libtiff 92 932016-01-09 Even Rouault <even.rouault at spatialys.com> 94 95 * libtiff/tif_fax3.h: make Param member of TIFFFaxTabEnt structure 96 a uint16 to reduce size of the binary. 97 982016-01-03 Even Rouault <even.rouault at spatialys.com> 99 100 * libtiff/tif_read.c, tif_dirread.c: fix indentation issues raised 101 by GCC 6 -Wmisleading-indentation 102 1032015-12-27 Even Rouault <even.rouault at spatialys.com> 104 105 * libtiff/tif_pixarlog.c: avoid zlib error messages to pass a NULL 106 string to %s formatter, which is undefined behaviour in sprintf(). 107 1082015-12-27 Even Rouault <even.rouault at spatialys.com> 109 110 * libtiff/tif_next.c: fix potential out-of-bound write in NeXTDecode() 111 triggered by http://lcamtuf.coredump.cx/afl/vulns/libtiff5.tif 112 (bugzilla #2508) 113 1142015-12-27 Even Rouault <even.rouault at spatialys.com> 115 116 * libtiff/tif_luv.c: fix potential out-of-bound writes in decode 117 functions in non debug builds by replacing assert()s by regular if 118 checks (bugzilla #2522). 119 Fix potential out-of-bound reads in case of short input data. 120 1212015-12-26 Even Rouault <even.rouault at spatialys.com> 122 123 * libtiff/tif_getimage.c: fix out-of-bound reads in TIFFRGBAImage 124 interface in case of unsupported values of SamplesPerPixel/ExtraSamples 125 for LogLUV / CIELab. Add explicit call to TIFFRGBAImageOK() in 126 TIFFRGBAImageBegin(). Fix CVE-2015-8665 reported by limingxing and 127 CVE-2015-8683 reported by zzf of Alibaba. 128 1292015-12-21 Even Rouault <even.rouault at spatialys.com> 130 131 * libtiff/tif_dirread.c: workaround false positive warning of Clang Static 132 Analyzer about null pointer dereference in TIFFCheckDirOffset(). 133 1342015-12-19 Even Rouault <even.rouault at spatialys.com> 135 136 * libtiff/tif_fax3.c: remove dead assignment in Fax3PutEOLgdal(). Found 137 by Clang Static Analyzer 138 1392015-12-18 Even Rouault <even.rouault at spatialys.com> 140 141 * libtiff/tif_dirwrite.c: fix truncation to 32 bit of file offsets in 142 TIFFLinkDirectory() and TIFFWriteDirectorySec() when aligning directory 143 offsets on a even offset (affects BigTIFF). This was a regression of the 144 changeset of 2015-10-19. 145 1462015-12-12 Even Rouault <even.rouault at spatialys.com> 147 148 * libtiff/tif_write.c: TIFFWriteEncodedStrip() and TIFFWriteEncodedTile() 149 should return -1 in case of failure of tif_encodestrip() as documented 150 * libtiff/tif_dumpmode.c: DumpModeEncode() should return 0 in case of 151 failure so that the above mentionned functions detect the error. 152 1532015-12-06 Even Rouault <even.rouault at spatialys.com> 154 155 * libtiff/uvcode.h: const'ify uv_code array 156 1572015-12-06 Even Rouault <even.rouault at spatialys.com> 158 159 * libtiff/tif_dirinfo.c: const'ify tiffFields, exifFields, 160 tiffFieldArray and exifFieldArray arrays 161 1622015-12-06 Even Rouault <even.rouault at spatialys.com> 163 164 * libtiff/tif_print.c: constify photoNames and orientNames arrays 165 1662015-12-06 Even Rouault <even.rouault at spatialys.com> 167 168 * libtiff/tif_close.c, libtiff/tif_extension.c : rename link 169 variable to avoid -Wshadow warnings 170 1712015-11-22 Even Rouault <even.rouault at spatialys.com> 172 173 * libtiff/*.c: fix typos in comments (patch by Kurt Schwehr) 174 1752015-11-22 Even Rouault <even.rouault at spatialys.com> 176 177 * libtiff/*.c: fix MSVC warnings related to cast shortening and 178 assignment within conditional expression 179 1802015-11-18 Even Rouault <even.rouault at spatialys.com> 181 182 * libtiff/*.c: fix clang -Wshorten-64-to-32 warnings 183 1842015-11-18 Even Rouault <even.rouault at spatialys.com> 185 186 * libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL 187 to please MSVC 2013 188 1892015-11-17 Even Rouault <even.rouault at spatialys.com> 190 191 * libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction 192 if BitsPerPixel > 24, so as to avoid huge memory allocation and file 193 read attempts 194 1952015-11-02 Even Rouault <even.rouault at spatialys.com> 196 197 * libtiff/tif_dirread.c: remove duplicated assignment (reported by 198 Clang static analyzer) 199 2002015-10-28 Even Rouault <even.rouault at spatialys.com> 201 202 * libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c, 203 libtiff/tif_jpeg_12.c: suppress warnings about 'no previous 204 declaration/prototype' 205 2062015-10-19 Even Rouault <even.rouault at spatialys.com> 207 208 * libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix 209 'warning: negative integer implicitly converted to unsigned type' warning 210 (part of -Wconversion) 211 2122015-10-17 Even Rouault <even.rouault at spatialys.com> 213 214 * libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c, 215 libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/) 216 2172015-09-12 Bob Friesenhahn <[email protected]> 218 219 * libtiff 4.0.6 released. 220 221 * html/v4.0.6.html: Added release notes for 4.0.6. 222 2232015-09-06 Bob Friesenhahn <[email protected]> 224 225 * tools/tiffgt.c: Silence glut API deprecation warnings on MacOS 226 X. Patch by Roger Leigh. 227 228 * Makefile.am: Added a 'coverity' rule to assist with Coverity 229 submissions. 230 231 * tools/tiff2pdf.c: Fix compiler warning about unused function 232 when JPEG is not available. 233 234 * tools/fax2ps.c (main): Detect failure to write to temporary 235 file. 236 2372015-09-05 Bob Friesenhahn <[email protected]> 238 239 * libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8): 240 Change implementation so that it does not sometimes overflow the 241 range of a 32-bit int and to avoid a signed vs unsigned compare 242 compiler warning. 243 (TIFF_INT64_MAX): Avoid use of platform-specific large constants. 244 (TIFF_UINT32_MAX): Avoid use of platform-specific large constants. 245 2462015-09-01 Bob Friesenhahn <[email protected]> 247 248 * Makefile.am (distcheck-hook), configure.ac: Applied patches by 249 Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue 250 with BSD make and to make use of cmake in 'distcheck' target 251 conditional on if cmake is available. 252 253 * CMakeLists.txt, Makefile.am, configure.ac: Applied patches by 254 Roger Leigh (via tiff mailing list on 2015-09-01). 255 256 CMake build is now included in 'distcheck' target. 257 258 Builds with CMake 2.8.9 and newer. 259 260 Tar is now resquested to use POSIX PAX format. 261 2622015-08-31 Bob Friesenhahn <[email protected]> 263 264 * CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by 265 Roger Leigh (via tiff mailing list on 2015-08-31. 266 267 CMake reads all version information directly from configure.ac to 268 avoid duplication of values. This basically greps over the file 269 for the LIBTIFF_* variables, then translates them to the form 270 needed for cmake. This includes the release version and libtool 271 shared library version information. 272 273 Make shared/static library building configurable. Currently it 274 always builds shared libraries, with static libs having a _static 275 suffix (copying zlib, but it means it's got a non-standard name). 276 CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the 277 other, which is now used instead. There's now a single "tiff" 278 target to build either shared or static as required, and all the 279 tests and tools are linked with this. Note: the Windows tests fail 280 when linked with a static libtiff (says: libtiff.dll not found). 281 Not really a regression since this was not tested up to this 282 point, and it's likely the unit tests haven't (ever?) been run on 283 Windows with a static libtiff, so there's some additional 284 portability issue here to address. Works fine on UNIX systems, 285 and fine on Windows with the default to build a DLL. 286 287 Add a missing file which wasn't being distributed, causing unit 288 tests to fail. Note that "find . -name '*.cmake'" lists all the 289 CMake files which need distributing in addition to all the 290 CMakeLists.txt files (which now are distributed). 291 2922015-08-31 Even Rouault <even.rouault at spatialys.com> 293 294 * libtiff/tif_predict.c: pedantic change to add explicit masking 295 with 0xff before casting to uchar in floating-point horizontal 296 differencing and accumulation routines. 297 2982015-08-31 Even Rouault <even.rouault at spatialys.com> 299 300 * libtiff/tif_predict.c: fix generation of output with 16 bit 301 or 32 bit integer, when byte swapping is needed, in 302 horizontal predictor (#2521). Also fixes decoding when there is 303 a single pixel to code (unlikely case...) and byte swapping is 304 involved. 305 3062015-08-30 Even Rouault <even.rouault at spatialys.com> 307 308 * libtiff/tif_lzw.c: make nextdata a unsigned type to avoid 309 undefined behaviour with shifts (gcc -fsanitize=shift) 310 3112015-08-30 Even Rouault <even.rouault at spatialys.com> 312 313 * libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c: 314 add explicit masking with 0xff before casting 315 to unsigned char (make icc -check=conversions happy) 316 317 * libtiff/tif_predict.c: operate on unsigned datatypes when 318 computing/applying differences to avoid undefined behaviour of 319 signed types (C standard compliance) 320 3212015-08-30 Bob Friesenhahn <[email protected]> 322 323 * configure.ac: libtiff 4.0.5 released. 324 3252015-08-29 Bob Friesenhahn <[email protected]> 326 327 * CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing 328 list on 2015-08-29) to add ld-version-script option to cmake build 329 to match autoconf. Note: defaults to 'on' to be ABI-compatible by 330 default with common Linux distribution builds. Note that the 331 autoconf configure script defaults to 'off'. 332 333 * html/build.html: Applied patch by Roger Leigh (via tiff mailing 334 list on 2015-08-29) to describe how to use CMake to build libtiff. 335 3362015-08-28 Bob Friesenhahn <[email protected]> 337 338 * html/v4.0.5.html: Added HTML file describing the changes which 339 will appear in the 4.0.5 release. 340 3412015-08-23 Bob Friesenhahn <[email protected]> 342 343 * libtiff/tiffiop.h: For MinGW comiles, make sure that build 344 supports necessary __MSVCRT_VERSION__ (at least at least 0x800). 345 Otherwise large files can not be supported for POSIX-style I/O. 346 347 * tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit 348 builds about cast to thandle_t. 349 350 * test/rewrite_tag.c (main): Does not require any arguments. 351 3522015-08-20 Bob Friesenhahn <[email protected]> 353 354 * tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to 355 fix build issues when using Cmake due to Windows large file 356 changes. 357 3582015-08-18 Bob Friesenhahn <[email protected]> 359 360 * libtiff/tiffiop.h: First cut at supporting large files under 361 Microsoft Windows using tif_unix.c and the libtiff tools. This 362 only works if the Windows CDK is new enough to support the APIs 363 used (Visual C++ 2005 or later). Support for large files is not 364 actually tested yet. 365 3662015-08-15 Bob Friesenhahn <[email protected]> 367 368 * libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that 369 client_data is initialized to a known value, and to report an 370 error on two memory allocation failures. 371 3722015-08-13 Bob Friesenhahn <[email protected]> 373 374 * CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx 375 symbol versioning. Patch was mailed to libtiff list on Thu, 13 376 Aug 2015. 377 3782015-07-04 Bob Friesenhahn <[email protected]> 379 380 * cmake: Add d suffix to debug libraries with MSVC. Patch #3 of 3 381 by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 382 +0100. 383 384 * cmake: Add extra warning flags. Patch #2 of 3 by Roger Leigh 385 posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 386 387 * cmake: Correct snprintf fallback for VS2015. Patch #1 of 3 by 388 Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 389 3902015-06-24 Bob Friesenhahn <[email protected]> 391 392 * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to 393 libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several 394 corrections to ensure that the autotools build still works were 395 added by me. I have not yet tested the build using 'cmake' or 396 MSVC with 'nmake'. 397 3982015-06-21 Bob Friesenhahn <[email protected]> 399 400 * test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG 401 library so only execute if JPEG is available. 402 403 * libtiff 4.0.4 released. 404 405 * configure.ac: Add a HAVE_FOO Automake conditional for each 406 add-on library. 407 408 * test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode 409 requires JPEG support to compile. Use Automake conditional to 410 only include it when JPEG support is available. 411 412 * html/build.html: Try to improve the nmake-based VC++ build 413 description. 414 415 * libtiff/tiffconf.vc.h: Build fixes based on testing. 416 417 * libtiff/tif_config.vc.h: Build fixes based on testing. 418 419 * libtiff/libtiff.def: TIFFRasterScanline does not exist so remove 420 export for it. 421 4222015-06-20 Bob Friesenhahn <[email protected]> 423 424 * libtiff/tif_config.vc.h: Make adjustments to match the new 425 definitions that configure produces, including for WIN64. Still 426 needs to be tested. 427 428 * configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting 429 specifier. 64-bit MinGW supports 'long long' but support for 430 'lld' is not assured by the run-time DLLs and so GCC warns. 431 Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition 432 and printf format specifier to deal with printing values of 433 'size_t' type. In particular, this was necessary for WIN64. 434 Added a configure test for if the system headers provide 'optarg' 435 (normal case) and block out the many explicit 'extern' statements 436 in the utilities. This was found to be necessary under Windows 437 when getopt is in a DLL and the symbols are already imported with 438 dllimport via standard header files. 439 440 * test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32 441 and boolean in MinGW build due to including jpeglib.h. 442 443 * test/rewrite_tag.c (main): Fix problem with location of variable 444 declaration. 445 446 * libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs, 447 TIFFReadRGBAImageOriented, TIFFSetCompressionScheme, 448 TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc, 449 TIFFRasterScanline, TIFFSetErrorHandlerExt, 450 TIFFSetWarningHandlerExt, TIFFNumberOfDirectories, 451 TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory, 452 TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by 453 Roger Leigh and justified by use in libtiff tests, documentation, 454 and changelog notes. Also sorted symbol list and removed 455 duplicate entries. 456 4572015-06-16 Bob Friesenhahn <[email protected]> 458 459 * libtiff/tif_getimage.c: Fix four Coverity issues related to 460 unintended sign extension. 461 4622015-06-16 Even Rouault <even.rouault at spatialys.com> 463 464 * libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna) 465 4662015-06-14 Lee Howard <[email protected]> 467 468 * libtiff/tif_unix.c: contribution from Vadim Zeitlin on 469 Bugzilla Bug #2510 fixes several harmless but still annoying 470 warnings 471 472 * configure: contribution from Ludolf Holzheid on Bugzilla 473 Bug #2498. Adds an option to select the file I/O style on 474 Windows hosts. 475 476 * libtiff/tif_getimage.c: contribution from Gary Cramblitt 477 on Bugzilla Bug #2409. Correct reading of certain tiled TIFFs. 478 479 * configure, configure.ac: contribution from Marcos H. Woehrmann 480 on Bugzilla Bug #2405. Correct shell equality operator. 481 482 * tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt 483 on Bugzilla Bug #2401. Appropriately call glFlush(). 484 485 * tools/tiff2pdf.c: change ColorTransform from "0" to "1" 486 following Bugzilla Bug #2150. 487 4882015-06-13 Lee Howard <[email protected]> 489 490 * libtiff/tif_lzw.c: contribution from Andy Cave - decode 491 files that contain consecutive CODE_CLEAR codes. 492 493 * tools/tiff2pdf.c: contribution from Antti S. Lankila on 494 Bugzilla Bug #2078. Suppress initial output of the header. 495 496 * tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy - 497 Take care in using the return value from snprintf(). 498 499 * tools/tiffcrop.c: contribution from Eduardo Robles Elvira - 500 correctly copy the compression tag from the source TIFF. 501 502 * tools/tiff2ps.c: contribution from Eduardo Robles Elvira - 503 correct sizing and scaling problems with output document. 504 5052015-06-10 Bob Friesenhahn <[email protected]> 506 507 * libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two 508 clean implementations in order to avoid pre-processor hell. Only 509 one of the implementations is used in a given build. 510 5112015-06-08 Even Rouault <even.rouault at spatialys.com> 512 513 * libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12 514 case 515 5162015-06-07 Bob Friesenhahn <[email protected]> 517 518 * libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975 519 "Division or modulo by zero". 520 (TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division 521 or modulo by zero". 522 (TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by 523 zero". 524 (TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by 525 zero". 526 527 * libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and 528 715974 "Division or modulo by zero". 529 5302015-05-31 Bob Friesenhahn <[email protected]> 531 532 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity 533 1134470 "Logically dead code" by making the roll-over check 534 explicit. 535 536 * libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227 537 "Division or modulo by zero". 538 (LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by 539 zero". 540 (LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by 541 zero". 542 (LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by 543 zero". 544 545 * libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix 546 Coverity 298626 "Logically dead code". 547 (TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead 548 code". 549 (TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead 550 code". 551 (TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead 552 code" 553 554 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++ 555 operator precedenc in evaluation. Might quench Coverity 1134470 556 "Logically dead code". 557 558 * libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands 559 don't affect result". This change uses ifdefs to include 560 applicable code based on properties of libjpeg. Still needs to be 561 re-tested with 12-bit "6b" and "MK1". 562 5632015-05-30 Bob Friesenhahn <[email protected]> 564 565 * libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310 566 "Resource leak". 567 568 * libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix 569 Coverity 601720 "Resource leak". 570 571 * libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624 572 "Dereference before null check". 573 574 * libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400 575 "Missing break in switch". 576 577 * contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer 578 size calculation for overflow. 579 580 * contrib/addtiffo/addtiffo.c (main): Possibly address Coverity 581 1024226 "Untrusted value as argument". 582 583 * tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted 584 value as argument". 585 (checksignature): Fix Coverity 1024894 "Ignoring number of bytes 586 read". 587 (readextension): Fix Coverity 1024893 "Ignoring number of bytes 588 read". 589 (readgifimage): Fix Coverity 1024890 "Ignoring number of bytes 590 read". 591 (readraster): Fix Coverity 1024891 "Ignoring number of bytes 592 read". 593 (readgifimage): Fix Coverity 1024892 "Ignoring number of bytes 594 read". 595 596 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181 597 "Structurally dead code". 598 599 * tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return 600 value from library". 601 (guessSize): Fix Coverity 1024888 "Unchecked return value from 602 library". 603 (guessSize): Fix Coverity 1214162 "Ignoring number of bytes read". 604 (guessSize): Fix Coverity 1024889 "Unchecked return value from 605 library". 606 607 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621 608 "Resource leak". 609 (t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead 610 code". 611 (t2p_write_pdf): Fix Coverity 1227690 "Unused value". 612 6132015-05-29 Bob Friesenhahn <[email protected]> 614 615 * contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468 616 "Infinite loop". 617 (formatIPTC): Fix Coverity 1024727 "Truncated stdio return value". 618 (formatIPTC): Fix Coverity 1214240 "Untrusted loop bound". 619 6202015-05-28 Bob Friesenhahn <[email protected]> 621 622 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 623 Coverity 298615 "Resource leak". 624 (TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign 625 extension". 626 627 * tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value 628 as argument". 629 (main): Fix Coverity 1024678 "Unchecked return value from 630 library". 631 (main): Fix Coverity 1024679 "Unchecked return value from 632 library". 633 (main): Fix Coverity 1214160 "Ignoring number of bytes read". 634 635 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 636 Coverity 298615 "Resource leak". 637 638 * tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309 639 "Resource leak". 640 641 * tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource 642 leak". 643 (cpStrips): Fix Coverity 1024305 "Resource leak". 644 6452015-05-27 Bob Friesenhahn <[email protected]> 646 647 * tools/ras2tiff.c: Fix Sun Raster header definition to be safe 648 for 64-bit systems. Add some header validations. Should fix many 649 Coverity issues. 650 (main): Fix Coverity 1301206: "Integer handling issues (BAD_SHIFT)". 651 (main): Quiet Coverity 1024223 "Untrusted value as argument". 652 653 * tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting 654 level does not match indentation". 655 (get_histogram): Quiet Coverity 1024386 "Out-of-bounds read". 656 This was a benign mis-diagnosis but added code to enforce against 657 buffer overflow. 658 659 * tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical 660 vs. bitwise operator". 661 (readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or 662 modulo by zero". 663 (readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead 664 code". 665 (writeSingleSection): Fix Coverity 1024796 "Nesting level does not 666 match indentation". 667 (writeCroppedImage): Fix Coverity 1024797 "Nesting level does not 668 match indentation". 669 (loadImage): Fix Coverity 1299741 "Dereference before null check". 670 (loadImage): Fix Coverity 1299740 "Out-of-bounds write". 671 6722015-03-02 Even Rouault <[email protected]> 673 674 * tools/tiffdither.c: check memory allocations to avoid writing to 675 NULL pointer. Also check multiplication overflow. Fixes #2501, 676 CVE-2014-8128. Derived from patch by Petr Gajdos. 677 6782015-01-26 Even Rouault <[email protected]> 679 680 * add html/v4.0.4beta.html under version control 681 * HOWTO-RELEASE: write that cvs add html/vX.X.html must be used 682 6832015-01-26 Even Rouault <[email protected]> 684 685 * libtiff 4.0.4beta released 686 6872015-01-26 Even Rouault <[email protected]> 688 689 * automake: updated to 1.15 690 * libtool: updated to 2.4.5 691 6922015-01-22 Even Rouault <[email protected]> 693 694 * tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013) 695 6962015-01-05 Frank Warmerdam <[email protected]> 697 698 * html/bugs.html: remove note about needing to email the tiff mailing 699 list administrator about being approved for membership, this appears 700 not to be true. 701 7022015-01-05 Olivier Paquet <[email protected]> 703 704 * tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection. 705 7062015-01-03 Even Rouault <[email protected]> 707 708 * libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow 709 when reading more than 65535 directories, and effectively error out when 710 reaching that limit. 711 7122014-12-29 Even Rouault <[email protected]> 713 714 * libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10 715 markers to avoid emitting a warning (even if, according to the TechNote, 716 there are admitedly unusual/not recommended or even forbidden variants, but 717 they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2, 718 SOF9 and SOF10). 719 Define in_color_space and input_components to the right values in 720 JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by 721 libjpeg API documentation, so as to be compatible with mozjpeg library. 722 Note: the default settings of mozjpeg will produce progressive scans, which 723 is forbidden by the TechNote. 724 7252014-12-29 Even Rouault <[email protected]> 726 727 * libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling. 728 to avoid buffer leak (fix previous fix, found by Coverity scan) 729 7302014-12-29 Even Rouault <[email protected]> 731 732 * libtiff/tif_next.c: add new tests to check that we don't read outside of 733 the compressed input stream buffer. 734 735 * libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height 736 in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and 737 putcontig8bitYCbCr21tile cases. 738 7392014-12-27 Even Rouault <[email protected]> 740 741 * libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing 742 extented tags installed by user code through the extender mechaninm before 743 calling the extender callback (GDAL #5054) 744 7452014-12-26 Bob Friesenhahn <[email protected]> 746 747 * tools/tiffcrop.c: Fix warnings about variables set but not used. 748 749 * contrib/iptcutil/iptcutil.c: Fix warnings about variables set 750 but not used. 751 752 * tools/tiffgt.c: Fix warnings about unused parameters. 753 754 * libtiff/tif_stream.cxx: Fix warnings about unused parameters. 755 7562014-12-25 Even Rouault <[email protected]> 757 758 * libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix 759 various typos found by Debian lintian tool (GDAL #5756) 760 7612014-12-24 Even Rouault <[email protected]> 762 763 * libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling. 764 http://bugzilla.maptools.org/show_bug.cgi?id=2235 765 7662014-12-24 Even Rouault <[email protected]> 767 768 * tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images. 769 http://bugzilla.maptools.org/show_bug.cgi?id=2445 770 7712014-12-24 Even Rouault <[email protected]> 772 773 * tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image. 774 Derived from patch by Petr Gajdos, 775 http://bugzilla.maptools.org/show_bug.cgi?id=2443 776 7772014-12-23 Even Rouault <[email protected]> 778 779 * libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code 780 of _TIFFFillStriles(). This solves crashing bug on corrupted 781 images generated by afl. 782 7832014-12-23 Even Rouault <[email protected]> 784 785 * libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with 786 <= 0 by casting it to int64 first. This solves crashing bug on corrupted 787 images generated by afl. 788 7892014-12-21 Bob Friesenhahn <[email protected]> 790 791 * tools/tiffdump.c: Guard against arithmetic overflow when 792 calculating allocation buffer sizes. 793 7942014-12-21 Even Rouault <[email protected]> 795 796 * tools/tiff2bw.c: when Photometric=RGB, the utility only works if 797 SamplesPerPixel = 3. Enforce that 798 http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127) 799 8002014-12-21 Even Rouault <[email protected]> 801 802 * tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES 803 copying. The right fix would be to properly copy it, but not worth the burden 804 for those esoteric utilities. 805 http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127) 806 8072014-12-21 Even Rouault <[email protected]> 808 809 * tools/thumbnail.c: fix out-of-buffer write 810 http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128) 811 8122014-12-21 Even Rouault <[email protected]> 813 814 * tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS 815 or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or 816 COMPRESSION_CCITTFAX4 817 http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128) 818 8192014-12-21 Even Rouault <[email protected]> 820 821 * libtiff/tif_next.c: check that BitsPerSample = 2. Fixes 822 http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129) 823 8242014-12-21 Even Rouault <[email protected]> 825 826 * tools/tiff2pdf.c: check return code of TIFFGetField() when reading 827 TIFFTAG_SAMPLESPERPIXEL 828 8292014-12-21 Even Rouault <[email protected]> 830 831 * tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none. 832 Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480) 833 Description: fix for Debian bug #741451 834 tiffcp crashes when converting JPEG-encoded TIFF to a different 835 encoding (like none or lzw). For example this will probably fail: 836 tiffcp -c none jpeg_encoded_file.tif output.tif 837 The reason is that when the input file contains JPEG data, 838 the tiffcp code forces conversion to RGB space. However, 839 the output normally inherits YCbCr subsampling parameters 840 from the input, which leads to a smaller working buffer 841 than necessary. The buffer is subsequently overrun inside 842 cpStripToTile() (called from writeBufferToContigTiles). 843 Note that the resulting TIFF file would be scrambled even 844 if tiffcp wouldn't crash, since the output file would contain 845 RGB data intepreted as subsampled YCbCr values. 846 This patch fixes the problem by forcing RGB space on the output 847 TIF if the input is JPEG-encoded and output is *not* JPEG-encoded. 848 Author: Tomasz Buchert <[email protected]> 849 8502014-12-21 Even Rouault <[email protected]> 851 852 Fix various crasher bugs on fuzzed images. 853 * libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for 854 TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing 855 the directory 856 * libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or 857 TransferFunction if BitsPerSample has not yet been read, otherwise reading 858 it later will cause user code to crash if BitsPerSample > 1 859 * libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with 860 SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8 861 * libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images 862 instead of imagewidth to avoid crash 863 * tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions 864 * tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by 865 libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB 866 * tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight 867 * tools/tiffdump.c: fix crash due to overflow of entry count. 868 8692014-12-15 Even Rouault <[email protected]> 870 871 * libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused 872 all tiles/strips to include quantization tables even when the jpegtablesmode 873 had the JPEGTABLESMODE_QUANT bit set. 874 Also add explicit removal of Huffman tables when jpegtablesmode has the 875 JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the 876 first tile/strip (only useful in update scenarios. create-only was 877 fine) 878 8792014-12-09 Bob Friesenhahn <[email protected]> 880 881 * tools/tiff2pdf.c: Assure that memory size calculations for 882 _TIFFmalloc() do not overflow the range of tmsize_t. 883 8842014-12-07 Even Rouault <[email protected]> 885 886 * tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with 887 Valgrind and Address Sanitizer on test suite 888 8892014-12-07 Bob Friesenhahn <[email protected]> 890 891 * tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION 892 tag can return one channel, with the other two channels set to 893 NULL. The tiff2pdf code was expecting that other two channels 894 were duplicate pointers in the case where there is only one 895 channel. Detect this condition in order to avoid a crash, and 896 presumably perform correctly with just one channel. 897 8982014-12-06 Bob Friesenhahn <[email protected]> 899 900 * tools/tiffdump.c: Fix double-free bug. 901 9022014-11-27 Even Rouault <[email protected]> 903 904 * libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with 905 Visual Studio 2015 aka VC 14 aka MSVC 1900 906 9072014-11-20 Even Rouault <[email protected]> 908 909 * libtiff/tif_lzw.c: prevent potential null dereference of 910 sp->dec_codetab in LZWPreDecode (bug #2459) 911 912 * libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size 913 to TIFFmalloc() if passed user buffer size is 0 (bug #2459) 914 915 * libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459) 916 917 * libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make 918 Coverity happier (not a bug, #2459) 919 920 * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier 921 (not a bug, #2459) 922 923 * tools/tiff2pdf.c: close PDF file (bug #2479) 924 925 * tools/fax2ps.c: check malloc()/realloc() result (bug #2470) 926 927 * tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463) 928 and avoid passing a NULL pointer to read() if seek() failed before (bug #2459) 929 930 * tools/tiffcrop.c: fix segfault if bad value passed to -Z option 931 (bug #2459) and add missing va_end in dump_info (#2459) 932 933 * tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451) 934 9352014-11-20 Even Rouault <[email protected]> 936 * libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on 937 corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471) 938 9392014-11-20 Even Rouault <[email protected]> 940 * automake: updated to 1.14.1 941 * libtool: updated to 2.4.3 942 * HOWTO-RELEASE: small update about autotools building order 943 9442014-10-20 Olivier Paquet <[email protected]> 945 * tools/tiff2pdf.c: Preserve input file directory order when pages 946 are tagged with the same page number. 947 9482014-08-31 Bob Friesenhahn <[email protected]> 949 950 * libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect 951 count for tag should be a warning rather than an error since 952 errors terminate processing. 953 9542014-06-07 Bob Friesenhahn <[email protected]> 955 956 * tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip 957 was wrongly described. Fix suggested by Miguel Medalha. 958 9592014-05-06 Bob Friesenhahn <[email protected]> 960 961 * libtiff/tif_dirinfo.c (TIFFField) : Fix data type for 962 TIFFTAG_GLOBALPARAMETERSIFD tag. Patch by Steve Underwood. 963 Reviewed and forwarded by Lee Howard. 964 9652013-11-30 Frank Warmerdam <[email protected]> 966 967 * libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories() 968 9692013-10-21 Frank Warmerdam <[email protected]> 970 971 * libtiff/tif_dir.c: generate error in case of directory count 972 overflow. 973 9742013-10-01 Frank Warmerdam <[email protected]> 975 976 * libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for 977 TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457) 978 9792013-09-12 Bob Friesenhahn <[email protected]> 980 981 * libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to 982 be defective, then set it to zero before returning error in order 983 to terminate processing of truncated TIFF. Issue found and fix 984 suggested by Richard Nolde. 985 9862013-08-14 Frank Warmerdam <[email protected]> 987 988 * tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244) 989 9902013-08-13 Frank Warmerdam <[email protected]> 991 992 * tools/gif2tiff.c: Be more careful about corrupt or 993 hostile input files (#2450, CVE-2013-4231) 994 995 * tools/tiff2pdf.c: terminate after failure of allocating 996 ycbcr buffer (bug #2449, CVE-2013-4232) 997 9982013-07-09 Frank Warmerdam <[email protected]> 999 1000 * tools/tiffinfo.c: Default various values fetched with 1001 TIFFGetField() to avoid being uninitialized. 1002 10032013-05-02 Tom Lane <[email protected]> 1004 1005 * tools/tiff2pdf.c: Rewrite JPEG marker parsing in 1006 t2p_process_jpeg_strip to be at least marginally competent. The 1007 approach is still fundamentally flawed, but at least now it won't 1008 stomp all over memory when given bogus input. Fixes CVE-2013-1960. 1009 10102013-05-02 Tom Lane <[email protected]> 1011 1012 * contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c, 1013 libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c, 1014 tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c, 1015 tools/tiffdither.c: Enlarge some fixed-size buffers that weren't 1016 large enough, and eliminate substantially all uses of sprintf(buf, 1017 ...) in favor of using snprintf(buf, sizeof(buf), ...), so as to 1018 protect against overflow of fixed-size buffers. This responds in 1019 particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's 1020 t2p_write_pdf_page(), but in general it seems like a good idea to 1021 deprecate use of sprintf(). 1022 10232013-03-29 Bob Friesenhahn <[email protected]> 1024 1025 * configure.ac: Applied patch by Brad Smith to improve pkg-config 1026 static linking by adding -lm to Libs.private when needed. 1027 10282013-03-05 Tom Lane <[email protected]> 1029 1030 * html/man/tiff2ps.1.html, html/man/tiffcp.1.html, 1031 html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1, 1032 man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c, 1033 tools/tiffdither.c: Sync tool usage printouts and man pages with 1034 reality (quite a few options had escaped being documented in one 1035 or both places). Per an old report from Miroslav Vadkerti. 1036 10372013-01-25 Bob Friesenhahn <[email protected]> 1038 1039 * tools/tiff2ps.c:Fix bug in auto rotate option code. Once a 1040 rotation angle was set by the auto rotate check, it was retained 1041 for all pages that followed instead ofa being retested for each 1042 page. Patch by Richard Nolde. 1043 10442013-01-18 Frank Warmerdam <[email protected]> 1045 1046 * libtiff/tif_write.c: tmsize_t related casting warning fixed for 1047 64bit linux. 1048 1049 * libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings. 1050 http://bugzilla.maptools.org/show_bug.cgi?id=2427 1051 10522012-12-20 Tom Lane <[email protected]> 1053 1054 * test/raw_decode.c: Relax raw_decode's pixel-value checks so that 1055 it will pass with more versions of libjpeg. (There are at least 1056 three in active use now, and JPEG_LIB_VERSION doesn't tell us 1057 enough to uniquely identify expected results.) 1058 10592012-12-12 Tom Lane <[email protected]> 1060 1061 * libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of 1062 field_passcount fields: it had the TIFF_VARIABLE and 1063 TIFF_VARIABLE2 cases backwards. 1064 10652012-12-10 Tom Lane <[email protected]> 1066 1067 * tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564: 1068 check the linebytes calculation too, get the max() calculation 1069 straight, avoid redundant error messages, check for malloc 1070 failure. 1071 10722012-12-10 Tom Lane <[email protected]> 1073 1074 * libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447 1075 (to enlarge tbuf for possible partial stride at end) so that 1076 overflow in the integer addition is detected. Per gripe from 1077 Huzaifa Sidhpurwala. 1078 10792012-12-03 Bob Friesenhahn <[email protected]> 1080 1081 * tools/tiffset.c: tiffset now supports a -u option to unset a 1082 tag. Patch by Zach Baker. See 1083 http://bugzilla.maptools.org/show_bug.cgi?id=2419 1084 10852012-11-18 Bob Friesenhahn <[email protected]> 1086 1087 * automake: Update Automake to 1.12.5 release. 1088 1089 * libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not 1090 require malloc() to return NULL pointer if requested allocation 1091 size is zero. Assure that _TIFFmalloc does. 1092 10932012-11-01 Frank Warmerdam <[email protected]> 1094 1095 * tools/ppm2tiff.c: avoid zero size buffer vulnerability. 1096 CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the 1097 Red Hat Security Response team for the fix. 1098 10992012-10-18 Frank Warmerdam <[email protected]> 1100 1101 * tif_zip.c: Avoid crash on NULL error messages. 1102 11032012-09-22 Bob Friesenhahn <[email protected]> 1104 1105 * libtiff 4.0.3 released. 1106 11072012-09-20 Bob Friesenhahn <[email protected]> 1108 1109 * Makefile.am: Update to Automake 1.12.4 1110 11112012-08-19 Bob Friesenhahn <[email protected]> 1112 1113 * Makefile.in: Update to Automake 1.12.3 1114 1115 * libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add 1116 some TIFF/FX support in libtiff. Add the tag definitions to 1117 tiff.h. Add the related TIFF field definitions to tif_dirinfo.c, 1118 and also fixes an error in a comment. Adds the photometric values 1119 to tif_print.c, and fixes a bug. These changes are by Steve 1120 Underwood. 1121 11222012-08-13 Frank Warmerdam <[email protected]> 1123 1124 * libtiff/tif_write.c: Fix bug rewriting image tiles in a 1125 compressed file: http://trac.osgeo.org/gdal/ticket/4771 1126 11272012-08-02 Frank Warmerdam <[email protected]> 1128 1129 * libtiff/tif_dirread.c: report error in case of mismatch value 1130 counts for tags (ie. DotRange). 1131 11322012-07-26 Tom Lane <[email protected]> 1133 1134 * libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new 1135 functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(), 1136 TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount() 1137 as external accessors for the opaque type TIFFField. 1138 1139 * tools/tiffset.c: Make tiffset use the above functions instead of 1140 relying on library private headers. 1141 11422012-07-19 Tom Lane <[email protected]> 1143 1144 * tools/tiff2pdf.c: Fix two places where t2p_error didn't get set 1145 after a malloc failure. No crash risk AFAICS, but the program 1146 might not report exit code 1 as desired. h/t [email protected] 1147 11482012-07-18 Tom Lane <[email protected]> 1149 1150 * tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails. This 1151 prevents core dumps or perhaps even arbitrary code execution when 1152 processing a corrupt input file (CVE-2012-3401). 1153 11542012-07-06 Bob Friesenhahn <[email protected]> 1155 1156 * test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+. 1157 IJG JPEG 7+ uses a different upsampling algorithm which produces 1158 different numeric results. 1159 1160 * libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to 1161 work with IJG JPEG 7+. 1162 11632012-07-04 Bob Friesenhahn <[email protected]> 1164 1165 * test/raw_decode.c: Add changes so that test can run with build 1166 directory outside of source directory. 1167 11682012-07-02 Frank Warmerdam <[email protected]> 1169 1170 * libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed 1171 imagery (http://trac.osgeo.org/gdal/ticket/4732) 1172 11732012-06-20 Frank Warmerdam <[email protected]> 1174 1175 * libtiff/tif_fax3.c: fix memory initialization of runs, only 1176 partly done. 1177 1178 * libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one 1179 full "stride" past the end. 1180 11812012-06-19 Frank Warmerdam <[email protected]> 1182 1183 * libtiff/tif_packbits.c: fix read past end of data buffer. 1184 11852012-06-15 Frank Warmerdam <[email protected]> 1186 1187 * libtiff 4.0.2 released. 1188 1189 * tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable 1190 warnings with clang. 1191 11922012-06-15 Tom Lane <[email protected]> 1193 1194 * tools/tiff2pdf.c: Defend against integer overflows while 1195 calculating required buffer sizes (CVE-2012-2113). 1196 11972012-06-12 Frank Warmerdam <[email protected]> 1198 1199 * libtiff/tif_print.c: Be careful about printing corrupt inknames. 1200 1201 * libtiff/tif_fax3.c: Ensure runs array is initialized to zeros. 1202 12032012-06-07 Frank Warmerdam <[email protected]> 1204 1205 * libtiff/tif_print.c: avoid pretty printing other fields when 1206 we don't have the proper amount and type of data or if the field 1207 is actually autodefined. 1208 12092012-06-05 Frank Warmerdam <[email protected]> 1210 1211 * libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal 1212 ycbcrsubsampling values result in a runtime error, not just an 1213 assertion. 1214 1215 * tests/custom_dir.c: Add testing of EXIF and custom directory 1216 reading and writing. 1217 1218 * libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory() 1219 and TIFFCreateEXIFDirectory() functions. 1220 1221 * libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for 1222 PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING. Implement DOTRANGE 1223 differently. This is to avoid using special TIFFGetField/TIFFSetField 1224 rules for these fields in non-image directories (like EXIF). 1225 12262012-06-04 Frank Warmerdam <[email protected]> 1227 1228 * libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling 1229 in JPEGPreDecode(). If a fixup will be done it needs to be done sooner 1230 in JPEGFixupTagsSubsampling() or else buffer sized may be wrong. 1231 12322012-06-01 Frank Warmerdam <[email protected]> 1233 1234 * tools/tiffinfo.c: Do not try to read image data in EXIF directories. 1235 1236 * libtiff/tif_getimage.c: added support for _SEPARATED CMYK images. 1237 http://bugzilla.maptools.org/show_bug.cgi?id=2379 1238 1239 * libtiff/tif_unix.c: use strerror() to return a more specific error message 1240 on failed open. 1241 http://bugzilla.maptools.org/show_bug.cgi?id=2341 1242 1243 * libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs. 1244 http://bugzilla.maptools.org/show_bug.cgi?id=2386 1245 1246 * tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support 1247 for testing jpeg in tiff image decoding including the "raw" decode interface. 1248 12492012-05-31 Frank Warmerdam <[email protected]> 1250 1251 * libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in 1252 JPEGDecodeRaw() - mostly likely to occur when there is confusion about 1253 sampling values. 1254 1255 * libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed. 1256 1257 * libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval. 1258 http://bugzilla.maptools.org/show_bug.cgi?id=2398 1259 12602012-05-29 Frank Warmerdam <[email protected]> 1261 1262 * libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories, 1263 like EXIF directories. This fixes problems like a tag "320" existing in a custom directory getting 1264 processed as if it were a colormap when it isn't really. Damn the wide variety of argument formulations 1265 to get/set functions for different tags! 1266 1267 * libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata 1268 is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag. 1269 12702012-05-24 Frank Warmerdam <[email protected]> 1271 1272 * libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward 1273 accumulate" and overwrite the end by one word in at least some cases. 1274 12752012-05-23 Frank Warmerdam <[email protected]> 1276 1277 * libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs. 1278 1279 * tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files. 1280 1281 * libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on 1282 the same image. 1283 1284 * libtiff/tif_ojpeg.c: make things more resilient in the face of files without 1285 stripbytecounts or stripoffsets or where loading these fails. 1286 1287 * libtiff/tif_print.c: be careful about whether min/max values are singular 1288 or one per sample. 1289 1290 * libtiff/tif_print.c: Avoid confusion about count size when printing custom fields. 1291 May affect things like ISOSpeedRatings. 1292 1293 * libtiff/tif_dir.c: avoid one byte past end of ink names reading 1294 in some cases. 1295 12962012-05-19 Bob Friesenhahn <[email protected]> 1297 1298 * man/TIFFGetField.3tiff: Correct the 'count' field type in the 1299 example for how to retreive the value of unsupported tags. 1300 13012012-03-30 Frank Warmerdam <[email protected]> 1302 1303 * tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173) 1304 care of Tom Lane @ Red Hat. 1305 13062012-02-18 Bob Friesenhahn <[email protected]> 1307 1308 * libtiff 4.0.1 released. 1309 1310 * Update automake used to 1.11.3. 1311 1312 * libtiff/tiffio.h: Use double-underbar syntax in GCC printf 1313 attribute specification to lessen the risk of accidental macro 1314 substitution. Patch from Vincent Torri. 1315 13162012-01-31 Frank Warmerdam <[email protected]> 1317 1318 * libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around 1319 assumption tag fetching is always successful. 1320 1321 * libtiff/tif_jpeg.c: Extra caution for case where sp is NULL. 1322 13232012-01-22 Bob Friesenhahn <[email protected]> 1324 1325 * configure.ac: Add support for using library symbol versioning on 1326 ELF systems with the GNU linker. Support is enabled via 1327 --enable-ld-version-script. Disabled by default for now until 1328 there is a decision for how to deploy a libtiff with versioned 1329 symbols after libtiff 4.0.0 was already released. 1330 13312011-12-22 Bob Friesenhahn <[email protected]> 1332 1333 * libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in 1334 1335 tif_win32.c. Patch by Edward Lam. 1336 1337 * configure.ac: Add libtiff private dependency on -llzma for 1338 pkg-config. Patch by Mark Brand. 1339 Updated Automake to 1.11.2. 1340 13412011-12-21 Bob Friesenhahn <[email protected]> 1342 1343 * libtiff 4.0.0 released. 1344 13452011-12-08 Frank Warmerdam <[email protected]> 1346 1347 * libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking 1348 of _TIFFFillStriles() results (#gdal 4372) 1349 13502011-12-07 Frank Warmerdam <[email protected]> 1351 1352 * libtiff/tif_dirread.c: fixes to deal with invalid files where 1353 _TIFFFillStriles() fails, and we try to chop up strips (gdal #4372) 1354 1355 * libtiff/tif_dirread.c: fix error reporting when there is no 1356 tag information struct and name (gdal #4373) 1357 13582011-10-22 Bob Friesenhahn <[email protected]> 1359 1360 * Update GNU libtool to 2.4.2. 1361 1362 * tools/tiffsplit.c (tiffcp): TIFFGetField count field should be 1363 uint32 type for TIFFTAG_JPEGTABLES. Patch by Christophe 1364 Deroulers. 1365 13662011-06-21 Frank Warmerdam <[email protected]> 1367 1368 * libtiff/libtiff.def: Restore TIFFMergeFieldInfo. 1369 13702011-05-31 Jim Meyering <[email protected]> 1371 1372 * libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also 1373 upon failure to allocate "resizeddata". 1374 * tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for 1375 allocation failure, not before. 1376 * libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path 1377 * tools/rgb2ycbcr.c (cvtRaster): unchecked malloc 1378 * libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark 1379 NULL-deref and possible overflow 1380 * tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written" 1381 * libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration 1382 and set of otherwise unused local, data_is_empty. 1383 * libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]: 1384 Diagnose out-of-memory failure and return 0 rather than 1385 dereferencing NULL. 1386 13872011-05-24 Frank Warmerdam <[email protected]> 1388 1389 * libtiff/tif_dirread.c: produce special error message for zero tag 1390 directories instead of error out on the malloc(0) failure. 1391 13922011-05-16 Frank Warmerdam <[email protected]> 1393 1394 * libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and 1395 related declarations as they are in active use by libraries 1396 such as libgeotiff, and work just fine. (#2315) 1397 13982011-04-20 Frank Warmerdam <[email protected]> 1399 1400 * libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete 1401 TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API. 1402 http://bugzilla.maptools.org/show_bug.cgi?id=2315 1403 1404 * libtiff/libtiff.def: add some missing (64bit) APIs. 1405 http://bugzilla.maptools.org/show_bug.cgi?id=2316 1406 14072011-04-09 Bob Friesenhahn <[email protected]> 1408 1409 * libtiff 4.0.0beta7 released. 1410 14112011-04-09 Bob Friesenhahn <[email protected]> 1412 1413 * configure.ac: Should use AC_CANONICAL_HOST since host specifies 1414 the run-time target whereas target is used to specify the final 1415 output target if the package is a build tool (like a compiler), 1416 which libtiff is not. Resolves libtiff bug 2307 "Use 1417 AC_CANONICAL_HOST macro". 1418 14192011-04-02 Bob Friesenhahn <[email protected]> 1420 1421 * configure.ac: Support configuring TIFF_INT64_FORMAT and 1422 TIFF_UINT64_FORMAT appropriately for MinGW32. 1423 1424 * tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32 1425 printf conventions for 64-bit types because it uses the WIN32 CRT. 1426 1427 * libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c, 1428 tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32 1429 printf conventions for 64-bit types because it uses the WIN32 CRT. 1430 1431 * tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not 1432 understood by WIN32 CRT. 1433 1434 * libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC. 1435 1436 * tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since 1437 it is much more portable. Tmpfile is included in ISO/IEC 1438 9899:1990 and the WIN32 CRT. 1439 14402011-03-26 Frank Warmerdam <[email protected]> 1441 1442 * tools/tiffset.c: add -d and -sd switches to allow operation on 1443 a particular directory, not just the first (jef). 1444 14452011-03-21 Frank Warmerdam <[email protected]> 1446 1447 * libtiff/tif_thunder.c: Correct potential buffer overflow with 1448 thunder encoded files with wrong bitspersample set. The libtiff 1449 development team would like to thank Marin Barbella and TippingPoint's 1450 Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004, 1451 CVE-2011-1167). 1452 http://bugzilla.maptools.org/show_bug.cgi?id=2300 1453 14542011-03-10 Frank Warmerdam <[email protected]> 1455 1456 * libtiff/tif_fax3.h: Fix to last change allowing zero length 1457 runs at the start of a scanline - needed for legal cases. 1458 14592011-03-02 Frank Warmerdam <[email protected]> 1460 1461 * libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding 1462 a move left. Without this, a malicious input file can generate an 1463 indefinitely large series of runs without a0 ever reaching the right 1464 margin, thus overrunning our buffer of run lengths. Per CVE-2011-0192. 1465 This is a modified version of a patch proposed by Drew Yao of Apple 1466 Product Security. It adds an unexpected() report, and disallows the 1467 equality case, since emitting a run without increasing a0 still allows 1468 buffer overrun. 1469 14702011-02-23 Frank Warmerdam <[email protected]> 1471 1472 * libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296) 1473 1474 * tools/tiff2rgba.c: close source file on error to make leak 1475 detection easier. 1476 1477 * libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails. 1478 1479 http://bugzilla.maptools.org/show_bug.cgi?id=2295 1480 14812011-02-22 Frank Warmerdam <[email protected]> 1482 1483 * libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ 1484 _SUPPORT) 1485 14862011-02-18 Frank Warmerdam <[email protected]> 1487 1488 * configure.ac, configure: Added support for --enable-chunky-strip-read 1489 configure option to enable the experimental feature from a couple 1490 months ago for reading big strips in chunks. 1491 1492 * configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h, 1493 tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c: 1494 Implement optional support for deferring the load of strip/tile 1495 offset and size tags for optimized scanning of directories. Enabled 1496 with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD 1497 #define in tif_config.h). 1498 14992011-02-11 Frank Warmerdam <[email protected]> 1500 1501 * libtiff/tif_print.c: remove unused variable. 1502 15032011-02-09 Frank Warmerdam <[email protected]> 1504 1505 * libtiff/tif_win32.c: avoid error/warning buffer overrun problem 1506 with non-console (popup message) builds on win32. 1507 1508 http://bugzilla.maptools.org/show_bug.cgi?id=2293 1509 15102011-01-24 Olivier Paquet <[email protected]> 1511 1512 * libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c, 1513 tif_print.c, tiff.h, tiffiop.h} : Added support for 1514 TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different 1515 values for each sample. Presents the min/max of all samples by default for 1516 compatibility. TIFFSetField/TIFFGetField can be made to handle those tags 1517 as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag. 1518 http://www.asmail.be/msg0055458208.html 1519 15202011-01-06 Frank Warmerdam <[email protected]> 1521 1522 * libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not 1523 maintained. 1524 1525 * libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding 1526 for CHUNKY_STRIP_READ_SUPPORT. 1527 1528 * libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained 1529 during JPEGPreDecode and JPEGDecode calls. 1530 * libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT, 1531 as compression formats like JPEG keep 16 lines interleaved in a sense 1532 and might need to touch quite a bit of data. 1533 1534 http://trac.osgeo.org/gdal/ticket/3894 1535 15362011-01-03 Lee Howard <[email protected]> 1537 1538 * libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images 1539 caused by commit on 2010-12-14. Submitted by e-mail from 1540 Even Rouault <[email protected]> 1541 15422010-12-31 Olivier Paquet <[email protected]> 1543 1544 * libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE. 1545 http://bugzilla.maptools.org/show_bug.cgi?id=2266 1546 15472010-12-23 Andrey Kiselev <[email protected]> 1548 1549 * tools/tiffcp.c, man/tiffcp.1: Added support for specifying the 1550 compression level parameter (preset) for Deflate and LZMA encoders, 1551 e.g "-c lzma:p1" or "-c zip:p9". 1552 1553 * libtiff/tif_lzma.c: Properly set the LZMA2 compression level 1554 (preset) in LZMAVSetField(). 1555 15562010-12-18 Bob Friesenhahn <[email protected]> 1557 1558 * libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to 1559 Makefile. 1560 15612010-12-14 Andrey Kiselev <[email protected]> 1562 1563 * configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h, 1564 tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new 1565 TIFF compression scheme LZMA reserving a new value 34925 for 1566 Compression tag. As per 1567 bug http://bugzilla.maptools.org/show_bug.cgi?id=2221 1568 15692010-12-14 Lee Howard <[email protected]> 1570 1571 * libtiff/tif_dirread.c: tolerate some cases where 1572 FIELD_COLORMAP is missing 1573 http://bugzilla.maptools.org/show_bug.cgi?id=2189 1574 15752010-12-14 Lee Howard <[email protected]> 1576 1577 * libtiff/tif_read.c: change read_ahead to tmsize_t 1578 http://bugzilla.maptools.org/show_bug.cgi?id=2222 1579 15802010-12-14 Lee Howard <[email protected]> 1581 1582 * configure.ac, libtiff/Makefile.am: Build tif_win32.c on 1583 Windows except on Cygwin 1584 http://bugzilla.maptools.org/show_bug.cgi?id=2224 1585 15862010-12-14 Lee Howard <[email protected]> 1587 1588 * tools/gif2tiff.c: fix buffer overrun 1589 http://bugzilla.maptools.org/show_bug.cgi?id=2270 1590 15912010-12-14 Lee Howard <[email protected]> 1592 1593 * libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order 1594 to improve compatibility with various viewers 1595 submitted by e-mail from Dwight Kelly <[email protected]> 1596 15972010-12-13 Lee Howard <[email protected]> 1598 1599 * tools/fax2ps.c: be consistent with page-numbering 1600 http://bugzilla.maptools.org/show_bug.cgi?id=2225 1601 16022010-12-13 Lee Howard <[email protected]> 1603 1604 * libtiff/tif_color.c: prevent crash in handling bad TIFFs 1605 resolves CVE-2010-2595 1606 http://bugzilla.maptools.org/show_bug.cgi?id=2208 1607 16082010-12-13 Lee Howard <[email protected]> 1609 1610 * tools/tiffcrop.c: new release by Richard Nolde 1611 http://bugzilla.maptools.org/show_bug.cgi?id=2004 1612 16132010-12-12 Lee Howard <[email protected]> 1614 1615 * tools/tiff2pdf.c: fix colors for images with RGBA 1616 interleaved data 1617 http://bugzilla.maptools.org/show_bug.cgi?id=2250 1618 16192010-12-12 Lee Howard <[email protected]> 1620 1621 * libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files 1622 http://bugzilla.maptools.org/show_bug.cgi?id=2164 1623 16242010-12-11 Lee Howard <[email protected]> 1625 1626 * tools/tiff2pdf.c: remove invalid duplication for Lab 1627 http://bugzilla.maptools.org/show_bug.cgi?id=2162 1628 16292010-12-11 Lee Howard <[email protected]> 1630 1631 * libtiff/tif_jpeg.c: fix use of clumplines calculation 1632 http://bugzilla.maptools.org/show_bug.cgi?id=2149 1633 16342010-12-11 Lee Howard <[email protected]> 1635 1636 * tools/fax2ps.c: replace unsafe tmpfile() with mkstemp() 1637 http://bugzilla.maptools.org/show_bug.cgi?id=2118 1638 16392010-12-11 Lee Howard <[email protected]> 1640 1641 * libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c, 1642 libtiff/tif_zip.c: fix build errors for VC6 1643 http://bugzilla.maptools.org/show_bug.cgi?id=2105 1644 16452010-12-11 Lee Howard <[email protected]> 1646 1647 * libtiff/tif_stream.cxx: warnings cleanup 1648 http://bugzilla.maptools.org/show_bug.cgi?id=2091 1649 * libtiff/tif_dirread.c: warnings cleanup 1650 http://bugzilla.maptools.org/show_bug.cgi?id=2092 1651 16522010-12-11 Lee Howard <[email protected]> 1653 1654 * tools/tiff2pdf.c: add fill-page option 1655 http://bugzilla.maptools.org/show_bug.cgi?id=2051 1656 16572010-12-11 Lee Howard <[email protected]> 1658 1659 * libtiff/tif_dirread.c: modify warnings 1660 http://bugzilla.maptools.org/show_bug.cgi?id=2016 1661 16622010-12-11 Lee Howard <[email protected]> 1663 1664 * libtiff/tif_ojpeg.c: fix buffer overflow on problem data 1665 http://bugzilla.maptools.org/show_bug.cgi?id=1999 1666 16672010-12-11 Lee Howard <[email protected]> 1668 1669 * tools/tiffinfoce.c: strip byte counts are uint64* now 1670 16712010-12-11 Lee Howard <[email protected]> 1672 1673 * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero 1674 or missing byte-count tag 1675 * tools/tiffsplit.c: abort when reading a TIFF without a byte-count 1676 per http://bugzilla.maptools.org/show_bug.cgi?id=1996 1677 16782010-12-08 Lee Howard <[email protected]> 1679 1680 * libtiff/tif_dirread.c: fix crash when reading a badly-constructed 1681 TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994 1682 16832010-12-06 Lee Howard <[email protected]> 1684 1685 * libtiff/tif_open.c: Fix mode check before opening a file. 1686 http://bugzilla.maptools.org/show_bug.cgi?id=1906 1687 16882010-11-27 Bob Friesenhahn <[email protected]> 1689 1690 * libtiff-4.pc.in: Added libtiff pkg-config .pc file support. 1691 Patch by Vincent Torri. 1692 16932010-10-21 Frank Warmerdam <[email protected]> 1694 1695 * tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler. 1696 1697 * libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf. 1698 1699 * libtiff/libtiff.def: export _TIFFCheckMalloc for tools. 1700 17012010-09-25 Lee Howard <[email protected]> 1702 1703 * tools/tiff2ps.c: improvements and enhancements from Richard Nolde 1704 with additional command line options for Document Title, 1705 Document Creator, and Page Orientation 1706 17072010-07-13 Bob Friesenhahn <[email protected]> 1708 1709 * tools/tiffcrop.c: Patch from Richard Nolde to avoid a 1710 potentially unterminated buffer due to using an exceptionally long 1711 file name. 1712 17132010-07-08 Andrey Kiselev <[email protected]> 1714 1715 * tools/tiff2pdf.c: Fixed ID buffer filling in 1716 t2p_write_pdf_trailer(), thanks to Dmitry V. Levin. 1717 17182010-07-07 Andrey Kiselev <[email protected]> 1719 1720 * libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount() 1721 to expected value as the warning message suggests. As per bug 1722 http://bugzilla.maptools.org/show_bug.cgi?id=1963 1723 17242010-07-06 Andrey Kiselev <[email protected]> 1725 1726 * tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER, 1727 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE 1728 which should be set by value. 1729 1730 * libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag() 1731 and _TIFFFieldWithName() if the tag is not found in the tag table. 1732 This should be normal situation and returned NULL value should be 1733 properly handled by the caller. 1734 17352010-07-02 Andrey Kiselev <[email protected]> 1736 1737 * libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned 1738 integer type conversions. As per bug 1739 http://bugzilla.maptools.org/show_bug.cgi?id=2207 1740 1741 * tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for 1742 WhitePoint tag as per bug 1743 http://bugzilla.maptools.org/show_bug.cgi?id=2042 1744 1745 * libtiff/tif_getimage.c: Check the number of samples per pixel when 1746 working with YCbCr image in PickContigCase(). As per bug 1747 http://bugzilla.maptools.org/show_bug.cgi?id=2216 1748 1749 * libtiff/tif_dir.c: Set the bogus post-decoding hook when processing 1750 TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when 1751 we don't need any post-processing. That helps to reset the hook if we 1752 previously set this field to some other value and the hook was 1753 initialized accordingly. As per bug 1754 http://bugzilla.maptools.org/show_bug.cgi?id=2035 1755 17562010-07-01 Andrey Kiselev <[email protected]> 1757 1758 * tools/tiffgt.c: Properly check the raster buffer allocations for 1759 integer overflows. As per bug 1760 http://bugzilla.maptools.org/show_bug.cgi?id=2108 1761 1762 * m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the 1763 upstream. 1764 1765 * libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move 1766 multiply_32() and multiply_64() functions into tif_aux.c file and 1767 rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively. 1768 17692010-06-30 Andrey Kiselev <[email protected]> 1770 1771 * tools/tiff2pdf.c: Better generation of ID field in 1772 t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings. 1773 1774 * tools/tiff2pdf.c: Fixed computation of the tile buffer size when 1775 converting JPEG encoded tiles. 1776 1777 * tools/tiff2pdf.c: Better handling of string fields, use static 1778 string buffers instead of dynamically allocated, use strncpy() instead 1779 of strcpy(), control the string lengths. 1780 17812010-06-25 Andrey Kiselev <[email protected]> 1782 1783 * tools/tiffcp.c: Initialize buffer arrays with zero to avoid 1784 referencing to uninitialized memory in some cases (e.g. when tile size 1785 set bigger than the image size). 1786 17872010-06-15 Bob Friesenhahn <[email protected]> 1788 1789 * tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr 1790 subsampled data since tiffcrop currently doesn't support it. Fix 1791 JPEG support. 1792 17932010-06-13 Frank Warmerdam <[email protected]> 1794 1795 * libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201) 1796 1797 * tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return" 1798 in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely 1799 wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual 1800 size is larger. Also, there are a bunch of places that try to 1801 memset() a malloc'd buffer before checking for malloc failure, which 1802 would result in core dump if there actually were a failure. (#2211) 1803 18042010-06-11 Bob Friesenhahn <[email protected]> 1805 1806 * libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to 1807 avoid compiler warnings if parameter types are not sign 1808 consistent. 1809 1810 * libtiff 4.0.0alpha6 released. 1811 1812 * tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected 1813 European page size dimensions. Added an option to allow the user 1814 to specify a custom page size on the command line. Fix the case 1815 where a page size specified with a fractional part was being 1816 coerced to an integer by retyping the variables that define the 1817 paper size. 1818 1819 * html/index.html: Update for the 3.9.3 release. 1820 1821 * tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject 1822 YCbCr subsampled data since tiffcp currently doesn't support it. 1823 http://bugzilla.maptools.org/show_bug.cgi?id=2097 1824 1825 * Update libtool to version 2.2.10. 1826 18272010-06-10 Bob Friesenhahn <[email protected]> 1828 1829 * libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if 1830 multiplier is zero. 1831 18322010-06-09 Bob Friesenhahn <[email protected]> 1833 1834 * libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for 1835 CVE-2010-1411 was not complete. 1836 1837 * libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely 1838 multiply two integers. Returns zero if there is an integer 1839 overflow. 1840 1841 * tools/tiffcp.c (main): tiffcp should not leak memory if an error 1842 is reported when reading the input file. 1843 18442010-06-08 Bob Friesenhahn <[email protected]> 1845 1846 * Update libtool to version 2.2.8. 1847 1848 * libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of 1849 buffer due to integer overflow in TIFFroundup() and several other 1850 potential overflows. In conjunction with the fix to TIFFhowmany(), 1851 fixes CVE-2010-1411. 1852 1853 * libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would 1854 result in an integer overflow. This causes TIFFroundup() to also 1855 return zero if there would be an integer overflow. 1856 1857 * contrib: Add an emacs formatting mode footer to all source files 1858 so that emacs can be effectively used. 1859 18602010-06-03 Oliver Chen Feng <[email protected]> 1861 1862 * libtiff/tools/tiffcp.c: add a new option -x to force merged tiff 1863 file PAGENUMBER value in sequence for users who care the page 1864 sequence, this will also prevent tiff2pdf from creating pdf file from 1865 the merged tiff file with wrong page sequence. 1866 18672010-05-08 Olivier Paquet <[email protected]> 1868 1869 * libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order 1870 to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag. 1871 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1872 TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2). 1873 http://bugzilla.maptools.org/show_bug.cgi?id=2192 1874 18752010-05-07 Frank Warmerdam <[email protected]> 1876 1877 * libtiff/tif_jpeg.c: Ensure that quality is always set in 1878 JPEGPreEncode(), not just when we want to output local tables. 1879 Otherwise the quality used during compression may not be right and 1880 might not match the tables in the tables tag. This bug only occurs 1881 when seeking between directories in the midst of writing blocks. 1882 http://trac.osgeo.org/gdal/ticket/3539 1883 18842010-05-06 Andrey Kiselev <[email protected]> 1885 1886 * html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html: 1887 Regenerated from the source. 1888 18892010-05-05 Olivier Paquet <[email protected]> 1890 1891 * libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which 1892 had stopped working. Also made it always print 6 floats instead of 1893 2*SamplesPerPixel. 1894 http://bugzilla.maptools.org/show_bug.cgi?id=2191 1895 http://bugzilla.maptools.org/show_bug.cgi?id=2186 1896 * man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the 1897 fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats. 1898 18992010-05-05 Frank Warmerdam <[email protected]> 1900 1901 * libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking 1902 if the jpeg table was written. This is a fix for the last fix on 04-21. 1903 19042010-04-21 Frank Warmerdam <[email protected]> 1905 1906 * libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime 1907 JPEGSetupEncode() is called if the tables already seem to be 1908 established. This prevents spurious updates and rewriting of 1909 directories with jpegtables when doing updates to existing images. 1910 http://trac.osgeo.org/gdal/ticket/3539 1911 19122010-04-20 Olivier Paquet <[email protected]> 1913 1914 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1915 TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH, 1916 TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA. 1917 They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2. 1918 http://bugzilla.maptools.org/show_bug.cgi?id=2139 1919 19202010-04-10 Bob Friesenhahn <[email protected]> 1921 1922 * libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for 1923 when the tag count value is zero. Error handling is still a 1924 regression since in 3.9.2, empty tags are skipped (with a warning) 1925 rather than returning a hard error and refusing to read the file. 1926 1927 * tools/ppm2tiff.c (main): While case for parsing comment line 1928 requires extra parenthesis to work as expected. Reported by 1929 Thomas Sinclair. 1930 19312010-04-02 Frank Warmerdam <[email protected]> 1932 1933 * libtiff/tif_read.c (primarily): Add support for 1934 CHUNKY_STRIP_READ_SUPPORT where large strips are 1935 read in chunks for applications using TIFFReadScanline(). 1936 This is intended to make it more practical work with very 1937 large compressed one-strip files. Feature is off by default. 1938 Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro. 1939 http://trac.osgeo.org/gdal/ticket/3514 1940 19412010-03-31 Frank Warmerdam <[email protected]> 1942 1943 * libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing 1944 directories so previously placed directories will be migrated to 1945 the end of file if needed. 1946 19472010-03-30 Frank Warmerdam <[email protected]> 1948 1949 * libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64 1950 to support operating on strips/tiles of more than 256MB. 1951 http://trac.osgeo.org/gdal/ticket/3512 1952 19532010-03-10 Bob Friesenhahn <[email protected]> 1954 1955 * libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so 1956 that it is clearly a memory allocation error message, and also 1957 includes the size of the allocation request. 1958 19592010-02-22 Lee Howard <[email protected]> 1960 1961 * libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating 1962 the JPEG TIFF as is is not required in order to prevent it from 1963 being unused and filled with invalid data. (Leave it to be 1964 generated by later activity.) 1965 http://bugzilla.maptools.org/show_bug.cgi?id=2135 1966 * tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip 1967 data rather than skipping them. This fixes the ability to view in 1968 Acrobat Reader, Evince, and Ghostscript. 1969 http://bugzilla.maptools.org/show_bug.cgi?id=2135 1970 * libtiff/tif_fax3.c: Don't return error on badly-terminated MMR 1971 strips. 1972 http://bugzilla.maptools.org/show_bug.cgi?id=2029 1973 19742009-12-03 Frank Warmerdam <[email protected]> 1975 1976 * libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns. 1977 Made so that when working with downsampled images a stub function 1978 reporting an error is used for tif_decoderow. We cannot meaningfully 1979 support reading scanlines in this situation. (#1936) 1980 1981 * libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after 1982 resetting of the upsampling values (gdal:#3259). 1983 http://bugzilla.maptools.org/show_bug.cgi?id=1936 1984 19852009-11-30 Frank Warmerdam <[email protected]> 1986 1987 * contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c, 1988 tools/ras2tiff.c: Fix resource leaks on error. 1989 http://bugzilla.maptools.org/show_bug.cgi?id=2121 1990 1991 * libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling 1992 TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead 1993 of as a custom(generic) field to avoid a potential reentrancy problem. 1994 http://bugzilla.maptools.org/show_bug.cgi?id=2125 1995 1996 * libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h, 1997 man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit 1998 const, and display_sRGB static and const. 1999 http://bugzilla.maptools.org/show_bug.cgi?id=2124 2000 20012009-11-04 Bob Friesenhahn <[email protected]> 2002 2003 * libtiff 4.0.0alpha5 released. 2004 20052009-11-03 Bob Friesenhahn <[email protected]> 2006 2007 * tools/tiffcrop.c: Updated tiffcrop from Richard Nolde. This 2008 version has undergone substantial testing with arbitrary sample 2009 bit depths. Also eliminates GCC compilation warnings. 2010 20112009-11-02 Bob Friesenhahn <[email protected]> 2012 2013 * port/libport.h: Add extern declarations for getopt standard 2014 globals. 2015 20162009-10-31 Bob Friesenhahn <[email protected]> 2017 2018 * libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings 2019 noticed in 64-bit build of libtiff with Visual Studio 2005. 2020 Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in 2021 tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067 2022 2023 * libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important 2024 warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 - 2025 Visual Studio 2005 64-bit warning in tif_pixarlog.c", 2026 http://bugzilla.maptools.org/show_bug.cgi?id=2068 2027 20282009-10-29 Bob Friesenhahn <[email protected]> 2029 2030 * libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned 2031 pointer" warnings. 2032 20332009-10-28 Bob Friesenhahn <[email protected]> 2034 2035 * html/tools.html: Add manual page links, and a summary 2036 description of tiffcrop. 2037 20382009-10-07 Bob Friesenhahn <[email protected]> 2039 2040 * configure.ac: x86_64 should use the same fill order as i386. 2041 20422009-09-24 Bob Friesenhahn <[email protected]> 2043 2044 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard 2045 Nolde. Major updates to add significant functionality for reading 2046 and writing tile based images with bit depths not a multiple of 8 2047 which cannot be handled by tiffcp. 2048 20492009-09-03 Bob Friesenhahn <[email protected]> 2050 2051 * libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs 2052 do_fancy_upsampling=FALSE in order to read raw data. Resolves 2053 "Bug 2090 - OJPEG crash with libjpeg v7". 2054 http://bugzilla.maptools.org/show_bug.cgi?id=2090 2055 20562009-09-03 Frank Warmerdam <[email protected]> 2057 2058 * libtiff/tif_getimage.c: Fixed error recognition handling in RGBA 2059 interface when stoponerror is set. 2060 http://bugzilla.maptools.org/show_bug.cgi?id=2071 2061 20622009-08-30 Bob Friesenhahn <[email protected]> 2063 2064 * tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to 2065 fix build with gcc when using the "-Wformat 2066 -Werror=format-security" flags. 2067 20682009-08-29 Bob Friesenhahn <[email protected]> 2069 2070 * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh, 2071 ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional 2072 utilities tests. 2073 20742009-08-28 Bob Friesenhahn <[email protected]> 2075 2076 * tools/tiffinfo.c: tiffinfo should return error status to the 2077 caller. Register a private error callback to accomplish that. 2078 2079 * test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and 2080 PNM formats so that we will be able to test more of the tools. 2081 While adding these test images I notice that bmp2tiff and gif2tiff 2082 only support ancient versions of their respective formats. 2083 20842009-08-27 Bob Friesenhahn <[email protected]> 2085 2086 * libtiff 4.0.0alpha4 released. 2087 2088 * HOWTO-RELEASE: Improved release instructions. 2089 20902009-08-24 Bob Friesenhahn <[email protected]> 2091 2092 * man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied 2093 fixes for "Bug 2023 - nroff errors in manual pages". 2094 http://bugzilla.maptools.org/show_bug.cgi?id=2023 2095 2096 * tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 - 2097 CVE-2009-2347 libtiff: integer overflows in various inter-color 2098 space conversion tools". 2099 http://bugzilla.maptools.org/show_bug.cgi?id=2079 2100 2101 * libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay 2102 Berkenbilt for "Bug 2024 - possible null pointer dereference with 2103 one-line fix". 2104 http://bugzilla.maptools.org/show_bug.cgi?id=2024 2105 2106 * libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch 2107 from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c: 2108 segfault after setting tdir_tag = IGNORE". 2109 http://bugzilla.maptools.org/show_bug.cgi?id=1895 2110 21112009-08-23 Bob Friesenhahn <[email protected]> 2112 2113 * test/Makefile.am, test/tiffcrop*.sh: Split previously existing 2114 tiffcrop.sh into a collection of many specific tests. Re-wrote 2115 all of the existing tests to be based on some simple shell 2116 functions. Make distcheck works again. 2117 2118 Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and 2119 added 'memcheck' and 'ptrcheck' targets to make it easy to run the 2120 tests under valgrind. 2121 21222009-08-21 Bob Friesenhahn <[email protected]> 2123 2124 * test/tiffcp-logluv.sh: Fix test so that it works with a VPATH 2125 build. 2126 2127 * test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not 2128 actually activated since it needed to be enabled in this 2129 Makefile.am. Also activated parallel-tests mode since it offers 2130 useful features such as per-test .log files and a summary test 2131 report .log file. 2132 21332009-08-20 Bob Friesenhahn <[email protected]> 2134 2135 * configure.ac: Updated autotools. Autoconf 2.64, Automake 1.11, 2136 libtool 2.2.6. Enabled support for silent build rules 2137 (--enable-silent-rules or 'make V=0') and colorized tests. 2138 2139 * html/{index.html, v3.9.0.html}: Update for 3.9.0 release. 2140 21412009-06-30 Frank Warmerdam <[email protected]> 2142 2143 * tests/tiffcp-logluv.sh: minimal testing of sgilog compression. 2144 2145 * tools/tiffcp.c: add -c sgilog support. 2146 2147 * libtiff/tif_luv.c: correct return codes from encoderow to be 2148 1 on success instead of zero. 2149 http://bugzilla.maptools.org/show_bug.cgi?id=2069 2150 2151 * libtiff/tif_lzw.c: back out patch from #2065 and apply patch from 2152 #1085 for a better underflow fix that errors properly. 2153 http://bugzilla.maptools.org/show_bug.cgi?id=2065 2154 http://bugzilla.maptools.org/show_bug.cgi?id=1985 2155 21562009-06-26 Frank Warmerdam <[email protected]> 2157 2158 * libtiff/tif_strip.c: Remove an inappropriate assertion that often 2159 fails on oddly sized 12bit jpeg compressed ycbcr images. 2160 21612009-06-22 Frank Warmerdam <[email protected]> 2162 2163 * libtiff/tif_lzw.c: Fix buffer underflow bug. 2164 http://bugzilla.maptools.org/show_bug.cgi?id=2065 2165 21662009-06-21 Frank Warmerdam <[email protected]> 2167 2168 * configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support 2169 for dual mode 8/12 bit jpeg support. 2170 21712009-06-03 Frank Warmerdam <[email protected]> 2172 2173 * libtiff/tif_write.c: do not override the planar configuration to be 2174 contig for one sample files if planar configuration is already set. 2175 http://bugzilla.maptools.org/show_bug.cgi?id=2057 2176 21772009-06-02 Frank Warmerdam <[email protected]> 2178 2179 * libtiff/libtiff.def: Add TIFFUnsetField. 2180 21812009-05-03 Frank Warmerdam <[email protected]> 2182 2183 * libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various 2184 error reports to use "%s" as format string. 2185 http://trac.osgeo.org/gdal/ticket/2976 2186 21872009-03-12 Frank Warmerdam <[email protected]> 2188 2189 * libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining 2190 for some codecs (#2020). 2191 21922009-02-12 Frank Warmerdam <[email protected]> 2193 2194 * libtiff/tif_luv.c: Fix handling of tiled logluv images. 2195 http://bugzilla.maptools.org/show_bug.cgi?id=2005 2196 21972009-02-09 Frank Warmerdam <[email protected]> 2198 2199 * libtiff/tif_dirread.c: Improve allocation safety when allocated 2200 buffer for large tags. (#1998) Related to (#1993) 2201 22022009-02-06 Frank Warmerdam <[email protected]> 2203 2204 * tools/tiffcrop.c: Don't default image->res_unit to INCH. Now the 2205 test suite should pass. 2206 22072009-02-05 Frank Warmerdam <[email protected]> 2208 2209 * libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size, 2210 but at the 2GB boundary to avoid overflow on 32bit systems. 2211 http://bugzilla.maptools.org/show_bug.cgi?id=1993 2212 2213 * libtiff/tif_dirread.c: Remove some assertions that blow due to 2214 corrupt files rather than in response to library internal 2215 inconsistencies. 2216 http://bugzilla.maptools.org/show_bug.cgi?id=1995 2217 http://bugzilla.maptools.org/show_bug.cgi?id=1991 2218 2219 * libtiff/tif_dirread.c: Fixed testing for failed result from 2220 TIFFReadDirectoryFindFieldInfo(). 2221 http://bugzilla.maptools.org/show_bug.cgi?id=1992 2222 22232009-01-23 Frank Warmerdam <[email protected]> 2224 2225 * libtiff/tif_predict.c: Add support for 32bit integer horz. predictors. 2226 http://bugzilla.maptools.org/show_bug.cgi?id=1911 2227 2228 * libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset. 2229 2230 http://bugzilla.maptools.org/show_bug.cgi?id=1924 2231 2232 * tools/tiffcrop.c: initialize xres/yres values. 2233 2234 * test/*.sh - default ${srcdir} to local directory. 2235 2236 * test/common.sh - start verbose mode after common settings. 2237 2238 * libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to 2239 avoid type mismatches on different platforms. 2240 http://bugzilla.maptools.org/show_bug.cgi?id=1889 2241 22422009-01-22 Frank Warmerdam <[email protected]> 2243 2244 * tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c, 2245 tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues. 2246 2247 * port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT 2248 defined, primarily to reduce prototype warnings on windows. 2249 2250 * libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings 2251 about unused parameters, and uninitialized variables. 2252 22532009-01-21 Bob Friesenhahn <[email protected]> 2254 2255 * test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in 2256 order to trace full execution detail while executing the test suite. 2257 22582009-01-20 Frank Warmerdam <[email protected]> 2259 2260 * tools/tiffsplit.c: fix sampleformat to be shortv instead of longv. 2261 22622009-01-20 Bob Friesenhahn <[email protected]> 2263 2264 * test/Makefile.am (CLEANFILES): Make sure that test output files 2265 are removed by 'make clean' 2266 2267 * Update autotools for 4.0.0 beta3 2268 2269 * 4.0.0 beta3 produced. 2270 22712009-01-12 Bob Friesenhahn <[email protected]> 2272 2273 * test/tiffcrop.sh: New test script for tiffcrop from Richard 2274 Nolde. 2275 2276 * tools/tiff2ps.c: Remove spurious message to stderr. 2277 22782009-01-11 Bob Friesenhahn <[email protected]> 2279 2280 * tools/tiff2ps.c: Incorporated significant functionality update 2281 from Richard Nolde. In particular, support for rotating the image 2282 by 90, 180, 270, and 'auto' has been added. 2283 2284 * man/tiffcrop.1: Incorporated documentation updates from Richard 2285 Nolde. 2286 2287 * tools/tiffcrop.c: Incorporated significant functionality update 2288 from Richard Nolde. 2289 22902008-12-31 Bob Friesenhahn <[email protected]> 2291 2292 * libtiff/tiffio.h: GCC will now validate format specifications 2293 for TIFFError(), TIFFErrorExt(), TIFFWarning(), and 2294 TIFFWarningExt() in order to reveal bugs. 2295 2296 * Many fixes throughout to work better as a 64-bit build. 2297 22982008-12-30 Bob Friesenhahn <[email protected]> 2299 2300 * tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length 2301 tags now require 64-bit parameter rather than 32-bit. 2302 2303 * libtiff/tif_dirread.c: Fixed issues with unaligned access to 2304 64-bit values. 2305 2306 * tools/thumbnail.c: Eliminate crash noticed while running test 2307 suite. 2308 23092008-12-29 Bob Friesenhahn <[email protected]> 2310 2311 * libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer): 2312 Initialize stack variables to avoid compiler warning. 2313 2314 * tools/tiffinfoce.c (main): Use toff_t for offset type when 2315 retrieving offset of EXIF IFD. 2316 2317 * libtiff/tiffio.h: Undeprecate toff_t and restore its use in the 2318 TIFFClientOpen() callback and other external function definitions. 2319 2320 * tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit 2321 type now. Fixes crash when dumping files containing an EXIF IFD. 2322 2323 * m4/libtool.m4: Update to libtool 2.2.6. 2324 23252008-12-21 Frank Warmerdam <[email protected]> 2326 2327 * libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function. 2328 2329 * libtiff/tif_jpeg.c: Avoid errors if the application writes a full 2330 strip for the last partial strip in a jpeg compressed file. 2331 http://bugzilla.maptools.org/show_bug.cgi?id=1981 2332 23332008-10-29 Frank Warmerdam <[email protected]> 2334 2335 * libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when 2336 we take the shortcut to only update the strip/tile offsets in place. 2337 http://trac.osgeo.org/gdal/ticket/2621 2338 23392008-10-21 Andrey Kiselev <[email protected]> 2340 2341 * libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with 2342 the older versions retained). 2343 23442008-10-09 Frank Warmerdam <[email protected]> 2345 2346 * libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using 2347 IPP enabled version of libjpeg from Intel. 2348 http://bugzilla.maptools.org/show_bug.cgi?id=1951 2349 23502008-09-05 Andrey Kiselev <[email protected]> 2351 2352 * tools/tiffsplit.c: Use byte counts of proper size (uint64). 2353 Required for libtiff 4.0. 2354 2355 * tools/tiffsplit.c: Use dynamically allocated array instead of static 2356 when constructing output file names. 2357 23582008-09-03 Andrey Kiselev <[email protected]> 2359 2360 * tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when 2361 doing the filename/path construction. 2362 2363 * tools/tiff2pdf.c: More appropriate format string in 2364 t2p_write_pdf_string(); avoid signed/unsigned mismatch. 2365 2366 * libtiff/tif_lzw.c: Properly zero out the codetable. As per bug 2367 2368 http://bugzilla.maptools.org/show_bug.cgi?id=1929 2369 2370 * libtiff/tif_lzw.c: Properly zero out the string table. Fixes 2371 CVE-2008-2327 security issue. 2372 23732008-09-01 Frank Warmerdam <[email protected]> 2374 2375 * libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function. 2376 2377 * libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD 2378 depending on whether the file is bigtiff or classic tiff. 2379 http://bugzilla.maptools.org/show_bug.cgi?id=1917 2380 23812008-08-12 Edward Lam <[email protected]> 2382 2383 * tools/tiffdump.c: When compiling for Microsoft Windows, apply 2384 consistent (__int64) casting when testing if _lseeki64 has 2385 successfully seeked as requested. This is necessary for large 2386 file support to work since off_t is only 32-bit. 2387 23882008-07-29 Frank Warmerdam <[email protected]> 2389 2390 * tif_strip.c: Replace assertions related to samplesperpixel != 3 or 2391 the subsampling values not being 1, 2 or 4 (for jpeg compressed images) 2392 with control logic to return runtime errors (c/o Even Rouault) (#1927). 2393 23942008-06-17 Frank Warmerdam <[email protected]> 2395 2396 * tools/tiffcrop.c: Fix some portability problems. 2397 2398 * libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are 2399 used in tif_jpeg.c. 2400 2401 * libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags 2402 as TIFFOpen(). 2403 24042008-06-01 Frank Warmerdam <[email protected]> 2405 2406 * libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures 2407 like Sparc/Solaris. 2408 http://bugzilla.maptools.org/show_bug.cgi?id=1892 2409 24102008-05-27 Frank Warmerdam <[email protected]> 2411 2412 * libtiff.def: Add TIFFFindField 2413 http://bugzilla.maptools.org/show_bug.cgi?id=1891 2414 24152008-05-26 Frank Warmerdam <[email protected]> 2416 2417 * tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused. 2418 2419 * li2008-04-15 Andrey Kiselev <[email protected]> 2420 2421btiff/tif_win32.c: Replace custom Win32 memory api with generic 2422 POSIX one. No apparent value to use of GlobalAlloc() in the modern 2423 age. http://bugzilla.maptools.org/show_bug.cgi?id=1885 2424 2425 * libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items 2426 in windows version (care of Edward Lam). 2427 24282008-05-24 Frank Warmerdam <[email protected]> 2429 2430 * tif_codec.c: Avoid NULL pointer dereferencing for exotic 2431 compression codec codes. 2432 2433 * tif_dirwrite.c: fix potential memory leak. 2434 2435 * tif_dirread.c: Fix unchecked malloc result. 2436 24372008-05-24 Bob Friesenhahn <[email protected]> 2438 2439 * test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh 2440 tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh 2441 tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh 2442 tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh 2443 tiffdump.sh tiffinfo.sh}: Added more test scripts based on 2444 suggestions from Lee Howard posted to the tiff list on 13 Sep 2445 2007. 2446 24472008-05-23 Frank Warmerdam <[email protected]> 2448 2449 * libtiff/tif_fax3.c: Add an assert in an effort to detect a 2450 possible runtime problem reported by coverity. 2451 2452 * contrib/iptcutil/iptcutil.c: Fixed memory leak of str. 2453 2454 * tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde. 2455 http://bugzilla.maptools.org/show_bug.cgi?id=1888 2456 2457 * tools/tiffdither.c: remove dead onestrip code. avoid memory leak. 2458 2459 * tools/rgb2ycbcr.c: fix memory leak of raster buffer. 2460 2461 * tools/tiffcp.c: Simplify inknames code to avoid pointless test. 2462 Cleanup scanline allocation to avoid coverity warning. 2463 2464 * tools/thumbnail.c: Check for TIFFOpen() failure. 2465 24662008-05-18 Frank Warmerdam <[email protected]> 2467 2468 * libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT 2469 and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED. Not exactly clear 2470 why this is needed. 2471 24722008-05-09 Bob Friesenhahn <[email protected]> 2473 2474 * Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like 2475 "ACLOCAL_AMFLAGS=-I ./m4". It wants "ACLOCAL_AMFLAGS=-I m4". 2476 24772008-04-15 Andrey Kiselev <[email protected]> 2478 2479 * test/: Test suite updated. Everything is passed now. 2480 2481 * libtiff/tif_dirinfo.c: Fixed description of the 2482 TIFFTAG_NUMBEROFINKS tag. 2483 24842008-04-14 Andrey Kiselev <[email protected]> 2485 2486 * libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}: 2487 Get rid of some of "dereferencing type-punned" warnings by converting 2488 tdir_offset field of TIFFDirEntry structure into union. 2489 24902008-04-10 Andrey Kiselev <[email protected]> 2491 2492 * libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}: 2493 TIFFRewriteField() renamed into _TIFFRewriteField() and moved out 2494 from the public interface. Type of its 'count' parameter changed 2495 from uint32 to tmsize_t. 2496 2497 * /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields 2498 of the tiff structure have the size_t type instead of uint32. 2499 25002008-04-09 Andrey Kiselev <[email protected]> 2501 2502 * tools/tiffdump.c: Added support for MSVS 6.0. 2503 2504 * libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat() 2505 and _TIFFUInt64ToDouble() to convert 64-bit integers into floating 2506 point values on MSVS 6.0 platform. 2507 25082008-03-14 Frank Warmerdam <[email protected]> 2509 2510 * tif_dirread.c: Removed sanity checks on tags larger than 4MB in 2511 TIFFReadDirEntryArray() since they are interfering with seemingly 2512 legitimate files. http://trac.osgeo.org/gdal/ticket/2005 2513 25142008-02-09 Joris Van Damme <[email protected]> 2515 2516 * tif_dirread.c: Added handling for the case of number of values for 2517 PageNumber tag different from 2 (previously resulted in an assert 2518 indicating lack of handling and was forgotten about) 2519 25202008-02-01 Frank Warmerdam <[email protected]> 2521 2522 * libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on 2523 the actual jpeg data stream if the first strip/tile has zero size. 2524 This is the case when GDAL creates a new file with zero sizes, closes 2525 and reopens it. 2526 25272008-01-07 Frank Warmerdam <[email protected]> 2528 2529 * tools/tiff2ps.c: fix up 64bit issues (from Edward Lam). 2530 25312008-01-01 Frank Warmerdam <[email protected]> 2532 2533 * libtiff/tif_dirwrite.c: #ifdef out lots of unused functions. 2534 2535 * Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean 2536 targets. 2537 2538 * tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c 2539 tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005 2540 (x64). 2541 2542 * tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag() 2543 and TIFFFieldWithName() now return TIFFField pointers instead of 2544 TIFFFieldInfo pointers. 2545 2546 * tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't 2547 exist. This makes it compile again on Windows 2548 2549 * tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c, 2550 tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64. 2551 2552 * test/rewrite_tag.c: New test for TIFFRewriteField(). 2553 25542007-12-31 Frank Warmerdam <[email protected]> 2555 2556 * tif_dirwrite.c: Added TIFFRewriteField(). This new function 2557 rewrites one field "on disk" updating an existing directory 2558 entry. Lots of limitations still... 2559 2560 * tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of 2561 TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that 2562 the strip offset/size values are dirty but nothing else about the 2563 directory is dirty. In flush handle "just stripmaps dirty" as a 2564 special case that just rewrites these values without otherwise 2565 modifying the directory on disk using TIFFRewriteField(). 2566 2567 We also modify logic so that in update mode the directory is not 2568 marked dirty on read, but only when something is changed. This 2569 means we need to keep track of updates to the stripmap stuff in 2570 TIFFAppendToStrip(). 2571 25722007-12-10 Frank Warmerdam <[email protected]> 2573 2574 * tif_jpeg.c: Improve ability to switch between encoding and decoding 2575 in the jpeg code (gdal bug #2033). 2576 25772007-11-23 Frank Warmerdam <[email protected]> 2578 2579 * tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c, 2580 tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the 2581 rawcp/rawcc buffer are for writing and thus may require flushing. 2582 Necessary to distinguish whether they need to be written to disk when 2583 in mixed read/write mode and doing a mixture of writing followed by 2584 reading. http://trac.osgeo.org/gdal/ticket/1758 2585 25862007-11-23 Andrey Kiselev <[email protected]> 2587 2588 * configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches 2589 from Alexey Chupahin. 2590 25912007-11-02 Frank Warmerdam <[email protected]> 2592 2593 * tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for 2594 establishing if an existing tile can be rewritten to the same location 2595 by comparing the current size to all the other blocks in the same 2596 directory. This is dangerous in many situations and can easily 2597 corrupt a file. (observed in esoteric GDAL situation that's hard to 2598 document). This change involves leaving the stripbytecount[] values 2599 unaltered till TIFFAppendToStrip(). Now we only write a block back 2600 to the same location it used to be at if the new data is the same 2601 size or smaller - otherwise we move it to the end of file. 2602 2603 * tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile 2604 data when writing the directory just because we have BEENWRITING at 2605 some point in the past. This was causing odd junk to be written out 2606 in a tile of data when a single tile had an interleaving of reading 2607 and writing with reading last. (highlighted by gdal 2608 autotest/gcore/tif_write.py test 7. 2609 2610 * tif_predict.c: use working buffer in PredictorEncodeTile to avoid 2611 modifying callers buffer. 2612 http://trac.osgeo.org/gdal/ticket/1965 2613 2614 * tif_predict.c/h: more fixes related to last item, keeping a 2615 distinct pfunc for encode and decode cases as these were getting 2616 mixed up sometimes. 2617 http://trac.osgeo.org/gdal/ticket/1948 2618 26192007-11-01 Frank Warmerdam <[email protected]> 2620 2621 * tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that 2622 predictor based encoding and decoding works in read-write update 2623 mode properly. 2624 http://trac.osgeo.org/gdal/ticket/1948 2625 26262007-10-24 Joris Van Damme <[email protected]> 2627 2628 * tif_dirread.c: Fixed problem with bogus file triggering 2629 assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in 2630 ChopUpSingleUncompressedStrip 2631 26322007-10-22 Joris Van Damme <[email protected]> 2633 2634 * tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images 2635 at best, access violation at worst, when subsampled JPEG compressed imagery 2636 is decoded without the JPEG_COLORMODE feature 2637 26382007-10-11 Frank Warmerdam <[email protected]> 2639 2640 * html/index.html: Update "people responsible" section. 2641 26422007-10-05 Frank Warmerdam <[email protected]> 2643 2644 * tools/tiff2pdf.c: Fix problem with alpha setting in some cases 2645 as reported on the mailing list. 2646 26472007-10-01 Joris Van Damme <[email protected]> 2648 2649 * changed some more incorrect %lud printf flags to %lu 2650 26512007-09-29 Joris Van Damme <[email protected]> 2652 2653 * tif_dirread.c: Strip chopping interfered badly with uncompressed 2654 subsampled images because it tried to divide subsampled rowblocks, 2655 leading to all sorts of errors throughout the library for these 2656 images. Fixed by making strip chopping divide in row counts that 2657 are a multiple of vertical subsampling value. 2658 26592007-09-28 Joris Van Damme <[email protected]> 2660 2661 * tif_dirread.c: Logical cast working around compiler warning 2662 2663 * tif_read.c: Correction of some error flags and parameter lists 2664 26652007-09-27 Joris Van Damme <[email protected]> 2666 2667 * tif_dirread.c: Made calculation of td_maxsamplevalue more robust 2668 when dealing with large bitspersample values, shutting up purification 2669 tools that warn about truncation, though it remains incorrect and 2670 indicates a conceptual problem there. 2671 2672 * tif_open.c: Moved early exit in case of 'h' flag (to disable reading 2673 of first IFD) to proper place because it badly interfered with memory 2674 mapping, resulting in mapping flag even with dummy mapping functions 2675 that returned 0 whilst at the same time the mapping tif_size wasn't 2676 set, thus resulting in continuous incorrect beyond-eof errors. 2677 26782007-09-24 Joris Van Damme <[email protected]> 2679 2680 * tif_dirinfo.c: Fixed (MSVC) compiler reports about 2681 inconsistent use of const in tiffFields and exifFields definition 2682 26832007-09-20 Frank Warmerdam <[email protected]> 2684 2685 * tif_dirwrite.c: Always write tile/strip offsets and sizes 2686 using LONG8 type when output format is BigTIFF. The 2687 TIFFWriteDirectoryTagLongLong8Array() function was restructured 2688 accordingly. 2689 2690 * tif_dirread.c: Improvements to error reporting text in 2691 TIFFFetchDirectory(). 2692 26932007-09-19 Bob Friesenhahn <[email protected]> 2694 2695 * test/images: Added a small collection of test images for use by 2696 test programs and scripts. 2697 * test/tiffinfo.sh: A trivial example test script. 2698 * test/common.sh: Added small script for setting the environment 2699 used by script-based tests. 2700 27012007-08-24 Frank Warmerdam <[email protected]> 2702 2703 * tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed 2704 zero when writing directory contents to preserve the ability to 2705 rewrite directories in place, even in the middle of a directory 2706 chain. 2707 2708 * tif_dirinfo.c: _TIFFMergeFields() now only merges in field 2709 definitions that are missing. Existing definitions are silently 2710 ignored. 2711 2712 * tif_dirread.c: Add runtime error for fields for which no definition 2713 is found (in addition to an assert for developers) in 2714 TIFFFetchNormalTag(). Not sure if this is needed, but it seems 2715 prudent. 2716 27172007-08-10 Joris Van Damme <[email protected]> 2718 2719 * libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer 2720 from _TIFFRGBAImage structure to revert unwanted ABI change. 2721 27222007-08-10 Joris Van Damme <[email protected]> 2723 2724 * libtiff/tif_win32.c: use SetFilePointer instead of 2725 SetFilePointerEx, as per bug 2726 2727 http://bugzilla.remotesensing.org/show_bug.cgi?id=1580 2728 27292007-07-19 Andrey Kiselev <[email protected]> 2730 2731 * libtiff/tif_stream.cxx: Put all callback functions declarations 2732 inside extern "C" block. 2733 2734 * libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c, 2735 tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf() 2736 formatter instead of "%lld" with MSVC compiler. 2737 2738 * libtiff/{tiffiop.h, tif_aux.c}: Added _TIFFUInt64ToFloat() and 2739 _TIFFUInt64ToDouble() functions. 2740 27412007-07-18 Andrey Kiselev <[email protected]> 2742 2743 * libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit 2744 integer constants. 2745 2746 * libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h, 2747 remove tif_config.h/tiffconf.h during cleaning. As per bug 2748 2749 http://bugzilla.remotesensing.org/show_bug.cgi?id=1573 2750 2751 * libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug 2752 2753 http://bugzilla.remotesensing.org/show_bug.cgi?id=1577 2754 27552007-07-13 Andrey Kiselev <[email protected]> 2756 2757 * libtiff 4.0.0alpha released. 2758 27592007-07-12 Andrey Kiselev <[email protected]> 2760 2761 * tools/tiff2pdf.c: Added missed extern optind as per bug 2762 2763 http://bugzilla.remotesensing.org/show_bug.cgi?id=1567 2764 2765 * libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c, 2766 tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag 2767 extending scheme completed. 2768 27692007-07-11 Bob Friesenhahn <[email protected]> 2770 2771 * libtiff/tif_stream.cxx: Adapt to use toff_t again. Update to 2772 use standard C++ library size types and attempt to detect overflow 2773 cases. 2774 27752007-07-08 Andrey Kiselev <[email protected]> 2776 2777 * libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h, 2778 tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new 2779 tag extending scheme. Use the new scheme everywhere. 2780 2781 * libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c, 2782 tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c, 2783 tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}: 2784 TIFFFIeldInfo structure replaced with TIFFField structure. 2785 TIFFFieldInfo retained for the backward compatibility. 2786 27872007-07-05 Bob Friesenhahn <[email protected]> 2788 2789 * tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not 2790 defined. 2791 27922007-07-04 Andrey Kiselev <[email protected]> 2793 2794 * libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused 2795 TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration 2796 removed. 2797 2798 * libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move 2799 tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS, 2800 TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory. 2801 These tags are not codec-specific and relate to image content, so 2802 process them as other normal tags. 2803 2804 * libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the 2805 public tiffio.h to private tif_dir.h. 2806 2807 * contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and 2808 outdated. 2809 28102007-07-03 Andrey Kiselev <[email protected]> 2811 2812 * libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c, 2813 tif_win3.c}: Obsoleted portability stuff removed. 2814 2815 * tools/tiff2ps.c: Added support 16-bit images as per bug 2816 2817 http://bugzilla.remotesensing.org/show_bug.cgi?id=1566 2818 2819 Patch from William Bader. 2820 2821 * tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and 2822 significant upgrade of the whole utility as per bug 2823 2824 http://bugzilla.remotesensing.org/show_bug.cgi?id=1560 2825 2826 Now we don't need tiffiop.h in tiff2pdf anymore and will open output 2827 PDF file using TIFFClientOpen() machinery as it is implemented 2828 by Leon Bottou. 2829 28302007-06-26 Bob Friesenhahn <[email protected]> 2831 2832 * configure.ac: Fix typo when substituting value for unsigned 8 bit type. 2833 Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic. 2834 Added support for a TIFF_SSIZE_T in order to return memory sizes but still 2835 allow returning -1 for errors. 2836 * libtiff/tiffconf.vc.h: Add porting type defintions for WIN32. 2837 28382007-06-25 Bob Friesenhahn <[email protected]> 2839 2840 * port/strtoull.c: New porting function in case strtoull() is not 2841 available on the target system. 2842 * configure.ac: Add configure support for determining sized types 2843 in a portable way and performing necessary substitutions in 2844 tif_config.h and tiffconf.h. Updated tiff.h to use the new 2845 definitions. 2846 28472007-04-27 Andrey Kiselev <[email protected]> 2848 2849 * tools/tiff2pdf.c: Check the tmpfile() return status as per bug 2850 2851 http://bugzilla.remotesensing.org/show_bug.cgi?id=154 2852 28532007-04-07 Andrey Kiselev <[email protected]> 2854 2855 * libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c, 2856 tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c, 2857 tif_predict.c, tif_zip.c}: Finally fix bug 2858 2859 http://bugzilla.remotesensing.org/show_bug.cgi?id=1274 2860 2861 by introducing _TIFFMergeFieldInfo() returning integer error status 2862 instead of void in case of problems with field merging (e.g., if the 2863 field with such a tag already registered). TIFFMergeFieldInfo() in 2864 public API remains void. Use _TIFFMergeFieldInfo() everywhere and 2865 check returned value. 2866 28672007-04-07 Frank Warmerdam <[email protected]> 2868 2869 * contrib/addtiffo/tif_overview.c: Fix problems with odd sized output 2870 blocks in TIFF_DownSample_Subsampled() (bug 1542). 2871 28722007-04-06 Frank Warmerdam <[email protected]> 2873 2874 * libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it 2875 will convert from decompressor to compressor or compress to decompress 2876 if required by the force arguments. This works around a problem in 2877 where the JPEGFixupTestSubsampling() may cause a decompressor to 2878 be setup on a directory when later a compressor is required with the 2879 force flag set. Occurs with the addtiffo program for instance. 2880 28812007-04-06 Andrey Kiselev <[email protected]> 2882 2883 * tools/tiffcrop.c, man/tiffcrop.1: Significant update in 2884 functionality from Richard Nolde. As per bug 2885 2886 http://bugzilla.remotesensing.org/show_bug.cgi?id=1525 2887 28882007-03-28 Frank Warmerdam <[email protected]> 2889 2890 * libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC. 2891 28922007-03-17 Joris Van Damme <[email protected]> 2893 2894 * start of BigTIFF upgrade - CVS HEAD unstable until further notice 2895 28962007-03-07 Joris Van Damme <[email protected]> 2897 2898 * libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading 2899 OJPEG images with rowsperstrip that is not a multiple of vertical subsampling 2900 factor. This bug is mentioned in: 2901 http://bugzilla.remotesensing.org/show_bug.cgi?id=1390 2902 http://www.asmail.be/msg0054766825.html 2903 29042007-03-07 Joris Van Damme <[email protected]> 2905 2906 * libtiff/tif_win32.c: made inclusion of windows.h unconditional 2907 2908 * libtiff/tif_win32.c: replaced preprocessor indication for consiously 2909 unused arguments by standard C indication for the same 2910 29112007-02-27 Andrey Kiselev <[email protected]> 2912 2913 * libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte 2914 counters in TIFFFetchData(). Should finally fix the issue 2915 2916 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 2917 29182007-02-24 Andrey Kiselev <[email protected]> 2919 2920 * tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount. 2921 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350 2922 2923 * libtiff/tif_dirread.c: Added special function to handle 2924 SubjectDistance EXIF tag as per bug 2925 2926 http://bugzilla.remotesensing.org/show_bug.cgi?id=1362 2927 2928 * tools/tiff2pdf.c: Do not assume inches when the resolution units 2929 do not specified. As per bug 2930 2931 http://bugzilla.remotesensing.org/show_bug.cgi?id=1366 2932 2933 * tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if 2934 it was set as infinite. As per bug 2935 2936 http://bugzilla.remotesensing.org/show_bug.cgi?id=1368 2937 2938 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed 2939 by Richard Nolde. As per bug 2940 2941 http://bugzilla.remotesensing.org/show_bug.cgi?id=1383 2942 29432007-02-22 Andrey Kiselev <[email protected]> 2944 2945 * libtiff/tif_dir.c: Workaround for incorrect TIFFs with 2946 ExtraSamples == 999 produced by Corel Draw. As per bug 2947 2948 http://bugzilla.remotesensing.org/show_bug.cgi?id=1490 2949 2950 * libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters 2951 changed from tsize_t to uint32 to be able to work with data arrays 2952 larger than 2GB. Fixes bug 2953 2954 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 2955 2956 Idea submitted by Matt Hancher. 2957 29582007-01-31 Andrey Kiselev <[email protected]> 2959 2960 * tools/tif2rgba.c: This utility does not work properly on big-endian 2961 architectures. It was fixed including the bug 2962 2963 http://bugzilla.remotesensing.org/show_bug.cgi?id=1149 2964 29652007-01-15 Mateusz Loskot <[email protected]> 2966 2967 * Submitted libtiff port for Windows CE platform 2968 * libtiff/tif_config.wince.h: Added configuration header for WinCE. 2969 * libtiff/tiffconf.wince.h: Ported old configuration header for WinCE. 2970 * libtiff/tif_wince.c: Added WinCE-specific implementation of some 2971 functons from tif_win32.c. 2972 * libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c. 2973 * libtiff/tiffiop.h, port/lfind.c: Added conditional include of some 2974 standard header files for Windows CE build. 2975 * tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE. 2976 29772006-11-19 Frank Warmerdam <[email protected]> 2978 2979 * libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if 2980 we move a strip. 2981 http://bugzilla.remotesensing.org/show_bug.cgi?id=1359 2982 29832006-10-13 Andrey Kiselev <[email protected]> 2984 2985 * libtiff/tif_dir.c: More fixes for vulnerabilities, reported 2986 in Gentoo bug (): 2987 2988 http://bugs.gentoo.org/show_bug.cgi?id=142383 2989 2990 * libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable. 2991 Though it is still far from the state of being working and useful. 2992 29932006-10-12 Andrey Kiselev <[email protected]> 2994 2995 * libtiff/tif_fax3.c: Save the state of printdir codec dependent 2996 method. 2997 2998 * libtiff/tif_jpeg.c: Save the state of printdir codec dependent method 2999 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273 3000 3001 * libtiff/tif_win32.c: Fixed problem with offset value manipulation 3002 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322 3003 3004 * libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for 3005 vulnerabilities, reported in Gentoo bug (): 3006 3007 http://bugs.gentoo.org/show_bug.cgi?id=142383 3008 30092006-09-28 Andrey Kiselev <[email protected]> 3010 3011 * libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple 3012 vulnerabilities, as per Gentoo bug (): 3013 3014 http://bugs.gentoo.org/show_bug.cgi?id=142383 3015 30162006-09-27 Frank Warmerdam <[email protected]> 3017 3018 * libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing 3019 encoding and decoding on the same read-write TIFF handle. The LZW 3020 code can now maintain encode and decode state at the same time. The 3021 ZIP code will switch back and forth as needed. 3022 http://bugzilla.remotesensing.org/show_bug.cgi?id=757 3023 30242006-09-20 Frank Warmerdam <[email protected]> 3025 3026 * libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and 3027 tif_config.vc.h for easier identification by folks using an IDE. 3028 30292006-07-25 Frank Warmerdam <[email protected]> 3030 3031 * tif_msdos.c: Avoid handle leak for failed opens. c/o Thierry Pierron 3032 30332006-07-19 Frank Warmerdam <[email protected]> 3034 3035 * tif_dirwrite.c: take care not to flush out buffer of strip/tile 3036 data in _TIFFWriteDirectory if TIFF_BEENWRITING not set. Relates 3037 to bug report by Peng Gao with black strip at bottom of images. 3038 30392006-07-12 Frank Warmerdam <[email protected]> 3040 3041 * tif_dirwrite.c: make sure to use uint32 for wordcount in 3042 TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields. 3043 It already seems to have been done for other field types. Needed 3044 for "tiffset" on files with geotiff ascii text. 3045 30462006-07-04 Bob Friesenhahn <[email protected]> 3047 3048 * {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c} 3049 (JBIGDecode): jbg_newlen is not available in older JBIG-KIT and 3050 its use does not appear to be required, so use it only when it is 3051 available. 3052 30532006-06-24 Andrey Kiselev <[email protected]> 3054 3055 * libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961). 3056 3057 * libtiff/tif_dirread.c: Move IFD fetching code in the separate 3058 function TIFFFetchDirectory() avoiding code duplication in 3059 TIFFReadDirectory() and TIFFReadCustomDirectory(). 3060 30612006-06-19 Frank Warmerdam <[email protected]> 3062 3063 * tools/tiff2pdf.c: Fix handling of -q values. 3064 http://bugzilla.remotesensing.org/show_bug.cgi?id=587 3065 30662006-06-17 Frank Warmerdam <[email protected]> 3067 3068 * tif_readdir.c: Added case in EstimateStripByteCounts() for tiled 3069 files. Modified TIFFReadDirectory() to not invoke 3070 EstimateStripByteCounts() for case where entry 0 and 1 are unequal 3071 but one of them is zero. 3072 http://bugzilla.remotesensing.org/show_bug.cgi?id=1204 3073 30742006-06-08 Andrey Kiselev <[email protected]> 3075 3076 * libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping 3077 checking code in the separate function TIFFCheckDirOffset(). 3078 3079 * libtiff/tif_aux.c: Added _TIFFCheckRealloc() function. 3080 3081 * tools/tiffcmp.c: Fixed floating point comparison logic as per bug 3082 3083 http://bugzilla.remotesensing.org/show_bug.cgi?id=1191 3084 3085 * libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug 3086 3087 http://bugzilla.remotesensing.org/show_bug.cgi?id=1194 3088 3089 * tools/tiff2pdf.c: Fixed buffer overflow condition in 3090 t2p_write_pdf_string() as per bug 3091 3092 http://bugzilla.remotesensing.org/show_bug.cgi?id=1196 3093 30942006-06-07 Andrey Kiselev <[email protected]> 3095 3096 * {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added 3097 support for JBIG compression scheme (34661 code) contributed by Lee 3098 Howard. As per bug 3099 3100 http://bugzilla.remotesensing.org/show_bug.cgi?id=896 3101 3102 * configure, configure.ac: OJPEG support enabled by default. 3103 3104 * contrib/ojpeg/: Removed. New OJPEG support does not need this patch. 3105 31062006-06-03 Bob Friesenhahn <[email protected]> 3107 3108 * libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in 3109 TIFFPrintDirectory(). Joris Van Damme authored the fix. 3110 31112006-04-21 Andrey Kiselev <[email protected]> 3112 3113 * tools/tiff2pdf.c: Unified line ending characters (always use '\n') 3114 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163 3115 3116 * README.vms, Makefile.am, configure.com, libtiff/{Makefile.am, 3117 tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}: 3118 Added support for OpenVMS by Alexey Chupahin, [email protected]. 3119 31202006-04-20 Andrey Kiselev <[email protected]> 3121 3122 * tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}: 3123 Properly set the binary mode for stdin stream as per bug 3124 http://bugzilla.remotesensing.org/show_bug.cgi?id=1141 3125 3126 * man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1, 3127 raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1, 3128 tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1, tiffdump.1, tiffgt.1, 3129 tiffset.1}: Improvements in page formatting as per bug 3130 http://bugzilla.remotesensing.org/show_bug.cgi?id=1140 3131 3132 * html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed 3133 typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139 3134 31352006-04-18 Frank Warmerdam <[email protected]> 3136 3137 * nmake.opt: use /EHsc for VS2005 compatibility. Also define 3138 _CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005. 3139 31402006-04-12 Joris Van Damme <[email protected]> 3141 3142 * libtiff/tif_getimage.c: Added support for planarconfig separate 3143 non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1]) 3144 31452006-04-11 Joris Van Damme <[email protected]> 3146 3147 * libtiff/tif_getimage.c: Revision of all RGB(A) put routines 3148 - Conversion of unassociated alpha to associated alpha now done with 3149 more performant LUT, and calculation more correct 3150 - Conversion of 16bit data to 8bit data now done with 3151 more performant LUT, and calculation more correct 3152 - Bugfix of handling of 16bit RGB with unassociated alpha 3153 31542006-04-11 Joris Van Damme <[email protected]> 3155 3156 * libtiff/tif_getimage.c: 3157 - When there is no alpha, gtTileSeparate and gtStripSeparate allocated 3158 buffer for alpha strile and filled it, only to never read it back. 3159 Removed allocation and fill. 3160 - Minor rename of vars in gtTileSeparate and gtStripSeparate 3161 anticipating planned functionality extension 3162 31632006-04-08 Joris Van Damme <[email protected]> 3164 3165 * libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase 3166 and pickTileSeparateCase to PickSeparateCase as both work on strips as 3167 well 3168 3169 * libtiff/tif_getimage.c: moved img->get selection from 3170 TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create 3171 logical hook for planned functionality extension 3172 31732006-04-08 Joris Van Damme <[email protected]> 3174 3175 * libtiff/tif_ojpeg.c: resolved memory leak that was a consequence 3176 of inappropriate use of jpeg_abort instead of jpeg_destroy 3177 31782006-04-07 Joris Van Damme <[email protected]> 3179 3180 * libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in 3181 gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour 3182 on subsampled images - this ought to get sorted when we feel brave 3183 enough to replace TIFFScanlineSize alltogether 3184 3185 * libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip 3186 31872006-04-04 Joris Van Damme <[email protected]> 3188 3189 * libtiff/tiffio.h: added new type tstrile_t 3190 3191 * libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips 3192 to new tstrile_t, types of td_stripoffset and td_stripbytecount to 3193 toff_t* 3194 3195 * libtiff/tif_ojpeg.c: totally new implementation 3196 3197 * libtiff/tif_dirread.c: added several hacks to suit new support of 3198 OJPEG 3199 3200 * libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling 3201 of OJPEG images in favor of tif_getimage.c native handling of 3202 YCbCr and desubsampling 3203 32042006-03-29 Frank Warmerdam <[email protected]> 3205 3206 * libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric 3207 interpretation causes the "upsampled" flag to be recomputed. Fixes 3208 peculiar bug where photometric flag had to be set before jpegcolormode 3209 flag. 3210 32112006-03-25 Joris Van Damme <[email protected]> 3212 3213 * libtiff/tif_jpeg.c: strip size related bugfix in encode raw 3214 3215 * libtiff/tif_strip.c: temporarilly added two new versions of 3216 TIFFScanlineSize 3217 - TIFFNewScanlineSize: proposed new version, after all related 3218 issues and side-effects are sorted out 3219 - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change 3220 This needs further sorting out. 3221 32222006-03-25 Joris Van Damme <[email protected]> 3223 3224 * contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size 3225 of last truncated strip data to TIFFWriteEncodedStrip 3226 32272006-03-25 Joris Van Damme <[email protected]> 3228 3229 * libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw 3230 32312006-03-25 Joris Van Damme <[email protected]> 3232 3233 * libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile 3234 3235 * libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile 3236 3237 * libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to 3238 prepare the path for new tif_ojpeg.c 3239 32402006-03-23 Andrey Kiselev <[email protected]> 3241 3242 * libtiff 3.8.2 released. 3243 3244 * tools/Makefile.am: Use runtime paths linker flags when rpath 3245 option enabled. 3246 32472006-03-21 Andrey Kiselev <[email protected]> 3248 3249 * libtiff/libtiff.def: Added missed exports as per bug 3250 http://bugzilla.remotesensing.org/attachment.cgi?id=337 3251 3252 * contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc, 3253 tools/Makefile.vc: Makefiles improvements as per bug 3254 http://bugzilla.remotesensing.org/show_bug.cgi?id=1128 3255 3256 * nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h}, 3257 tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions 3258 usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127 3259 3260 * libtiff/tif_strip.c: Take subsampling in account when calculating 3261 TIFFScanlineSize(). 3262 3263 * tools/tiffcp.c: Do not set RowsPerStrip bigger than image length. 3264 32652006-03-17 Andrey Kiselev <[email protected]> 3266 3267 * tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug 3268 http://bugzilla.remotesensing.org/show_bug.cgi?id=1125 3269 3270 * tools/fax2ps.c: Fixed reading the input stream from stdin as per bug 3271 http://bugzilla.remotesensing.org/show_bug.cgi?id=1124 3272 32732006-03-16 Andrey Kiselev <[email protected]> 3274 3275 * libtiff/tiffiop.h: Added decalration for 3276 _TIFFSetDefaultCompressionState(). 3277 3278 * libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c, 3279 tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all 3280 codec cleanup methods. As per bug 3281 3282 http://bugzilla.remotesensing.org/show_bug.cgi?id=1120 3283 32842006-03-15 Andrey Kiselev <[email protected]> 3285 3286 * libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As 3287 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119 3288 3289 * tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength. 3290 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110 3291 3292 * libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro 3293 removed; move here the STRIP_SIZE_DEFAULT macro definition. 3294 3295 * libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT 3296 macro definition. 3297 3298 * libtiff/tif_dir.c: Use double type instead of dblparam_t. 3299 33002006-03-14 Andrey Kiselev <[email protected]> 3301 3302 * libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence 3303 in TIFFReadDirectory, because it is always set at the start of 3304 function and we allow TIFFs without that tag set. 3305 33062005-03-13 Andrey Kiselev <[email protected]> 3307 3308 * libtiff 3.8.1 released. 3309 33102006-03-07 Andrey Kiselev <[email protected]> 3311 3312 * libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray() 3313 function as per bug 3314 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3315 3316 * libtiff/tif_dirread.c: More wise check for integer overflow 3317 condition as per bug 3318 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3319 3320 * libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}: 3321 Properly restore setfield/getfield methods in cleanup functions. As 3322 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3323 33242006-03-03 Andrey Kiselev <[email protected]> 3325 3326 * libtiff/{tif_predict.c, tif_predict.h}: Added new function 3327 TIFFPredictorCleanup() to restore parent decode/encode/field methods. 3328 3329 * libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use 3330 TIFFPredictorCleanup() in codec cleanup methods. As per bug 3331 3332 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3333 3334 * libtiff/tif_dirread.c: Fixed integer overflow condition in 3335 TIFFFetchData() function. As per bug 3336 3337 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3338 33392006-03-01 Andrey Kiselev <[email protected]> 3340 3341 * libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the 3342 TIFFSetField() method, not directly. As per bug 3343 3344 http://bugzilla.remotesensing.org/show_bug.cgi?id=1043 3345 3346 * tools/ppm2tiff.c: Added support for PBM files as per bug 3347 http://bugzilla.remotesensing.org/show_bug.cgi?id=1044 3348 33492006-02-27 Andrey Kiselev <[email protected]> 3350 3351 * libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline() 3352 to avoid crash as per bug 3353 3354 http://bugzilla.remotesensing.org/show_bug.cgi?id=1081. 3355 33562006-02-26 Andrey Kiselev <[email protected]> 3357 3358 * tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and 3359 t2p_sample_rgba_to_rgb() was used in place of each other, that was 3360 resulted in problems with RGBA images with associated alpha. 3361 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097 3362 33632006-02-23 Andrey Kiselev <[email protected]> 3364 3365 * libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per 3366 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3367 3368 * libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER, 3369 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE 3370 tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3371 3372 * tools/tiff2ps.c: Properly scale all the pages when converting 3373 multipage TIFF with /width/height/center options set. As per bug 3374 3375 http://bugzilla.remotesensing.org/show_bug.cgi?id=1080 3376 33772006-02-15 Andrey Kiselev <[email protected]> 3378 3379 * tools/tiff2pdf.c: Do not create output file until all option checks 3380 will be done. As per bug 3381 3382 http://bugzilla.remotesensing.org/show_bug.cgi?id=1072 3383 3384 * tools/bmp2tiff.c: Added ability to create multipage TIFFs from the 3385 list of input files as per bug: 3386 3387 http://bugzilla.remotesensing.org/show_bug.cgi?id=1077 3388 33892006-02-09 Andrey Kiselev <[email protected]> 3390 3391 * libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per 3392 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063. 3393 3394 * tools/tiffgt.c: Avoid crashing in case of image unsupported by 3395 TIFFRGBAImage interface. 3396 3397 * libtiff/tif_color.c: Avoid overflow in case of wrong input as per 3398 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065. 3399 34002006-02-07 Frank Warmerdam <[email protected]> 3401 3402 * tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG 3403 compressed TIFF files, per submission from Dan Cobra. 3404 34052006-02-07 Andrey Kiselev <[email protected]> 3406 3407 * libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly 3408 cast values to avoid warnings. As per bug 3409 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3410 3411 * libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when 3412 appropriate. As per bug 3413 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3414 3415 * libtiff/tif_aux.c: Fixed type of temporary variable in 3416 _TIFFCheckMalloc() as per bug 3417 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3418 34192006-02-06 Andrey Kiselev <[email protected]> 3420 3421 * libtiff/tif_aux.c: Return static array when fetching default 3422 YCbCrCoefficients (another problem, reported a the 3423 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry). 3424 34252006-02-03 Andrey Kiselev <[email protected]> 3426 3427 * libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints, 3428 YCbCrSubsampling and DotRange tags as per bugs 3429 3430 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 3431 http://bugzilla.remotesensing.org/show_bug.cgi?id=1034 3432 3433 * libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of 3434 _TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug 3435 3436 http://bugzilla.remotesensing.org/show_bug.cgi?id=1026. 3437 34382006-01-23 Andrey Kiselev <[email protected]> 3439 3440 * libtool related stuff updated from the 2.1a branch. 3441 34422006-01-11 Frank Warmerdam <[email protected]> 3443 3444 * tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff, 3445 tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works 3446 properly as per bug: 3447 http://bugzilla.remotesensing.org/show_bug.cgi?id=1025 3448 34492006-01-09 Bob Friesenhahn <[email protected]> 3450 3451 * configure.ac: Fix with_default_strip_size comparison as reported 3452 by Norihiko Murase. 3453 34542006-01-08 Bob Friesenhahn <[email protected]> 3455 3456 * test/Makefile.am (LIBTIFF): Due to linking against libtiff 3457 incorrectly, tests were not actually testing the uninstalled 3458 libtiff. Now they are. 3459 34602006-01-04 Andrey Kiselev <[email protected]> 3461 3462 * libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE, 3463 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount 3464 should be uint32 value. 3465 34662006-01-02 Bob Friesenhahn <[email protected]> 3467 3468 * html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can 3469 be used if build directory is not the same as source directory. 3470 * man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented 3471 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET, 3472 and re-sorted tag names in alphabetical order. 3473 34742005-12-29 Andrey Kiselev <[email protected]> 3475 3476 * libtiff 3.8.0 released. 3477 34782005-12-28 Bob Friesenhahn <[email protected]> 3479 3480 * tools/bmp2tiff.c (main): Fixed warning regarding returning 3481 inconsistent types from a condition. 3482 * tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf 3483 format. 3484 * tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs. 3485 34862005-12-28 Joris Van Damme <[email protected]> 3487 3488 * html/{index.html, support.hml, libtiff.html}: Cleaned up HTML 3489 34902005-12-27 Andrey Kiselev <[email protected]> 3491 3492 * libtiff/tiffio.h: Added VC_EXTRALEAN definition before including 3493 windows.h, to reduce the compile time. 3494 34952005-12-26 Bob Friesenhahn <[email protected]> 3496 3497 * libtiff/tif_jpeg.c: Improve compilation under MinGW. 3498 34992005-12-26 Andrey Kiselev <[email protected]> 3500 3501 * libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}: 3502 tiffFieldInfo and exifFieldInfo arrays definitions moved back to 3503 tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo() 3504 private functions to retrieve FieldInfo arrays. 3505 35062005-12-24 Bob Friesenhahn <[email protected]> 3507 3508 * html/build.html: Added some additional instructions for when 3509 building using MSVC under Windows. Also fixed two HTML syntax 3510 errors and used HTML Tidy to tidy up the HTML syntax and 3511 formatting. 3512 35132005-12-24 Andrey Kiselev <[email protected]> 3514 3515 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c, 3516 tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and 3517 StoNits tags custom. 3518 35192005-12-23 Andrey Kiselev <[email protected]> 3520 3521 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make 3522 WhitePoint tag custom. 3523 3524 * libtiff/{tif_dir.h, tiff.h}: More EXIF tags added. 3525 35262005-12-23 Joris Van Damme <[email protected]> 3527 3528 * libtiff/tiffio.h: fixed typo that potentially resulted in 3529 redefininition of USE_WIN32_FILEIO 3530 3531 * libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning 3532 calls in core LibTiff. 3533 35342005-12-21 Andrey Kiselev <[email protected]> 3535 3536 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC, 3537 Photoshop and ICCProfile tags custom. 3538 35392005-12-21 Joris Van Damme <[email protected]> 3540 3541 * libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling 3542 newer code to get context indicator in error handler and still 3543 remain compatible with older code: Done TIFFError calls everywhere 3544 except in tools 3545 35462005-12-20 Andrey Kiselev <[email protected]> 3547 3548 * tools/tiffcp.c: Added many error reporting messages; fixed integer 3549 overflow as per bug 3550 3551 http://bugzilla.remotesensing.org/show_bug.cgi?id=789 3552 35532005-12-16 Frank Warmerdam <[email protected]> 3554 3555 * contrib/addtiffo/*: Major upgrade by Joris to support subsampled 3556 YCbCr images in jpeg compressed TIFF files. 3557 35582005-12-14 Andrey Kiselev <[email protected]> 3559 3560 * tools/tiffcp.c: Return non-zero status when reading fails (again). 3561 35622005-12-13 Andrey Kiselev <[email protected]> 3563 3564 * tools/tiffcp.c: Return non-zero status when reading fails. 3565 35662005-12-12 Andrey Kiselev <[email protected]> 3567 3568 * libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags. 3569 35702005-12-09 Andrey Kiselev <[email protected]> 3571 3572 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag 3573 custom. 3574 3575 * tools/tiffinfo.c: Print EXIF directory contents if exist. 3576 3577 * libtiff/tiff.h: Few EXIF tag numbers added. 3578 3579 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c, 3580 tiffio.h}: Preliminary support to read custom directories. New 3581 functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory(). 3582 35832005-12-07 Andrey Kiselev <[email protected]> 3584 3585 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}: 3586 More work to implement custom directory read support. 3587 3588 * libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h, 3589 tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite 3590 tags custom. 3591 35922005-12-05 Andrey Kiselev <[email protected]> 3593 3594 * libtiff/tif_dirread.c: One more workaround for broken 3595 StripByteCounts tag. Handle the case when StripByteCounts array filled 3596 with completely wrong values. 3597 35982005-11-30 Andrey Kiselev <[email protected]> 3599 3600 * libtiff/tif_dirinfo.c: Release file descriptor in case of failure 3601 in the TIFFOpenW() function as per bug 3602 3603 http://bugzilla.remotesensing.org/show_bug.cgi?id=1003 3604 3605 * libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind() 3606 functions as per bug 3607 3608 http://bugzilla.remotesensing.org/show_bug.cgi?id=1008 3609 36102005-11-20 Frank Warmerdam <[email protected]> 3611 3612 * tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support 3613 for MS MDI format. 3614 http://bugzilla.remotesensing.org/show_bug.cgi?id=1002 3615 3616 * .cvsignore: many files added, and a few update according 3617 to suggestion of Brad HArds on tiff mailing list. 3618 36192005-11-03 Frank Warmerdam <[email protected]> 3620 3621 * libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory 3622 public. 3623 36242005-10-31 Andrey Kiselev <[email protected]> 3625 3626 * tools/fax2tiff.c: Properly calculate sizes of temporary arrays 3627 as per bug 3628 3629 http://bugzilla.remotesensing.org/show_bug.cgi?id=943 3630 3631 * tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter 3632 as per bug 3633 3634 http://bugzilla.remotesensing.org/show_bug.cgi?id=944 3635 3636 * tools/tiffdump.c: Fixed typeshift and typemask arrays initialization 3637 problem as per bug 3638 3639 http://bugzilla.remotesensing.org/show_bug.cgi?id=946 3640 3641 * tools/bmp2tiff.c: Fixed possible integer overflow error as per bug 3642 3643 http://bugzilla.remotesensing.org/show_bug.cgi?id=965 3644 3645 * libtiff/tif_dirinfo.c: Make XResolution, YResolution and 3646 ResolutionUnit tags modifiable during write process. As per bug 3647 3648 http://bugzilla.remotesensing.org/show_bug.cgi?id=977 3649 3650 * tools/tiffsplit.c: Copy fax related fields over splitted parts 3651 as per bug 3652 3653 http://bugzilla.remotesensing.org/show_bug.cgi?id=983 3654 36552005-10-21 Frank Warmerdam <[email protected]> 3656 3657 * tif_dirread.c: Don't try and split single strips into "0" strips 3658 in ChopUpSingleUncompressedStrip. This happens in some degenerate 3659 cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff) 3660 36612005-10-20 Joris Van Damme <[email protected]> 3662 3663 * tif_fax3.c: changed 'at scanline ...' style warning/errors 3664 with incorrect use of tif_row, to 'at line ... of 3665 strip/tile ...' style 3666 36672005-10-15 Frank Warmerdam <[email protected]> 3668 3669 * tif_write.c: fixed setting of planarconfig as per bug report 3670 on the mailing list from Joris. 3671 36722005-10-07 Andrey Kiselev <[email protected]> 3673 3674 * configure.ac, configure, nmake.opt, libtiff/{tif_config.h, 3675 tif_dirread.c}: Make the default strip size configurable via the 3676 --with-default-strip-size and STRIP_SIZE_DEFAULT options. 3677 36782005-09-30 Bob Friesenhahn <[email protected]> 3679 3680 * html/support.html: Fixed link to documentation on Greg Ward's 3681 LogLuv TIFF format. 3682 36832005-09-28 Andrey Kiselev <[email protected]> 3684 3685 * tools/tiffdump.c: Fixed crash when reading malformed tags. 3686 36872005-09-20 Andrey Kiselev <[email protected]> 3688 3689 * tools/tiff2pdf.c: Added missed 'break' statement as per bug 3690 http://bugzilla.remotesensing.org/show_bug.cgi?id=932 3691 36922005-09-12 Andrey Kiselev <[email protected]> 3693 3694 * libtiff 3.7.4 released. 3695 3696 * {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch 3697 from Patrick Welche (all scripts moved in the 'config' and 'm4' 3698 directories). 3699 37002005-09-12 Frank Warmerdam <[email protected]> 3701 3702 * libtiff/tif_open.c: reintroduce seek to avoid problem on solaris. 3703 37042005-09-05 Frank Warmerdam <[email protected]> 3705 3706 * libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV 3707 also set it to NULL to avoid double free when re-setting custom 3708 string fields as per: 3709 3710 http://bugzilla.remotesensing.org/show_bug.cgi?id=922 3711 37122005-08-12 Frank Warmerdam <[email protected]> 3713 3714 * libtiff/tif_print.c: avoid signed/unsigned warning. 3715 3716 * libtiff/tif_dirread.c: removed unused variable. 3717 37182005-07-30 Frank Warmerdam <[email protected]> 3719 3720 * libtiff/tif_dir.c: Fixed up support for swapping "double complex" 3721 values (128 bits as 2 64 bits doubles). GDAL gcore tests now 3722 pass on bigendian (macosx) system. 3723 37242005-07-28 Andrey Kiselev <[email protected]> 3725 3726 * libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename 3727 CheckMalloc() function to _TIFFCheckMalloc() and make it available 3728 globally as an internal helper routine. 3729 37302005-07-27 Andrey Kiselev <[email protected]> 3731 3732 * libtiff/tif_dir.c: More improvements in the "pass by value" part of 3733 the custom tags handling code. 3734 37352005-07-26 Andrey Kiselev <[email protected]> 3736 3737 * libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to 3738 SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples() 3739 function, use TIFFFetchNormalTag() instead as per bug 3740 3741 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3742 3743 Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag() 3744 instead. 3745 3746 * libtiff/tiffconf.h.in: One more attempt to fix the AIX bug 3747 3748 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 3749 37502005-07-25 Andrey Kiselev <[email protected]> 3751 3752 * libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays. 3753 3754 * tools/tiffdump.c: Added support for TIFF_IFD datatype. 3755 37562005-07-21 Andrey Kiselev <[email protected]> 3757 3758 * libtiff/tif_write.c: Do not check the PlanarConfiguration field in 3759 the TIFFWriteCheck() function in case of single band images (as per 3760 TIFF spec). 3761 37622005-07-12 Andrey Kiselev <[email protected]> 3763 3764 * SConstruct, libtiff/SConstruct: Added the first very preliminary 3765 support for SCons software building tool (http://www.scons.org/). 3766 This is experimental infrastructure and it will exist along with the 3767 autotools mechanics. 3768 37692005-07-07 Andrey Kiselev <[email protected]> 3770 3771 * port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from 3772 the NetBSD source tree (the old 4-clause BSD license changed to 3773 the new 3-clause one). 3774 3775 * configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind() 3776 replacement module. 3777 3778 * port/dummy.c: Make the dummy function static. 3779 37802005-07-06 Andrey Kiselev <[email protected]> 3781 3782 * tools/tiffcp.c: Fixed WhitePoint tag copying. 3783 3784 * libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}: 3785 Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera, 3786 ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom. 3787 37882005-07-04 Andrey Kiselev <[email protected]> 3789 3790 * libtiff 3.7.3 released. 3791 3792 * configure, configure.ac: Do not use empty -R option when linking 3793 with --enable-rpath. 3794 37952005-07-01 Andrey Kiselev <[email protected]> 3796 3797 * libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid 3798 reading the first IFD when needed. As per bug 3799 3800 http://bugzilla.remotesensing.org/show_bug.cgi?id=875 3801 3802 * libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side 3803 effects. 3804 38052005-06-23 Andrey Kiselev <[email protected]> 3806 3807 * tools/tiff2pdf.c: Print two characters per loop in the 3808 t2p_write_pdf_trailer(). As per bug 3809 3810 http://bugzilla.remotesensing.org/show_bug.cgi?id=594 3811 3812 * tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As 3813 per bug 3814 3815 http://bugzilla.remotesensing.org/show_bug.cgi?id=844 3816 3817 * acinclude.m4: Updated to latest OpenGL test macros versions. 3818 3819 * libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler 3820 platform. As per bug 3821 3822 http://bugzilla.remotesensing.org/show_bug.cgi?id=855 3823 38242005-06-14 Andrey Kiselev <[email protected]> 3825 3826 * libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits 3827 and YClipPathUnits tags. 3828 38292005-06-07 Andrey Kiselev <[email protected]> 3830 3831 * contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size; 3832 use pixel sized shift in contigous case. 3833 38342005-06-06 Andrey Kiselev <[email protected]> 3835 3836 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}: 3837 Make overviews working for contiguos images. 3838 38392005-06-03 Andrey Kiselev <[email protected]> 3840 3841 * libtiff/tif_open.c: Replace runtime endianess check with the compile 3842 time one. 3843 3844 * libtiff/tif_predict.c: Floating point predictor now works on 3845 big-endian hosts. 3846 38472005-06-01 Andrey Kiselev <[email protected]> 3848 3849 * libtiff/tif_dir.c: Use _TIFFsetString() function when read custom 3850 ASCII values. 3851 3852 * libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make 3853 DocumentName, Artist, HostComputer, ImageDescription, Make, Model, 3854 Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and 3855 TargetPrinter tags custom. 3856 3857 * libtiff/tif_jpeg.c: Cleanup the codec state depending on 3858 TIFF_CODERSETUP flag (to fix memry leaks). 3859 3860 * libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after 3861 allocating. 3862 38632005-05-26 Andrey Kiselev <[email protected]> 3864 3865 * configure.ac, libtiff/Makefile.am: Added workaround for 3866 OpenBSD/MirOS soname problem as per bug 3867 3868 http://bugzilla.remotesensing.org/show_bug.cgi?id=838 3869 3870 * libtiff/tif_dirwrite.c: Use tdir_count when calling 3871 TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as 3872 per bug 3873 3874 http://bugzilla.remotesensing.org/show_bug.cgi?id=845 3875 38762005-05-25 Andrey Kiselev <[email protected]> 3877 3878 * tools/ppm2tiff.c: Fixed format string when read PPM file header with 3879 the fscanf() function. As per bug 3880 3881 http://bugzilla.remotesensing.org/show_bug.cgi?id=861 3882 3883 * libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns 3884 uint16 array when fetching the BYTE and SBYTE filds, so we should 3885 consider result as pointer to uint16 array and not as array of chars. 3886 As per bug 3887 3888 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3889 3890 * libtiff/tif_dir.c: More efficient custom tags retrieval as per bug 3891 3892 http://bugzilla.remotesensing.org/show_bug.cgi?id=830 3893 3894 * libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share 3895 mode in CreateFile() call as per bug 3896 3897 http://bugzilla.remotesensing.org/show_bug.cgi?id=829 3898 3899 * libtiff/Makefile.am: Fixed parallel compilation of the libtiff and 3900 libtiffxx libraries as per bug 3901 3902 http://bugzilla.remotesensing.org/show_bug.cgi?id=826 3903 3904 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with 3905 GDAL. 3906 39072005-05-23 Frank Warmerdam <[email protected]> 3908 3909 * libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with 3910 JPEG encoded TIFF files. Pre-allocate lots of space for jpegtables 3911 in directory. 3912 39132005-05-22 Frank Warmerdam <[email protected]> 3914 3915 * libtiff/tif_dirread.c: Changed the code that computes 3916 stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is 3917 zero. This is a common case with GDAL indicating a "null" tile/strip. 3918 39192005-05-17 Andrey Kiselev <[email protected]> 3920 3921 * tools/tiffsplit.c: Check for JPEGTables tag presence before copying. 3922 39232005-05-06 Frank Warmerdam <[email protected]> 3924 3925 * libtiff/tif_dirread.c: Applied similar change to 3926 TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys. 3927 3928 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 3929 3930 * libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw(). 3931 39322005-05-06 Andrey Kiselev <[email protected]> 3933 * tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly; 3934 added new option '-b' to use interpolation in output PDF files (Bruno 3935 Ledoux). 3936 39372005-05-05 Frank Warmerdam <[email protected]> 3938 3939 * libtiff/tif_dirread.c: Ensure that broken files with too many 3940 values in PerSampleShorts work ok instead of crashing. 3941 3942 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 3943 39442005-04-27 Andrey Kiselev <[email protected]> 3945 3946 * tools/tiffdither.c: Copy the PhotometricInterpretation tag from the 3947 input file. 3948 39492005-04-15 Andrey Kiselev <[email protected]> 3950 3951 * libtiff/tif_predict.c: Added ability to encode floating point 3952 predictor, as per TIFF Technical Note 3. 3953 39542005-04-14 Andrey Kiselev <[email protected]> 3955 3956 * libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode 3957 floating point predictor, as per TIFF Technical Note 3. 3958 39592005-04-13 Andrey Kiselev <[email protected]> 3960 3961 * libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}: 3962 Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to 3963 swap 24-bit floating point values. 3964 3965 * libtiff/tiff.h: Added predictor constants. 3966 39672005-04-08 Andrey Kiselev <[email protected]> 3968 3969 * libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate 3970 values in _TIFFVSetField() function. Inspired by the bug 3971 3972 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 3973 3974 * man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag 3975 as per bug 3976 3977 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 3978 39792005-03-30 Andrey Kiselev <[email protected]> 3980 3981 * libtiff/tif_open.c: Do not read header in case the output file 3982 should be truncated (Ron). 3983 3984 * libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead 3985 of bsearch() in _TIFFFindFieldInfoByName() function (Ron). 3986 3987 * libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron). 3988 39892005-03-22 Andrey Kiselev <[email protected]> 3990 3991 * configure.ac, libtiff/Makefile.am: Use libtool machinery to pass 3992 rpath option. 3993 39942005-03-21 Andrey Kiselev <[email protected]> 3995 3996 * libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom 3997 tags. 3998 39992005-03-18 Andrey Kiselev <[email protected]> 4000 4001 * libtiff/dirinfo.c: Added DNG tags. 4002 4003 * libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag 4004 handling code. 4005 4006 * libtiff/tiff.h: More comments; added missed DNG tag (LensInfo); 4007 added DNG 1.1.0.0 tags. 4008 4009 * tools/tif2pdf.c: Fixed problem with alpha channel handling as per 4010 bug 4011 4012 http://bugzilla.remotesensing.org/show_bug.cgi?id=794 4013 4014 * man/TIFFGetField.3tiff: Add a note about autoregistered tags. 4015 40162005-03-17 Andrey Kiselev <[email protected]> 4017 4018 * nmake.opt: Build with Win32 CRT library by default. 4019 4020 * tools/tiff2ps.c: Fixed typo in page size handling code. 4021 4022 * libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed 4023 by value. 4024 4025 * libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags. 4026 40272005-03-15 Andrey Kiselev <[email protected]> 4028 4029 * libtiff 3.7.2 released. 4030 40312005-03-09 Andrey Kiselev <[email protected]> 4032 4033 * tools/tiffcmp.c: Added ability to compare the 32-bit integer and 4034 floating point data; complain on unsupported bit depths. 4035 40362005-03-05 Andrey Kiselev <[email protected]> 4037 4038 * tif_stream.cxx: Use ios namespace instead of ios_base to support 4039 GCC 2.95. 4040 4041 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from 4042 Lee Howard for HylaFax DCS tag 4043 (see http://bugzilla.remotesensing.org/show_bug.cgi?id=771) 4044 40452005-03-04 Andrey Kiselev <[email protected]> 4046 4047 * configure, configure.ac: Use -rpath option instead of -R as per bug 4048 4049 http://bugzilla.remotesensing.org/show_bug.cgi?id=732 4050 4051 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee 4052 Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax 4053 software. As per bug 4054 4055 http://bugzilla.remotesensing.org/show_bug.cgi?id=771 4056 4057 * nmake.opt, html/build.html: Add more comments, change the config 4058 file organization a bit as per bug 4059 4060 http://bugzilla.remotesensing.org/show_bug.cgi?id=764 4061 4062 * tools/tiffcmp.c: Use properly sized buffer in short arrays comparison 4063 as per bug 4064 4065 http://bugzilla.remotesensing.org/show_bug.cgi?id=785 4066 40672005-03-03 Andrey Kiselev <[email protected]> 4068 4069 * libtiff/tif_dirread.c: More logic to guess missed strip size as per 4070 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705 4071 4072 * tools/fax2ps.c: Replace insecure mktemp() function with the 4073 tmpfile() as per bug 4074 4075 http://bugzilla.remotesensing.org/show_bug.cgi?id=786 4076 40772005-02-04 Andrey Kiselev <[email protected]> 4078 4079 * libtiff/tiff.h: Changed the int8 definition to be always signed char 4080 as per bug 4081 4082 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 4083 4084 * libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{} 4085 block as per bug 4086 4087 http://bugzilla.remotesensing.org/show_bug.cgi?id=763 4088 40892005-02-03 Bob Friesenhahn <[email protected]> 4090 4091 * tools/tiffgt.c: Fix problem on big-endian CPUs so that images 4092 display more correctly. Images display brighter than they should 4093 on a Sun workstation. 4094 40952005-02-03 Andrey Kiselev <[email protected]> 4096 4097 * libtiff/tif_dirread.c: Estimate strip size in case of wrong or 4098 suspicious values in the tags. As per bugs 4099 4100 http://bugzilla.remotesensing.org/show_bug.cgi?id=705 4101 4102 and 4103 4104 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 4105 4106 * tools/tiff2ps.c: Fixed problem with page sizes as per bug 4107 4108 http://bugzilla.remotesensing.org/show_bug.cgi?id=742 4109 41102005-01-31 Bob Friesenhahn <[email protected]> 4111 4112 * libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description. 4113 (TIFFTAG_TILELENGTH): Corrected description. 4114 41152005-01-30 Andrey Kiselev <[email protected]> 4116 4117 * configure.ac: Fixes for --with-docdir option as per bug 4118 4119 http://bugzilla.remotesensing.org/show_bug.cgi?id=759 4120 4121 * libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per 4122 bug 4123 4124 http://bugzilla.remotesensing.org/show_bug.cgi?id=756 4125 4126 * libtiff/tif_stream.cxx: Fixes for C++ stream interface from 4127 Michael Rinne and Edward Lam. 4128 41292005-01-15 Andrey Kiselev <[email protected]> 4130 4131 * configure.ac: Make the documentation directory location configurable 4132 via the --with-docdir option (as suggested by Jeremy C. Reed). 4133 4134 * libtiff/tif_color.c: Use double as the second argument of pow() 4135 function in TIFFCIELabToRGBInit(). As per bug 4136 4137 http://bugzilla.remotesensing.org/show_bug.cgi?id=741 4138 4139 * libtiff/tif_pixarlog.c: Avoid warnings when converting float to 4140 integer as per bug 4141 4142 http://bugzilla.remotesensing.org/show_bug.cgi?id=740 4143 4144 * libtiff/tif_getimage.c: Always fill the error message buffer in 4145 TIFFRGBAImageBegin() as per bug 4146 4147 http://bugzilla.remotesensing.org/show_bug.cgi?id=739 4148 41492005-01-12 Andrey Kiselev <[email protected]> 4150 4151 * libtiff/tif_jpeg.c: Added ability to read/write the fax specific 4152 TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME 4153 tags as per bug 4154 4155 http://bugzilla.remotesensing.org/show_bug.cgi?id=736 4156 4157 * libtiff/tif_win32.c: Fixed message formatting in functions 4158 Win32WarningHandler() and Win32ErrorHandler() as per bug 4159 4160 http://bugzilla.remotesensing.org/show_bug.cgi?id=735 4161 4162 * tools/tiff2ps.c: Interpret the -w and -h options independently. As 4163 per bug 4164 4165 http://bugzilla.remotesensing.org/show_bug.cgi?id=689 4166 41672005-01-11 Andrey Kiselev <[email protected]> 4168 4169 * libtiff/tiffio.h: Move the color conversion routines in the 'extern 4170 "C"' section as per bug 4171 4172 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 4173 4174 * libtiff/tiff.h: Restore back the workaround for AIX Visual Age C 4175 compiler to avoid double definition of BSD types as per bug 4176 4177 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 4178 4179 * libtiff/Makefile.am: Place the C++ stream API in the separate 4180 library called libtiffxx to avoid unneeded dependencies. Probably 4181 there will be more C++ API in the future. As per bugs 4182 4183 http://bugzilla.remotesensing.org/show_bug.cgi?id=733 4184 4185 and 4186 4187 http://bugzilla.remotesensing.org/show_bug.cgi?id=730 4188 41892005-01-05 Andrey Kiselev <[email protected]> 4190 4191 * tools/tiffdump.c: Fixed problem when read broken TIFFs with the 4192 wrong tag counts (Dmitry V. Levin, Martin Pitt). 4193 4194 * configure.ac: Replace --disable-c++ with the --disable-cxx option as 4195 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730 4196 41972004-12-25 Andrey Kiselev <[email protected]> 4198 4199 * libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled 4200 RGB-images as per bug 4201 4202 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 4203 4204 4205 * tools/tiffset.c: Convert character option to integer value as per 4206 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725 4207 42082004-12-20 Andrey Kiselev <[email protected]> 4209 4210 * libtiff 3.7.1 released. 4211 4212 * html/tiffset.1.html: Add missed manual page as per bug 4213 4214 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 4215 4216 * libtiff/tiff.h: Revert back libtiff data type definitions as per 4217 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687 4218 42192004-12-19 Andrey Kiselev <[email protected]> 4220 4221 * libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when 4222 checking for tag count in TIFFReadDirectory() function. As per bug 4223 4224 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 4225 4226 * libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in 4227 CheckMallock() function. 4228 4229 * libtiff/tif_getimage.c: Support for multiple-alpha-channelled 4230 RGB-images as per bug 4231 4232 http://bugzilla.remotesensing.org/show_bug.cgi?id=718 4233 42342004-12-15 Frank Warmerdam <[email protected]> 4235 4236 * libtiff/tif_getimage.c: #define A1 bracketing for clean build on 4237 SunPro compiler. 4238 42392004-12-11 Bob Friesenhahn <[email protected]> 4240 4241 * autogen.sh: aclocal and autoheader should be executed after 4242 libtoolize. Also add '-I .' to aclocal invocation to check 4243 current directory for macros. 4244 42452004-12-10 Andrey Kiselev <[email protected]> 4246 4247 * libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type 4248 as per bugs 4249 4250 http://bugzilla.remotesensing.org/show_bug.cgi?id=703 4251 4252 and 4253 4254 http://bugzilla.remotesensing.org/show_bug.cgi?id=704 4255 42562004-12-04 Andrey Kiselev <[email protected]> 4257 4258 * nmake.opt: Link with the user32.lib in windowed mode. As per bug 4259 4260 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 4261 4262 * libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed 4263 mode as per bug 4264 4265 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 4266 4267 * libtiff/tif_config.in.vc: Removed unneded definitions for 4268 read/open/close/lseek functions to fix the 4269 4270 http://bugzilla.remotesensing.org/show_bug.cgi?id=680 4271 42722004-12-03 Andrey Kiselev <[email protected]> 4273 4274 * libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore() 4275 call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore 4276 must be removed in the future, as it was never used properly. As per 4277 bug 4278 4279 http://bugzilla.remotesensing.org/show_bug.cgi?id=692 4280 42812004-11-30 Bob Friesenhahn <[email protected]> 4282 4283 * libtiff/tif_jpeg.c: Added a work-around in order to allow 4284 compilation with the heavily modified version of libjpeg delivered 4285 with Cygwin. 4286 42872004-11-29 Andrey Kiselev <[email protected]> 4288 4289 * libtiff/tif_dir.c: Properly handle tags, which have the uint32 4290 counts. As per bug 4291 4292 http://bugzilla.remotesensing.org/show_bug.cgi?id=693 4293 4294 * tools/fax2ps.c: Be able to extract the first page (#0). As per bug 4295 4296 http://bugzilla.remotesensing.org/show_bug.cgi?id=690 4297 42982004-11-28 Andrey Kiselev <[email protected]> 4299 4300 * libtiff/tif_unix.c: Make UNIX module compilable (and usable) 4301 on Windows. 4302 4303 * nmake.opt: Add missed DLLNAME variable. 4304 43052004-11-26 Frank Warmerdam <[email protected]> 4306 4307 * libtiff/makefile.vc: make it easier to rename the libtiff DLL. 4308 43092004-11-24 Andrey Kiselev <[email protected]> 4310 4311 * man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as 4312 per bug 4313 4314 http://bugzilla.remotesensing.org/show_bug.cgi?id=545 4315 4316 * man/tiffset.1: Added manual page for tiffset tool written by Jay 4317 Berkenbilt. As per bug 4318 4319 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 4320 43212004-11-23 Frank Warmerdam <[email protected]> 4322 4323 * libtiff/tif_error.c: fixed TIFFerror call to be TIFFError. 4324 43252004-11-21 Frank Warmerdam <[email protected]> 4326 4327 * html/document.html: Updated Adobe web links as per email from Joris. 4328 43292004-11-21 Andrey Kiselev <[email protected]> 4330 4331 * libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new 4332 file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to 4333 use C++ streams should #include <tiffio.hxx>. 4334 43352004-11-13 Andrey Kiselev <[email protected]> 4336 4337 * libtiff/tiff.h: Added Adobe DNG tags. 4338 4339 * libtiff/tif_win32.c: Typo fixed. 4340 4341 * libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to 4342 be compliant with the latest standard. Appropriate additions in 4343 makefiles now completed. 4344 43452004-11-11 Andrey Kiselev <[email protected]> 4346 4347 * tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the 4348 different tag types. As per bug 4349 4350 http://bugzilla.remotesensing.org/show_bug.cgi?id=600 4351 43522004-11-10 Andrey Kiselev <[email protected]> 4353 4354 * libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for 4355 YCbCr image which lacks that tag (noted by Hans Petter Selasky). 4356 43572004-11-09 Andrey Kiselev <[email protected]> 4358 4359 * libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky). 4360 43612004-11-07 Andrey Kiselev <[email protected]> 4362 4363 * libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface 4364 contributed by Edward Lam (see 4365 http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details). 4366 Though no changes in any makefiles yet. 4367 43682004-11-05 Frank Warmerdam <[email protected]> 4369 4370 * libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file 4371 is bad. This is the callers responsibility. 4372 http://bugzilla.remotesensing.org/show_bug.cgi?id=651 4373 43742004-11-05 Andrey Kiselev <[email protected]> 4375 4376 * libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW() 4377 function to work with the double byte strings (used to represent 4378 filenames in some locales). As per bug 4379 4380 http://bugzilla.remotesensing.org/show_bug.cgi?id=625 4381 4382 * libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and 4383 Compression tags of type LONG from broken TIFFS as per bug 4384 4385 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4386 4387 * libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC, 4388 the writecount should have uint32 type. As per bug 4389 4390 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4391 4392 * libtiff/tif_write.c: Fixed wrong if() statement in 4393 TIFFAppendToStrip() function as per bug 4394 4395 http://bugzilla.remotesensing.org/show_bug.cgi?id=660 4396 43972004-11-04 Andrey Kiselev <[email protected]> 4398 4399 * libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES 4400 field. The caller should supply a count when setting this field. As 4401 per bug 4402 4403 http://bugzilla.remotesensing.org/show_bug.cgi?id=648 4404 4405 * libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have 4406 uint32 count. Use this type everywhere. 4407 44082004-11-03 Frank Warmerdam <[email protected]> 4409 4410 * libtiff/tif_next.c: avoid use of u_long and u_char types. Bug 653. 4411 44122004-11-02 Frank Warmerdam <[email protected]> 4413 4414 * tools/tiff2rgba.c: removed extra newlines in usage message. 4415 44162004-10-30 Andrey Kiselev <[email protected]> 4417 4418 * libtiff/tif_dirwrite.c: Improvements in tag writing code. 4419 4420 * tools/tiff2ps.c: Fixed wrong variable data type when read Position 4421 tags (Tristan Hill). 4422 44232004-10-30 Frank Warmerdam <[email protected]> 4424 4425 * libtiff/tiffiop.h: added fallback definition of assert() if we 4426 don't have assert.h. 4427 44282004-10-29 Andrey Kiselev <[email protected]> 4429 4430 * libtiff/tif_fax3.c: Fixed case with the wrong decode routines 4431 choosing when the incorrect Group4Options tag set. As per bug 4432 4433 http://bugzilla.remotesensing.org/show_bug.cgi?id=323 4434 4435 * libtiff/tif_dirwrite.c: Fixed problem with passing count variable of 4436 wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in 4437 TIFFWriteNormalTag(). 4438 44392004-10-28 Andrey Kiselev <[email protected]> 4440 4441 * tools/tiff2ps.c: Fixed wrong variable data type when read Resolution 4442 tags (Peter Fales). 4443 4444 * tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions. 4445 44462004-10-28 Frank Warmerdam <[email protected]> 4447 4448 * tools/tiff2pdf.c: added casts to avoid warnings. 4449 4450 * libtiff/libtiff.def: Added several more entry points required 4451 to link fax2tiff.c against the DLL on windows. 4452 44532004-10-27 Andrey Kiselev <[email protected]> 4454 4455 * configure, configure.ac: Added --enable-rpath option to embed linker 4456 paths into library binary. 4457 44582004-10-26 Andrey Kiselev <[email protected]> 4459 4460 * tools/tiffset.c: Check the malloc return value (Dmitry V. Levin). 4461 4462 * libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed 4463 (Vladimir Nadvornik, Dmitry V. Levin). 4464 44652004-10-16 Andrey Kiselev <[email protected]> 4466 4467 * libtiff 3.7.0 released. 4468 44692004-10-15 Bob Friesenhahn <[email protected]> 4470 4471 * libtiff/tif_jpeg.c: There seems to be no need to include stdio.h 4472 in this file so its inclusion is removed. Including stdio.h 4473 sometimes incurs an INT32 typedef conflict between MinGW's 4474 basetsd.h and libjpeg's jmorecfg.h. 4475 44762004-10-15 Andrey Kiselev <[email protected]> 4477 4478 * man/bmp2tiff.1: Added manual page for bmp2tiff utility. 4479 44802004-10-13 Bob Friesenhahn <[email protected]> 4481 4482 * tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid 4483 conflict noticed under MinGW. 4484 * ltmain.sh: Fix for MinGW compilation. 4485 44862004-10-13 Frank Warmerdam <[email protected]> 4487 4488 * man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz. 4489 http://bugzilla.remotesensing.org/show_bug.cgi?id=635 4490 44912004-10-12 Andrey Kiselev <[email protected]> 4492 4493 * libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c, 4494 tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes 4495 properly (Dmitry V. Levin, Marcus Meissner). 4496 44972004-10-11 Andrey Kiselev <[email protected]> 4498 4499 * libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed 4500 to TIFF_IFD. 4501 45022004-10-10 Andrey Kiselev <[email protected]> 4503 4504 * tools/bmp2tif.c: Check the space allocation results. 4505 45062004-10-09 Andrey Kiselev <[email protected]> 4507 4508 * libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields 4509 of the TIFFDirectory structure with the 0 instead of -1 to avoid 4510 confusing integer overflows in TIFFTileRowSize() for striped images. 4511 4512 * tools/tiff2pdf.c: Fixed TransferFunction tag handling reported 4513 by Ross A. Finlayson. 4514 4515 * libtiff/tif_dir.c: Fixed custom tags handling as per bug 4516 4517 http://bugzilla.remotesensing.org/show_bug.cgi?id=629 4518 45192004-10-08 Frank Warmerdam <[email protected]> 4520 4521 * libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation 4522 of tif_fieldinfo. 4523 4524 http://bugzilla.remotesensing.org/show_bug.cgi?id=630 4525 45262004-10-04 Bob Friesenhahn <[email protected]> 4527 4528 * contrib/iptcutil/README: Added the missing README which goes 4529 along with iptcutil. 4530 45312004-10-03 Andrey Kiselev <[email protected]> 4532 4533 * libtiff/tif_compress.c: Improved error reporting in 4534 TIFFGetConfiguredCODECs() (Dmitry V. Levin). 4535 45362004-10-02 Andrey Kiselev <[email protected]> 4537 4538 * libtiff 3.7.0beta2 released. 4539 4540 * libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c, 4541 tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c, 4542 tif_pixarlog.c, tif_write.c}: Added checks for failed memory 4543 allocations and integer overflows (Dmitry V. Levin). 4544 4545 * libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added. 4546 45472004-10-01 Frank Warmerdam <[email protected]> 4548 4549 * libtiff/tif_open.c: added a more informative message if a BigTIFF 4550 file is opened. 4551 45522004-09-30 Frank Warmerdam <[email protected]> 4553 4554 * libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to 4555 TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info 4556 in the Adobe XMP Specification. 4557 45582004-09-29 Andrey Kiselev <[email protected]> 4559 4560 * libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of 4561 memset(). 4562 4563 * libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches 4564 from Dmitry V. Levin to fix possible integer overflow problems. 4565 45662004-09-28 Andrey Kiselev <[email protected]> 4567 4568 * libtiff/tif_getimage.c: Check for allocated buffers before clearing 4569 (Dmitry V. Levin). 4570 45712004-09-26 Andrey Kiselev <[email protected]> 4572 4573 * libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}: 4574 Optimize checking for the strip bounds. 4575 4576 * libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and 4577 TIFFRasterScanlineSize() functions report zero in the case of integer 4578 overflow now. Properly handle this case in TIFFReadDirectory() 4579 (patches from Dmitry V. Levin). 4580 45812004-09-25 Andrey Kiselev <[email protected]> 4582 4583 * libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8() 4584 macro where appropriate. 4585 4586 * tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as 4587 noted by Gennady Khokhorin. 4588 4589 * libtiff/tif_dirread.c: Always check the return values, returned 4590 by the _TIFFmalloc() (Dmitry V. Levin). 4591 4592 * libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array() 4593 functions (Dmitry V. Levin). 4594 4595 * libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}: 4596 Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(), 4597 TIFFGrowStrips() (found by Dmitry V. Levin). 4598 45992004-09-24 Andrey Kiselev <[email protected]> 4600 4601 * libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs() 4602 to get the list of configured codecs. 4603 4604 * libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from 4605 Dmitry V. Levin. 4606 46072004-09-23 Andrey Kiselev <[email protected]> 4608 4609 * libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix 4610 possible integer overflow in CheckMalloc() function. 4611 46122004-09-22 Andrey Kiselev <[email protected]> 4613 4614 * libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead 4615 of plain TIFFhowmany() where appropriate. 4616 46172004-09-21 Andrey Kiselev <[email protected]> 4618 4619 * libtiff/tif_getimage.c: Initialize arrays after space allocation. 4620 46212004-09-19 Andrey Kiselev <[email protected]> 4622 4623 * libtiff 3.7.0beta released. 4624 4625 * libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer 4626 overruns fixed, as noted by Chris Evans. 4627 46282004-09-14 Bob Friesenhahn <[email protected]> 4629 4630 * commit: Added a script to make it more convenient to commit 4631 updates. The CVS commit message is extracted from this ChangeLog 4632 file. 4633 46342004-09-14 Andrey Kiselev <[email protected]> 4635 4636 * configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c, 4637 tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c, 4638 tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c, 4639 tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c, 4640 tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h, 4641 tif_config.h.in, tiffiop.h}: 4642 Get rid of BSD data types (u_char, u_short, u_int, u_long). 4643 46442004-09-13 Bob Friesenhahn <[email protected]> 4645 4646 * libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP 4647 specification. Reference libtiff bug tracking system to submit 4648 private tag additions. 4649 46502004-09-12 Bob Friesenhahn <[email protected]> 4651 4652 * tools/tiffgt.c: Include "tif_config.h". 4653 4654 * configure.ac: Use AM_PROG_CC_C_O since it is now needed to build 4655 tiffgt. This results in the 'compile' script being added to the 4656 project. 4657 4658 * tools/Makefile.am (tiffgt_CFLAGS): Add extra build options 4659 required to find OpenGL headers necessary to build tiffgt. Also 4660 ensure that the libtiff that we built is used rather than some other 4661 libtiff installed on the system. 4662 46632004-09-12 Andrey Kiselev <[email protected]> 4664 4665 * configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT 4666 libraries. 4667 46682004-09-11 Bob Friesenhahn <[email protected]> 4669 4670 * configure.ac: Pass library configuration defines via 4671 tif_config.h rather than extending CPPFLAGS. Configure a 4672 libtiff/tiffconf.h in order to satisfy application requirements 4673 (not used by library build). Do not define _POSIX_C_SOURCE=2 since 4674 this causes failure to build on systems which properly respect 4675 this request. 4676 4677 * libtiff/tiffconf.h.in: New file to act as the template for the 4678 configured tiffconf.h 4679 4680 * libtiff/files.lst (HDRS): Install the configured tiffconf.h. 4681 46822004-09-10 Frank Warmerdam <[email protected]> 4683 4684 * html/internals.html: Split off a discussion of adding new tags 4685 into addingtags.html. 4686 46872004-09-10 Andrey Kiselev <[email protected]> 4688 4689 * test/{ascii_tag.c, long_tag.c}: Preliminary test suite added. 4690 4691 * tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug 4692 4693 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4694 4695 * libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting. 4696 4697 * libtiff/tif_dirread.c: Don't reject to read tags of the 4698 SamplesPerPixel size when the tag count is greater than number of 4699 samples as per bug 4700 4701 http://bugzilla.remotesensing.org/show_bug.cgi?id=576 4702 4703 * libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off 4704 defining int8/uint8/... etc. types. As per bug 4705 4706 http://bugzilla.remotesensing.org/show_bug.cgi?id=607 4707 47082004-09-09 Frank Warmerdam <[email protected]> 4709 4710 * tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files 4711 to avoid compile warnings about getopt() and a few other things. 4712 47132004-09-02 Andrey Kiselev <[email protected]> 4714 4715 * libtiff/tif_dirread.c: Use memcpy() function instead of pointer 4716 assigning magic in TIFFFetchFloat(). 4717 47182004-09-01 Andrey Kiselev <[email protected]> 4719 4720 * libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme 4721 to avoid requirement for tiffiop.h inclusion in some applications. See 4722 here 4723 4724 http://www.asmail.be/msg0054799560.html 4725 4726 for details. 4727 4728 * tools/fax2tiff.c: Use the new functions in the code. 4729 47302004-08-25 Andrey Kiselev <[email protected]> 4731 4732 * tools/tiff2pdf.c: Initialize arrays properly. 4733 4734 * tools/tiff2ps.c: Avoid zero division in setupPageState() function; 4735 properly initialize array in PSDataBW(). 4736 47372004-08-24 Andrey Kiselev <[email protected]> 4738 4739 * tools/tiff2pdf.c: More fixes for bug 4740 4741 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4742 4743 from Ross Finlayson. 4744 47452004-08-23 Andrey Kiselev <[email protected]> 4746 4747 * tools/tiff2ps.c: Fixed problem with uninitialized values. 4748 4749 * libtiff/tif_dir.c: Initialize tif_foundfield data member in the 4750 TIFFDefaultDirectory() (in addition to 2004-08-19 fix). 4751 4752 * tools/tiff2pdf.c: Fixed a bunch of problems as per bug 4753 4754 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4755 47562004-08-20 Andrey Kiselev <[email protected]> 4757 4758 * tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks 4759 that the input file has compression, photometric interpretation, 4760 etcetra, tags or if not than a more descriptive error is returned. 4761 4762 * libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the 4763 code, responsible for tag data type checking. 4764 47652004-08-19 Andrey Kiselev <[email protected]> 4766 4767 * libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static 4768 variable as per bug 4769 4770 http://bugzilla.remotesensing.org/show_bug.cgi?id=593 4771 47722004-08-16 Andrey Kiselev <[email protected]> 4773 4774 * tools/ras2tiff.c: Fixed issue with missed big-endian checks as per 4775 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586 4776 47772004-08-01 Andrey Kiselev <[email protected]> 4778 4779 * libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and 4780 config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc. 4781 47822004-07-24 Andrey Kiselev <[email protected]> 4783 4784 * libtiff/tif_lzw.c: LZW compression code is merged back from the 4785 separate package. All libtiff tools are updated to not advertise an 4786 abcence of LZW support. 4787 47882004-07-12 Andrey Kiselev <[email protected]> 4789 4790 * libtiff/tiffio.h: Revert thandle_t back to void* type. 4791 47922004-07-11 Andrey Kiselev <[email protected]> 4793 4794 * libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error 4795 messages, as suggested by Bernd Herd. 4796 47972004-07-03 Andrey Kiselev <[email protected]> 4798 4799 * libtiff/tif_dir.c: Call TIFFError() instead of producing warnings 4800 when setting custom tags by value. Reported by Eric Fieleke. 4801 48022004-06-14 Andrey Kiselev <[email protected]> 4803 4804 * tools/bmp2tiff.c: Add missed RawsPerStrip setting. 4805 48062004-06-08 Andrey Kiselev <[email protected]> 4807 4808 * tools/bmp2tiff.c: Added new utility to convert Windows BMP files 4809 into TIFFs. 4810 48112004-06-07 Andrey Kiselev <[email protected]> 4812 4813 * libtiff 3.7.0alpha released. 4814 48152004-06-06 Andrey Kiselev <[email protected]> 4816 4817 * libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid 4818 of ugly 64-bit hacks, replace them with the clever (autoconf based ) 4819 ones :-). 4820 4821 * libtiff/tiffio.h: Define thandle_t as int, not void* (may cause 4822 problems in 64-bit environment). 4823 48242004-06-05 Andrey Kiselev <[email protected]> 4825 4826 * tools/tiffset.c: tiffset now can set any libtiff supported tags. 4827 Tags can be supplied by the mnemonic name or number. 4828 4829 * libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new 4830 functions TIFFFindFieldInfoByName() and TIFFFieldWithName(). 4831 48322004-05-27 Andrey Kiselev <[email protected]> 4833 4834 * libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF 4835 markers as per bug 4836 4837 http://bugzilla.remotesensing.org/show_bug.cgi?id=581 4838 48392004-05-24 Andrey Kiselev <[email protected]> 4840 4841 * tools/tiffsplit.c: Don't forget to copy Photometric 4842 Interpretation tag. 4843 48442004-05-20 Andrey Kiselev <[email protected]> 4845 4846 * libtiff/{tif_open.c, tiffio.h}: New function added: 4847 TIFFIsBigEndian(). Function returns nonzero if given was file written 4848 in big-endian order. 4849 4850 * tools/tiffsplit.c: Fixed problem with unproperly written multibyte 4851 files. Now output files will be written using the same byte order 4852 flag as in the input image. See 4853 4854 http://bugzilla.remotesensing.org/show_bug.cgi?id=574 4855 4856 for details. 4857 48582004-05-19 Frank Warmerdam <[email protected]> 4859 4860 * libtiff/tif_print.c: added (untested) support for printing 4861 SSHORT, SLONG and SRATIONAL fields. 4862 4863 * tools/tiffcp.c: close output file on normal exit. 4864 48652004-05-17 Andrey Kiselev <[email protected]> 4866 4867 * libtiff/tif_fax3.c: Avoid reading CCITT compression options 4868 if compression type mismatches. See 4869 4870 http://bugzilla.remotesensing.org/show_bug.cgi?id=565 4871 48722004-04-30 Andrey Kiselev <[email protected]> 4873 4874 * libtiff/tif_strip.c: Never return 0 from the 4875 TIFFNumberOfStrips(). 4876 48772004-04-29 Andrey Kiselev <[email protected]> 4878 4879 * libtiff/tif_dirread.c: Workaround for broken TIFF writers which 4880 store single SampleFormat value for multisampled images. See 4881 4882 http://bugzilla.remotesensing.org/show_bug.cgi?id=562 4883 48842004-04-25 Andrey Kiselev <[email protected]> 4885 4886 * configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8, 4887 int16 and int32 types to avoid complains on some compilers. Details at 4888 4889 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 4890 48912004-04-20 Andrey Kiselev <[email protected]> 4892 4893 * tools/tiff2pdf.c: Fixed problem with unaligned access as per bug 4894 4895 http://bugzilla.remotesensing.org/show_bug.cgi?id=555 4896 48972004-04-14 Andrey Kiselev <[email protected]> 4898 4899 * libtiff/tif_write.c: Allow in-place updating of the compressed 4900 images (don't work properly with all codecs). For details see GDAL bug 4901 4902 http://bugzilla.remotesensing.org/show_bug.cgi?id=534 4903 49042004-04-06 Andrey Kiselev <[email protected]> 4905 4906 * libtiff/tif_jpeg.c: Workaround for wrong sampling factors used 4907 in the Intergarph JPEG compressed TIFF images as per bug: 4908 4909 http://bugzilla.remotesensing.org/show_bug.cgi?id=532 4910 49112004-04-04 Frank Warmerdam <[email protected]> 4912 4913 * libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails 4914 via bad2. 4915 49162004-03-26 Andrey Kiselev <[email protected]> 4917 4918 * tools/tiffcp.c: Properly set Photometric Interpretation in case of 4919 JPEG compression of grayscale images. 4920 4921 * tools/tiffcp.c: Don't emit warnings when Orientation tag does not 4922 present in the input image. 4923 49242004-03-19 Andrey Kiselev <[email protected]> 4925 4926 * {many}: The first attempt to switch to autotools. 4927 49282004-03-03 Andrey Kiselev <[email protected]> 4929 4930 * libtiff/tif_open.c: Use dummy mmap/munmap functions in 4931 TIFFClientOpen() when the appropriate client functions was not 4932 supplied by user. 4933 49342004-03-02 Frank Warmerdam <[email protected]> 4935 4936 * tools/ycbcr.c: fixed main() declaration as per: 4937 http://bugzilla.remotesensing.org/show_bug.cgi?id=513 4938 49392004-02-26 Andrey Kiselev <[email protected]> 4940 4941 * tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed 4942 images. Reported by Artem Mirolubov. 4943 4944 * libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED 4945 tag type in TIFFFetchNormalTag() as per bug 4946 4947 http://bugzilla.remotesensing.org/show_bug.cgi?id=508 4948 49492004-02-17 Frank Warmerdam <[email protected]> 4950 4951 * libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per: 4952 http://bugzilla.remotesensing.org/show_bug.cgi?id=494 4953 49542004-02-05 Andrey Kiselev <[email protected]> 4955 4956 * libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per 4957 bug 4958 4959 http://bugzilla.remotesensing.org/show_bug.cgi?id=483 4960 4961 But we need more work on fax codec to support update mode. 4962 49632004-01-30 Frank Warmerdam <[email protected]> 4964 4965 * libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck, 4966 TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by 4967 Scott Reynolds. 4968 49692004-01-29 Andrey Kiselev <[email protected]> 4970 4971 * libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS 4972 and TIFFTAG_INDEXED as per bug 4973 4974 http://bugzilla.remotesensing.org/show_bug.cgi?id=475 4975 4976 * libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is 4977 NULL before proceeding further as per bug 4978 4979 http://bugzilla.remotesensing.org/show_bug.cgi?id=474 4980 4981 Check results, returned by the TIFFFdOpen() before returning and close 4982 file if TIFFFdOpen() failed as per bug 4983 4984 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 4985 4986 * libtiff/tif_open.c: More fixes for 4987 4988 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 4989 49902004-01-28 Andrey Kiselev <[email protected]> 4991 4992 * libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate 4993 TIFFCleanup() from the TIFFClose() in order to fix the bug 4994 4995 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 4996 4997 * tools/tiffcp.c: Fixed problem with wrong interpretation of the 4998 InkNames tag as per bug 4999 5000 http://bugzilla.remotesensing.org/show_bug.cgi?id=466 5001 5002 Memory leak fixed. 5003 50042004-01-21 Frank Warmerdam <[email protected]> 5005 5006 * libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that 5007 are field_passcount=TRUE properly. Arguably anonymous custom tags 5008 should be declared as passcount=FALSE, but I don't want to change 5009 that without a careful review. 5010 50112004-01-20 Andrey Kiselev <[email protected]> 5012 5013 * libtiff/tif_write.c: Fixed reporting size of the buffer in case of 5014 stripped image in TIFFWriteBufferSetup(). As per bug 5015 5016 http://bugzilla.remotesensing.org/show_bug.cgi?id=460 5017 50182004-01-11 Andrey Kiselev <[email protected]> 5019 5020 * libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(), 5021 patch from Gerben Koopmans. 5022 5023 * libtiff/tif_dirread.c: Check field_passcount value before setting 5024 the value of undefined type, patch from Gerben Koopmans. 5025 50262004-01-02 Andrey Kiselev <[email protected]> 5027 5028 * tools/tiffcp.c: Fixed problem with wrong Photometric setting for 5029 non-RGB images. 5030 50312003-12-31 Andrey Kiselev <[email protected]> 5032 5033 * libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL 5034 pointer passed. Patch supplied by Larry Grill. 5035 5036 * libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as 5037 suggested by Jeremy C. Reed. 5038 50392003-12-26 Andrey Kiselev <[email protected]> 5040 5041 * libtiff 3.6.1 released. 5042 50432003-12-24 Andrey Kiselev <[email protected]> 5044 5045 * config.guess, config.sub: Updated from the recent upstream. 5046 50472003-12-22 Andrey Kiselev <[email protected]> 5048 5049 * libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t: 5050 More cleanups in color conversion interface, added appropriate manual 5051 page. 5052 50532003-12-19 Andrey Kiselev <[email protected]> 5054 5055 * libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as 5056 per bug 5057 5058 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 5059 5060 * tools/tiff2ps.c: Added support for alpha channel. Fixes 5061 5062 http://bugzilla.remotesensing.org/show_bug.cgi?id=428 5063 5064 * libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}: 5065 Interface for Lab->RGB color conversion is finally cleaned up. 5066 Added support for ReferenceBlackWhite tag handling when converted from 5067 YCbCr color space. The latter closes 5068 5069 http://bugzilla.remotesensing.org/show_bug.cgi?id=120 5070 50712003-12-07 Andrey Kiselev <[email protected]> 5072 5073 * libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings. 5074 5075 * libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG 5076 library. 5077 50782003-12-06 Andrey Kiselev <[email protected]> 5079 5080 * libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the 5081 file and properly use it for CIE Lab->RGB transform. 5082 50832003-12-04 Andrey Kiselev <[email protected]> 5084 5085 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB 5086 conversion routines now in the tif_color.c module. New function 5087 TIFFYCbCrtoRGB() available in TIFF API. 5088 5089 * libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly. 5090 50912003-12-03 Andrey Kiselev <[email protected]> 5092 5093 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in 5094 CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c 5095 module. 5096 5097 * libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t, 5098 TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}: 5099 Finally resolved problems with orientation handling. TIFFRGBAImage 5100 interface now properly supports all possible orientations, i.e. images 5101 will be flipped both in horizontal and vertical directions if 5102 required. 'Known bugs' section now removed from the appropriate manual 5103 pages. Closed bug entry: 5104 5105 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 5106 51072003-12-02 Andrey Kiselev <[email protected]> 5108 5109 * libtiff/tif_dir.c: Fixed order of the parameters in TIFFError() 5110 function calls as per bug 5111 5112 http://bugzilla.remotesensing.org/show_bug.cgi?id=440 5113 51142003-11-28 Ross Finlayson <[email protected]> 5115 5116 * tools/tiff2pdf.c: Some bugs fixed. 5117 51182003-11-27 Andrey Kiselev <[email protected]> 5119 5120 * libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine, 5121 reported by Antonio Scuri. 5122 5123 * man/tiff2pdf.1: Few improvements in page layout. 5124 5125 * Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html: 5126 Added support fpr tiff2pdf manual page. 5127 51282003-11-26 Ross Finlayson <[email protected]> 5129 5130 * /man/tiff2pdf.1: File added to repository. 5131 51322003-11-26 Andrey Kiselev <[email protected]> 5133 5134 * Makefile.in, /tools/{Makefile.in, makefile.vc}: 5135 Added support fpr tiff2pdf utility. 5136 51372003-11-25 Ross Finlayson <[email protected]> 5138 5139 * /tools/tiff2pdf.c: File added to repository. 5140 51412003-11-22 Andrey Kiselev <[email protected]> 5142 5143 * /tools/raw2tiff.c: sqrtf() replaced with sqrt(). 5144 51452003-11-21 Andrey Kiselev <[email protected]> 5146 5147 * /tools/raw2tiff.c: #include <getopt.h> removed. 5148 5149 * tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent 5150 sgigt utility removed and replaced with the completely rewritten 5151 portable tiffgt tool (depend on OpenGL and GLUT). Initial revision, 5152 there is a lot of things to improve. 5153 5154 * libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly 5155 extract the fields from the OJPEG files. Patch supplied by Ross 5156 Finlayson. 5157 5158 * libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}: 5159 Added new function TIFFIsCODECConfigured(), suggested by Ross 5160 Finlayson. 5161 51622003-11-18 Andrey Kiselev <[email protected]> 5163 5164 * libtiff/tif_dirinfo.c: Implemented binary search in 5165 _TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson. 5166 5167 * libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced 5168 with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson. 5169 51702003-11-17 Frank Warmerdam <[email protected]> 5171 5172 * tif_dirread.c: do not mark all anonymously defined tags to be 5173 IGNOREd. 5174 51752003-11-17 Andrey Kiselev <[email protected]> 5176 5177 * contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use 5178 TIFFDataWidth() function insted of tiffDataWidth array. 5179 51802003-11-16 Andrey Kiselev <[email protected]> 5181 5182 * libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13) 5183 datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes". 5184 51852003-11-15 Frank Warmerdam <[email protected]> 5186 5187 * Makefile.in: fixed missing backslash for tif_color.c in list. 5188 51892003-11-13 Andrey Kiselev <[email protected]> 5190 5191 * libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}: 5192 New color space conversion code: CIE L*a*b* 1976 images now supported 5193 by the TIFFRGBAImage interface. All introduced routines go to new 5194 module tif_color.c. Eventually all color conversion functions should 5195 be moved there. 5196 51972003-11-12 Andrey Kiselev <[email protected]> 5198 5199 * tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles 5200 with the reverse byte order (it is reported by the magic header 5201 field). Problem reported by Andreas Wiesmann. 5202 5203 * tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation 5204 calculation function. Guessing mechanics now documented in manual page. 5205 52062003-11-11 Andrey Kiselev <[email protected]> 5207 5208 * tools/raw2tiff.c: Implemented image size guessing using 5209 correlation coefficient calculation between two neighbour lines. 5210 52112003-11-09 Frank Warmerdam <[email protected]> 5212 5213 * libtiff/tif_tile.c: remove spurious use of "s" (sample) in the 5214 planarconfig_contig case in TIFFComputeTile(). 5215 5216 http://bugzilla.remotesensing.org/show_bug.cgi?id=387 5217 52182003-11-09 Andrey Kiselev <[email protected]> 5219 5220 * libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint. 5221 52222003-11-07 Andrey Kiselev <[email protected]> 5223 5224 * libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}: 5225 Added TIFFRawStripSize() function as suggested by Chris Hanson. 5226 52272003-11-03 Andrey Kiselev <[email protected]> 5228 5229 * libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as 5230 per bug 5231 5232 http://bugzilla.remotesensing.org/show_bug.cgi?id=424 5233 52342003-10-29 Andrey Kiselev <[email protected]> 5235 5236 * libtiff/libtiff.def: Added TIFFReadRGBAImageOriented. 5237 5238 * html/build.html: Added note about GNU make requirement. 5239 52402003-10-25 Andrey Kiselev <[email protected]> 5241 5242 * Makefile.in: Fixes in using MAKEFLAGS as per bug 5243 5244 http://bugzilla.remotesensing.org/show_bug.cgi?id=418 5245 5246 * port/install.sh.in: Option -p added to the mkdir command to create 5247 all directory tree structure before installing. 5248 52492003-10-18 Andrey Kiselev <[email protected]> 5250 5251 * /tools/tiff2ps.c: #include <strings.h> replaced with the 5252 #include <string.h>. 5253 52542003-10-16 Andrey Kiselev <[email protected]> 5255 5256 * Makefile.in: Add an absolute path to the test_pics.sh call. 5257 52582003-10-12 Andrey Kiselev <[email protected]> 5259 5260 * libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD 5261 typedefs. 5262 52632003-10-09 Andrey Kiselev <[email protected]> 5264 5265 * configure, libtiff/{Makefile.in, mkversion.c}: 5266 Relative buildings fixed. 5267 5268 * tools/Makefile.in: Added "-I../libtiff" to the tiffset building 5269 rule. 5270 52712003-10-07 Andrey Kiselev <[email protected]> 5272 5273 * Makefile.in: Added missed v3.6.0.html. 5274 5275 * libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with 5276 ORIENTATION_BOTLEFT. 5277 52782003-10-04 Andrey Kiselev <[email protected]> 5279 5280 * 3.6.0 final release. 5281 52822003-10-03 Andrey Kiselev <[email protected]> 5283 5284 * libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New 5285 function TIFFReadRGBAImageOriented() implemented to retrieve raster 5286 array with user-specified origin position as suggested by Jason Frank. 5287 See 5288 5289 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 5290 5291 for details. 5292 5293 * tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented() 5294 instead of TIFFReadRGBAImage(). 5295 5296 * tools/tiff2ps.c: Fixed possible endless loop as per bug 5297 5298 http://bugzilla.remotesensing.org/show_bug.cgi?id=404 5299 53002003-09-30 Andrey Kiselev <[email protected]> 5301 5302 * libtiff/tif_dirread.c: Check field counter against number of fields 5303 in order to fix 5304 5305 http://bugzilla.remotesensing.org/show_bug.cgi?id=366 5306 5307 * libtiff/tif_fax3.c: Fix wrong line numbering as per bug 5308 5309 http://bugzilla.remotesensing.org/show_bug.cgi?id=342 5310 53112003-09-25 Andrey Kiselev <[email protected]> 5312 5313 * libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c, 5314 tif_close.c}: Store a list of opened IFD to prevent looping as per bug 5315 5316 http://bugzilla.remotesensing.org/show_bug.cgi?id=383 5317 53182003-09-23 Andrey Kiselev <[email protected]> 5319 5320 * libtiff/tif_dirread.c: More fixes for EstimateStripByteCounts(). See 5321 5322 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 5323 53242003-08-21 Andrey Kiselev <[email protected]> 5325 5326 * tools/tiffmedian.c: int declaration replaced with the uint32 to 5327 support large images as per bug 5328 5329 http://bugzilla.remotesensing.org/show_bug.cgi?id=382 5330 53312003-08-12 Andrey Kiselev <[email protected]> 5332 5333 * libtiff/Makefile.in: Fixed problem with building in different 5334 directory. 5335 5336 * tools/tiff2ps.c: Added missing #include <strings.h>. 5337 5338 * libtiff/tif_dirwrite.c: More fixes for custom tags code 5339 from Ashley Dreier. 5340 53412003-08-07 Andrey Kiselev <[email protected]> 5342 5343 * tools/tiff2ps.c: Added page size setting when creating PS Level 2. 5344 Patch submitted by Balatoni Denes (with corrections from Tom 5345 Kacvinsky). 5346 5347 * tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is 5348 being used. Reported by Tom Kacvinsky. 5349 5350 * libtiff/tif_dirwrite.c: Fixed problem with custom tags writing, 5351 reported by Ashley Dreier. 5352 5353 * libtiff/tif_print.c: Fixed problem with float tags reading, support 5354 for printing RATIONAL and BYTE tags added. 5355 53562003-08-05 Andrey Kiselev <[email protected]> 5357 5358 * libtiff/tif_lzw.c: Move LZW codec state block allocation back to 5359 TIFFInitLZW(), because its initialization in LZWSetupDecode() cause 5360 problems with predictor initialization. Remove O_RDONLY check during 5361 state block allocation to be able open LZW compressed files in update 5362 mode. 5363 5364 Problem exist for libtiff version of the tif_lzw.c module. One from 5365 lzw-compression-kit hasn't such troubles. 5366 53672003-08-04 Frank Warmerdam <[email protected]> 5368 5369 * libtiff/tif_write.c: modified tif_write.c so that the various 5370 encoded write functions use tif_postdecode() to apply byte order 5371 swapping (swab) to the application passed data buffer if the same 5372 would be done when reading. This allows us to write pixel data with 5373 more than 8 bits per sample to existing files of a non-native byte 5374 order. One side effect of this change is the applications buffer 5375 itself is altered in this case by the act of writing. 5376 5377 http://bugzilla.remotesensing.org/show_bug.cgi?id=171 5378 53792003-07-25 Frank Warmerdam <[email protected]> 5380 5381 * libtiff/tif_open.c: avoid signed/unsigned casting warning 5382 initializing typemask as per patch from J.A. Strother. 5383 5384 * tools/tiffcp.c: fixed signed/unsigned casting warning. 5385 5386 * libtiff/tif_print.c: dos2unix conversion. 5387 5388 * tools/tiffsplit.c: increased the maximum number of pages that 5389 can be split. Patch provided by Andrew J. Montalenti. 5390 53912003-07-11 Andrey Kiselev <[email protected]> 5392 5393 * tools/raw2tiff.c: Added option `-p' to explicitly select color 5394 space of input image data. Closes 5395 5396 http://bugzilla.remotesensing.org/show_bug.cgi?id=364 5397 53982003-07-08 Frank Warmerdam <[email protected]> 5399 5400 * tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c, 5401 tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c, 5402 tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c: 5403 avoid casting warning at /W4. 5404 54052003-07-03 Andrey Kiselev <[email protected]> 5406 5407 * tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel. 5408 54092003-06-30 Andrey Kiselev <[email protected]> 5410 5411 * libtiff/tif_pixarlog.c: Unused variables removed. 5412 5413 * libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with 5414 EstimateStripByteCounts() as per bug 5415 5416 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 5417 5418 * libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on 5419 64-bit architectures as per bug 5420 5421 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 5422 5423 * libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of 5424 unknown data type. 5425 54262003-06-19 Frank Warmerdam <[email protected]> 5427 5428 * libtiff/tif_print.c: fixed some serious bugs when printing 5429 custom tags ... almost certain to crash. 5430 5431 * libtiff/tif_dirread.c: Don't ignore custom fields that are 5432 autodefined. Not sure how this got to be like this. 5433 54342003-06-18 Andrey Kiselev <[email protected]> 5435 5436 * 3.6.0 Beta2 released. 5437 5438 * tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data 5439 comparing as per bug 5440 5441 http://bugzilla.remotesensing.org/show_bug.cgi?id=349 5442 5443 `-z' option now can be used to set the number of reported different 5444 bytes. 5445 54462003-06-09 Andrey Kiselev <[email protected]> 5447 5448 * tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1 5449 to -r option to get the entire image as one strip. See 5450 5451 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5452 5453 for details. 5454 54552003-06-04 Andrey Kiselev <[email protected]> 5456 5457 * tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber 5458 values as per bug 5459 5460 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5461 54622003-05-27 Frank Warmerdam <[email protected]> 5463 5464 * libtiff/tif_jpeg.c: modified segment_height calculation to always 5465 be a full height tile for tiled images. Also changed error to just 5466 be a warning. 5467 54682003-05-25 Andrey Kiselev <[email protected]> 5469 5470 * tools/fax2tiff.c: Page numbering fixed, as per bug 5471 5472 http://bugzilla.remotesensing.org/show_bug.cgi?id=341 5473 54742003-05-20 Andrey Kiselev <[email protected]> 5475 5476 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5477 configure, Makefile.in: Switched back to the old behaviour. Likely 5478 better solution should be found for OJPEG support. 5479 54802003-05-11 Andrey Kiselev <[email protected]> 5481 5482 * libtiff/mkversion.c: Fixed problem with wrong string size when 5483 reading RELEASE-DATE file. 5484 54852003-05-07 Andrey Kiselev <[email protected]> 5486 5487 * tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array 5488 index was out of range. 5489 54902003-05-06 Andrey Kiselev <[email protected]> 5491 5492 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5493 configure, Makefile.in: Improved libtiff compilation with OJPEG 5494 support. Now no need for patching IJG JPEG library, hack requred by 5495 libtiff will be compiled and used in-place. Implemented with 5496 suggestion and help from Bill Allombert, Debian's libjpeg maintainer. 5497 5498 * libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in 5499 TIFFVGetFieldDefaulted() function. 5500 55012003-05-05 Andrey Kiselev <[email protected]> 5502 5503 * tools/ppm2tiff.c: PPM header parser improved: now able to skip 5504 comments. 5505 5506 * tools/tiffdither.c: Fixed problem with bit fill order tag setting: 5507 was not copied from source image. 5508 5509 * libtiff/getimage.c: Workaround for some images without correct 5510 info about alpha channel as per bug 5511 5512 http://bugzilla.remotesensing.org/show_bug.cgi?id=331 5513 55142003-04-29 Andrey Kiselev <[email protected]> 5515 5516 * tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3. 5517 It basically allows one to use the /flateDecode filter for ZIP 5518 compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes 5519 5520 http://bugzilla.remotesensing.org/show_bug.cgi?id=328 5521 5522 * tools/tiff2ps.c: Force deadzone printing when EPS output specified 5523 as per bug 5524 5525 http://bugzilla.remotesensing.org/show_bug.cgi?id=325 5526 55272003-04-17 Andrey Kiselev <[email protected]> 5528 5529 * libtiff/tif_dirread.c: Removed additional check for StripByteCounts 5530 due to problems with multidirectory images. Quality of error messages 5531 improved. 5532 55332003-04-16 Andrey Kiselev <[email protected]> 5534 5535 * tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG 5536 encoded images. See bug entries 5537 5538 http://bugzilla.remotesensing.org/show_bug.cgi?id=275 5539 5540 and 5541 5542 http://bugzilla.remotesensing.org/show_bug.cgi?id=23 5543 5544 * libtiff/tif_dirread.c: Additional check for StripByteCounts 5545 correctness. Fixes 5546 5547 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 5548 55492003-03-12 Andrey Kiselev <[email protected]> 5550 5551 * tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c, 5552 ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c, 5553 tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c, 5554 tiffmedian.c}: Added library version reporting facility to all tools. 5555 55562003-03-06 Frank Warmerdam <[email protected]> 5557 5558 * port/install.sh.in: Fixed problems with install producing paths 5559 like ///usr/local/lib on cygwin. 5560 55612003-02-27 Andrey Kiselev <[email protected]> 5562 5563 * tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of 5564 raw input page. Patch supplied by Julien Gaulmin. See 5565 5566 http://bugzilla.remotesensing.org/show_bug.cgi?id=293 5567 5568 for details. 5569 55702003-02-26 Frank Warmerdam <[email protected]> 5571 5572 * libtiff/tif_dir.c: fixed up the tif_postdecode settings 5573 responsible for byte swapping complex image data. 5574 5575 * libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till 5576 LZWSetupDecode(). Needed to read LZW files in "r+" mode. 5577 55782003-02-07 Andrey Kiselev <[email protected]> 5579 5580 * tools/ppm2tiff.c: Fixed problem with too many arguments. 5581 55822003-02-04 Andrey Kiselev <[email protected]> 5583 5584 * tools/raw2tiff.c: Memory leak fixed. 5585 55862003-02-03 Andrey Kiselev <[email protected]> 5587 5588 * tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin 5589 (thanks, Julien!). More switches for fax2tiff tool for better control 5590 of input and output. Details at 5591 5592 http://bugzilla.remotesensing.org/show_bug.cgi?id=272 5593 55942003-02-03 Frank Warmerdam <[email protected]> 5595 5596 * libtiff/tif_jpeg.c: Modified to defer initialization of jpeg 5597 library so that we can check if there is already any tile/strip data 5598 before deciding between creating a compressor or a decompressor. 5599 56002003-01-31 Frank Warmerdam <[email protected]> 5601 5602 * libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is 5603 a pre-existing compressed image. That is, image writing to 5604 pre-existing compressed images is not allowed. 5605 5606 * libtiff/tif_open.c: Removed error if opening a compressed file 5607 in update mode. 5608 5609 http://bugzilla.remotesensing.org/show_bug.cgi?id=198 5610 56112003-01-31 Andrey Kiselev <[email protected]> 5612 5613 * config.guess, config.sub: Updated to recent upstream versions. 5614 56152003-01-15 Frank Warmerdam <[email protected]> 5616 5617 * cut 3.6.0 Beta release. 5618 56192002-12-20 Andrey Kiselev <[email protected]> 5620 5621 * tools/fax2ps.c, man/fax2ps.1: Page size was determined 5622 in wrong way as per bug 5623 5624 http://bugzilla.remotesensing.org/show_bug.cgi?id=239 5625 56262002-12-17 Frank Warmerdam <[email protected]> 5627 5628 * libtiff/tif_dirread.c: Allow wrong sized arrays in 5629 TIFFFetchStripThing(). 5630 5631 http://bugzilla.remotesensing.org/show_bug.cgi?id=49 5632 56332002-12-02 Frank Warmerdam <[email protected]> 5634 5635 * libtiff/tif_dir.c: fix problem with test on td_customValueCount. 5636 Was using realloc even first time. Fix by Igor Venevtsev. 5637 56382002-11-30 Frank Warmerdam <[email protected]> 5639 5640 * libtiff/tif_dir.c: fixed bug with resetting an existing custom 5641 field value. 5642 5643 * libtiff/tif_dir.c: Fixed potential problem with ascii "custom" 5644 tags in TIFFVGetField() ... added missing break. 5645 56462002-10-14 Frank Warmerdam <[email protected]> 5647 5648 * tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make 5649 the scanline buffer long enough when writing rgb triplets. 5650 The scanline needs to be 3 X the number of dots or else it will 5651 contain an incomplete triplet and programs that try to separate 5652 the eps by redefining the colorimage operator will get messed up. 5653 Patch supplied by William Bader. 5654 5655 * Makefile.in: added tif_extension.c to file list as per 5656 http://bugzilla.remotesensing.org/show_bug.cgi?id=218. 5657 56582002-10-11 Andrey Kiselev <[email protected]> 5659 5660 * configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for 5661 large files (>2GiB) supporting. New option in the config.site: 5662 LARGEFILE="yes". Should be enough for I/O of the large files. 5663 56642002-10-10 Frank Warmerdam <[email protected]> 5665 5666 * libtiff/html/v3.6.0.html: new release notes. 5667 5668 * libtiff/index.html: removed faq, cvs snapshot cruft. Added email 5669 link for Andrey. Pointer to v3.6.0.html. 5670 5671 * libtiff/Makefile.in: added direct rule for tiffvers.h for release. 5672 56732002-10-07 Andrey Kiselev <[email protected]> 5674 * tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken 5675 (thanks, Sebastian!). New switches: 5676 -b # for a bottom margin of # inches 5677 -c center image 5678 -l # for a left margin of # inches 5679 -r rotate the image by 180 degrees 5680 New features merged with code for shrinking/overlapping. 5681 Previously added -c and -n switches (for overriding PS units) renamed 5682 in -x and -y respectively. 5683 5684 http://bugzilla.remotesensing.org/show_bug.cgi?id=200 5685 5686 * html/man/*.html: Updated from actual manual pages. 5687 56882002-10-06 Frank Warmerdam <[email protected]> 5689 5690 * libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong 5691 size on windows. Use #define boolean hack. 5692 5693 http://bugzilla.remotesensing.org/show_bug.cgi?id=188 5694 5695 * libtiff/tiff.h: Don't do special type handling in tiff.h unless 5696 USING_VISUALAGE is defined. 5697 5698 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 5699 57002002-10-03 Frank Warmerdam <[email protected]> 5701 5702 * libtiff/tiff.h: added COMPRESSION_JP2000. 5703 57042002-10-02 Andrey Kiselev <[email protected]> 5705 5706 * libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays 5707 by the TIFFFetchByteArray() function. Should finally resolve 5708 5709 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5710 5711 * configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT 5712 5713 * html/Makefile.in: New targets added: html and groffhtml for 5714 producing HTML representations of the manual pages automatically. 5715 html target uses man2html tool, groffhtml uses groff tool. 5716 57172002-09-29 Frank Warmerdam <[email protected]> 5718 5719 * configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support 5720 from John H. DuBois III. 5721 57222002-09-15 Andrey Kiselev <[email protected]> 5723 5724 * Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added 5725 manual page for raw2tiff(1) tool. 5726 57272002-09-12 Andrey Kiselev <[email protected]> 5728 5729 * /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to 5730 the tiffio.h header file. 5731 5732 * Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added 5733 manual page for TIFFDataWidth() function 5734 57352002-09-08 Frank Warmerdam <[email protected]> 5736 5737 * libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair() 5738 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196. 5739 5740 * tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments 5741 since we are unable to properly include the amount to skip. 5742 5743 http://bugzilla.remotesensing.org/show_bug.cgi?id=80 5744 57452002-09-02 Andrey Kiselev <[email protected]> 5746 5747 * /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching 5748 in TIFFFetchByteArray(). Problem described at 5749 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5750 57512002-08-22 Andrey Kiselev <[email protected]> 5752 5753 * /libtiff/tif_dirinfo.c: Further additions to free custom fields 5754 in _TIFFSetupFieldInfo() function. 5755 See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details. 5756 5757 * /libtiff/tif_lzw.c: Additional consistency checking added in 5758 LZWDecode() and LZWDecodeCompat(). 5759 Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190 5760 and http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5761 5762 * /libtiff/tif_lzw.c: 5763 Added check for valid code lengths in LZWDecode() and 5764 LZWDecodeCompat(). Fixes 5765 http://bugzilla.remotesensing.org/show_bug.cgi?id=115 5766 57672002-08-16 Andrey Kiselev <[email protected]> 5768 5769 * /libtiff/{Makefile.vc, libtiff.def}: 5770 Missed declarations added. 5771 57722002-08-15 Frank Warmerdam <[email protected]> 5773 5774 * tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the 5775 return code from the underlying pick function. 5776 5777 http://bugzilla.remotesensing.org/show_bug.cgi?id=177 5778 5779 * tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap 5780 with FIELD_CUSTOM as mentioned in bug 169. 5781 5782 * tif_close.c: added logic to free dynamically created anonymous 5783 field definitions to correct a small memory leak. 5784 5785 http://bugzilla.remotesensing.org/show_bug.cgi?id=169 5786 57872002-08-10 Andrey Kiselev <[email protected]> 5788 5789 * /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}: 5790 New tool: raw2tiff --- raw images to TIFF converter. No manual page yet. 5791 57922002-07-31 Frank Warmerdam <[email protected]> 5793 5794 * libtiff/tif_jpeg.c: Fixed problem with setting of nrows in 5795 JPEGDecode() as per bugzilla bug (issue 1): 5796 5797 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5798 5799 * libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to 5800 fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't 5801 present in the tiff tags. 5802 5803 http://bugzilla.remotesensing.org/show_bug.cgi?id=168 5804 5805 * libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and 5806 TIFFWriteScanline() now set tif_row explicitly in case the codec has 5807 fooled with the value. 5808 5809 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5810 58112002-06-22 Andrey Kiselev <[email protected]> 5812 5813 * /tools/tiff2ps.c: Added workaround for some software that may crash 5814 when last strip of image contains fewer number of scanlines than 5815 specified by the `/Height' variable. See 5816 http://bugzilla.remotesensing.org/show_bug.cgi?id=164 5817 for explanation. 5818 58192002-06-21 Andrey Kiselev <[email protected]> 5820 5821 * tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility: 5822 splitting long images in several pages. See 5823 http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation. 5824 Patch granted by John Williams <[email protected]>. 5825 58262002-06-11 Frank Warmerdam <[email protected]> 5827 5828 * libtiff/contrib/win95: renamed to contrib/win_dib. Added new 5829 Tiffile.cpp example of converting TIFF files into a DIB on Win32. 5830 This one is described in: 5831 5832 http://bugzilla.remotesensing.org/show_bug.cgi?id=143 5833 5834 * libtiff/tif_ojpeg.c: Major upgrade from Scott. See details at: 5835 5836 http://bugzilla.remotesensing.org/show_bug.cgi?id=156 5837 58382002-05-10 Andrey Kiselev <[email protected]> 5839 5840 * tools/tiff2ps: New commandline switches to override resolution 5841 units obtained from the input file. Closes 5842 http://bugzilla.remotesensing.org/show_bug.cgi?id=131 5843 58442002-04-26 Andrey Kiselev <[email protected]> 5845 5846 * libtiff/libtiff.def: Added missed declaration. 5847 58482002-04-22 Andrey Kiselev <[email protected]> 5849 5850 * tools/fax2tiff.c: Updated to reflect latest changes in libtiff. 5851 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125 5852 58532002-04-20 Andrey Kiselev <[email protected]> 5854 5855 * libtiff/tif_open.c: Pointers to custom procedures 5856 in TIFFClientOpen() are checked to be not NULL-pointers. 5857 58582002-04-18 Andrey Kiselev <[email protected]> 5859 5860 * libtiff/libtiff.def: Added missed declarations. 5861 5862 * libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure. 5863 58642002-04-16 Andrey Kiselev <[email protected]> 5865 5866 * libtiff/tif_lzw.c: Additional checks for data integrity introduced. 5867 Should finally close 5868 http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5869 58702002-04-10 Andrey Kiselev <[email protected]> 5871 5872 * tools/tiff2ps: Division by zero fixed. 5873 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88 5874 58752002-04-09 Andrey Kiselev <[email protected]> 5876 5877 * libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h: 5878 TIFFCheckpointDirectory() routine added. 5879 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124 5880 5881 * man/: TIFFWriteDirectory.3t, Makefile.in: Added description 5882 for the new function. 5883 58842002-04-08 Andrey Kiselev <[email protected]> 5885 5886 * libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced 5887 additional members tif->tif_decodestatus and tif->tif_encodestatus 5888 for correct handling of unconfigured codecs (we should not try to read 5889 data or to define data size without correct codecs). 5890 5891 * libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK 5892 changed. Now it has used tif->tif_decodestatus and 5893 tif->tif_encodestatus. 5894 Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in 5895 case of __cvs_8.tif test image). 5896 5897 * libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in 5898 tif_dirread.c when TIFFCreateAnonFieldInfo was introduced. 5899 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case 5900 of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif. 5901 59022002-04-04 Andrey Kiselev <[email protected]> 5903 5904 * libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat 5905 replaced by warnings. Now libtiff should read corrupted LZW-compressed 5906 files by skipping bad strips. 5907 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5908 59092002-04-03 Frank Warmerdam <[email protected]> 5910 5911 * libtiff/tif_dirwrite.c: Removed some dead code. 5912 5913 * libtiff/*: Cleanup some warnings. 5914 5915 * libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField() 5916 for variable length FIELD_CUSTOM values. Was int * but should be 5917 u_short *. 5918 59192002-04-01 Andrey Kiselev <[email protected]> 5920 5921 * tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp 5922 utility (at cpStripToTile routine). 5923 59242002-03-27 Frank Warmerdam <[email protected]> 5925 5926 * tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func. 5927 5928 http://bugzilla.remotesensing.org/show_bug.cgi?id=111 5929 5930 * tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with 5931 passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE). 5932 5933 * libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so 5934 that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example. 5935 59362002-03-26 Dwight Kelly <[email protected]> 5937 5938 * libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 5939 tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined 5940 in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec 5941 INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes: 5942 CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and 5943 INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9). 5944 59452002-03-26 Andrey Kiselev <[email protected]> 5946 5947 * libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile 5948 now also uses TIFFRGBAImageOK before reading. This is additional fix 5949 for http://bugzilla.remotesensing.org/show_bug.cgi?id=110 5950 59512002-03-25 Andrey Kiselev <[email protected]> 5952 5953 * libtiff/: tif_getimage.c: Additional check for supported 5954 codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses 5955 TIFFRGBAImageOK before reading. 5956 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110 5957 59582002-03-15 Andrey Kiselev <[email protected]> 5959 5960 * libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 5961 tif_dirwrite.c: Added routine TIFFDataWidth for detrmining 5962 TIFFDataType sizes instead of working with tiffDataWidth array 5963 directly. Should prevent out-of-borders bugs in case of unknown or 5964 broken data types. EstimateStripByteCounts routine modified, so it 5965 won't work when tags with uknown sizes founded. 5966 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109 5967 59682002-03-13 Andrey Kiselev <[email protected]> 5969 5970 * libtiff/tif_getimage.c: Added support for correct handling 5971 `Orientation' tag in gtTileContig. Should be added in other gt* 5972 functions as well, but I have not images for testing yet. Partially 5973 resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23 5974 59752002-03-10 Andrey Kiselev <[email protected]> 5976 5977 * libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to 5978 read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION, 5979 TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC. Closes 5980 http://bugzilla.remotesensing.org/show_bug.cgi?id=99 5981 59822002-03-08 Andrey Kiselev <[email protected]> 5983 5984 * libtiff/Makefile.in, tools/Makefile.in: Shared library will not 5985 be stripped when installing, utility binaries will do. Closes 5986 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 5987 59882002-02-28 Frank Warmerdam <[email protected]> 5989 5990 * man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT. 5991 5992 * man/libtiff.3t: added copyright tag info. 5993 59942002-02-11 Frank Warmerdam <[email protected]> 5995 5996 * libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__. 5997 5998 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 5999 6000 * man/Makefile.in: Patch DESTDIR handling 6001 6002 http://bugzilla.remotesensing.org/show_bug.cgi?id=95 6003 6004 * configure: OpenBSD changes for Sparc64 and DSO version. 6005 6006 http://bugzilla.remotesensing.org/show_bug.cgi?id=96 6007 60082002-02-05 Frank Warmerdam <[email protected]> 6009 6010 * config.site/configure: added support for OJPEG=yes option to enable 6011 OJPEG support from config.site. 6012 60132002-01-27 Frank Warmerdam <[email protected]> 6014 6015 * html/document.html: fixed links for TIFf 6 docs. 6016 60172002-01-18 Frank Warmerdam <[email protected]> 6018 6019 * config.guess, config.sub: Updated from ftp.gnu.org/pub/config. 6020 6021 * libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the 6022 decodestrip function returns anything not greater than zero as per 6023 http://bugzilla.remotesensing.org/show_bug.cgi?id=97 6024 6025 * configure: Modify CheckForBigEndian so it can work in a cross 6026 compiled situation. 6027 60282002-01-16 Frank Warmerdam <[email protected]> 6029 6030 * tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list. 6031 6032 * tools/tiffset.c: fix bug in error reporting. 6033 6034 * tools/tiffcp.c: fix several warnings that show up with -Wall. 6035 60362002-01-04 Frank Warmerdam <[email protected]> 6037 6038 * libtiff/tif_jpeg.c: fixed computation of segment_width for 6039 tiles files to avoid error about it not matching the 6040 cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile 6041 size.") for ITIFF files. Apparently the problem was incorporated since 6042 3.5.5, presumably during the OJPEG/JPEG work recently. 6043 60442001-12-15 Frank Warmerdam <[email protected]> 6045 6046 * configure, libtiff/Makefile.in: Changes for building on MacOS 10.1. 6047 6048 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 6049 6050 * libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1 6051 (defined in tiffconf.h - 1 by default) then the RGBA interface 6052 will assume that a fourth extra sample is ASSOCALPHA if the 6053 EXTRASAMPLE value isn't set for it. This changes the behaviour of 6054 the library, but makes it work better with RGBA files produced by 6055 lots of applications that don't mark the alpha values properly. 6056 6057 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 6058 http://bugzilla.remotesensing.org/show_bug.cgi?id=65 6059 60602001-12-12 Frank Warmerdam <[email protected]> 6061 6062 * libtiff/tif_jpeg.c: allow jpeg data stream sampling values to 6063 override those from tiff directory. This makes this work with 6064 ImageGear generated files. 6065 60662001-12-07 Frank Warmerdam <[email protected]> 6067 6068 * html/Makefile.in: added missing images per bug 92. 6069 6070 * port/Makefile.in: fixed clean target per bug 92. 6071 60722001-11-28 Frank Warmerdam <[email protected]> 6073 6074 * Reissue 3.5.7 release. 6075 6076 * libtiff/mkversion.c: Fix output of TIFF_VERSION to be 6077 YYYYMMDD so that it is increasing over time. 6078 6079 * Makefile.in: Ensure that tiffvers.h is regenerated in the 6080 make release target. 6081 6082 * Makefile.in: added libtiff/tiffvers.h to the release file list. 6083 60842001-11-23 Frank Warmerdam <[email protected]> 6085 6086 * added html/v3.5.7.html, updated html/index.html. 6087 6088 * Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}. 6089 60902001-11-15 Frank Warmerdam <[email protected]> 6091 6092 * configure: fixed test for -lm. 6093 60942001-11-02 Frank Warmerdam <[email protected]> 6095 6096 * Added PHOTOMETRIC_ITULAB as per bug 90. 6097 6098 http://bugzilla.remotesensing.org/show_bug.cgi?id=90 6099 61002001-10-10 Frank Warmerdam <[email protected]> 6101 6102 * libtiff/tiff.h: I have created COMPRESSION_CCITT_T4, 6103 COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases 6104 in keeping with TIFF 6.0 standard in tiff.h 6105 6106 http://bugzilla.remotesensing.org/show_bug.cgi?id=83 6107 61082001-09-26 Frank Warmerdam <[email protected]> 6109 6110 * libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function. 6111 Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory. 6112 61132001-09-24 Frank Warmerdam <[email protected]> 6114 6115 * libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug. 6116 6117 http://bugzilla.remotesensing.org/show_bug.cgi?id=78 6118 6119 * libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an 6120 error about LZW not being available. 6121 6122 * libtiff/tif_dir.c: propagate failure to initialize compression 6123 back from TIFFSetField() as an error status, so applications can 6124 detect failure. 6125 6126 * libtiff/tif_dir.c: removed the auto replacement of 6127 COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField(). 6128 6129 * Removed Makefile, tools/Makefile, port/install.sh, man/Makefile 6130 from CVS as they are all supposed to be auto-generated by configure. 6131 61322001-09-22 Frank Warmerdam <[email protected]> 6133 6134 * libtiff/tif_ojpeg.c: new update from Scott. 6135 61362001-09-09 Frank Warmerdam <[email protected]> 6137 6138 * libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to 6139 always use the "safe" version, even if there is a very slight 6140 cost in performance. 6141 6142 http://bugzilla.remotesensing.org/show_bug.cgi?id=54 6143 6144 * libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@ 6145 in two places. 6146 6147 * libtiff/tif_getimage.c: Fixed problem with reading strips or 6148 tiles that don't start on a tile boundary. Fix contributed by 6149 Josep Vallverdu (from HP), and further described in bug 47. 6150 6151 http://bugzilla.remotesensing.org/show_bug.cgi?id=47 6152 6153 * tools/tiff2ps.c: added OJPEG YCbCr to RGB support. 6154 6155 * libtiff/tif_ojpeg.c: Applied substantial patch from Scott. 6156 61572001-09-06 Frank Warmerdam <[email protected]> 6158 6159 * libtiff/tif_packbits.c: fixed memory overrun error. 6160 6161 http://bugzilla.remotesensing.org/show_bug.cgi?id=77 6162 61632001-08-31 Frank Warmerdam <[email protected]> 6164 6165 * libtiff/tif_getimage.c: relax handling of contig case where 6166 there are extra samples that are supposed to be ignored. This 6167 should now work for 8bit greyscale or palletted images. 6168 6169 http://bugzilla.remotesensing.org/show_bug.cgi?id=75 6170 61712001-08-28 Frank Warmerdam <[email protected]> 6172 6173 * libtiff/tif_getimage.c: Don't complain for CMYK (separated) 6174 images with more than four samples per pixel. See: 6175 6176 http://bugzilla.remotesensing.org/show_bug.cgi?id=73 6177 61782001-08-10 Frank Warmerdam <[email protected]> 6179 6180 * libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy() 6181 in TIFFReadRGBATile() to avoid issues in cases of overlapping 6182 buffers. See Bug 69 in Bugzilla. 6183 6184 http://bugzilla.remotesensing.org/show_bug.cgi?id=69 6185 6186 * tools/tiff2rgba.c: fixed getopt() call so that -b works again. 6187 61882001-08-09 Frank Warmerdam <[email protected]> 6189 6190 * libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__ 6191 when checking for 64 bit architectures as per bugzilla bug 67. 6192 61932001-07-27 Frank Warmerdam <[email protected]> 6194 6195 * man/Makefile.in: add TIFFClientOpen link as per debian submitted 6196 bug 66. 6197 61982001-07-20 Frank Warmerdam <[email protected]> 6199 6200 * libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H 6201 has been included. 6202 62032001-07-19 Frank Warmerdam <[email protected]> 6204 6205 * libtiff/tif_open.c: Seek back to zero after failed read, 6206 before writing header. 6207 62082001-07-18 Frank Warmerdam <[email protected]> 6209 6210 * libtiff/tif_ojpeg.c: updates from Scott. Handles colors 6211 much better. Now depends on having patched libjpeg as per 6212 patch in contrib/ojpeg/*. 6213 62142001-07-17 Frank Warmerdam <[email protected]> 6215 6216 * */Makefile.in: added DESTDIR support. 6217 6218 http://bugzilla.remotesensing.org/show_bug.cgi?id=60 6219 62202001-07-16 Frank Warmerdam <[email protected]> 6221 6222 * configure, libtiff/Makefile.in: applied OpenBSD patches 6223 as per: 6224 6225 http://bugzilla.remotesensing.org/show_bug.cgi?id=61 6226 62272001-06-28 Frank Warmerdam <[email protected]> 6228 6229 * libtiff/tif_getimage.c: Fixed so that failure is properly 6230 reported by gtTileContig, gtStripContig, gtTileSeparate and 6231 gtStripSeparate. 6232 6233 See http://bugzilla.remotesensing.org/show_bug.cgi?id=51 6234 6235 * tiffcmp.c: Fixed multi samples per pixel support for ContigCompare. 6236 Updated bug section of tiffcmp.1 to note tiled file issues. 6237 6238 See http://bugzilla.remotesensing.org/show_bug.cgi?id=53 6239 62402001-06-22 Frank Warmerdam <[email protected]> 6241 6242 * configure: Changes for DSO generation on AIX provided by 6243 John Marquart <[email protected]>. 6244 6245 * configure, libtiff/Makeifle.in: Modified to build DSOs properly 6246 on Darwin thanks to Robert Krajewski ([email protected]) and 6247 Keisuke Fujii ([email protected]). 6248 62492001-06-13 Frank Warmerdam <[email protected]> 6250 6251 * tools/tiff2rgba.c: added -n flag to avoid emitting alpha component. 6252 6253 * man/tiff2rgba.1: new 6254 62552001-05-22 Frank Warmerdam <[email protected]> 6256 6257 * Added tiffset and tif_ojpeg to the dist lists in Makefile.in. 6258 62592001-05-13 Frank Warmerdam <[email protected]> 6260 6261 * libtiff/tools/thumbnail.c: changed default output compression 6262 to packbits from LZW since LZW isn't generally available. 6263 62642001-05-12 Frank Warmerdam <[email protected]> 6265 6266 * libtiff/tif_ojpeg.c: New. 6267 libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related 6268 to OJPEG support. 6269 6270 Scott Marovich <[email protected]> supplied OJPEG support. 6271 62722001-05-11 Frank Warmerdam <[email protected]> 6273 6274 * tiff.h: removed, it duplicates libtiff/tiff.h. 6275 62762001-05-08 Frank Warmerdam <[email protected]> 6277 6278 * libtiff/tif_dirinfo.c: moved pixar and copyright flags to 6279 ensure everything is in order. 6280 6281 * libtiff/libtiff.def: added TIFFCreateDirectory and 6282 TIFFDefaultStripSize as per: 6283 6284 http://bugzilla.remotesensing.org/show_bug.cgi?id=46 6285 62862001-05-02 Frank Warmerdam <[email protected]> 6287 6288 * libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for 6289 TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to 6290 force use of uint32 counts instead of short counts. 6291 6292 * libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the 6293 case of writing TIFF_BYTE/TIFF_SBYTE fields. 6294 6295 http://bugzilla.remotesensing.org/show_bug.cgi?id=43 6296 62972001-05-01 Frank Warmerdam <[email protected]> 6298 6299 * libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per 6300 bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44 6301 63022001-04-05 Frank Warmerdam <[email protected]> 6303 6304 * tiffio.h: removed C++ style comment. 6305 6306 * configure: fixed up SCRIPT_SH/SHELL handling. 6307 6308 * Makefile.in: Fixed SCRIPT_SH/SHELL handling. 6309 6310 * config.guess: documented more variables as per bug 40. 6311 63122001-04-03 Frank Warmerdam <[email protected]> 6313 6314 * configure, *Makefile.in: Various changes to improve configuration 6315 for HP/UX specifically, and also in general. They include: 6316 - Try to handle /usr/bin/sh instead of /bin/sh where necessary. 6317 - Upgrade to HP/UX 10.x+ compiler, linker and dso options. 6318 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP 6319 - Use -${MAKEFLAGS} in sub makes from makefiles. 6320 6321 http://bugzilla.remotesensing.org/show_bug.cgi?id=40 6322 63232001-04-02 Frank Warmerdam <[email protected]> 6324 6325 * libtiff/tiff.h: Applied hac to try and resolve the problem 6326 with the inttypes.h include file on AIX. 6327 6328 See http://bugzilla.remotesensing.org/show_bug.cgi?id=39 6329 6330 * VERSION: update to 3.5.7 beta in preparation for release. 6331 6332 * configure/config.site: modified to check if -lm is needed for 6333 MACHDEPLIBS if not supplied by config.site. Needed for Darwin. 6334 6335 * config.guess: updated wholesale to an FSF version apparently 6336 from 1998 (as opposed to 1994). This is mainly inspired by 6337 providing for MacOS X support. 6338 63392001-03-29 Frank Warmerdam <[email protected]> 6340 6341 * configure, Makefile.in, etc: added support for OPTIMIZER being 6342 set from config.site. 6343 63442001-03-28 Frank Warmerdam <[email protected]> 6345 6346 * fax2ps.c: Helge (libtiff at oldach.net) submitted fix: 6347 6348 Here's a fix for fax2ps that corrects behaviour for non-Letter paper 6349 sizes. It fixes two problems: 6350 6351 Without scaling (-S) the fax is now centered on the page size specified 6352 with -H and/or -W. Before, fax2ps was using an obscure and practially 6353 useless algorithm to allocate the image relative to Letter sized paper 6354 which sometime sled to useless whitespace on the paper, while at the 6355 same time cutting of the faxes printable area at the opposite border. 6356 6357 Second, scaling now preserves aspect ratio, which makes unusual faxes 6358 (in particular short ones) print properly. 6359 6360 See http://bugzilla.remotesensing.org/show_bug.cgi?id=35 6361 6362 * tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by 6363 Bruce A. Mallett. See check message for detailed information 6364 on all the changes, including a faster encoder, fixes for level 6365 2 PostScript, and support for the imagemask operator. 6366 63672001-03-27 Frank Warmerdam <[email protected]> 6368 6369 * libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to 6370 "#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX. 6371 6372 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 6373 63742001-03-16 Frank Warmerdam <[email protected]> 6375 6376 * tif_dirinfo.c: moved definition of copyright tag in field list. 6377 Apparently they have to be in sorted order by tag id. 6378 63792001-03-13 Frank Warmerdam <[email protected]> 6380 6381 * tif_getimage.c: Added support for 16bit minisblack/miniswhite 6382 images in RGBA interface. 6383 63842001-03-02 Frank Warmerdam <[email protected]> 6385 6386 * Added TIFFTAG_COPYRIGHT support. 6387 63882001-02-19 Frank Warmerdam <[email protected]> 6389 6390 * Brent Roman contributed updated tiffcp utility (and tiffcp.1) 6391 with support for extracting subimages with the ,n syntax, and also 6392 adding the -b bias removal flag. 6393 63942001-02-16 Frank Warmerdam <[email protected]> 6395 6396 * libtiff/libtiff.def: Brent Roman submitted new version adding 6397 serveral missing entry points. 6398 6399 * libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS. 6400 Some sort of weird VMS thing. 6401 6402 http://bugzilla.remotesensing.org/show_bug.cgi?id=31 6403 6404 * tif_luv.c/tiff.h/tiffio.h: 6405 New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward 6406 ([email protected]). He writes: 6407 6408 1) I improved the gamut-mapping function in tif_luv.c for imaginary 6409 colors, because some images were being super-saturated on the input 6410 side and this resulted in some strange color shifts in the output. 6411 6412 2) I added a psuedotag in tiff.h to control random dithering during 6413 LogLuv encoding. This is turned off by default for 32-bit LogLuv and 6414 on for 24-bit LogLuv output. Dithering improves the average color 6415 accuracy over the image. 6416 6417 3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in 6418 tiffio.h, to expose internal routines for converting between LogLuv and 6419 XYZ coordinates. This is helpful for writing more efficient, 6420 specialized conversion routines, especially for reading LogLuv files. 6421 6422 Changes applied with minor edits. 6423 64242001-01-23 Frank Warmerdam <[email protected]> 6425 6426 * tif_fax3.c: keep rw_mode flag internal to fax3 state to remember 6427 whether we are encoding or decoding. This is to ensure graceful 6428 recovery if TIFFClientOpen() discovers an attempt to open a compressed 6429 file for "r+" access, and subsequently close it, as it resets the 6430 tif_mode flag to O_RDONLY in this case to avoid writes, confusing the 6431 compressor's concept of whether it is in encode or decode mode. 6432 64332001-01-08 Mike Welles <[email protected]> 6434 6435 * Makefile.in: Now cleaning up after itself after creating the .tar.gz and .zip 6436 64372001-01-07 Frank Warmerdam <[email protected]> 6438 6439 * html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet() 6440 as per bug report by Patrick Connor. 6441 64422000-12-28 Frank Warmerdam <[email protected]> 6443 6444 * Added RELEASE-DATE file to release file list. 6445 6446 * Fixed libtiff/makefile.vc to make tiffvers.h not version.h. 6447 64482000-12-22 Mike Welles <[email protected]> 6449 * added link to CVS mirror from index.html 6450 6451 * updated html/internals.html to note that LZW compression is 6452 not supported by default. 6453 64542000-12-22 Frank Warmerdam <[email protected]> 6455 6456 * updated html/libtiff.html to not point at Niles' old JPL web site 6457 for the man pages, point at www.libtiff.org. 6458 64592000-12-21 Frank Warmerdam <[email protected]> 6460 6461 * libtiff/tif_apple.c: Applied "Carbon" support patches supplied by 6462 Leonard Rosenthol <[email protected]>. May interfere 6463 with correct building on older systems. If so, please let me know. 6464 64652000-12-19 Mike Welles <[email protected]> 6466 6467 * Took out LZW Encoding from tif_lzw.c 6468 6469 * Created HOWTO-RELEASE 6470 6471 * Created html/v3.5.6.html 6472 6473 * updated index.html 6474 64752000-12-01 Frank Warmerdam <[email protected]> 6476 6477 * Added patches for EOFB support in tif_fax3.c and tif_fax3.h. 6478 Patches supplied by Frank Cringle <[email protected]> 6479 Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif 6480 64812000-11-24 Frank Warmerdam <[email protected]> 6482 6483 * libtiff/Makefile.in: Added an installPrivateHdrs and install-private 6484 target so that the private headers required by libgeotiff can be 6485 installed with the others. They are not installed by default. 6486 6487 * libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso 6488 targets so libtiff.so will be built with an explicit dependency 6489 on libm.so. 6490 6491 * libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to 6492 libtiff.so.3.5.5. 6493 6494 * libtiff/Makefile.in & configure: Remove all references to the ALPHA 6495 file, or ALPHA version logic. Added stuff about DIST_POINT in 6496 place of DIST_TYPE and the alpha release number stuff. 6497 64982000-11-22 Frank Warmerdam <[email protected]> 6499 6500 * I have applied a patch from Steffen Moeller <[email protected]> to 6501 the configure script so that it now accepts the --prefix, and 6502 --exec-prefix directives. 6503 65042000-11-13 Frank Warmerdam <warmerda@cs46980-c> 6505 6506 * I have made a variety of modifications in an effort to ensure the 6507 TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE 6508 file which seems to be updated regularly. 6509 6510 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in 6511 version include file. 6512 o renamed version.h to tiffvers.h because we now have to install it 6513 with the public libtiff include files. 6514 o include tiffvers.h in tiffio.h. 6515 o updated tif_version.c to use tiffvers.h. 6516 o Updated Makefile.in accordingly. 6517 6518 * As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25 6519 I have updated the win32 detection rules in tiffcomp.h. 6520 65212000-10-20 Frank Warmerdam <warmerda@cs46980-c> 6522 6523 * tif_getimage.c: Fixed RGBA translation for YCbCr images for which 6524 the strip/tile width and height aren't multiples of the sampling size. 6525 See http://bugzilla.remotesensing.org/show_bug.cgi?id=20 6526 Some patches from Rick LaMont of Dot C Software. 6527 6528 * Modified tif_packbits.c encoder to avoid compressing more 6529 data than provided if rowsize doesn't factor into provided data 6530 (such as occurs for YCbCr). 6531 65322000-10-19 Frank Warmerdam <warmerda@cs46980-c> 6533 6534 * tools/rgb2ycbcr.c: fixed output strip size to account for vertical 6535 roundup if rows_per_strip not a multiple of vertical sample size. 6536 65372000-10-16 Frank Warmerdam <warmerda@cs46980-c> 6538 6539 * tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory 6540 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6541 from [email protected]. 6542 6543 * Modified tif_packbits.c decoding to avoid overrunning the 6544 output buffer, and to issue a warning if data needs to be 6545 discarded. See http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6546 65472000-10-12 Frank Warmerdam <warmerda@cs46980-c> 6548 6549 * Modified tiff2bw to ensure portions add to 100%, and that 6550 white is properly recovered. 6551 6552 See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15 6553 Patch c/o Stanislav Brabec <[email protected]> 6554 65552000-09-30 Frank Warmerdam <warmerda@cs46980-c> 6556 6557 * Modified TIFFClientOpen() to emit an error on an attempt to 6558 open a comperessed file for update (O_RDWR/r+) access. This is 6559 because the compressor/decompressor code gets very confused when 6560 the mode is O_RDWR, assuming this means writing only. See 6561 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13 6562 65632000-09-27 Frank Warmerdam <warmerda@cs46980-c> 6564 6565 * Added GNULDdso target an`d switched linux and freebsd to use it. 6566 65672000-09-26 Frank Warmerdam <warmerda@cs46980-c> 6568 6569 * Applied patch for 0x0000 sequences in tif_fax3.h's definition 6570 of EXPAND1D() as per bug 11 (from Roman). 6571 65722000-09-25 Frank Warmerdam <warmerda@cs46980-c> 6573 * Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve 6574 cygwin compatibility. 6575 6576 * Applied patch from Roman Shpount to tif_fax3.c. This seems to 6577 be a proper fix to the buffer sizing problem. See 6578 http://bugzilla.remotesensing.org/show_bug.cgi?id=11 6579 6580 * Fixed tif_getimage.c to fix overrun bug with YCbCr images without 6581 downsampling. http://bugzilla.remotesensing.org/show_bug.cgi?id=10 6582 Thanks to Nick Lamb <[email protected]> for reporting the 6583 bug and proving the patch. 6584 65852000-09-18 Frank Warmerdam <warmerda@cs46980-c> 6586 6587 * Fixed tif_jpeg.c so avoid destroying the decompressor before 6588 we are done access data thanks to bug report from: 6589 Michael Eckstein <[email protected]>. 6590 6591 * Reverted tif_flush change. 6592 65932000-09-14 Frank Warmerdam <warmerda@cs46980-c> 6594 6595 * tif_flush.c: Changed so that TIFFFlushData() doesn't return an 6596 error when TIFF_BEENWRITING is not set. This ensures that the 6597 directory contents can still be flushed by TIFFFlush(). 6598 65992000-08-14 Frank Warmerdam <[email protected]> 6600 6601 * tif_open.c: Don't set MMAP for O_RDWR files. 6602 6603 * tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY 6604 so that files opened for update can be strip chopped too. 6605 6606 * tif_read.c: fixed up bug with files missing rowsperstrip and 6607 the strips per separation fix done a few weeks ago. 6608 66092000-07-17 Frank Warmerdam <warmerda@cs46980-c> 6610 6611 * Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and 6612 SAMPLEFORMAT_COMPLEXINT. 6613 66142000-07-13 Mike Welles <[email protected]> 6615 6616 * index.html, bugs.html: added bugzilla info. 6617 66182000-07-12 Frank Warmerdam <[email protected]> 6619 6620 * tif_read.c: fix subtle bug with determining the number of 6621 rows for strips that are the last strip in a separation but 6622 not the last strip of all in TIFFReadEncodedStrip(). 6623 6624 * Applied 16/32 bit fix to tif_fax3.c. Fix supplied by 6625 Peter Skarpetis <[email protected]> 6626 66272000-06-15 Frank Warmerdam <[email protected]> 6628 6629 * Modified tiffio.h logic with regard to including windows.h. It 6630 won't include it when building with __CYGWIN__. 6631 66322000-05-11 Frank Warmerdam <warmerda@cs46980-c> 6633 6634 * README: update to mention www.libtiff.org, don't list Sam's old 6635 email address. 6636 6637 * configure: Fixed DSO test for Linux as per patch from 6638 Jan Van Buggenhout <[email protected]>. 6639 66402000-04-21 Frank Warmerdam <[email protected]> 6641 6642 * libtiff/tif_dirread.c: Don't use estimate strip byte count for 6643 one tile/strip images with an offset, and byte count of zero. These 6644 could be "unpopulated" images. 6645 66462000-04-18 Frank Warmerdam <[email protected]> 6647 6648 * contrib/addtiffo: Added "averaging" resampling option. 6649 6650 * tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT. 6651 6652Tue Apr 18 16:18:08 2000 Frank Warmerdam <[email protected]> 6653 6654 * tools/Makefile.in: Modified to install properly on SGI. 6655 66562000-04-12 Mike Welles <[email protected]> 6657 * configure: Fixed stupid mistake in libc6 test on Linux 6658 66592000-04-04 Mike Welles <[email protected]> 6660 * tif_win32.c: Applied patch to fix overreads and ovverwrites 6661 caught by BoundsChecker. From Arvan Pritchard 6662 <[email protected]> (untested). 6663 6664 * tif_getimage.c: Applied patch to silence VC6 warnings. From 6665 Arvan Pritchard <[email protected]> 6666 6667 * tif_lzw.c: Applied patch to silence VC6 warnings. From 6668 Arvan Pritchard <[email protected]> 6669 66702000-03-28 Frank Warmerdam <warmerda@cs46980-c> 6671 6672 * Added contrib/stream (stream io) code submitted by Avi Bleiweiss. 6673 66742000-03-28 Frank Warmerdam <warmerda@cs46980-c> *** 3.5.5 release *** 6675 6676 * fax2ps: Fixed mixup of width and height in bounding box statement 6677 as per submission by Nalin Dahyabhai <[email protected]>. 6678 66792000-03-27 Mike Welles <[email protected]> 6680 6681 * fax2ps: Modified printruns to take uint32 instead of uint16. 6682 Patch courtesy of Bernt Herd <[email protected]> 6683 66842000-03-20 Mike Welles <[email protected]> 6685 6686 * configure: added test for libc6 for linux targets. Bug reported by 6687 Stanislav Brabec <[email protected]> 6688 6689 * Added 3.5 docs to html/Makefile.in. 6690 Thanks to Stanislav Brabec <[email protected]> 6691 6692 * configure: fixed bugs in sed scripts 6693 (applied sed script s:/@:s;@:;s:/s;;:;: to configure). 6694 fix submitted to Stanislav Brabec <[email protected]> 6695 6696 * tools/iptcutil was not in files list, and wasn't being 6697 added to tar archive. Updated Makefile.in. 6698 66992000-03-17 Frank Warmerdam <warmerda@cs46980-c> 6700 6701 * tif_fax3.c: Fixed serious bug introduced during the uint16->uint32 6702 conversion for the run arrays. 6703 67042000-03-03 Frank Warmerdam <[email protected]> 6705 6706 * Set td_sampleformat default to SAMPLEFORMAT_UINT instead of 6707 SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c. 6708 67092000-03-02 Frank Warmerdam <[email protected]> 6710 6711 * Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c. 6712 6713 * Patched tif_fax3.c so that dsp->runs is allocated a bit bigger 6714 to avoid overruns encountered with frle_bug.tif. 6715 6716Tue Feb 15 22:01:05 2000 Frank Warmerdam <[email protected]> 6717 6718 * Fixed tools/tiffcmp so that stopondiff testing works. 6719 Patch care of Joseph Orost <[email protected]>. 6720 67212000-01-28 <warmerda@CS46980-B> 6722 6723 * Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is 6724 set to 1, and added default (off) setting in tiffconf.h. This 6725 should eventually be set by the configure script somehow. 6726 6727 The original work on all these 2-4GB changes was done by 6728 Peter Smith ([email protected]). 6729 6730 * Modified tif_win32.c to support 2-4GB seeks. 6731 6732 * tentatively changed toff_t to be unsigned instead of signed to 6733 facilitate support for 2-4GB files. 6734 6735 * Updated a variety of files to use toff_t. Fixed some mixups 6736 between toff_t and tsize_t. 6737 6738Fri Jan 28 10:13:49 2000 Frank Warmerdam <[email protected]> 6739 6740 * Largely reimplemented contrib/addtiffo to avoid temp files, 6741 updating the TIFF file in place. Fixed a few other bugs to. 6742 6743 * Set tif_rawdatasize to zero when freeing raw data buffer in 6744 TIFFWriteDirectory(). 6745 6746 * Enabled "REWRITE_HACK" in tif_write.c by default. 6747 6748 * Fix bug in tif_write.c when switching between reading one directory 6749 and writing to another. 6750 6751 * Made TIFFWriteCheck() public, and added TIFFCreateDirectory() 6752 6753Wed Jan 5 12:37:48 2000 Frank Warmerdam <[email protected]> 6754 6755 * Added TIFFmemory(3t) functions to libtiff.def. 6756 6757Tue Jan 4 13:39:00 2000 Frank Warmerdam <[email protected]> 6758 6759 * Added libtiff/libtiff.def to TIFFILES distribution list. 6760 6761Mon Dec 27 12:13:39 EST 1999 Mike Welles <[email protected]> 6762 6763 * Created lzw compression kit, as a new module (libtiff-lzw-compression-kit). 6764 6765 * Altered descriptions in tools to reflect "by default" lzw not supported 6766 6767 * Updated index.html to note lzw compression kit. 6768 6769Tue Dec 21 14:01:51 1999 Frank Warmerdam <[email protected]> 6770 6771 * Added fax3sm_winnt.c to distribution list in Makefile.in. 6772 6773Tue Dec 21 11:04:45 EST 1999 Mike Welles <[email protected]> *** 3.5.4 release *** 6774 6775 * Aadded Pixar tag support. Contributed by Phil Beffery <[email protected]> 6776 6777 * Made one more change to tif_dir.c for removal of LZW compression. Also added notice 6778 when LZW compression invoked. 6779 6780 * Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions 6781 in tools to reflect removal of LZW compression 6782 6783Mon Dec 20 18:39:02 EST 1999 Mike Welles <[email protected]> 6784 6785 * Fixed bug that caused LZW (non) compression to segfault. Added 6786 warning about LZW compression removed being removed, and why. 6787 6788 * Added nostrip to install in tools/Makefile.in so that debugging 6789 symbols are kept. 6790 6791Tue Dec 7 12:04:47 EST 1999 Mike Welles <[email protected]> 6792 6793 * Added patch from Ivo Penzar <[email protected]>, 6794 supporting Adobe ZIP deflate. Untested. 6795 6796Sat Dec 4 15:47:11 1999 Frank Warmerdam <[email protected]> 6797 6798 * Made Packbits the default compression in tools/tiff2rgba.c instead 6799 of LZW. 6800 6801Tue Nov 30 14:41:43 1999 Frank Warmerdam <[email protected]> *** 3.5.3. release *** 6802 6803 * Added tif_luv to contrib/djgpp/Makefile.lib. 6804 6805Tue Nov 30 14:15:32 EST 1999 Mike Welles <[email protected]> 6806 6807 * Added zip creation to relase makefile target 6808 6809 * Added html for TIFFWriteTile.3t man page. 6810 6811Tue Nov 30 09:20:16 1999 Frank Warmerdam <[email protected]> 6812 6813 * Added some changes to tif_write.c to support rewriting existing 6814 fixed sized tiles and strips. Code mods disabled by default, only 6815 enabled if REWRITE_HACK is defined for now. 6816 6817Mon Nov 29 11:43:42 1999 Frank Warmerdam <[email protected]> 6818 6819 * Added TIFFWriteTile.3t man page. 6820 6821Sun Nov 28 20:36:18 1999 Frank Warmerdam <[email protected]> 6822 6823 * Added notes on use of makefile.vc in build.html, and fixed 6824 email subscription address. 6825 6826199-11-28 Mike Welles <[email protected]> 6827 6828 * Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c 6829 6830 * Did some casts cleaning up to reduce compiler warnings in tif_fax3.c, 6831 from Bruce Carmeron <[email protected]> -- modifications of 6832 changes made by Frank (sun cc still complained on cast). 6833 6834 * Added tiffconf.h to install target per request from Bill 6835 Radcliffe <[email protected]>: "We need a way for ImageMagick to 6836 know features have been compiled into the TIFF library in order to 6837 handle things properly". 6838 6839Sat Nov 27 16:49:21 1999 Frank Warmerdam <[email protected]> 6840 6841 * fixed various VC++ warnings as suggested by Gilles Vollant 6842 <[email protected]>. 6843 6844Wed Nov 24 12:08:16 1999 Frank Warmerdam <[email protected]> 6845 6846 * Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to 6847 not imply applications are responsible for image data swapping. 6848 68491999-11-22 Mike Welles <[email protected]> 6850 * HTML-ized the man pages, added to html/man 6851 6852 * Removed LZW Compression to comply with Unisys patent extortion. 6853 68541999-09-29 Mike Welles <[email protected]> 6855 * Corrected one remaining 16 -> 32 bit value in tif_fax3.c, 6856 From Ivo Penzar <[email protected]. 6857 6858 * Added patch from Ivo Penzar to have TiffAdvanceDirectory handle 6859 memory mapped files. <[email protected]> 6860 68611999-09-26 Mike Welles <[email protected]> *** 3.5.2 release *** 6862 * Corrected alpha versioning. 6863 6864 * Removed distinction between alpha and release targets in Makefile.in. 6865 6866 * added release.stamp target, which tags cvs tree, and updates 6867 "RELEASE-DATE" 6868 6869 * added releasediff target, which diffs tree with source as of 6870 date in "RELEASE-DATE" 6871 6872 * Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving 6873 away from alpha/non-alpha distinctions). 6874 6875 * updated html to reflect release 6876 68771999-09-23 <warmerda@CS46980-B> 6878 6879 * Set O_BINARY for tif_unix.c open() ... used on cygwin for instance. 6880 6881 * Added CYGWIN case in configure. 6882 6883Fri Sep 17 00:13:51 CEST 1999 Mike Welles <[email protected]> 6884 6885 * Applied Francois Dagand's patch to handle fax decompression bug. 6886 (sizes >= 65536 were failing) 6887 6888Tue Sep 14 21:31:43 1999 Frank Warmerdam <[email protected]> 6889 6890 * Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested 6891 by Christopher Lawton <[email protected]> 6892 6893Wed Sep 8 08:19:18 1999 Frank Warmerdam <[email protected]> 6894 6895 * Added IRIX/gcc, and OSF/1 4.x support on behalf of 6896 Albert Chin-A-Young <[email protected]> 6897 6898 * Added TIFFReassignTagToIgnore() API on behalf of 6899 Bruce Cameron <[email protected]>. Man page still pending. 6900 6901Wed Aug 25 11:39:07 1999 Frank Warmerdam <[email protected]> 6902 6903 * Added test target in Makefile, test_pics.sh script and pics/*.rpt 6904 files to provide for a rudimentary testsuite. 6905 6906 * Added contrib/tags back from old distribution ... fixed up a bit. 6907 69081999-08-16 <warmerda@CS46980-B> 6909 6910 * Added simple makefile.vc makefiles for building with MS VC++ 6911 on Windows NT/98/95 in console mode. Stuff in contrib/win* make give 6912 better solutions for some users. 6913 6914Mon Aug 16 21:52:11 1999 Frank Warmerdam <[email protected]> 6915 6916 * Added addtiffo (add overviews to a TIFF file) in contrib. Didn't 6917 put it in tools since part of it is in C++. 6918 69191999-08-16 Michael L. Welles <[email protected]> 6920 6921 * Updated html/index.html with anon CVS instructions. 6922 6923Mon Aug 16 13:18:41 1999 Frank Warmerdam <[email protected]> 6924 6925 * pre-remove so link before softlink in LINUXdso action in 6926 libtiff/Makefile.in to avoid failure on LINUXdso builds other than 6927 the first. 6928 6929 * Fixed problem with cvtcmap() in tif_getimage.c modifying the 6930 colormaps owned by the TIFF handle itself when trying to fixup wrong 6931 (eight bit) colormaps. Corrected by maintaining a private copy of 6932 the colormap. 6933 6934 * Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in 6935 tif_getimage.c. 6936 6937 * CVS Repository placed at remotesensing.org. ChangeLog added. 6938