12016-09-25 Bob Friesenhahn <[email protected]> 2 3 * html: Change as many remotesensing.org broken links to a working 4 URL as possible. 5 62016-09-24 Bob Friesenhahn <[email protected]> 7 8 * libtiff/tif_getimage.c (TIFFRGBAImageOK): Reject attempts to 9 read floating point images. 10 11 * libtiff/tif_predict.c (PredictorSetup): Enforce bits-per-sample 12 requirements of floating point predictor (3). Fixes CVE-2016-3622 13 "Divide By Zero in the tiff2rgba tool." 14 152016-09-23 Even Rouault <even.rouault at spatialys.com> 16 17 * tools/tiffcrop.c: fix various out-of-bounds write vulnerabilities 18 in heap or stack allocated buffers. Reported as MSVR 35093, 19 MSVR 35096 and MSVR 35097. Discovered by Axel Souchet and Vishal 20 Chauhan from the MSRC Vulnerabilities & Mitigations team. 21 * tools/tiff2pdf.c: fix out-of-bounds write vulnerabilities in 22 heap allocate buffer in t2p_process_jpeg_strip(). Reported as MSVR 23 35098. Discovered by Axel Souchet and Vishal Chauhan from the MSRC 24 Vulnerabilities & Mitigations team. 25 * libtiff/tif_pixarlog.c: fix out-of-bounds write vulnerabilities 26 in heap allocated buffers. Reported as MSVR 35094. Discovered by 27 Axel Souchet and Vishal Chauhan from the MSRC Vulnerabilities & 28 Mitigations team. 29 * libtiff/tif_write.c: fix issue in error code path of TIFFFlushData1() 30 that didn't reset the tif_rawcc and tif_rawcp members. I'm not 31 completely sure if that could happen in practice outside of the odd 32 behaviour of t2p_seekproc() of tiff2pdf). The report points that a 33 better fix could be to check the return value of TIFFFlushData1() in 34 places where it isn't done currently, but it seems this patch is enough. 35 Reported as MSVR 35095. Discovered by Axel Souchet & Vishal Chauhan & 36 Suha Can from the MSRC Vulnerabilities & Mitigations team. 37 382016-09-20 Bob Friesenhahn <[email protected]> 39 40 * html/man/index.html: Comment out links to documentation for 41 abandoned utilities. 42 432016-09-17 Even Rouault <even.rouault at spatialys.com> 44 45 * libtiff/tif_lzma.c: typo fix in comment 46 472016-09-04 Even Rouault <even.rouault at spatialys.com> 48 49 * libtiff/*.c: fix warnings raised by clang 3.9 -Wcomma 50 512016-09-03 Even Rouault <even.rouault at spatialys.com> 52 53 * libtiff/tif_dirwrite.c, libtiff/tif_color.c: fix warnings raised 54 by GCC 5 / clang -Wfloat-conversion 55 562016-08-16 Even Rouault <even.rouault at spatialys.com> 57 58 * tools/tiffcrop.c: fix C99'ism. 59 602016-08-15 Even Rouault <even.rouault at spatialys.com> 61 62 * tools/tiff2bw.c: fix weight computation that could result of color 63 value overflow (no security implication). Fix bugzilla #2550. 64 Patch by Frank Freudenberg. 65 662016-08-15 Even Rouault <even.rouault at spatialys.com> 67 68 * tools/rgb2ycbcr.c: validate values of -v and -h parameters to 69 avoid potential divide by zero. Fixes CVE-2016-3623 (bugzilla #2569) 70 712016-08-15 Even Rouault <even.rouault at spatialys.com> 72 73 * tools/tiffcrop.c: Fix out-of-bounds write in loadImage(). 74 From patch libtiff-CVE-2016-3991.patch from 75 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro (bugzilla #2543) 76 772016-08-15 Even Rouault <even.rouault at spatialys.com> 78 79 * libtiff/tif_pixarlog.c: Fix write buffer overflow in PixarLogEncode 80 if more input samples are provided than expected by PixarLogSetupEncode. 81 Idea based on libtiff-CVE-2016-3990.patch from 82 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, but with different and 83 simpler check. (bugzilla #2544) 84 852016-08-15 Even Rouault <even.rouault at spatialys.com> 86 87 * tools/tiff2rgba.c: Fix integer overflow in size of allocated 88 buffer, when -b mode is enabled, that could result in out-of-bounds 89 write. Based initially on patch tiff-CVE-2016-3945.patch from 90 libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, with correction for 91 invalid tests that rejected valid files. (bugzilla #2545) 92 932016-07-11 Even Rouault <even.rouault at spatialys.com> 94 95 * tools/tiffcrop.c: Avoid access outside of stack allocated array 96 on a tiled separate TIFF with more than 8 samples per pixel. 97 Reported by Kaixiang Zhang of the Cloud Security Team, Qihoo 360 98 (CVE-2016-5321 / CVE-2016-5323 , bugzilla #2558 / #2559) 99 1002016-07-10 Even Rouault <even.rouault at spatialys.com> 101 102 * libtiff/tif_read.c: Fix out-of-bounds read on 103 memory-mapped files in TIFFReadRawStrip1() and TIFFReadRawTile1() 104 when stripoffset is beyond tmsize_t max value (reported by 105 Mathias Svensson) 106 1072016-07-10 Even Rouault <even.rouault at spatialys.com> 108 109 * tools/tiffdump.c: fix a few misaligned 64-bit reads warned 110 by -fsanitize 111 1122016-07-03 Even Rouault <even.rouault at spatialys.com> 113 114 * libtiff/tif_read.c: make TIFFReadEncodedStrip() and 115 TIFFReadEncodedTile() directly use user provided buffer when 116 no compression (and other conditions) to save a memcpy(). 117 118 * libtiff/tif_write.c: make TIFFWriteEncodedStrip() and 119 TIFFWriteEncodedTile() directly use user provided buffer when 120 no compression to save a memcpy(). 121 1222016-07-01 Even Rouault <even.rouault at spatialys.com> 123 124 * libtiff/tif_luv.c: validate that for COMPRESSION_SGILOG and 125 PHOTOMETRIC_LOGL, there is only one sample per pixel. Avoid 126 potential invalid memory write on corrupted/unexpected images when 127 using the TIFFRGBAImageBegin() interface (reported by 128 Clay Wood) 129 1302016-06-28 Even Rouault <even.rouault at spatialys.com> 131 132 * libtiff/tif_pixarlog.c: fix potential buffer write overrun in 133 PixarLogDecode() on corrupted/unexpected images (reported by Mathias Svensson) 134 (CVE-2016-5875) 135 1362016-06-15 Bob Friesenhahn <[email protected]> 137 138 * libtiff/libtiff.def: Added _TIFFMultiply32 and _TIFFMultiply64 139 to libtiff.def 140 1412016-06-05 Bob Friesenhahn <[email protected]> 142 143 * tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff, 144 ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from 145 the distribution. The libtiff tools rgb2ycbcr and thumbnail are 146 only built in the build tree for testing. Old files are put in 147 new 'archive' subdirectory of the source repository, but not in 148 distribution archives. These changes are made in order to lessen 149 the maintenance burden. 150 1512016-05-10 Bob Friesenhahn <[email protected]> 152 153 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Add a '1' to the 154 HAVE_SNPRINTF definition.' 155 1562016-05-09 Bob Friesenhahn <[email protected]> 157 158 * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Applied patch by Edward 159 Lam to define HAVE_SNPRINTF for Visual Studio 2015. 160 1612016-04-27 Even Rouault <even.rouault at spatialys.com> 162 163 * libtiff/tif_dirread.c: when compiled with DEFER_STRILE_LOAD, 164 fix regression, introduced on 2014-12-23, when reading a one-strip 165 file without a StripByteCounts tag. GDAL #6490 166 1672016-04-07 Bob Friesenhahn <[email protected]> 168 169 * html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for 170 purposes of security issue reporting. 171 1722016-01-23 Even Rouault <even.rouault at spatialys.com> 173 174 * libtiff/*: upstream typo fixes (mostly contributed by Kurt Schwehr) 175 coming from GDAL internal libtiff 176 1772016-01-09 Even Rouault <even.rouault at spatialys.com> 178 179 * libtiff/tif_fax3.h: make Param member of TIFFFaxTabEnt structure 180 a uint16 to reduce size of the binary. 181 1822016-01-03 Even Rouault <even.rouault at spatialys.com> 183 184 * libtiff/tif_read.c, tif_dirread.c: fix indentation issues raised 185 by GCC 6 -Wmisleading-indentation 186 1872015-12-27 Even Rouault <even.rouault at spatialys.com> 188 189 * libtiff/tif_pixarlog.c: avoid zlib error messages to pass a NULL 190 string to %s formatter, which is undefined behaviour in sprintf(). 191 1922015-12-27 Even Rouault <even.rouault at spatialys.com> 193 194 * libtiff/tif_next.c: fix potential out-of-bound write in NeXTDecode() 195 triggered by http://lcamtuf.coredump.cx/afl/vulns/libtiff5.tif 196 (bugzilla #2508) 197 1982015-12-27 Even Rouault <even.rouault at spatialys.com> 199 200 * libtiff/tif_luv.c: fix potential out-of-bound writes in decode 201 functions in non debug builds by replacing assert()s by regular if 202 checks (bugzilla #2522). 203 Fix potential out-of-bound reads in case of short input data. 204 2052015-12-26 Even Rouault <even.rouault at spatialys.com> 206 207 * libtiff/tif_getimage.c: fix out-of-bound reads in TIFFRGBAImage 208 interface in case of unsupported values of SamplesPerPixel/ExtraSamples 209 for LogLUV / CIELab. Add explicit call to TIFFRGBAImageOK() in 210 TIFFRGBAImageBegin(). Fix CVE-2015-8665 reported by limingxing and 211 CVE-2015-8683 reported by zzf of Alibaba. 212 2132015-12-21 Even Rouault <even.rouault at spatialys.com> 214 215 * libtiff/tif_dirread.c: workaround false positive warning of Clang Static 216 Analyzer about null pointer dereference in TIFFCheckDirOffset(). 217 2182015-12-19 Even Rouault <even.rouault at spatialys.com> 219 220 * libtiff/tif_fax3.c: remove dead assignment in Fax3PutEOLgdal(). Found 221 by Clang Static Analyzer 222 2232015-12-18 Even Rouault <even.rouault at spatialys.com> 224 225 * libtiff/tif_dirwrite.c: fix truncation to 32 bit of file offsets in 226 TIFFLinkDirectory() and TIFFWriteDirectorySec() when aligning directory 227 offsets on a even offset (affects BigTIFF). This was a regression of the 228 changeset of 2015-10-19. 229 2302015-12-12 Even Rouault <even.rouault at spatialys.com> 231 232 * libtiff/tif_write.c: TIFFWriteEncodedStrip() and TIFFWriteEncodedTile() 233 should return -1 in case of failure of tif_encodestrip() as documented 234 * libtiff/tif_dumpmode.c: DumpModeEncode() should return 0 in case of 235 failure so that the above mentionned functions detect the error. 236 2372015-12-06 Even Rouault <even.rouault at spatialys.com> 238 239 * libtiff/uvcode.h: const'ify uv_code array 240 2412015-12-06 Even Rouault <even.rouault at spatialys.com> 242 243 * libtiff/tif_dirinfo.c: const'ify tiffFields, exifFields, 244 tiffFieldArray and exifFieldArray arrays 245 2462015-12-06 Even Rouault <even.rouault at spatialys.com> 247 248 * libtiff/tif_print.c: constify photoNames and orientNames arrays 249 2502015-12-06 Even Rouault <even.rouault at spatialys.com> 251 252 * libtiff/tif_close.c, libtiff/tif_extension.c : rename link 253 variable to avoid -Wshadow warnings 254 2552015-11-22 Even Rouault <even.rouault at spatialys.com> 256 257 * libtiff/*.c: fix typos in comments (patch by Kurt Schwehr) 258 2592015-11-22 Even Rouault <even.rouault at spatialys.com> 260 261 * libtiff/*.c: fix MSVC warnings related to cast shortening and 262 assignment within conditional expression 263 2642015-11-18 Even Rouault <even.rouault at spatialys.com> 265 266 * libtiff/*.c: fix clang -Wshorten-64-to-32 warnings 267 2682015-11-18 Even Rouault <even.rouault at spatialys.com> 269 270 * libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL 271 to please MSVC 2013 272 2732015-11-17 Even Rouault <even.rouault at spatialys.com> 274 275 * libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction 276 if BitsPerPixel > 24, so as to avoid huge memory allocation and file 277 read attempts 278 2792015-11-02 Even Rouault <even.rouault at spatialys.com> 280 281 * libtiff/tif_dirread.c: remove duplicated assignment (reported by 282 Clang static analyzer) 283 2842015-10-28 Even Rouault <even.rouault at spatialys.com> 285 286 * libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c, 287 libtiff/tif_jpeg_12.c: suppress warnings about 'no previous 288 declaration/prototype' 289 2902015-10-19 Even Rouault <even.rouault at spatialys.com> 291 292 * libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix 293 'warning: negative integer implicitly converted to unsigned type' warning 294 (part of -Wconversion) 295 2962015-10-17 Even Rouault <even.rouault at spatialys.com> 297 298 * libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c, 299 libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/) 300 3012015-09-12 Bob Friesenhahn <[email protected]> 302 303 * libtiff 4.0.6 released. 304 305 * html/v4.0.6.html: Added release notes for 4.0.6. 306 3072015-09-06 Bob Friesenhahn <[email protected]> 308 309 * tools/tiffgt.c: Silence glut API deprecation warnings on MacOS 310 X. Patch by Roger Leigh. 311 312 * Makefile.am: Added a 'coverity' rule to assist with Coverity 313 submissions. 314 315 * tools/tiff2pdf.c: Fix compiler warning about unused function 316 when JPEG is not available. 317 318 * tools/fax2ps.c (main): Detect failure to write to temporary 319 file. 320 3212015-09-05 Bob Friesenhahn <[email protected]> 322 323 * libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8): 324 Change implementation so that it does not sometimes overflow the 325 range of a 32-bit int and to avoid a signed vs unsigned compare 326 compiler warning. 327 (TIFF_INT64_MAX): Avoid use of platform-specific large constants. 328 (TIFF_UINT32_MAX): Avoid use of platform-specific large constants. 329 3302015-09-01 Bob Friesenhahn <[email protected]> 331 332 * Makefile.am (distcheck-hook), configure.ac: Applied patches by 333 Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue 334 with BSD make and to make use of cmake in 'distcheck' target 335 conditional on if cmake is available. 336 337 * CMakeLists.txt, Makefile.am, configure.ac: Applied patches by 338 Roger Leigh (via tiff mailing list on 2015-09-01). 339 340 CMake build is now included in 'distcheck' target. 341 342 Builds with CMake 2.8.9 and newer. 343 344 Tar is now resquested to use POSIX PAX format. 345 3462015-08-31 Bob Friesenhahn <[email protected]> 347 348 * CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by 349 Roger Leigh (via tiff mailing list on 2015-08-31. 350 351 CMake reads all version information directly from configure.ac to 352 avoid duplication of values. This basically greps over the file 353 for the LIBTIFF_* variables, then translates them to the form 354 needed for cmake. This includes the release version and libtool 355 shared library version information. 356 357 Make shared/static library building configurable. Currently it 358 always builds shared libraries, with static libs having a _static 359 suffix (copying zlib, but it means it's got a non-standard name). 360 CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the 361 other, which is now used instead. There's now a single "tiff" 362 target to build either shared or static as required, and all the 363 tests and tools are linked with this. Note: the Windows tests fail 364 when linked with a static libtiff (says: libtiff.dll not found). 365 Not really a regression since this was not tested up to this 366 point, and it's likely the unit tests haven't (ever?) been run on 367 Windows with a static libtiff, so there's some additional 368 portability issue here to address. Works fine on UNIX systems, 369 and fine on Windows with the default to build a DLL. 370 371 Add a missing file which wasn't being distributed, causing unit 372 tests to fail. Note that "find . -name '*.cmake'" lists all the 373 CMake files which need distributing in addition to all the 374 CMakeLists.txt files (which now are distributed). 375 3762015-08-31 Even Rouault <even.rouault at spatialys.com> 377 378 * libtiff/tif_predict.c: pedantic change to add explicit masking 379 with 0xff before casting to uchar in floating-point horizontal 380 differencing and accumulation routines. 381 3822015-08-31 Even Rouault <even.rouault at spatialys.com> 383 384 * libtiff/tif_predict.c: fix generation of output with 16 bit 385 or 32 bit integer, when byte swapping is needed, in 386 horizontal predictor (#2521). Also fixes decoding when there is 387 a single pixel to code (unlikely case...) and byte swapping is 388 involved. 389 3902015-08-30 Even Rouault <even.rouault at spatialys.com> 391 392 * libtiff/tif_lzw.c: make nextdata a unsigned type to avoid 393 undefined behaviour with shifts (gcc -fsanitize=shift) 394 3952015-08-30 Even Rouault <even.rouault at spatialys.com> 396 397 * libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c: 398 add explicit masking with 0xff before casting 399 to unsigned char (make icc -check=conversions happy) 400 401 * libtiff/tif_predict.c: operate on unsigned datatypes when 402 computing/applying differences to avoid undefined behaviour of 403 signed types (C standard compliance) 404 4052015-08-30 Bob Friesenhahn <[email protected]> 406 407 * configure.ac: libtiff 4.0.5 released. 408 4092015-08-29 Bob Friesenhahn <[email protected]> 410 411 * CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing 412 list on 2015-08-29) to add ld-version-script option to cmake build 413 to match autoconf. Note: defaults to 'on' to be ABI-compatible by 414 default with common Linux distribution builds. Note that the 415 autoconf configure script defaults to 'off'. 416 417 * html/build.html: Applied patch by Roger Leigh (via tiff mailing 418 list on 2015-08-29) to describe how to use CMake to build libtiff. 419 4202015-08-28 Bob Friesenhahn <[email protected]> 421 422 * html/v4.0.5.html: Added HTML file describing the changes which 423 will appear in the 4.0.5 release. 424 4252015-08-23 Bob Friesenhahn <[email protected]> 426 427 * libtiff/tiffiop.h: For MinGW comiles, make sure that build 428 supports necessary __MSVCRT_VERSION__ (at least at least 0x800). 429 Otherwise large files can not be supported for POSIX-style I/O. 430 431 * tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit 432 builds about cast to thandle_t. 433 434 * test/rewrite_tag.c (main): Does not require any arguments. 435 4362015-08-20 Bob Friesenhahn <[email protected]> 437 438 * tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to 439 fix build issues when using Cmake due to Windows large file 440 changes. 441 4422015-08-18 Bob Friesenhahn <[email protected]> 443 444 * libtiff/tiffiop.h: First cut at supporting large files under 445 Microsoft Windows using tif_unix.c and the libtiff tools. This 446 only works if the Windows CDK is new enough to support the APIs 447 used (Visual C++ 2005 or later). Support for large files is not 448 actually tested yet. 449 4502015-08-15 Bob Friesenhahn <[email protected]> 451 452 * libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that 453 client_data is initialized to a known value, and to report an 454 error on two memory allocation failures. 455 4562015-08-13 Bob Friesenhahn <[email protected]> 457 458 * CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx 459 symbol versioning. Patch was mailed to libtiff list on Thu, 13 460 Aug 2015. 461 4622015-07-04 Bob Friesenhahn <[email protected]> 463 464 * cmake: Add d suffix to debug libraries with MSVC. Patch #3 of 3 465 by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 466 +0100. 467 468 * cmake: Add extra warning flags. Patch #2 of 3 by Roger Leigh 469 posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 470 471 * cmake: Correct snprintf fallback for VS2015. Patch #1 of 3 by 472 Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100. 473 4742015-06-24 Bob Friesenhahn <[email protected]> 475 476 * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to 477 libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several 478 corrections to ensure that the autotools build still works were 479 added by me. I have not yet tested the build using 'cmake' or 480 MSVC with 'nmake'. 481 4822015-06-21 Bob Friesenhahn <[email protected]> 483 484 * test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG 485 library so only execute if JPEG is available. 486 487 * libtiff 4.0.4 released. 488 489 * configure.ac: Add a HAVE_FOO Automake conditional for each 490 add-on library. 491 492 * test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode 493 requires JPEG support to compile. Use Automake conditional to 494 only include it when JPEG support is available. 495 496 * html/build.html: Try to improve the nmake-based VC++ build 497 description. 498 499 * libtiff/tiffconf.vc.h: Build fixes based on testing. 500 501 * libtiff/tif_config.vc.h: Build fixes based on testing. 502 503 * libtiff/libtiff.def: TIFFRasterScanline does not exist so remove 504 export for it. 505 5062015-06-20 Bob Friesenhahn <[email protected]> 507 508 * libtiff/tif_config.vc.h: Make adjustments to match the new 509 definitions that configure produces, including for WIN64. Still 510 needs to be tested. 511 512 * configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting 513 specifier. 64-bit MinGW supports 'long long' but support for 514 'lld' is not assured by the run-time DLLs and so GCC warns. 515 Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition 516 and printf format specifier to deal with printing values of 517 'size_t' type. In particular, this was necessary for WIN64. 518 Added a configure test for if the system headers provide 'optarg' 519 (normal case) and block out the many explicit 'extern' statements 520 in the utilities. This was found to be necessary under Windows 521 when getopt is in a DLL and the symbols are already imported with 522 dllimport via standard header files. 523 524 * test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32 525 and boolean in MinGW build due to including jpeglib.h. 526 527 * test/rewrite_tag.c (main): Fix problem with location of variable 528 declaration. 529 530 * libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs, 531 TIFFReadRGBAImageOriented, TIFFSetCompressionScheme, 532 TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc, 533 TIFFRasterScanline, TIFFSetErrorHandlerExt, 534 TIFFSetWarningHandlerExt, TIFFNumberOfDirectories, 535 TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory, 536 TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by 537 Roger Leigh and justified by use in libtiff tests, documentation, 538 and changelog notes. Also sorted symbol list and removed 539 duplicate entries. 540 5412015-06-16 Bob Friesenhahn <[email protected]> 542 543 * libtiff/tif_getimage.c: Fix four Coverity issues related to 544 unintended sign extension. 545 5462015-06-16 Even Rouault <even.rouault at spatialys.com> 547 548 * libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna) 549 5502015-06-14 Lee Howard <[email protected]> 551 552 * libtiff/tif_unix.c: contribution from Vadim Zeitlin on 553 Bugzilla Bug #2510 fixes several harmless but still annoying 554 warnings 555 556 * configure: contribution from Ludolf Holzheid on Bugzilla 557 Bug #2498. Adds an option to select the file I/O style on 558 Windows hosts. 559 560 * libtiff/tif_getimage.c: contribution from Gary Cramblitt 561 on Bugzilla Bug #2409. Correct reading of certain tiled TIFFs. 562 563 * configure, configure.ac: contribution from Marcos H. Woehrmann 564 on Bugzilla Bug #2405. Correct shell equality operator. 565 566 * tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt 567 on Bugzilla Bug #2401. Appropriately call glFlush(). 568 569 * tools/tiff2pdf.c: change ColorTransform from "0" to "1" 570 following Bugzilla Bug #2150. 571 5722015-06-13 Lee Howard <[email protected]> 573 574 * libtiff/tif_lzw.c: contribution from Andy Cave - decode 575 files that contain consecutive CODE_CLEAR codes. 576 577 * tools/tiff2pdf.c: contribution from Antti S. Lankila on 578 Bugzilla Bug #2078. Suppress initial output of the header. 579 580 * tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy - 581 Take care in using the return value from snprintf(). 582 583 * tools/tiffcrop.c: contribution from Eduardo Robles Elvira - 584 correctly copy the compression tag from the source TIFF. 585 586 * tools/tiff2ps.c: contribution from Eduardo Robles Elvira - 587 correct sizing and scaling problems with output document. 588 5892015-06-10 Bob Friesenhahn <[email protected]> 590 591 * libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two 592 clean implementations in order to avoid pre-processor hell. Only 593 one of the implementations is used in a given build. 594 5952015-06-08 Even Rouault <even.rouault at spatialys.com> 596 597 * libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12 598 case 599 6002015-06-07 Bob Friesenhahn <[email protected]> 601 602 * libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975 603 "Division or modulo by zero". 604 (TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division 605 or modulo by zero". 606 (TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by 607 zero". 608 (TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by 609 zero". 610 611 * libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and 612 715974 "Division or modulo by zero". 613 6142015-05-31 Bob Friesenhahn <[email protected]> 615 616 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity 617 1134470 "Logically dead code" by making the roll-over check 618 explicit. 619 620 * libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227 621 "Division or modulo by zero". 622 (LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by 623 zero". 624 (LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by 625 zero". 626 (LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by 627 zero". 628 629 * libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix 630 Coverity 298626 "Logically dead code". 631 (TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead 632 code". 633 (TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead 634 code". 635 (TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead 636 code" 637 638 * libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++ 639 operator precedenc in evaluation. Might quench Coverity 1134470 640 "Logically dead code". 641 642 * libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands 643 don't affect result". This change uses ifdefs to include 644 applicable code based on properties of libjpeg. Still needs to be 645 re-tested with 12-bit "6b" and "MK1". 646 6472015-05-30 Bob Friesenhahn <[email protected]> 648 649 * libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310 650 "Resource leak". 651 652 * libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix 653 Coverity 601720 "Resource leak". 654 655 * libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624 656 "Dereference before null check". 657 658 * libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400 659 "Missing break in switch". 660 661 * contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer 662 size calculation for overflow. 663 664 * contrib/addtiffo/addtiffo.c (main): Possibly address Coverity 665 1024226 "Untrusted value as argument". 666 667 * tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted 668 value as argument". 669 (checksignature): Fix Coverity 1024894 "Ignoring number of bytes 670 read". 671 (readextension): Fix Coverity 1024893 "Ignoring number of bytes 672 read". 673 (readgifimage): Fix Coverity 1024890 "Ignoring number of bytes 674 read". 675 (readraster): Fix Coverity 1024891 "Ignoring number of bytes 676 read". 677 (readgifimage): Fix Coverity 1024892 "Ignoring number of bytes 678 read". 679 680 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181 681 "Structurally dead code". 682 683 * tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return 684 value from library". 685 (guessSize): Fix Coverity 1024888 "Unchecked return value from 686 library". 687 (guessSize): Fix Coverity 1214162 "Ignoring number of bytes read". 688 (guessSize): Fix Coverity 1024889 "Unchecked return value from 689 library". 690 691 * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621 692 "Resource leak". 693 (t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead 694 code". 695 (t2p_write_pdf): Fix Coverity 1227690 "Unused value". 696 6972015-05-29 Bob Friesenhahn <[email protected]> 698 699 * contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468 700 "Infinite loop". 701 (formatIPTC): Fix Coverity 1024727 "Truncated stdio return value". 702 (formatIPTC): Fix Coverity 1214240 "Untrusted loop bound". 703 7042015-05-28 Bob Friesenhahn <[email protected]> 705 706 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 707 Coverity 298615 "Resource leak". 708 (TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign 709 extension". 710 711 * tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value 712 as argument". 713 (main): Fix Coverity 1024678 "Unchecked return value from 714 library". 715 (main): Fix Coverity 1024679 "Unchecked return value from 716 library". 717 (main): Fix Coverity 1214160 "Ignoring number of bytes read". 718 719 * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix 720 Coverity 298615 "Resource leak". 721 722 * tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309 723 "Resource leak". 724 725 * tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource 726 leak". 727 (cpStrips): Fix Coverity 1024305 "Resource leak". 728 7292015-05-27 Bob Friesenhahn <[email protected]> 730 731 * tools/ras2tiff.c: Fix Sun Raster header definition to be safe 732 for 64-bit systems. Add some header validations. Should fix many 733 Coverity issues. 734 (main): Fix Coverity 1301206: "Integer handling issues (BAD_SHIFT)". 735 (main): Quiet Coverity 1024223 "Untrusted value as argument". 736 737 * tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting 738 level does not match indentation". 739 (get_histogram): Quiet Coverity 1024386 "Out-of-bounds read". 740 This was a benign mis-diagnosis but added code to enforce against 741 buffer overflow. 742 743 * tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical 744 vs. bitwise operator". 745 (readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or 746 modulo by zero". 747 (readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead 748 code". 749 (writeSingleSection): Fix Coverity 1024796 "Nesting level does not 750 match indentation". 751 (writeCroppedImage): Fix Coverity 1024797 "Nesting level does not 752 match indentation". 753 (loadImage): Fix Coverity 1299741 "Dereference before null check". 754 (loadImage): Fix Coverity 1299740 "Out-of-bounds write". 755 7562015-03-02 Even Rouault <[email protected]> 757 758 * tools/tiffdither.c: check memory allocations to avoid writing to 759 NULL pointer. Also check multiplication overflow. Fixes #2501, 760 CVE-2014-8128. Derived from patch by Petr Gajdos. 761 7622015-01-26 Even Rouault <[email protected]> 763 764 * add html/v4.0.4beta.html under version control 765 * HOWTO-RELEASE: write that cvs add html/vX.X.html must be used 766 7672015-01-26 Even Rouault <[email protected]> 768 769 * libtiff 4.0.4beta released 770 7712015-01-26 Even Rouault <[email protected]> 772 773 * automake: updated to 1.15 774 * libtool: updated to 2.4.5 775 7762015-01-22 Even Rouault <[email protected]> 777 778 * tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013) 779 7802015-01-05 Frank Warmerdam <[email protected]> 781 782 * html/bugs.html: remove note about needing to email the tiff mailing 783 list administrator about being approved for membership, this appears 784 not to be true. 785 7862015-01-05 Olivier Paquet <[email protected]> 787 788 * tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection. 789 7902015-01-03 Even Rouault <[email protected]> 791 792 * libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow 793 when reading more than 65535 directories, and effectively error out when 794 reaching that limit. 795 7962014-12-29 Even Rouault <[email protected]> 797 798 * libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10 799 markers to avoid emitting a warning (even if, according to the TechNote, 800 there are admitedly unusual/not recommended or even forbidden variants, but 801 they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2, 802 SOF9 and SOF10). 803 Define in_color_space and input_components to the right values in 804 JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by 805 libjpeg API documentation, so as to be compatible with mozjpeg library. 806 Note: the default settings of mozjpeg will produce progressive scans, which 807 is forbidden by the TechNote. 808 8092014-12-29 Even Rouault <[email protected]> 810 811 * libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling. 812 to avoid buffer leak (fix previous fix, found by Coverity scan) 813 8142014-12-29 Even Rouault <[email protected]> 815 816 * libtiff/tif_next.c: add new tests to check that we don't read outside of 817 the compressed input stream buffer. 818 819 * libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height 820 in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and 821 putcontig8bitYCbCr21tile cases. 822 8232014-12-27 Even Rouault <[email protected]> 824 825 * libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing 826 extented tags installed by user code through the extender mechaninm before 827 calling the extender callback (GDAL #5054) 828 8292014-12-26 Bob Friesenhahn <[email protected]> 830 831 * tools/tiffcrop.c: Fix warnings about variables set but not used. 832 833 * contrib/iptcutil/iptcutil.c: Fix warnings about variables set 834 but not used. 835 836 * tools/tiffgt.c: Fix warnings about unused parameters. 837 838 * libtiff/tif_stream.cxx: Fix warnings about unused parameters. 839 8402014-12-25 Even Rouault <[email protected]> 841 842 * libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix 843 various typos found by Debian lintian tool (GDAL #5756) 844 8452014-12-24 Even Rouault <[email protected]> 846 847 * libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling. 848 http://bugzilla.maptools.org/show_bug.cgi?id=2235 849 8502014-12-24 Even Rouault <[email protected]> 851 852 * tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images. 853 http://bugzilla.maptools.org/show_bug.cgi?id=2445 854 8552014-12-24 Even Rouault <[email protected]> 856 857 * tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image. 858 Derived from patch by Petr Gajdos, 859 http://bugzilla.maptools.org/show_bug.cgi?id=2443 860 8612014-12-23 Even Rouault <[email protected]> 862 863 * libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code 864 of _TIFFFillStriles(). This solves crashing bug on corrupted 865 images generated by afl. 866 8672014-12-23 Even Rouault <[email protected]> 868 869 * libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with 870 <= 0 by casting it to int64 first. This solves crashing bug on corrupted 871 images generated by afl. 872 8732014-12-21 Bob Friesenhahn <[email protected]> 874 875 * tools/tiffdump.c: Guard against arithmetic overflow when 876 calculating allocation buffer sizes. 877 8782014-12-21 Even Rouault <[email protected]> 879 880 * tools/tiff2bw.c: when Photometric=RGB, the utility only works if 881 SamplesPerPixel = 3. Enforce that 882 http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127) 883 8842014-12-21 Even Rouault <[email protected]> 885 886 * tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES 887 copying. The right fix would be to properly copy it, but not worth the burden 888 for those esoteric utilities. 889 http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127) 890 8912014-12-21 Even Rouault <[email protected]> 892 893 * tools/thumbnail.c: fix out-of-buffer write 894 http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128) 895 8962014-12-21 Even Rouault <[email protected]> 897 898 * tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS 899 or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or 900 COMPRESSION_CCITTFAX4 901 http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128) 902 9032014-12-21 Even Rouault <[email protected]> 904 905 * libtiff/tif_next.c: check that BitsPerSample = 2. Fixes 906 http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129) 907 9082014-12-21 Even Rouault <[email protected]> 909 910 * tools/tiff2pdf.c: check return code of TIFFGetField() when reading 911 TIFFTAG_SAMPLESPERPIXEL 912 9132014-12-21 Even Rouault <[email protected]> 914 915 * tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none. 916 Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480) 917 Description: fix for Debian bug #741451 918 tiffcp crashes when converting JPEG-encoded TIFF to a different 919 encoding (like none or lzw). For example this will probably fail: 920 tiffcp -c none jpeg_encoded_file.tif output.tif 921 The reason is that when the input file contains JPEG data, 922 the tiffcp code forces conversion to RGB space. However, 923 the output normally inherits YCbCr subsampling parameters 924 from the input, which leads to a smaller working buffer 925 than necessary. The buffer is subsequently overrun inside 926 cpStripToTile() (called from writeBufferToContigTiles). 927 Note that the resulting TIFF file would be scrambled even 928 if tiffcp wouldn't crash, since the output file would contain 929 RGB data intepreted as subsampled YCbCr values. 930 This patch fixes the problem by forcing RGB space on the output 931 TIF if the input is JPEG-encoded and output is *not* JPEG-encoded. 932 Author: Tomasz Buchert <[email protected]> 933 9342014-12-21 Even Rouault <[email protected]> 935 936 Fix various crasher bugs on fuzzed images. 937 * libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for 938 TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing 939 the directory 940 * libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or 941 TransferFunction if BitsPerSample has not yet been read, otherwise reading 942 it later will cause user code to crash if BitsPerSample > 1 943 * libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with 944 SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8 945 * libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images 946 instead of imagewidth to avoid crash 947 * tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions 948 * tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by 949 libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB 950 * tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight 951 * tools/tiffdump.c: fix crash due to overflow of entry count. 952 9532014-12-15 Even Rouault <[email protected]> 954 955 * libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused 956 all tiles/strips to include quantization tables even when the jpegtablesmode 957 had the JPEGTABLESMODE_QUANT bit set. 958 Also add explicit removal of Huffman tables when jpegtablesmode has the 959 JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the 960 first tile/strip (only useful in update scenarios. create-only was 961 fine) 962 9632014-12-09 Bob Friesenhahn <[email protected]> 964 965 * tools/tiff2pdf.c: Assure that memory size calculations for 966 _TIFFmalloc() do not overflow the range of tmsize_t. 967 9682014-12-07 Even Rouault <[email protected]> 969 970 * tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with 971 Valgrind and Address Sanitizer on test suite 972 9732014-12-07 Bob Friesenhahn <[email protected]> 974 975 * tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION 976 tag can return one channel, with the other two channels set to 977 NULL. The tiff2pdf code was expecting that other two channels 978 were duplicate pointers in the case where there is only one 979 channel. Detect this condition in order to avoid a crash, and 980 presumably perform correctly with just one channel. 981 9822014-12-06 Bob Friesenhahn <[email protected]> 983 984 * tools/tiffdump.c: Fix double-free bug. 985 9862014-11-27 Even Rouault <[email protected]> 987 988 * libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with 989 Visual Studio 2015 aka VC 14 aka MSVC 1900 990 9912014-11-20 Even Rouault <[email protected]> 992 993 * libtiff/tif_lzw.c: prevent potential null dereference of 994 sp->dec_codetab in LZWPreDecode (bug #2459) 995 996 * libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size 997 to TIFFmalloc() if passed user buffer size is 0 (bug #2459) 998 999 * libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459) 1000 1001 * libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make 1002 Coverity happier (not a bug, #2459) 1003 1004 * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier 1005 (not a bug, #2459) 1006 1007 * tools/tiff2pdf.c: close PDF file (bug #2479) 1008 1009 * tools/fax2ps.c: check malloc()/realloc() result (bug #2470) 1010 1011 * tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463) 1012 and avoid passing a NULL pointer to read() if seek() failed before (bug #2459) 1013 1014 * tools/tiffcrop.c: fix segfault if bad value passed to -Z option 1015 (bug #2459) and add missing va_end in dump_info (#2459) 1016 1017 * tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451) 1018 10192014-11-20 Even Rouault <[email protected]> 1020 * libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on 1021 corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471) 1022 10232014-11-20 Even Rouault <[email protected]> 1024 * automake: updated to 1.14.1 1025 * libtool: updated to 2.4.3 1026 * HOWTO-RELEASE: small update about autotools building order 1027 10282014-10-20 Olivier Paquet <[email protected]> 1029 * tools/tiff2pdf.c: Preserve input file directory order when pages 1030 are tagged with the same page number. 1031 10322014-08-31 Bob Friesenhahn <[email protected]> 1033 1034 * libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect 1035 count for tag should be a warning rather than an error since 1036 errors terminate processing. 1037 10382014-06-07 Bob Friesenhahn <[email protected]> 1039 1040 * tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip 1041 was wrongly described. Fix suggested by Miguel Medalha. 1042 10432014-05-06 Bob Friesenhahn <[email protected]> 1044 1045 * libtiff/tif_dirinfo.c (TIFFField) : Fix data type for 1046 TIFFTAG_GLOBALPARAMETERSIFD tag. Patch by Steve Underwood. 1047 Reviewed and forwarded by Lee Howard. 1048 10492013-11-30 Frank Warmerdam <[email protected]> 1050 1051 * libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories() 1052 10532013-10-21 Frank Warmerdam <[email protected]> 1054 1055 * libtiff/tif_dir.c: generate error in case of directory count 1056 overflow. 1057 10582013-10-01 Frank Warmerdam <[email protected]> 1059 1060 * libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for 1061 TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457) 1062 10632013-09-12 Bob Friesenhahn <[email protected]> 1064 1065 * libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to 1066 be defective, then set it to zero before returning error in order 1067 to terminate processing of truncated TIFF. Issue found and fix 1068 suggested by Richard Nolde. 1069 10702013-08-14 Frank Warmerdam <[email protected]> 1071 1072 * tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244) 1073 10742013-08-13 Frank Warmerdam <[email protected]> 1075 1076 * tools/gif2tiff.c: Be more careful about corrupt or 1077 hostile input files (#2450, CVE-2013-4231) 1078 1079 * tools/tiff2pdf.c: terminate after failure of allocating 1080 ycbcr buffer (bug #2449, CVE-2013-4232) 1081 10822013-07-09 Frank Warmerdam <[email protected]> 1083 1084 * tools/tiffinfo.c: Default various values fetched with 1085 TIFFGetField() to avoid being uninitialized. 1086 10872013-05-02 Tom Lane <[email protected]> 1088 1089 * tools/tiff2pdf.c: Rewrite JPEG marker parsing in 1090 t2p_process_jpeg_strip to be at least marginally competent. The 1091 approach is still fundamentally flawed, but at least now it won't 1092 stomp all over memory when given bogus input. Fixes CVE-2013-1960. 1093 10942013-05-02 Tom Lane <[email protected]> 1095 1096 * contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c, 1097 libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c, 1098 tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c, 1099 tools/tiffdither.c: Enlarge some fixed-size buffers that weren't 1100 large enough, and eliminate substantially all uses of sprintf(buf, 1101 ...) in favor of using snprintf(buf, sizeof(buf), ...), so as to 1102 protect against overflow of fixed-size buffers. This responds in 1103 particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's 1104 t2p_write_pdf_page(), but in general it seems like a good idea to 1105 deprecate use of sprintf(). 1106 11072013-03-29 Bob Friesenhahn <[email protected]> 1108 1109 * configure.ac: Applied patch by Brad Smith to improve pkg-config 1110 static linking by adding -lm to Libs.private when needed. 1111 11122013-03-05 Tom Lane <[email protected]> 1113 1114 * html/man/tiff2ps.1.html, html/man/tiffcp.1.html, 1115 html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1, 1116 man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c, 1117 tools/tiffdither.c: Sync tool usage printouts and man pages with 1118 reality (quite a few options had escaped being documented in one 1119 or both places). Per an old report from Miroslav Vadkerti. 1120 11212013-01-25 Bob Friesenhahn <[email protected]> 1122 1123 * tools/tiff2ps.c:Fix bug in auto rotate option code. Once a 1124 rotation angle was set by the auto rotate check, it was retained 1125 for all pages that followed instead ofa being retested for each 1126 page. Patch by Richard Nolde. 1127 11282013-01-18 Frank Warmerdam <[email protected]> 1129 1130 * libtiff/tif_write.c: tmsize_t related casting warning fixed for 1131 64bit linux. 1132 1133 * libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings. 1134 http://bugzilla.maptools.org/show_bug.cgi?id=2427 1135 11362012-12-20 Tom Lane <[email protected]> 1137 1138 * test/raw_decode.c: Relax raw_decode's pixel-value checks so that 1139 it will pass with more versions of libjpeg. (There are at least 1140 three in active use now, and JPEG_LIB_VERSION doesn't tell us 1141 enough to uniquely identify expected results.) 1142 11432012-12-12 Tom Lane <[email protected]> 1144 1145 * libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of 1146 field_passcount fields: it had the TIFF_VARIABLE and 1147 TIFF_VARIABLE2 cases backwards. 1148 11492012-12-10 Tom Lane <[email protected]> 1150 1151 * tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564: 1152 check the linebytes calculation too, get the max() calculation 1153 straight, avoid redundant error messages, check for malloc 1154 failure. 1155 11562012-12-10 Tom Lane <[email protected]> 1157 1158 * libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447 1159 (to enlarge tbuf for possible partial stride at end) so that 1160 overflow in the integer addition is detected. Per gripe from 1161 Huzaifa Sidhpurwala. 1162 11632012-12-03 Bob Friesenhahn <[email protected]> 1164 1165 * tools/tiffset.c: tiffset now supports a -u option to unset a 1166 tag. Patch by Zach Baker. See 1167 http://bugzilla.maptools.org/show_bug.cgi?id=2419 1168 11692012-11-18 Bob Friesenhahn <[email protected]> 1170 1171 * automake: Update Automake to 1.12.5 release. 1172 1173 * libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not 1174 require malloc() to return NULL pointer if requested allocation 1175 size is zero. Assure that _TIFFmalloc does. 1176 11772012-11-01 Frank Warmerdam <[email protected]> 1178 1179 * tools/ppm2tiff.c: avoid zero size buffer vulnerability. 1180 CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the 1181 Red Hat Security Response team for the fix. 1182 11832012-10-18 Frank Warmerdam <[email protected]> 1184 1185 * tif_zip.c: Avoid crash on NULL error messages. 1186 11872012-09-22 Bob Friesenhahn <[email protected]> 1188 1189 * libtiff 4.0.3 released. 1190 11912012-09-20 Bob Friesenhahn <[email protected]> 1192 1193 * Makefile.am: Update to Automake 1.12.4 1194 11952012-08-19 Bob Friesenhahn <[email protected]> 1196 1197 * Makefile.in: Update to Automake 1.12.3 1198 1199 * libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add 1200 some TIFF/FX support in libtiff. Add the tag definitions to 1201 tiff.h. Add the related TIFF field definitions to tif_dirinfo.c, 1202 and also fixes an error in a comment. Adds the photometric values 1203 to tif_print.c, and fixes a bug. These changes are by Steve 1204 Underwood. 1205 12062012-08-13 Frank Warmerdam <[email protected]> 1207 1208 * libtiff/tif_write.c: Fix bug rewriting image tiles in a 1209 compressed file: http://trac.osgeo.org/gdal/ticket/4771 1210 12112012-08-02 Frank Warmerdam <[email protected]> 1212 1213 * libtiff/tif_dirread.c: report error in case of mismatch value 1214 counts for tags (ie. DotRange). 1215 12162012-07-26 Tom Lane <[email protected]> 1217 1218 * libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new 1219 functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(), 1220 TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount() 1221 as external accessors for the opaque type TIFFField. 1222 1223 * tools/tiffset.c: Make tiffset use the above functions instead of 1224 relying on library private headers. 1225 12262012-07-19 Tom Lane <[email protected]> 1227 1228 * tools/tiff2pdf.c: Fix two places where t2p_error didn't get set 1229 after a malloc failure. No crash risk AFAICS, but the program 1230 might not report exit code 1 as desired. h/t [email protected] 1231 12322012-07-18 Tom Lane <[email protected]> 1233 1234 * tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails. This 1235 prevents core dumps or perhaps even arbitrary code execution when 1236 processing a corrupt input file (CVE-2012-3401). 1237 12382012-07-06 Bob Friesenhahn <[email protected]> 1239 1240 * test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+. 1241 IJG JPEG 7+ uses a different upsampling algorithm which produces 1242 different numeric results. 1243 1244 * libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to 1245 work with IJG JPEG 7+. 1246 12472012-07-04 Bob Friesenhahn <[email protected]> 1248 1249 * test/raw_decode.c: Add changes so that test can run with build 1250 directory outside of source directory. 1251 12522012-07-02 Frank Warmerdam <[email protected]> 1253 1254 * libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed 1255 imagery (http://trac.osgeo.org/gdal/ticket/4732) 1256 12572012-06-20 Frank Warmerdam <[email protected]> 1258 1259 * libtiff/tif_fax3.c: fix memory initialization of runs, only 1260 partly done. 1261 1262 * libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one 1263 full "stride" past the end. 1264 12652012-06-19 Frank Warmerdam <[email protected]> 1266 1267 * libtiff/tif_packbits.c: fix read past end of data buffer. 1268 12692012-06-15 Frank Warmerdam <[email protected]> 1270 1271 * libtiff 4.0.2 released. 1272 1273 * tools/tif2pdf.c, tools/tifdump.c: avoid unitialized variable 1274 warnings with clang. 1275 12762012-06-15 Tom Lane <[email protected]> 1277 1278 * tools/tiff2pdf.c: Defend against integer overflows while 1279 calculating required buffer sizes (CVE-2012-2113). 1280 12812012-06-12 Frank Warmerdam <[email protected]> 1282 1283 * libtiff/tif_print.c: Be careful about printing corrupt inknames. 1284 1285 * libtiff/tif_fax3.c: Ensure runs array is initialized to zeros. 1286 12872012-06-07 Frank Warmerdam <[email protected]> 1288 1289 * libtiff/tif_print.c: avoid pretty printing other fields when 1290 we don't have the proper amount and type of data or if the field 1291 is actually autodefined. 1292 12932012-06-05 Frank Warmerdam <[email protected]> 1294 1295 * libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal 1296 ycbcrsubsampling values result in a runtime error, not just an 1297 assertion. 1298 1299 * tests/custom_dir.c: Add testing of EXIF and custom directory 1300 reading and writing. 1301 1302 * libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory() 1303 and TIFFCreateEXIFDirectory() functions. 1304 1305 * libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for 1306 PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING. Implement DOTRANGE 1307 differently. This is to avoid using special TIFFGetField/TIFFSetField 1308 rules for these fields in non-image directories (like EXIF). 1309 13102012-06-04 Frank Warmerdam <[email protected]> 1311 1312 * libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling 1313 in JPEGPreDecode(). If a fixup will be done it needs to be done sooner 1314 in JPEGFixupTagsSubsampling() or else buffer sized may be wrong. 1315 13162012-06-01 Frank Warmerdam <[email protected]> 1317 1318 * tools/tiffinfo.c: Do not try to read image data in EXIF directories. 1319 1320 * libtiff/tif_getimage.c: added support for _SEPARATED CMYK images. 1321 http://bugzilla.maptools.org/show_bug.cgi?id=2379 1322 1323 * libtiff/tif_unix.c: use strerror() to return a more specific error message 1324 on failed open. 1325 http://bugzilla.maptools.org/show_bug.cgi?id=2341 1326 1327 * libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs. 1328 http://bugzilla.maptools.org/show_bug.cgi?id=2386 1329 1330 * tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support 1331 for testing jpeg in tiff image decoding including the "raw" decode interface. 1332 13332012-05-31 Frank Warmerdam <[email protected]> 1334 1335 * libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in 1336 JPEGDecodeRaw() - mostly likely to occur when there is confusion about 1337 sampling values. 1338 1339 * libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed. 1340 1341 * libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval. 1342 http://bugzilla.maptools.org/show_bug.cgi?id=2398 1343 13442012-05-29 Frank Warmerdam <[email protected]> 1345 1346 * libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories, 1347 like EXIF directories. This fixes problems like a tag "320" existing in a custom directory getting 1348 processed as if it were a colormap when it isn't really. Damn the wide variety of argument formulations 1349 to get/set functions for different tags! 1350 1351 * libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata 1352 is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag. 1353 13542012-05-24 Frank Warmerdam <[email protected]> 1355 1356 * libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward 1357 accumulate" and overwrite the end by one word in at least some cases. 1358 13592012-05-23 Frank Warmerdam <[email protected]> 1360 1361 * libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs. 1362 1363 * tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files. 1364 1365 * libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on 1366 the same image. 1367 1368 * libtiff/tif_ojpeg.c: make things more resilient in the face of files without 1369 stripbytecounts or stripoffsets or where loading these fails. 1370 1371 * libtiff/tif_print.c: be careful about whether min/max values are singular 1372 or one per sample. 1373 1374 * libtiff/tif_print.c: Avoid confusion about count size when printing custom fields. 1375 May affect things like ISOSpeedRatings. 1376 1377 * libtiff/tif_dir.c: avoid one byte past end of ink names reading 1378 in some cases. 1379 13802012-05-19 Bob Friesenhahn <[email protected]> 1381 1382 * man/TIFFGetField.3tiff: Correct the 'count' field type in the 1383 example for how to retreive the value of unsupported tags. 1384 13852012-03-30 Frank Warmerdam <[email protected]> 1386 1387 * tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173) 1388 care of Tom Lane @ Red Hat. 1389 13902012-02-18 Bob Friesenhahn <[email protected]> 1391 1392 * libtiff 4.0.1 released. 1393 1394 * Update automake used to 1.11.3. 1395 1396 * libtiff/tiffio.h: Use double-underbar syntax in GCC printf 1397 attribute specification to lessen the risk of accidental macro 1398 substitution. Patch from Vincent Torri. 1399 14002012-01-31 Frank Warmerdam <[email protected]> 1401 1402 * libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around 1403 assumption tag fetching is always successful. 1404 1405 * libtiff/tif_jpeg.c: Extra caution for case where sp is NULL. 1406 14072012-01-22 Bob Friesenhahn <[email protected]> 1408 1409 * configure.ac: Add support for using library symbol versioning on 1410 ELF systems with the GNU linker. Support is enabled via 1411 --enable-ld-version-script. Disabled by default for now until 1412 there is a decision for how to deploy a libtiff with versioned 1413 symbols after libtiff 4.0.0 was already released. 1414 14152011-12-22 Bob Friesenhahn <[email protected]> 1416 1417 * libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in 1418 1419 tif_win32.c. Patch by Edward Lam. 1420 1421 * configure.ac: Add libtiff private dependency on -llzma for 1422 pkg-config. Patch by Mark Brand. 1423 Updated Automake to 1.11.2. 1424 14252011-12-21 Bob Friesenhahn <[email protected]> 1426 1427 * libtiff 4.0.0 released. 1428 14292011-12-08 Frank Warmerdam <[email protected]> 1430 1431 * libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking 1432 of _TIFFFillStriles() results (#gdal 4372) 1433 14342011-12-07 Frank Warmerdam <[email protected]> 1435 1436 * libtiff/tif_dirread.c: fixes to deal with invalid files where 1437 _TIFFFillStriles() fails, and we try to chop up strips (gdal #4372) 1438 1439 * libtiff/tif_dirread.c: fix error reporting when there is no 1440 tag information struct and name (gdal #4373) 1441 14422011-10-22 Bob Friesenhahn <[email protected]> 1443 1444 * Update GNU libtool to 2.4.2. 1445 1446 * tools/tiffsplit.c (tiffcp): TIFFGetField count field should be 1447 uint32 type for TIFFTAG_JPEGTABLES. Patch by Christophe 1448 Deroulers. 1449 14502011-06-21 Frank Warmerdam <[email protected]> 1451 1452 * libtiff/libtiff.def: Restore TIFFMergeFieldInfo. 1453 14542011-05-31 Jim Meyering <[email protected]> 1455 1456 * libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also 1457 upon failure to allocate "resizeddata". 1458 * tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for 1459 allocation failure, not before. 1460 * libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path 1461 * tools/rgb2ycbcr.c (cvtRaster): unchecked malloc 1462 * libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark 1463 NULL-deref and possible overflow 1464 * tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written" 1465 * libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration 1466 and set of otherwise unused local, data_is_empty. 1467 * libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]: 1468 Diagnose out-of-memory failure and return 0 rather than 1469 dereferencing NULL. 1470 14712011-05-24 Frank Warmerdam <[email protected]> 1472 1473 * libtiff/tif_dirread.c: produce special error message for zero tag 1474 directories instead of error out on the malloc(0) failure. 1475 14762011-05-16 Frank Warmerdam <[email protected]> 1477 1478 * libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and 1479 related declarations as they are in active use by libraries 1480 such as libgeotiff, and work just fine. (#2315) 1481 14822011-04-20 Frank Warmerdam <[email protected]> 1483 1484 * libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete 1485 TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API. 1486 http://bugzilla.maptools.org/show_bug.cgi?id=2315 1487 1488 * libtiff/libtiff.def: add some missing (64bit) APIs. 1489 http://bugzilla.maptools.org/show_bug.cgi?id=2316 1490 14912011-04-09 Bob Friesenhahn <[email protected]> 1492 1493 * libtiff 4.0.0beta7 released. 1494 14952011-04-09 Bob Friesenhahn <[email protected]> 1496 1497 * configure.ac: Should use AC_CANONICAL_HOST since host specifies 1498 the run-time target whereas target is used to specify the final 1499 output target if the package is a build tool (like a compiler), 1500 which libtiff is not. Resolves libtiff bug 2307 "Use 1501 AC_CANONICAL_HOST macro". 1502 15032011-04-02 Bob Friesenhahn <[email protected]> 1504 1505 * configure.ac: Support configuring TIFF_INT64_FORMAT and 1506 TIFF_UINT64_FORMAT appropriately for MinGW32. 1507 1508 * tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32 1509 printf conventions for 64-bit types because it uses the WIN32 CRT. 1510 1511 * libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c, 1512 tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32 1513 printf conventions for 64-bit types because it uses the WIN32 CRT. 1514 1515 * tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not 1516 understood by WIN32 CRT. 1517 1518 * libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC. 1519 1520 * tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since 1521 it is much more portable. Tmpfile is included in ISO/IEC 1522 9899:1990 and the WIN32 CRT. 1523 15242011-03-26 Frank Warmerdam <[email protected]> 1525 1526 * tools/tiffset.c: add -d and -sd switches to allow operation on 1527 a particular directory, not just the first (jef). 1528 15292011-03-21 Frank Warmerdam <[email protected]> 1530 1531 * libtiff/tif_thunder.c: Correct potential buffer overflow with 1532 thunder encoded files with wrong bitspersample set. The libtiff 1533 development team would like to thank Marin Barbella and TippingPoint's 1534 Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004, 1535 CVE-2011-1167). 1536 http://bugzilla.maptools.org/show_bug.cgi?id=2300 1537 15382011-03-10 Frank Warmerdam <[email protected]> 1539 1540 * libtiff/tif_fax3.h: Fix to last change allowing zero length 1541 runs at the start of a scanline - needed for legal cases. 1542 15432011-03-02 Frank Warmerdam <[email protected]> 1544 1545 * libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding 1546 a move left. Without this, a malicious input file can generate an 1547 indefinitely large series of runs without a0 ever reaching the right 1548 margin, thus overrunning our buffer of run lengths. Per CVE-2011-0192. 1549 This is a modified version of a patch proposed by Drew Yao of Apple 1550 Product Security. It adds an unexpected() report, and disallows the 1551 equality case, since emitting a run without increasing a0 still allows 1552 buffer overrun. 1553 15542011-02-23 Frank Warmerdam <[email protected]> 1555 1556 * libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296) 1557 1558 * tools/tiff2rgba.c: close source file on error to make leak 1559 detection easier. 1560 1561 * libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails. 1562 1563 http://bugzilla.maptools.org/show_bug.cgi?id=2295 1564 15652011-02-22 Frank Warmerdam <[email protected]> 1566 1567 * libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ 1568 _SUPPORT) 1569 15702011-02-18 Frank Warmerdam <[email protected]> 1571 1572 * configure.ac, configure: Added support for --enable-chunky-strip-read 1573 configure option to enable the experimental feature from a couple 1574 months ago for reading big strips in chunks. 1575 1576 * configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h, 1577 tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c: 1578 Implement optional support for deferring the load of strip/tile 1579 offset and size tags for optimized scanning of directories. Enabled 1580 with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD 1581 #define in tif_config.h). 1582 15832011-02-11 Frank Warmerdam <[email protected]> 1584 1585 * libtiff/tif_print.c: remove unused variable. 1586 15872011-02-09 Frank Warmerdam <[email protected]> 1588 1589 * libtiff/tif_win32.c: avoid error/warning buffer overrun problem 1590 with non-console (popup message) builds on win32. 1591 1592 http://bugzilla.maptools.org/show_bug.cgi?id=2293 1593 15942011-01-24 Olivier Paquet <[email protected]> 1595 1596 * libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c, 1597 tif_print.c, tiff.h, tiffiop.h} : Added support for 1598 TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different 1599 values for each sample. Presents the min/max of all samples by default for 1600 compatibility. TIFFSetField/TIFFGetField can be made to handle those tags 1601 as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag. 1602 http://www.asmail.be/msg0055458208.html 1603 16042011-01-06 Frank Warmerdam <[email protected]> 1605 1606 * libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not 1607 maintained. 1608 1609 * libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding 1610 for CHUNKY_STRIP_READ_SUPPORT. 1611 1612 * libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained 1613 during JPEGPreDecode and JPEGDecode calls. 1614 * libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT, 1615 as compression formats like JPEG keep 16 lines interleaved in a sense 1616 and might need to touch quite a bit of data. 1617 1618 http://trac.osgeo.org/gdal/ticket/3894 1619 16202011-01-03 Lee Howard <[email protected]> 1621 1622 * libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images 1623 caused by commit on 2010-12-14. Submitted by e-mail from 1624 Even Rouault <[email protected]> 1625 16262010-12-31 Olivier Paquet <[email protected]> 1627 1628 * libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE. 1629 http://bugzilla.maptools.org/show_bug.cgi?id=2266 1630 16312010-12-23 Andrey Kiselev <[email protected]> 1632 1633 * tools/tiffcp.c, man/tiffcp.1: Added support for specifying the 1634 compression level parameter (preset) for Deflate and LZMA encoders, 1635 e.g "-c lzma:p1" or "-c zip:p9". 1636 1637 * libtiff/tif_lzma.c: Properly set the LZMA2 compression level 1638 (preset) in LZMAVSetField(). 1639 16402010-12-18 Bob Friesenhahn <[email protected]> 1641 1642 * libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to 1643 Makefile. 1644 16452010-12-14 Andrey Kiselev <[email protected]> 1646 1647 * configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h, 1648 tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new 1649 TIFF compression scheme LZMA reserving a new value 34925 for 1650 Compression tag. As per 1651 bug http://bugzilla.maptools.org/show_bug.cgi?id=2221 1652 16532010-12-14 Lee Howard <[email protected]> 1654 1655 * libtiff/tif_dirread.c: tolerate some cases where 1656 FIELD_COLORMAP is missing 1657 http://bugzilla.maptools.org/show_bug.cgi?id=2189 1658 16592010-12-14 Lee Howard <[email protected]> 1660 1661 * libtiff/tif_read.c: change read_ahead to tmsize_t 1662 http://bugzilla.maptools.org/show_bug.cgi?id=2222 1663 16642010-12-14 Lee Howard <[email protected]> 1665 1666 * configure.ac, libtiff/Makefile.am: Build tif_win32.c on 1667 Windows except on Cygwin 1668 http://bugzilla.maptools.org/show_bug.cgi?id=2224 1669 16702010-12-14 Lee Howard <[email protected]> 1671 1672 * tools/gif2tiff.c: fix buffer overrun 1673 http://bugzilla.maptools.org/show_bug.cgi?id=2270 1674 16752010-12-14 Lee Howard <[email protected]> 1676 1677 * libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order 1678 to improve compatibility with various viewers 1679 submitted by e-mail from Dwight Kelly <[email protected]> 1680 16812010-12-13 Lee Howard <[email protected]> 1682 1683 * tools/fax2ps.c: be consistent with page-numbering 1684 http://bugzilla.maptools.org/show_bug.cgi?id=2225 1685 16862010-12-13 Lee Howard <[email protected]> 1687 1688 * libtiff/tif_color.c: prevent crash in handling bad TIFFs 1689 resolves CVE-2010-2595 1690 http://bugzilla.maptools.org/show_bug.cgi?id=2208 1691 16922010-12-13 Lee Howard <[email protected]> 1693 1694 * tools/tiffcrop.c: new release by Richard Nolde 1695 http://bugzilla.maptools.org/show_bug.cgi?id=2004 1696 16972010-12-12 Lee Howard <[email protected]> 1698 1699 * tools/tiff2pdf.c: fix colors for images with RGBA 1700 interleaved data 1701 http://bugzilla.maptools.org/show_bug.cgi?id=2250 1702 17032010-12-12 Lee Howard <[email protected]> 1704 1705 * libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files 1706 http://bugzilla.maptools.org/show_bug.cgi?id=2164 1707 17082010-12-11 Lee Howard <[email protected]> 1709 1710 * tools/tiff2pdf.c: remove invalid duplication for Lab 1711 http://bugzilla.maptools.org/show_bug.cgi?id=2162 1712 17132010-12-11 Lee Howard <[email protected]> 1714 1715 * libtiff/tif_jpeg.c: fix use of clumplines calculation 1716 http://bugzilla.maptools.org/show_bug.cgi?id=2149 1717 17182010-12-11 Lee Howard <[email protected]> 1719 1720 * tools/fax2ps.c: replace unsafe tmpfile() with mkstemp() 1721 http://bugzilla.maptools.org/show_bug.cgi?id=2118 1722 17232010-12-11 Lee Howard <[email protected]> 1724 1725 * libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c, 1726 libtiff/tif_zip.c: fix build errors for VC6 1727 http://bugzilla.maptools.org/show_bug.cgi?id=2105 1728 17292010-12-11 Lee Howard <[email protected]> 1730 1731 * libtiff/tif_stream.cxx: warnings cleanup 1732 http://bugzilla.maptools.org/show_bug.cgi?id=2091 1733 * libtiff/tif_dirread.c: warnings cleanup 1734 http://bugzilla.maptools.org/show_bug.cgi?id=2092 1735 17362010-12-11 Lee Howard <[email protected]> 1737 1738 * tools/tiff2pdf.c: add fill-page option 1739 http://bugzilla.maptools.org/show_bug.cgi?id=2051 1740 17412010-12-11 Lee Howard <[email protected]> 1742 1743 * libtiff/tif_dirread.c: modify warnings 1744 http://bugzilla.maptools.org/show_bug.cgi?id=2016 1745 17462010-12-11 Lee Howard <[email protected]> 1747 1748 * libtiff/tif_ojpeg.c: fix buffer overflow on problem data 1749 http://bugzilla.maptools.org/show_bug.cgi?id=1999 1750 17512010-12-11 Lee Howard <[email protected]> 1752 1753 * tools/tiffinfoce.c: strip byte counts are uint64* now 1754 17552010-12-11 Lee Howard <[email protected]> 1756 1757 * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero 1758 or missing byte-count tag 1759 * tools/tiffsplit.c: abort when reading a TIFF without a byte-count 1760 per http://bugzilla.maptools.org/show_bug.cgi?id=1996 1761 17622010-12-08 Lee Howard <[email protected]> 1763 1764 * libtiff/tif_dirread.c: fix crash when reading a badly-constructed 1765 TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994 1766 17672010-12-06 Lee Howard <[email protected]> 1768 1769 * libtiff/tif_open.c: Fix mode check before opening a file. 1770 http://bugzilla.maptools.org/show_bug.cgi?id=1906 1771 17722010-11-27 Bob Friesenhahn <[email protected]> 1773 1774 * libtiff-4.pc.in: Added libtiff pkg-config .pc file support. 1775 Patch by Vincent Torri. 1776 17772010-10-21 Frank Warmerdam <[email protected]> 1778 1779 * tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler. 1780 1781 * libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf. 1782 1783 * libtiff/libtiff.def: export _TIFFCheckMalloc for tools. 1784 17852010-09-25 Lee Howard <[email protected]> 1786 1787 * tools/tiff2ps.c: improvements and enhancements from Richard Nolde 1788 with additional command line options for Document Title, 1789 Document Creator, and Page Orientation 1790 17912010-07-13 Bob Friesenhahn <[email protected]> 1792 1793 * tools/tiffcrop.c: Patch from Richard Nolde to avoid a 1794 potentially unterminated buffer due to using an exceptionally long 1795 file name. 1796 17972010-07-08 Andrey Kiselev <[email protected]> 1798 1799 * tools/tiff2pdf.c: Fixed ID buffer filling in 1800 t2p_write_pdf_trailer(), thanks to Dmitry V. Levin. 1801 18022010-07-07 Andrey Kiselev <[email protected]> 1803 1804 * libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount() 1805 to expected value as the warning message suggests. As per bug 1806 http://bugzilla.maptools.org/show_bug.cgi?id=1963 1807 18082010-07-06 Andrey Kiselev <[email protected]> 1809 1810 * tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER, 1811 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE 1812 which should be set by value. 1813 1814 * libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag() 1815 and _TIFFFieldWithName() if the tag is not found in the tag table. 1816 This should be normal situation and returned NULL value should be 1817 properly handled by the caller. 1818 18192010-07-02 Andrey Kiselev <[email protected]> 1820 1821 * libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned 1822 integer type conversions. As per bug 1823 http://bugzilla.maptools.org/show_bug.cgi?id=2207 1824 1825 * tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for 1826 WhitePoint tag as per bug 1827 http://bugzilla.maptools.org/show_bug.cgi?id=2042 1828 1829 * libtiff/tif_getimage.c: Check the number of samples per pixel when 1830 working with YCbCr image in PickContigCase(). As per bug 1831 http://bugzilla.maptools.org/show_bug.cgi?id=2216 1832 1833 * libtiff/tif_dir.c: Set the bogus post-decoding hook when processing 1834 TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when 1835 we don't need any post-processing. That helps to reset the hook if we 1836 previously set this field to some other value and the hook was 1837 initialized accordingly. As per bug 1838 http://bugzilla.maptools.org/show_bug.cgi?id=2035 1839 18402010-07-01 Andrey Kiselev <[email protected]> 1841 1842 * tools/tiffgt.c: Properly check the raster buffer allocations for 1843 integer overflows. As per bug 1844 http://bugzilla.maptools.org/show_bug.cgi?id=2108 1845 1846 * m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the 1847 upstream. 1848 1849 * libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move 1850 multiply_32() and multiply_64() functions into tif_aux.c file and 1851 rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively. 1852 18532010-06-30 Andrey Kiselev <[email protected]> 1854 1855 * tools/tiff2pdf.c: Better generation of ID field in 1856 t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings. 1857 1858 * tools/tiff2pdf.c: Fixed computation of the tile buffer size when 1859 converting JPEG encoded tiles. 1860 1861 * tools/tiff2pdf.c: Better handling of string fields, use static 1862 string buffers instead of dynamically allocated, use strncpy() instead 1863 of strcpy(), control the string lengths. 1864 18652010-06-25 Andrey Kiselev <[email protected]> 1866 1867 * tools/tiffcp.c: Initialize buffer arrays with zero to avoid 1868 referencing to uninitialized memory in some cases (e.g. when tile size 1869 set bigger than the image size). 1870 18712010-06-15 Bob Friesenhahn <[email protected]> 1872 1873 * tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr 1874 subsampled data since tiffcrop currently doesn't support it. Fix 1875 JPEG support. 1876 18772010-06-13 Frank Warmerdam <[email protected]> 1878 1879 * libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201) 1880 1881 * tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return" 1882 in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely 1883 wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual 1884 size is larger. Also, there are a bunch of places that try to 1885 memset() a malloc'd buffer before checking for malloc failure, which 1886 would result in core dump if there actually were a failure. (#2211) 1887 18882010-06-11 Bob Friesenhahn <[email protected]> 1889 1890 * libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to 1891 avoid compiler warnings if parameter types are not sign 1892 consistent. 1893 1894 * libtiff 4.0.0alpha6 released. 1895 1896 * tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected 1897 European page size dimensions. Added an option to allow the user 1898 to specify a custom page size on the command line. Fix the case 1899 where a page size specified with a fractional part was being 1900 coerced to an integer by retyping the variables that define the 1901 paper size. 1902 1903 * html/index.html: Update for the 3.9.3 release. 1904 1905 * tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject 1906 YCbCr subsampled data since tiffcp currently doesn't support it. 1907 http://bugzilla.maptools.org/show_bug.cgi?id=2097 1908 1909 * Update libtool to version 2.2.10. 1910 19112010-06-10 Bob Friesenhahn <[email protected]> 1912 1913 * libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if 1914 multiplier is zero. 1915 19162010-06-09 Bob Friesenhahn <[email protected]> 1917 1918 * libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for 1919 CVE-2010-1411 was not complete. 1920 1921 * libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely 1922 multiply two integers. Returns zero if there is an integer 1923 overflow. 1924 1925 * tools/tiffcp.c (main): tiffcp should not leak memory if an error 1926 is reported when reading the input file. 1927 19282010-06-08 Bob Friesenhahn <[email protected]> 1929 1930 * Update libtool to version 2.2.8. 1931 1932 * libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of 1933 buffer due to integer overflow in TIFFroundup() and several other 1934 potential overflows. In conjunction with the fix to TIFFhowmany(), 1935 fixes CVE-2010-1411. 1936 1937 * libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would 1938 result in an integer overflow. This causes TIFFroundup() to also 1939 return zero if there would be an integer overflow. 1940 1941 * contrib: Add an emacs formatting mode footer to all source files 1942 so that emacs can be effectively used. 1943 19442010-06-03 Oliver Chen Feng <[email protected]> 1945 1946 * libtiff/tools/tiffcp.c: add a new option -x to force merged tiff 1947 file PAGENUMBER value in sequence for users who care the page 1948 sequence, this will also prevent tiff2pdf from creating pdf file from 1949 the merged tiff file with wrong page sequence. 1950 19512010-05-08 Olivier Paquet <[email protected]> 1952 1953 * libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order 1954 to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag. 1955 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1956 TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2). 1957 http://bugzilla.maptools.org/show_bug.cgi?id=2192 1958 19592010-05-07 Frank Warmerdam <[email protected]> 1960 1961 * libtiff/tif_jpeg.c: Ensure that quality is always set in 1962 JPEGPreEncode(), not just when we want to output local tables. 1963 Otherwise the quality used during compression may not be right and 1964 might not match the tables in the tables tag. This bug only occurs 1965 when seeking between directories in the midst of writing blocks. 1966 http://trac.osgeo.org/gdal/ticket/3539 1967 19682010-05-06 Andrey Kiselev <[email protected]> 1969 1970 * html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html: 1971 Regenerated from the source. 1972 19732010-05-05 Olivier Paquet <[email protected]> 1974 1975 * libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which 1976 had stopped working. Also made it always print 6 floats instead of 1977 2*SamplesPerPixel. 1978 http://bugzilla.maptools.org/show_bug.cgi?id=2191 1979 http://bugzilla.maptools.org/show_bug.cgi?id=2186 1980 * man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the 1981 fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats. 1982 19832010-05-05 Frank Warmerdam <[email protected]> 1984 1985 * libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking 1986 if the jpeg table was written. This is a fix for the last fix on 04-21. 1987 19882010-04-21 Frank Warmerdam <[email protected]> 1989 1990 * libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime 1991 JPEGSetupEncode() is called if the tables already seem to be 1992 established. This prevents spurious updates and rewriting of 1993 directories with jpegtables when doing updates to existing images. 1994 http://trac.osgeo.org/gdal/ticket/3539 1995 19962010-04-20 Olivier Paquet <[email protected]> 1997 1998 * libtiff/tif_dirinfo.c: Use correct set_field_type for 1999 TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH, 2000 TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA. 2001 They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2. 2002 http://bugzilla.maptools.org/show_bug.cgi?id=2139 2003 20042010-04-10 Bob Friesenhahn <[email protected]> 2005 2006 * libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for 2007 when the tag count value is zero. Error handling is still a 2008 regression since in 3.9.2, empty tags are skipped (with a warning) 2009 rather than returning a hard error and refusing to read the file. 2010 2011 * tools/ppm2tiff.c (main): While case for parsing comment line 2012 requires extra parenthesis to work as expected. Reported by 2013 Thomas Sinclair. 2014 20152010-04-02 Frank Warmerdam <[email protected]> 2016 2017 * libtiff/tif_read.c (primarily): Add support for 2018 CHUNKY_STRIP_READ_SUPPORT where large strips are 2019 read in chunks for applications using TIFFReadScanline(). 2020 This is intended to make it more practical work with very 2021 large compressed one-strip files. Feature is off by default. 2022 Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro. 2023 http://trac.osgeo.org/gdal/ticket/3514 2024 20252010-03-31 Frank Warmerdam <[email protected]> 2026 2027 * libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing 2028 directories so previously placed directories will be migrated to 2029 the end of file if needed. 2030 20312010-03-30 Frank Warmerdam <[email protected]> 2032 2033 * libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64 2034 to support operating on strips/tiles of more than 256MB. 2035 http://trac.osgeo.org/gdal/ticket/3512 2036 20372010-03-10 Bob Friesenhahn <[email protected]> 2038 2039 * libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so 2040 that it is clearly a memory allocation error message, and also 2041 includes the size of the allocation request. 2042 20432010-02-22 Lee Howard <[email protected]> 2044 2045 * libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating 2046 the JPEG TIFF as is is not required in order to prevent it from 2047 being unused and filled with invalid data. (Leave it to be 2048 generated by later activity.) 2049 http://bugzilla.maptools.org/show_bug.cgi?id=2135 2050 * tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip 2051 data rather than skipping them. This fixes the ability to view in 2052 Acrobat Reader, Evince, and Ghostscript. 2053 http://bugzilla.maptools.org/show_bug.cgi?id=2135 2054 * libtiff/tif_fax3.c: Don't return error on badly-terminated MMR 2055 strips. 2056 http://bugzilla.maptools.org/show_bug.cgi?id=2029 2057 20582009-12-03 Frank Warmerdam <[email protected]> 2059 2060 * libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns. 2061 Made so that when working with downsampled images a stub function 2062 reporting an error is used for tif_decoderow. We cannot meaningfully 2063 support reading scanlines in this situation. (#1936) 2064 2065 * libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after 2066 resetting of the upsampling values (gdal:#3259). 2067 http://bugzilla.maptools.org/show_bug.cgi?id=1936 2068 20692009-11-30 Frank Warmerdam <[email protected]> 2070 2071 * contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c, 2072 tools/ras2tiff.c: Fix resource leaks on error. 2073 http://bugzilla.maptools.org/show_bug.cgi?id=2121 2074 2075 * libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling 2076 TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead 2077 of as a custom(generic) field to avoid a potential reentrancy problem. 2078 http://bugzilla.maptools.org/show_bug.cgi?id=2125 2079 2080 * libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h, 2081 man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit 2082 const, and display_sRGB static and const. 2083 http://bugzilla.maptools.org/show_bug.cgi?id=2124 2084 20852009-11-04 Bob Friesenhahn <[email protected]> 2086 2087 * libtiff 4.0.0alpha5 released. 2088 20892009-11-03 Bob Friesenhahn <[email protected]> 2090 2091 * tools/tiffcrop.c: Updated tiffcrop from Richard Nolde. This 2092 version has undergone substantial testing with arbitrary sample 2093 bit depths. Also eliminates GCC compilation warnings. 2094 20952009-11-02 Bob Friesenhahn <[email protected]> 2096 2097 * port/libport.h: Add extern declarations for getopt standard 2098 globals. 2099 21002009-10-31 Bob Friesenhahn <[email protected]> 2101 2102 * libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings 2103 noticed in 64-bit build of libtiff with Visual Studio 2005. 2104 Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in 2105 tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067 2106 2107 * libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important 2108 warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 - 2109 Visual Studio 2005 64-bit warning in tif_pixarlog.c", 2110 http://bugzilla.maptools.org/show_bug.cgi?id=2068 2111 21122009-10-29 Bob Friesenhahn <[email protected]> 2113 2114 * libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned 2115 pointer" warnings. 2116 21172009-10-28 Bob Friesenhahn <[email protected]> 2118 2119 * html/tools.html: Add manual page links, and a summary 2120 description of tiffcrop. 2121 21222009-10-07 Bob Friesenhahn <[email protected]> 2123 2124 * configure.ac: x86_64 should use the same fill order as i386. 2125 21262009-09-24 Bob Friesenhahn <[email protected]> 2127 2128 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard 2129 Nolde. Major updates to add significant functionality for reading 2130 and writing tile based images with bit depths not a multiple of 8 2131 which cannot be handled by tiffcp. 2132 21332009-09-03 Bob Friesenhahn <[email protected]> 2134 2135 * libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs 2136 do_fancy_upsampling=FALSE in order to read raw data. Resolves 2137 "Bug 2090 - OJPEG crash with libjpeg v7". 2138 http://bugzilla.maptools.org/show_bug.cgi?id=2090 2139 21402009-09-03 Frank Warmerdam <[email protected]> 2141 2142 * libtiff/tif_getimage.c: Fixed error recognition handling in RGBA 2143 interface when stoponerror is set. 2144 http://bugzilla.maptools.org/show_bug.cgi?id=2071 2145 21462009-08-30 Bob Friesenhahn <[email protected]> 2147 2148 * tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to 2149 fix build with gcc when using the "-Wformat 2150 -Werror=format-security" flags. 2151 21522009-08-29 Bob Friesenhahn <[email protected]> 2153 2154 * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh, 2155 ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional 2156 utilities tests. 2157 21582009-08-28 Bob Friesenhahn <[email protected]> 2159 2160 * tools/tiffinfo.c: tiffinfo should return error status to the 2161 caller. Register a private error callback to accomplish that. 2162 2163 * test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and 2164 PNM formats so that we will be able to test more of the tools. 2165 While adding these test images I notice that bmp2tiff and gif2tiff 2166 only support ancient versions of their respective formats. 2167 21682009-08-27 Bob Friesenhahn <[email protected]> 2169 2170 * libtiff 4.0.0alpha4 released. 2171 2172 * HOWTO-RELEASE: Improved release instructions. 2173 21742009-08-24 Bob Friesenhahn <[email protected]> 2175 2176 * man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied 2177 fixes for "Bug 2023 - nroff errors in manual pages". 2178 http://bugzilla.maptools.org/show_bug.cgi?id=2023 2179 2180 * tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 - 2181 CVE-2009-2347 libtiff: integer overflows in various inter-color 2182 space conversion tools". 2183 http://bugzilla.maptools.org/show_bug.cgi?id=2079 2184 2185 * libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay 2186 Berkenbilt for "Bug 2024 - possible null pointer dereference with 2187 one-line fix". 2188 http://bugzilla.maptools.org/show_bug.cgi?id=2024 2189 2190 * libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch 2191 from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c: 2192 segfault after setting tdir_tag = IGNORE". 2193 http://bugzilla.maptools.org/show_bug.cgi?id=1895 2194 21952009-08-23 Bob Friesenhahn <[email protected]> 2196 2197 * test/Makefile.am, test/tiffcrop*.sh: Split previously existing 2198 tiffcrop.sh into a collection of many specific tests. Re-wrote 2199 all of the existing tests to be based on some simple shell 2200 functions. Make distcheck works again. 2201 2202 Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and 2203 added 'memcheck' and 'ptrcheck' targets to make it easy to run the 2204 tests under valgrind. 2205 22062009-08-21 Bob Friesenhahn <[email protected]> 2207 2208 * test/tiffcp-logluv.sh: Fix test so that it works with a VPATH 2209 build. 2210 2211 * test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not 2212 actually activated since it needed to be enabled in this 2213 Makefile.am. Also activated parallel-tests mode since it offers 2214 useful features such as per-test .log files and a summary test 2215 report .log file. 2216 22172009-08-20 Bob Friesenhahn <[email protected]> 2218 2219 * configure.ac: Updated autotools. Autoconf 2.64, Automake 1.11, 2220 libtool 2.2.6. Enabled support for silent build rules 2221 (--enable-silent-rules or 'make V=0') and colorized tests. 2222 2223 * html/{index.html, v3.9.0.html}: Update for 3.9.0 release. 2224 22252009-06-30 Frank Warmerdam <[email protected]> 2226 2227 * tests/tiffcp-logluv.sh: minimal testing of sgilog compression. 2228 2229 * tools/tiffcp.c: add -c sgilog support. 2230 2231 * libtiff/tif_luv.c: correct return codes from encoderow to be 2232 1 on success instead of zero. 2233 http://bugzilla.maptools.org/show_bug.cgi?id=2069 2234 2235 * libtiff/tif_lzw.c: back out patch from #2065 and apply patch from 2236 #1085 for a better underflow fix that errors properly. 2237 http://bugzilla.maptools.org/show_bug.cgi?id=2065 2238 http://bugzilla.maptools.org/show_bug.cgi?id=1985 2239 22402009-06-26 Frank Warmerdam <[email protected]> 2241 2242 * libtiff/tif_strip.c: Remove an inappropriate assertion that often 2243 fails on oddly sized 12bit jpeg compressed ycbcr images. 2244 22452009-06-22 Frank Warmerdam <[email protected]> 2246 2247 * libtiff/tif_lzw.c: Fix buffer underflow bug. 2248 http://bugzilla.maptools.org/show_bug.cgi?id=2065 2249 22502009-06-21 Frank Warmerdam <[email protected]> 2251 2252 * configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support 2253 for dual mode 8/12 bit jpeg support. 2254 22552009-06-03 Frank Warmerdam <[email protected]> 2256 2257 * libtiff/tif_write.c: do not override the planar configuration to be 2258 contig for one sample files if planar configuration is already set. 2259 http://bugzilla.maptools.org/show_bug.cgi?id=2057 2260 22612009-06-02 Frank Warmerdam <[email protected]> 2262 2263 * libtiff/libtiff.def: Add TIFFUnsetField. 2264 22652009-05-03 Frank Warmerdam <[email protected]> 2266 2267 * libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various 2268 error reports to use "%s" as format string. 2269 http://trac.osgeo.org/gdal/ticket/2976 2270 22712009-03-12 Frank Warmerdam <[email protected]> 2272 2273 * libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining 2274 for some codecs (#2020). 2275 22762009-02-12 Frank Warmerdam <[email protected]> 2277 2278 * libtiff/tif_luv.c: Fix handling of tiled logluv images. 2279 http://bugzilla.maptools.org/show_bug.cgi?id=2005 2280 22812009-02-09 Frank Warmerdam <[email protected]> 2282 2283 * libtiff/tif_dirread.c: Improve allocation safety when allocated 2284 buffer for large tags. (#1998) Related to (#1993) 2285 22862009-02-06 Frank Warmerdam <[email protected]> 2287 2288 * tools/tiffcrop.c: Don't default image->res_unit to INCH. Now the 2289 test suite should pass. 2290 22912009-02-05 Frank Warmerdam <[email protected]> 2292 2293 * libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size, 2294 but at the 2GB boundary to avoid overflow on 32bit systems. 2295 http://bugzilla.maptools.org/show_bug.cgi?id=1993 2296 2297 * libtiff/tif_dirread.c: Remove some assertions that blow due to 2298 corrupt files rather than in response to library internal 2299 inconsistencies. 2300 http://bugzilla.maptools.org/show_bug.cgi?id=1995 2301 http://bugzilla.maptools.org/show_bug.cgi?id=1991 2302 2303 * libtiff/tif_dirread.c: Fixed testing for failed result from 2304 TIFFReadDirectoryFindFieldInfo(). 2305 http://bugzilla.maptools.org/show_bug.cgi?id=1992 2306 23072009-01-23 Frank Warmerdam <[email protected]> 2308 2309 * libtiff/tif_predict.c: Add support for 32bit integer horz. predictors. 2310 http://bugzilla.maptools.org/show_bug.cgi?id=1911 2311 2312 * libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset. 2313 2314 http://bugzilla.maptools.org/show_bug.cgi?id=1924 2315 2316 * tools/tiffcrop.c: initialize xres/yres values. 2317 2318 * test/*.sh - default ${srcdir} to local directory. 2319 2320 * test/common.sh - start verbose mode after common settings. 2321 2322 * libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to 2323 avoid type mismatches on different platforms. 2324 http://bugzilla.maptools.org/show_bug.cgi?id=1889 2325 23262009-01-22 Frank Warmerdam <[email protected]> 2327 2328 * tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c, 2329 tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues. 2330 2331 * port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT 2332 defined, primarily to reduce prototype warnings on windows. 2333 2334 * libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings 2335 about unused parameters, and uninitialized variables. 2336 23372009-01-21 Bob Friesenhahn <[email protected]> 2338 2339 * test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in 2340 order to trace full execution detail while executing the test suite. 2341 23422009-01-20 Frank Warmerdam <[email protected]> 2343 2344 * tools/tiffsplit.c: fix sampleformat to be shortv instead of longv. 2345 23462009-01-20 Bob Friesenhahn <[email protected]> 2347 2348 * test/Makefile.am (CLEANFILES): Make sure that test output files 2349 are removed by 'make clean' 2350 2351 * Update autotools for 4.0.0 beta3 2352 2353 * 4.0.0 beta3 produced. 2354 23552009-01-12 Bob Friesenhahn <[email protected]> 2356 2357 * test/tiffcrop.sh: New test script for tiffcrop from Richard 2358 Nolde. 2359 2360 * tools/tiff2ps.c: Remove spurious message to stderr. 2361 23622009-01-11 Bob Friesenhahn <[email protected]> 2363 2364 * tools/tiff2ps.c: Incorporated significant functionality update 2365 from Richard Nolde. In particular, support for rotating the image 2366 by 90, 180, 270, and 'auto' has been added. 2367 2368 * man/tiffcrop.1: Incorporated documentation updates from Richard 2369 Nolde. 2370 2371 * tools/tiffcrop.c: Incorporated significant functionality update 2372 from Richard Nolde. 2373 23742008-12-31 Bob Friesenhahn <[email protected]> 2375 2376 * libtiff/tiffio.h: GCC will now validate format specifications 2377 for TIFFError(), TIFFErrorExt(), TIFFWarning(), and 2378 TIFFWarningExt() in order to reveal bugs. 2379 2380 * Many fixes throughout to work better as a 64-bit build. 2381 23822008-12-30 Bob Friesenhahn <[email protected]> 2383 2384 * tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length 2385 tags now require 64-bit parameter rather than 32-bit. 2386 2387 * libtiff/tif_dirread.c: Fixed issues with unaligned access to 2388 64-bit values. 2389 2390 * tools/thumbnail.c: Eliminate crash noticed while running test 2391 suite. 2392 23932008-12-29 Bob Friesenhahn <[email protected]> 2394 2395 * libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer): 2396 Initialize stack variables to avoid compiler warning. 2397 2398 * tools/tiffinfoce.c (main): Use toff_t for offset type when 2399 retrieving offset of EXIF IFD. 2400 2401 * libtiff/tiffio.h: Undeprecate toff_t and restore its use in the 2402 TIFFClientOpen() callback and other external function definitions. 2403 2404 * tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit 2405 type now. Fixes crash when dumping files containing an EXIF IFD. 2406 2407 * m4/libtool.m4: Update to libtool 2.2.6. 2408 24092008-12-21 Frank Warmerdam <[email protected]> 2410 2411 * libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function. 2412 2413 * libtiff/tif_jpeg.c: Avoid errors if the application writes a full 2414 strip for the last partial strip in a jpeg compressed file. 2415 http://bugzilla.maptools.org/show_bug.cgi?id=1981 2416 24172008-10-29 Frank Warmerdam <[email protected]> 2418 2419 * libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when 2420 we take the shortcut to only update the strip/tile offsets in place. 2421 http://trac.osgeo.org/gdal/ticket/2621 2422 24232008-10-21 Andrey Kiselev <[email protected]> 2424 2425 * libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with 2426 the older versions retained). 2427 24282008-10-09 Frank Warmerdam <[email protected]> 2429 2430 * libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using 2431 IPP enabled version of libjpeg from Intel. 2432 http://bugzilla.maptools.org/show_bug.cgi?id=1951 2433 24342008-09-05 Andrey Kiselev <[email protected]> 2435 2436 * tools/tiffsplit.c: Use byte counts of proper size (uint64). 2437 Required for libtiff 4.0. 2438 2439 * tools/tiffsplit.c: Use dynamically allocated array instead of static 2440 when constructing output file names. 2441 24422008-09-03 Andrey Kiselev <[email protected]> 2443 2444 * tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when 2445 doing the filename/path construction. 2446 2447 * tools/tiff2pdf.c: More appropriate format string in 2448 t2p_write_pdf_string(); avoid signed/unsigned mismatch. 2449 2450 * libtiff/tif_lzw.c: Properly zero out the codetable. As per bug 2451 2452 http://bugzilla.maptools.org/show_bug.cgi?id=1929 2453 2454 * libtiff/tif_lzw.c: Properly zero out the string table. Fixes 2455 CVE-2008-2327 security issue. 2456 24572008-09-01 Frank Warmerdam <[email protected]> 2458 2459 * libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function. 2460 2461 * libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD 2462 depending on whether the file is bigtiff or classic tiff. 2463 http://bugzilla.maptools.org/show_bug.cgi?id=1917 2464 24652008-08-12 Edward Lam <[email protected]> 2466 2467 * tools/tiffdump.c: When compiling for Microsoft Windows, apply 2468 consistent (__int64) casting when testing if _lseeki64 has 2469 successfully seeked as requested. This is necessary for large 2470 file support to work since off_t is only 32-bit. 2471 24722008-07-29 Frank Warmerdam <[email protected]> 2473 2474 * tif_strip.c: Replace assertions related to samplesperpixel != 3 or 2475 the subsampling values not being 1, 2 or 4 (for jpeg compressed images) 2476 with control logic to return runtime errors (c/o Even Rouault) (#1927). 2477 24782008-06-17 Frank Warmerdam <[email protected]> 2479 2480 * tools/tiffcrop.c: Fix some portability problems. 2481 2482 * libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are 2483 used in tif_jpeg.c. 2484 2485 * libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags 2486 as TIFFOpen(). 2487 24882008-06-01 Frank Warmerdam <[email protected]> 2489 2490 * libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures 2491 like Sparc/Solaris. 2492 http://bugzilla.maptools.org/show_bug.cgi?id=1892 2493 24942008-05-27 Frank Warmerdam <[email protected]> 2495 2496 * libtiff.def: Add TIFFFindField 2497 http://bugzilla.maptools.org/show_bug.cgi?id=1891 2498 24992008-05-26 Frank Warmerdam <[email protected]> 2500 2501 * tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused. 2502 2503 * li2008-04-15 Andrey Kiselev <[email protected]> 2504 2505btiff/tif_win32.c: Replace custom Win32 memory api with generic 2506 POSIX one. No apparent value to use of GlobalAlloc() in the modern 2507 age. http://bugzilla.maptools.org/show_bug.cgi?id=1885 2508 2509 * libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items 2510 in windows version (care of Edward Lam). 2511 25122008-05-24 Frank Warmerdam <[email protected]> 2513 2514 * tif_codec.c: Avoid NULL pointer dereferencing for exotic 2515 compression codec codes. 2516 2517 * tif_dirwrite.c: fix potential memory leak. 2518 2519 * tif_dirread.c: Fix unchecked malloc result. 2520 25212008-05-24 Bob Friesenhahn <[email protected]> 2522 2523 * test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh 2524 tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh 2525 tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh 2526 tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh 2527 tiffdump.sh tiffinfo.sh}: Added more test scripts based on 2528 suggestions from Lee Howard posted to the tiff list on 13 Sep 2529 2007. 2530 25312008-05-23 Frank Warmerdam <[email protected]> 2532 2533 * libtiff/tif_fax3.c: Add an assert in an effort to detect a 2534 possible runtime problem reported by coverity. 2535 2536 * contrib/iptcutil/iptcutil.c: Fixed memory leak of str. 2537 2538 * tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde. 2539 http://bugzilla.maptools.org/show_bug.cgi?id=1888 2540 2541 * tools/tiffdither.c: remove dead onestrip code. avoid memory leak. 2542 2543 * tools/rgb2ycbcr.c: fix memory leak of raster buffer. 2544 2545 * tools/tiffcp.c: Simplify inknames code to avoid pointless test. 2546 Cleanup scanline allocation to avoid coverity warning. 2547 2548 * tools/thumbnail.c: Check for TIFFOpen() failure. 2549 25502008-05-18 Frank Warmerdam <[email protected]> 2551 2552 * libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT 2553 and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED. Not exactly clear 2554 why this is needed. 2555 25562008-05-09 Bob Friesenhahn <[email protected]> 2557 2558 * Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like 2559 "ACLOCAL_AMFLAGS=-I ./m4". It wants "ACLOCAL_AMFLAGS=-I m4". 2560 25612008-04-15 Andrey Kiselev <[email protected]> 2562 2563 * test/: Test suite updated. Everything is passed now. 2564 2565 * libtiff/tif_dirinfo.c: Fixed description of the 2566 TIFFTAG_NUMBEROFINKS tag. 2567 25682008-04-14 Andrey Kiselev <[email protected]> 2569 2570 * libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}: 2571 Get rid of some of "dereferencing type-punned" warnings by converting 2572 tdir_offset field of TIFFDirEntry structure into union. 2573 25742008-04-10 Andrey Kiselev <[email protected]> 2575 2576 * libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}: 2577 TIFFRewriteField() renamed into _TIFFRewriteField() and moved out 2578 from the public interface. Type of its 'count' parameter changed 2579 from uint32 to tmsize_t. 2580 2581 * /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields 2582 of the tiff structure have the size_t type instead of uint32. 2583 25842008-04-09 Andrey Kiselev <[email protected]> 2585 2586 * tools/tiffdump.c: Added support for MSVS 6.0. 2587 2588 * libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat() 2589 and _TIFFUInt64ToDouble() to convert 64-bit integers into floating 2590 point values on MSVS 6.0 platform. 2591 25922008-03-14 Frank Warmerdam <[email protected]> 2593 2594 * tif_dirread.c: Removed sanity checks on tags larger than 4MB in 2595 TIFFReadDirEntryArray() since they are interfering with seemingly 2596 legitimate files. http://trac.osgeo.org/gdal/ticket/2005 2597 25982008-02-09 Joris Van Damme <[email protected]> 2599 2600 * tif_dirread.c: Added handling for the case of number of values for 2601 PageNumber tag different from 2 (previously resulted in an assert 2602 indicating lack of handling and was forgotten about) 2603 26042008-02-01 Frank Warmerdam <[email protected]> 2605 2606 * libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on 2607 the actual jpeg data stream if the first strip/tile has zero size. 2608 This is the case when GDAL creates a new file with zero sizes, closes 2609 and reopens it. 2610 26112008-01-07 Frank Warmerdam <[email protected]> 2612 2613 * tools/tiff2ps.c: fix up 64bit issues (from Edward Lam). 2614 26152008-01-01 Frank Warmerdam <[email protected]> 2616 2617 * libtiff/tif_dirwrite.c: #ifdef out lots of unused functions. 2618 2619 * Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean 2620 targets. 2621 2622 * tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c 2623 tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005 2624 (x64). 2625 2626 * tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag() 2627 and TIFFFieldWithName() now return TIFFField pointers instead of 2628 TIFFFieldInfo pointers. 2629 2630 * tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't 2631 exist. This makes it compile again on Windows 2632 2633 * tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c, 2634 tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64. 2635 2636 * test/rewrite_tag.c: New test for TIFFRewriteField(). 2637 26382007-12-31 Frank Warmerdam <[email protected]> 2639 2640 * tif_dirwrite.c: Added TIFFRewriteField(). This new function 2641 rewrites one field "on disk" updating an existing directory 2642 entry. Lots of limitations still... 2643 2644 * tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of 2645 TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that 2646 the strip offset/size values are dirty but nothing else about the 2647 directory is dirty. In flush handle "just stripmaps dirty" as a 2648 special case that just rewrites these values without otherwise 2649 modifying the directory on disk using TIFFRewriteField(). 2650 2651 We also modify logic so that in update mode the directory is not 2652 marked dirty on read, but only when something is changed. This 2653 means we need to keep track of updates to the stripmap stuff in 2654 TIFFAppendToStrip(). 2655 26562007-12-10 Frank Warmerdam <[email protected]> 2657 2658 * tif_jpeg.c: Improve ability to switch between encoding and decoding 2659 in the jpeg code (gdal bug #2033). 2660 26612007-11-23 Frank Warmerdam <[email protected]> 2662 2663 * tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c, 2664 tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the 2665 rawcp/rawcc buffer are for writing and thus may require flushing. 2666 Necessary to distinguish whether they need to be written to disk when 2667 in mixed read/write mode and doing a mixture of writing followed by 2668 reading. http://trac.osgeo.org/gdal/ticket/1758 2669 26702007-11-23 Andrey Kiselev <[email protected]> 2671 2672 * configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches 2673 from Alexey Chupahin. 2674 26752007-11-02 Frank Warmerdam <[email protected]> 2676 2677 * tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for 2678 establishing if an existing tile can be rewritten to the same location 2679 by comparing the current size to all the other blocks in the same 2680 directory. This is dangerous in many situations and can easily 2681 corrupt a file. (observed in esoteric GDAL situation that's hard to 2682 document). This change involves leaving the stripbytecount[] values 2683 unaltered till TIFFAppendToStrip(). Now we only write a block back 2684 to the same location it used to be at if the new data is the same 2685 size or smaller - otherwise we move it to the end of file. 2686 2687 * tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile 2688 data when writing the directory just because we have BEENWRITING at 2689 some point in the past. This was causing odd junk to be written out 2690 in a tile of data when a single tile had an interleaving of reading 2691 and writing with reading last. (highlighted by gdal 2692 autotest/gcore/tif_write.py test 7. 2693 2694 * tif_predict.c: use working buffer in PredictorEncodeTile to avoid 2695 modifying callers buffer. 2696 http://trac.osgeo.org/gdal/ticket/1965 2697 2698 * tif_predict.c/h: more fixes related to last item, keeping a 2699 distinct pfunc for encode and decode cases as these were getting 2700 mixed up sometimes. 2701 http://trac.osgeo.org/gdal/ticket/1948 2702 27032007-11-01 Frank Warmerdam <[email protected]> 2704 2705 * tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that 2706 predictor based encoding and decoding works in read-write update 2707 mode properly. 2708 http://trac.osgeo.org/gdal/ticket/1948 2709 27102007-10-24 Joris Van Damme <[email protected]> 2711 2712 * tif_dirread.c: Fixed problem with bogus file triggering 2713 assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in 2714 ChopUpSingleUncompressedStrip 2715 27162007-10-22 Joris Van Damme <[email protected]> 2717 2718 * tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images 2719 at best, access violation at worst, when subsampled JPEG compressed imagery 2720 is decoded without the JPEG_COLORMODE feature 2721 27222007-10-11 Frank Warmerdam <[email protected]> 2723 2724 * html/index.html: Update "people responsible" section. 2725 27262007-10-05 Frank Warmerdam <[email protected]> 2727 2728 * tools/tiff2pdf.c: Fix problem with alpha setting in some cases 2729 as reported on the mailing list. 2730 27312007-10-01 Joris Van Damme <[email protected]> 2732 2733 * changed some more incorrect %lud printf flags to %lu 2734 27352007-09-29 Joris Van Damme <[email protected]> 2736 2737 * tif_dirread.c: Strip chopping interfered badly with uncompressed 2738 subsampled images because it tried to divide subsampled rowblocks, 2739 leading to all sorts of errors throughout the library for these 2740 images. Fixed by making strip chopping divide in row counts that 2741 are a multiple of vertical subsampling value. 2742 27432007-09-28 Joris Van Damme <[email protected]> 2744 2745 * tif_dirread.c: Logical cast working around compiler warning 2746 2747 * tif_read.c: Correction of some error flags and parameter lists 2748 27492007-09-27 Joris Van Damme <[email protected]> 2750 2751 * tif_dirread.c: Made calculation of td_maxsamplevalue more robust 2752 when dealing with large bitspersample values, shutting up purification 2753 tools that warn about truncation, though it remains incorrect and 2754 indicates a conceptual problem there. 2755 2756 * tif_open.c: Moved early exit in case of 'h' flag (to disable reading 2757 of first IFD) to proper place because it badly interfered with memory 2758 mapping, resulting in mapping flag even with dummy mapping functions 2759 that returned 0 whilst at the same time the mapping tif_size wasn't 2760 set, thus resulting in continuous incorrect beyond-eof errors. 2761 27622007-09-24 Joris Van Damme <[email protected]> 2763 2764 * tif_dirinfo.c: Fixed (MSVC) compiler reports about 2765 inconsistent use of const in tiffFields and exifFields definition 2766 27672007-09-20 Frank Warmerdam <[email protected]> 2768 2769 * tif_dirwrite.c: Always write tile/strip offsets and sizes 2770 using LONG8 type when output format is BigTIFF. The 2771 TIFFWriteDirectoryTagLongLong8Array() function was restructured 2772 accordingly. 2773 2774 * tif_dirread.c: Improvements to error reporting text in 2775 TIFFFetchDirectory(). 2776 27772007-09-19 Bob Friesenhahn <[email protected]> 2778 2779 * test/images: Added a small collection of test images for use by 2780 test programs and scripts. 2781 * test/tiffinfo.sh: A trivial example test script. 2782 * test/common.sh: Added small script for setting the environment 2783 used by script-based tests. 2784 27852007-08-24 Frank Warmerdam <[email protected]> 2786 2787 * tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed 2788 zero when writing directory contents to preserve the ability to 2789 rewrite directories in place, even in the middle of a directory 2790 chain. 2791 2792 * tif_dirinfo.c: _TIFFMergeFields() now only merges in field 2793 definitions that are missing. Existing definitions are silently 2794 ignored. 2795 2796 * tif_dirread.c: Add runtime error for fields for which no definition 2797 is found (in addition to an assert for developers) in 2798 TIFFFetchNormalTag(). Not sure if this is needed, but it seems 2799 prudent. 2800 28012007-08-10 Joris Van Damme <[email protected]> 2802 2803 * libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer 2804 from _TIFFRGBAImage structure to revert unwanted ABI change. 2805 28062007-08-10 Joris Van Damme <[email protected]> 2807 2808 * libtiff/tif_win32.c: use SetFilePointer instead of 2809 SetFilePointerEx, as per bug 2810 2811 http://bugzilla.remotesensing.org/show_bug.cgi?id=1580 2812 28132007-07-19 Andrey Kiselev <[email protected]> 2814 2815 * libtiff/tif_stream.cxx: Put all callback functions declarations 2816 inside extern "C" block. 2817 2818 * libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c, 2819 tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf() 2820 formatter instead of "%lld" with MSVC compiler. 2821 2822 * libtiff/{tiffiop.h, tif_aux.c}: Added _TIFFUInt64ToFloat() and 2823 _TIFFUInt64ToDouble() functions. 2824 28252007-07-18 Andrey Kiselev <[email protected]> 2826 2827 * libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit 2828 integer constants. 2829 2830 * libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h, 2831 remove tif_config.h/tiffconf.h during cleaning. As per bug 2832 2833 http://bugzilla.remotesensing.org/show_bug.cgi?id=1573 2834 2835 * libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug 2836 2837 http://bugzilla.remotesensing.org/show_bug.cgi?id=1577 2838 28392007-07-13 Andrey Kiselev <[email protected]> 2840 2841 * libtiff 4.0.0alpha released. 2842 28432007-07-12 Andrey Kiselev <[email protected]> 2844 2845 * tools/tiff2pdf.c: Added missed extern optind as per bug 2846 2847 http://bugzilla.remotesensing.org/show_bug.cgi?id=1567 2848 2849 * libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c, 2850 tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag 2851 extending scheme completed. 2852 28532007-07-11 Bob Friesenhahn <[email protected]> 2854 2855 * libtiff/tif_stream.cxx: Adapt to use toff_t again. Update to 2856 use standard C++ library size types and attempt to detect overflow 2857 cases. 2858 28592007-07-08 Andrey Kiselev <[email protected]> 2860 2861 * libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h, 2862 tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new 2863 tag extending scheme. Use the new scheme everywhere. 2864 2865 * libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c, 2866 tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c, 2867 tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}: 2868 TIFFFIeldInfo structure replaced with TIFFField structure. 2869 TIFFFieldInfo retained for the backward compatibility. 2870 28712007-07-05 Bob Friesenhahn <[email protected]> 2872 2873 * tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not 2874 defined. 2875 28762007-07-04 Andrey Kiselev <[email protected]> 2877 2878 * libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused 2879 TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration 2880 removed. 2881 2882 * libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move 2883 tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS, 2884 TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory. 2885 These tags are not codec-specific and relate to image content, so 2886 process them as other normal tags. 2887 2888 * libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the 2889 public tiffio.h to private tif_dir.h. 2890 2891 * contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and 2892 outdated. 2893 28942007-07-03 Andrey Kiselev <[email protected]> 2895 2896 * libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c, 2897 tif_win3.c}: Obsoleted portability stuff removed. 2898 2899 * tools/tiff2ps.c: Added support 16-bit images as per bug 2900 2901 http://bugzilla.remotesensing.org/show_bug.cgi?id=1566 2902 2903 Patch from William Bader. 2904 2905 * tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and 2906 significant upgrade of the whole utility as per bug 2907 2908 http://bugzilla.remotesensing.org/show_bug.cgi?id=1560 2909 2910 Now we don't need tiffiop.h in tiff2pdf anymore and will open output 2911 PDF file using TIFFClientOpen() machinery as it is implemented 2912 by Leon Bottou. 2913 29142007-06-26 Bob Friesenhahn <[email protected]> 2915 2916 * configure.ac: Fix typo when substituting value for unsigned 8 bit type. 2917 Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic. 2918 Added support for a TIFF_SSIZE_T in order to return memory sizes but still 2919 allow returning -1 for errors. 2920 * libtiff/tiffconf.vc.h: Add porting type defintions for WIN32. 2921 29222007-06-25 Bob Friesenhahn <[email protected]> 2923 2924 * port/strtoull.c: New porting function in case strtoull() is not 2925 available on the target system. 2926 * configure.ac: Add configure support for determining sized types 2927 in a portable way and performing necessary substitutions in 2928 tif_config.h and tiffconf.h. Updated tiff.h to use the new 2929 definitions. 2930 29312007-04-27 Andrey Kiselev <[email protected]> 2932 2933 * tools/tiff2pdf.c: Check the tmpfile() return status as per bug 2934 2935 http://bugzilla.remotesensing.org/show_bug.cgi?id=154 2936 29372007-04-07 Andrey Kiselev <[email protected]> 2938 2939 * libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c, 2940 tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c, 2941 tif_predict.c, tif_zip.c}: Finally fix bug 2942 2943 http://bugzilla.remotesensing.org/show_bug.cgi?id=1274 2944 2945 by introducing _TIFFMergeFieldInfo() returning integer error status 2946 instead of void in case of problems with field merging (e.g., if the 2947 field with such a tag already registered). TIFFMergeFieldInfo() in 2948 public API remains void. Use _TIFFMergeFieldInfo() everywhere and 2949 check returned value. 2950 29512007-04-07 Frank Warmerdam <[email protected]> 2952 2953 * contrib/addtiffo/tif_overview.c: Fix problems with odd sized output 2954 blocks in TIFF_DownSample_Subsampled() (bug 1542). 2955 29562007-04-06 Frank Warmerdam <[email protected]> 2957 2958 * libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it 2959 will convert from decompressor to compressor or compress to decompress 2960 if required by the force arguments. This works around a problem in 2961 where the JPEGFixupTestSubsampling() may cause a decompressor to 2962 be setup on a directory when later a compressor is required with the 2963 force flag set. Occurs with the addtiffo program for instance. 2964 29652007-04-06 Andrey Kiselev <[email protected]> 2966 2967 * tools/tiffcrop.c, man/tiffcrop.1: Significant update in 2968 functionality from Richard Nolde. As per bug 2969 2970 http://bugzilla.remotesensing.org/show_bug.cgi?id=1525 2971 29722007-03-28 Frank Warmerdam <[email protected]> 2973 2974 * libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC. 2975 29762007-03-17 Joris Van Damme <[email protected]> 2977 2978 * start of BigTIFF upgrade - CVS HEAD unstable until further notice 2979 29802007-03-07 Joris Van Damme <[email protected]> 2981 2982 * libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading 2983 OJPEG images with rowsperstrip that is not a multiple of vertical subsampling 2984 factor. This bug is mentioned in: 2985 http://bugzilla.remotesensing.org/show_bug.cgi?id=1390 2986 http://www.asmail.be/msg0054766825.html 2987 29882007-03-07 Joris Van Damme <[email protected]> 2989 2990 * libtiff/tif_win32.c: made inclusion of windows.h unconditional 2991 2992 * libtiff/tif_win32.c: replaced preprocessor indication for consiously 2993 unused arguments by standard C indication for the same 2994 29952007-02-27 Andrey Kiselev <[email protected]> 2996 2997 * libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte 2998 counters in TIFFFetchData(). Should finally fix the issue 2999 3000 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 3001 30022007-02-24 Andrey Kiselev <[email protected]> 3003 3004 * tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount. 3005 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350 3006 3007 * libtiff/tif_dirread.c: Added special function to handle 3008 SubjectDistance EXIF tag as per bug 3009 3010 http://bugzilla.remotesensing.org/show_bug.cgi?id=1362 3011 3012 * tools/tiff2pdf.c: Do not assume inches when the resolution units 3013 do not specified. As per bug 3014 3015 http://bugzilla.remotesensing.org/show_bug.cgi?id=1366 3016 3017 * tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if 3018 it was set as infinite. As per bug 3019 3020 http://bugzilla.remotesensing.org/show_bug.cgi?id=1368 3021 3022 * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed 3023 by Richard Nolde. As per bug 3024 3025 http://bugzilla.remotesensing.org/show_bug.cgi?id=1383 3026 30272007-02-22 Andrey Kiselev <[email protected]> 3028 3029 * libtiff/tif_dir.c: Workaround for incorrect TIFFs with 3030 ExtraSamples == 999 produced by Corel Draw. As per bug 3031 3032 http://bugzilla.remotesensing.org/show_bug.cgi?id=1490 3033 3034 * libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters 3035 changed from tsize_t to uint32 to be able to work with data arrays 3036 larger than 2GB. Fixes bug 3037 3038 http://bugzilla.remotesensing.org/show_bug.cgi?id=890 3039 3040 Idea submitted by Matt Hancher. 3041 30422007-01-31 Andrey Kiselev <[email protected]> 3043 3044 * tools/tif2rgba.c: This utility does not work properly on big-endian 3045 architectures. It was fixed including the bug 3046 3047 http://bugzilla.remotesensing.org/show_bug.cgi?id=1149 3048 30492007-01-15 Mateusz Loskot <[email protected]> 3050 3051 * Submitted libtiff port for Windows CE platform 3052 * libtiff/tif_config.wince.h: Added configuration header for WinCE. 3053 * libtiff/tiffconf.wince.h: Ported old configuration header for WinCE. 3054 * libtiff/tif_wince.c: Added WinCE-specific implementation of some 3055 functons from tif_win32.c. 3056 * libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c. 3057 * libtiff/tiffiop.h, port/lfind.c: Added conditional include of some 3058 standard header files for Windows CE build. 3059 * tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE. 3060 30612006-11-19 Frank Warmerdam <[email protected]> 3062 3063 * libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if 3064 we move a strip. 3065 http://bugzilla.remotesensing.org/show_bug.cgi?id=1359 3066 30672006-10-13 Andrey Kiselev <[email protected]> 3068 3069 * libtiff/tif_dir.c: More fixes for vulnerabilities, reported 3070 in Gentoo bug (): 3071 3072 http://bugs.gentoo.org/show_bug.cgi?id=142383 3073 3074 * libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable. 3075 Though it is still far from the state of being working and useful. 3076 30772006-10-12 Andrey Kiselev <[email protected]> 3078 3079 * libtiff/tif_fax3.c: Save the state of printdir codec dependent 3080 method. 3081 3082 * libtiff/tif_jpeg.c: Save the state of printdir codec dependent method 3083 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273 3084 3085 * libtiff/tif_win32.c: Fixed problem with offset value manipulation 3086 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322 3087 3088 * libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for 3089 vulnerabilities, reported in Gentoo bug (): 3090 3091 http://bugs.gentoo.org/show_bug.cgi?id=142383 3092 30932006-09-28 Andrey Kiselev <[email protected]> 3094 3095 * libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple 3096 vulnerabilities, as per Gentoo bug (): 3097 3098 http://bugs.gentoo.org/show_bug.cgi?id=142383 3099 31002006-09-27 Frank Warmerdam <[email protected]> 3101 3102 * libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing 3103 encoding and decoding on the same read-write TIFF handle. The LZW 3104 code can now maintain encode and decode state at the same time. The 3105 ZIP code will switch back and forth as needed. 3106 http://bugzilla.remotesensing.org/show_bug.cgi?id=757 3107 31082006-09-20 Frank Warmerdam <[email protected]> 3109 3110 * libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and 3111 tif_config.vc.h for easier identification by folks using an IDE. 3112 31132006-07-25 Frank Warmerdam <[email protected]> 3114 3115 * tif_msdos.c: Avoid handle leak for failed opens. c/o Thierry Pierron 3116 31172006-07-19 Frank Warmerdam <[email protected]> 3118 3119 * tif_dirwrite.c: take care not to flush out buffer of strip/tile 3120 data in _TIFFWriteDirectory if TIFF_BEENWRITING not set. Relates 3121 to bug report by Peng Gao with black strip at bottom of images. 3122 31232006-07-12 Frank Warmerdam <[email protected]> 3124 3125 * tif_dirwrite.c: make sure to use uint32 for wordcount in 3126 TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields. 3127 It already seems to have been done for other field types. Needed 3128 for "tiffset" on files with geotiff ascii text. 3129 31302006-07-04 Bob Friesenhahn <[email protected]> 3131 3132 * {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c} 3133 (JBIGDecode): jbg_newlen is not available in older JBIG-KIT and 3134 its use does not appear to be required, so use it only when it is 3135 available. 3136 31372006-06-24 Andrey Kiselev <[email protected]> 3138 3139 * libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961). 3140 3141 * libtiff/tif_dirread.c: Move IFD fetching code in the separate 3142 function TIFFFetchDirectory() avoiding code duplication in 3143 TIFFReadDirectory() and TIFFReadCustomDirectory(). 3144 31452006-06-19 Frank Warmerdam <[email protected]> 3146 3147 * tools/tiff2pdf.c: Fix handling of -q values. 3148 http://bugzilla.remotesensing.org/show_bug.cgi?id=587 3149 31502006-06-17 Frank Warmerdam <[email protected]> 3151 3152 * tif_readdir.c: Added case in EstimateStripByteCounts() for tiled 3153 files. Modified TIFFReadDirectory() to not invoke 3154 EstimateStripByteCounts() for case where entry 0 and 1 are unequal 3155 but one of them is zero. 3156 http://bugzilla.remotesensing.org/show_bug.cgi?id=1204 3157 31582006-06-08 Andrey Kiselev <[email protected]> 3159 3160 * libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping 3161 checking code in the separate function TIFFCheckDirOffset(). 3162 3163 * libtiff/tif_aux.c: Added _TIFFCheckRealloc() function. 3164 3165 * tools/tiffcmp.c: Fixed floating point comparison logic as per bug 3166 3167 http://bugzilla.remotesensing.org/show_bug.cgi?id=1191 3168 3169 * libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug 3170 3171 http://bugzilla.remotesensing.org/show_bug.cgi?id=1194 3172 3173 * tools/tiff2pdf.c: Fixed buffer overflow condition in 3174 t2p_write_pdf_string() as per bug 3175 3176 http://bugzilla.remotesensing.org/show_bug.cgi?id=1196 3177 31782006-06-07 Andrey Kiselev <[email protected]> 3179 3180 * {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added 3181 support for JBIG compression scheme (34661 code) contributed by Lee 3182 Howard. As per bug 3183 3184 http://bugzilla.remotesensing.org/show_bug.cgi?id=896 3185 3186 * configure, configure.ac: OJPEG support enabled by default. 3187 3188 * contrib/ojpeg/: Removed. New OJPEG support does not need this patch. 3189 31902006-06-03 Bob Friesenhahn <[email protected]> 3191 3192 * libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in 3193 TIFFPrintDirectory(). Joris Van Damme authored the fix. 3194 31952006-04-21 Andrey Kiselev <[email protected]> 3196 3197 * tools/tiff2pdf.c: Unified line ending characters (always use '\n') 3198 as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163 3199 3200 * README.vms, Makefile.am, configure.com, libtiff/{Makefile.am, 3201 tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}: 3202 Added support for OpenVMS by Alexey Chupahin, [email protected]. 3203 32042006-04-20 Andrey Kiselev <[email protected]> 3205 3206 * tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}: 3207 Properly set the binary mode for stdin stream as per bug 3208 http://bugzilla.remotesensing.org/show_bug.cgi?id=1141 3209 3210 * man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1, 3211 raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1, 3212 tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1, tiffdump.1, tiffgt.1, 3213 tiffset.1}: Improvements in page formatting as per bug 3214 http://bugzilla.remotesensing.org/show_bug.cgi?id=1140 3215 3216 * html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed 3217 typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139 3218 32192006-04-18 Frank Warmerdam <[email protected]> 3220 3221 * nmake.opt: use /EHsc for VS2005 compatibility. Also define 3222 _CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005. 3223 32242006-04-12 Joris Van Damme <[email protected]> 3225 3226 * libtiff/tif_getimage.c: Added support for planarconfig separate 3227 non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1]) 3228 32292006-04-11 Joris Van Damme <[email protected]> 3230 3231 * libtiff/tif_getimage.c: Revision of all RGB(A) put routines 3232 - Conversion of unassociated alpha to associated alpha now done with 3233 more performant LUT, and calculation more correct 3234 - Conversion of 16bit data to 8bit data now done with 3235 more performant LUT, and calculation more correct 3236 - Bugfix of handling of 16bit RGB with unassociated alpha 3237 32382006-04-11 Joris Van Damme <[email protected]> 3239 3240 * libtiff/tif_getimage.c: 3241 - When there is no alpha, gtTileSeparate and gtStripSeparate allocated 3242 buffer for alpha strile and filled it, only to never read it back. 3243 Removed allocation and fill. 3244 - Minor rename of vars in gtTileSeparate and gtStripSeparate 3245 anticipating planned functionality extension 3246 32472006-04-08 Joris Van Damme <[email protected]> 3248 3249 * libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase 3250 and pickTileSeparateCase to PickSeparateCase as both work on strips as 3251 well 3252 3253 * libtiff/tif_getimage.c: moved img->get selection from 3254 TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create 3255 logical hook for planned functionality extension 3256 32572006-04-08 Joris Van Damme <[email protected]> 3258 3259 * libtiff/tif_ojpeg.c: resolved memory leak that was a consequence 3260 of inappropriate use of jpeg_abort instead of jpeg_destroy 3261 32622006-04-07 Joris Van Damme <[email protected]> 3263 3264 * libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in 3265 gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour 3266 on subsampled images - this ought to get sorted when we feel brave 3267 enough to replace TIFFScanlineSize alltogether 3268 3269 * libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip 3270 32712006-04-04 Joris Van Damme <[email protected]> 3272 3273 * libtiff/tiffio.h: added new type tstrile_t 3274 3275 * libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips 3276 to new tstrile_t, types of td_stripoffset and td_stripbytecount to 3277 toff_t* 3278 3279 * libtiff/tif_ojpeg.c: totally new implementation 3280 3281 * libtiff/tif_dirread.c: added several hacks to suit new support of 3282 OJPEG 3283 3284 * libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling 3285 of OJPEG images in favor of tif_getimage.c native handling of 3286 YCbCr and desubsampling 3287 32882006-03-29 Frank Warmerdam <[email protected]> 3289 3290 * libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric 3291 interpretation causes the "upsampled" flag to be recomputed. Fixes 3292 peculiar bug where photometric flag had to be set before jpegcolormode 3293 flag. 3294 32952006-03-25 Joris Van Damme <[email protected]> 3296 3297 * libtiff/tif_jpeg.c: strip size related bugfix in encode raw 3298 3299 * libtiff/tif_strip.c: temporarilly added two new versions of 3300 TIFFScanlineSize 3301 - TIFFNewScanlineSize: proposed new version, after all related 3302 issues and side-effects are sorted out 3303 - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change 3304 This needs further sorting out. 3305 33062006-03-25 Joris Van Damme <[email protected]> 3307 3308 * contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size 3309 of last truncated strip data to TIFFWriteEncodedStrip 3310 33112006-03-25 Joris Van Damme <[email protected]> 3312 3313 * libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw 3314 33152006-03-25 Joris Van Damme <[email protected]> 3316 3317 * libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile 3318 3319 * libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile 3320 3321 * libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to 3322 prepare the path for new tif_ojpeg.c 3323 33242006-03-23 Andrey Kiselev <[email protected]> 3325 3326 * libtiff 3.8.2 released. 3327 3328 * tools/Makefile.am: Use runtime paths linker flags when rpath 3329 option enabled. 3330 33312006-03-21 Andrey Kiselev <[email protected]> 3332 3333 * libtiff/libtiff.def: Added missed exports as per bug 3334 http://bugzilla.remotesensing.org/attachment.cgi?id=337 3335 3336 * contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc, 3337 tools/Makefile.vc: Makefiles improvements as per bug 3338 http://bugzilla.remotesensing.org/show_bug.cgi?id=1128 3339 3340 * nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h}, 3341 tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions 3342 usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127 3343 3344 * libtiff/tif_strip.c: Take subsampling in account when calculating 3345 TIFFScanlineSize(). 3346 3347 * tools/tiffcp.c: Do not set RowsPerStrip bigger than image length. 3348 33492006-03-17 Andrey Kiselev <[email protected]> 3350 3351 * tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug 3352 http://bugzilla.remotesensing.org/show_bug.cgi?id=1125 3353 3354 * tools/fax2ps.c: Fixed reading the input stream from stdin as per bug 3355 http://bugzilla.remotesensing.org/show_bug.cgi?id=1124 3356 33572006-03-16 Andrey Kiselev <[email protected]> 3358 3359 * libtiff/tiffiop.h: Added decalration for 3360 _TIFFSetDefaultCompressionState(). 3361 3362 * libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c, 3363 tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all 3364 codec cleanup methods. As per bug 3365 3366 http://bugzilla.remotesensing.org/show_bug.cgi?id=1120 3367 33682006-03-15 Andrey Kiselev <[email protected]> 3369 3370 * libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As 3371 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119 3372 3373 * tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength. 3374 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110 3375 3376 * libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro 3377 removed; move here the STRIP_SIZE_DEFAULT macro definition. 3378 3379 * libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT 3380 macro definition. 3381 3382 * libtiff/tif_dir.c: Use double type instead of dblparam_t. 3383 33842006-03-14 Andrey Kiselev <[email protected]> 3385 3386 * libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence 3387 in TIFFReadDirectory, because it is always set at the start of 3388 function and we allow TIFFs without that tag set. 3389 33902005-03-13 Andrey Kiselev <[email protected]> 3391 3392 * libtiff 3.8.1 released. 3393 33942006-03-07 Andrey Kiselev <[email protected]> 3395 3396 * libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray() 3397 function as per bug 3398 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3399 3400 * libtiff/tif_dirread.c: More wise check for integer overflow 3401 condition as per bug 3402 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3403 3404 * libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}: 3405 Properly restore setfield/getfield methods in cleanup functions. As 3406 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3407 34082006-03-03 Andrey Kiselev <[email protected]> 3409 3410 * libtiff/{tif_predict.c, tif_predict.h}: Added new function 3411 TIFFPredictorCleanup() to restore parent decode/encode/field methods. 3412 3413 * libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use 3414 TIFFPredictorCleanup() in codec cleanup methods. As per bug 3415 3416 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3417 3418 * libtiff/tif_dirread.c: Fixed integer overflow condition in 3419 TIFFFetchData() function. As per bug 3420 3421 http://bugzilla.remotesensing.org/show_bug.cgi?id=1102 3422 34232006-03-01 Andrey Kiselev <[email protected]> 3424 3425 * libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the 3426 TIFFSetField() method, not directly. As per bug 3427 3428 http://bugzilla.remotesensing.org/show_bug.cgi?id=1043 3429 3430 * tools/ppm2tiff.c: Added support for PBM files as per bug 3431 http://bugzilla.remotesensing.org/show_bug.cgi?id=1044 3432 34332006-02-27 Andrey Kiselev <[email protected]> 3434 3435 * libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline() 3436 to avoid crash as per bug 3437 3438 http://bugzilla.remotesensing.org/show_bug.cgi?id=1081. 3439 34402006-02-26 Andrey Kiselev <[email protected]> 3441 3442 * tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and 3443 t2p_sample_rgba_to_rgb() was used in place of each other, that was 3444 resulted in problems with RGBA images with associated alpha. 3445 As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097 3446 34472006-02-23 Andrey Kiselev <[email protected]> 3448 3449 * libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per 3450 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3451 3452 * libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER, 3453 TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE 3454 tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088. 3455 3456 * tools/tiff2ps.c: Properly scale all the pages when converting 3457 multipage TIFF with /width/height/center options set. As per bug 3458 3459 http://bugzilla.remotesensing.org/show_bug.cgi?id=1080 3460 34612006-02-15 Andrey Kiselev <[email protected]> 3462 3463 * tools/tiff2pdf.c: Do not create output file until all option checks 3464 will be done. As per bug 3465 3466 http://bugzilla.remotesensing.org/show_bug.cgi?id=1072 3467 3468 * tools/bmp2tiff.c: Added ability to create multipage TIFFs from the 3469 list of input files as per bug: 3470 3471 http://bugzilla.remotesensing.org/show_bug.cgi?id=1077 3472 34732006-02-09 Andrey Kiselev <[email protected]> 3474 3475 * libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per 3476 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063. 3477 3478 * tools/tiffgt.c: Avoid crashing in case of image unsupported by 3479 TIFFRGBAImage interface. 3480 3481 * libtiff/tif_color.c: Avoid overflow in case of wrong input as per 3482 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065. 3483 34842006-02-07 Frank Warmerdam <[email protected]> 3485 3486 * tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG 3487 compressed TIFF files, per submission from Dan Cobra. 3488 34892006-02-07 Andrey Kiselev <[email protected]> 3490 3491 * libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly 3492 cast values to avoid warnings. As per bug 3493 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3494 3495 * libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when 3496 appropriate. As per bug 3497 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3498 3499 * libtiff/tif_aux.c: Fixed type of temporary variable in 3500 _TIFFCheckMalloc() as per bug 3501 http://bugzilla.remotesensing.org/show_bug.cgi?id=1033. 3502 35032006-02-06 Andrey Kiselev <[email protected]> 3504 3505 * libtiff/tif_aux.c: Return static array when fetching default 3506 YCbCrCoefficients (another problem, reported a the 3507 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry). 3508 35092006-02-03 Andrey Kiselev <[email protected]> 3510 3511 * libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints, 3512 YCbCrSubsampling and DotRange tags as per bugs 3513 3514 http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 3515 http://bugzilla.remotesensing.org/show_bug.cgi?id=1034 3516 3517 * libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of 3518 _TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug 3519 3520 http://bugzilla.remotesensing.org/show_bug.cgi?id=1026. 3521 35222006-01-23 Andrey Kiselev <[email protected]> 3523 3524 * libtool related stuff updated from the 2.1a branch. 3525 35262006-01-11 Frank Warmerdam <[email protected]> 3527 3528 * tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff, 3529 tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works 3530 properly as per bug: 3531 http://bugzilla.remotesensing.org/show_bug.cgi?id=1025 3532 35332006-01-09 Bob Friesenhahn <[email protected]> 3534 3535 * configure.ac: Fix with_default_strip_size comparison as reported 3536 by Norihiko Murase. 3537 35382006-01-08 Bob Friesenhahn <[email protected]> 3539 3540 * test/Makefile.am (LIBTIFF): Due to linking against libtiff 3541 incorrectly, tests were not actually testing the uninstalled 3542 libtiff. Now they are. 3543 35442006-01-04 Andrey Kiselev <[email protected]> 3545 3546 * libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE, 3547 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount 3548 should be uint32 value. 3549 35502006-01-02 Bob Friesenhahn <[email protected]> 3551 3552 * html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can 3553 be used if build directory is not the same as source directory. 3554 * man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented 3555 TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET, 3556 and re-sorted tag names in alphabetical order. 3557 35582005-12-29 Andrey Kiselev <[email protected]> 3559 3560 * libtiff 3.8.0 released. 3561 35622005-12-28 Bob Friesenhahn <[email protected]> 3563 3564 * tools/bmp2tiff.c (main): Fixed warning regarding returning 3565 inconsistent types from a condition. 3566 * tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf 3567 format. 3568 * tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs. 3569 35702005-12-28 Joris Van Damme <[email protected]> 3571 3572 * html/{index.html, support.hml, libtiff.html}: Cleaned up HTML 3573 35742005-12-27 Andrey Kiselev <[email protected]> 3575 3576 * libtiff/tiffio.h: Added VC_EXTRALEAN definition before including 3577 windows.h, to reduce the compile time. 3578 35792005-12-26 Bob Friesenhahn <[email protected]> 3580 3581 * libtiff/tif_jpeg.c: Improve compilation under MinGW. 3582 35832005-12-26 Andrey Kiselev <[email protected]> 3584 3585 * libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}: 3586 tiffFieldInfo and exifFieldInfo arrays definitions moved back to 3587 tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo() 3588 private functions to retrieve FieldInfo arrays. 3589 35902005-12-24 Bob Friesenhahn <[email protected]> 3591 3592 * html/build.html: Added some additional instructions for when 3593 building using MSVC under Windows. Also fixed two HTML syntax 3594 errors and used HTML Tidy to tidy up the HTML syntax and 3595 formatting. 3596 35972005-12-24 Andrey Kiselev <[email protected]> 3598 3599 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c, 3600 tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and 3601 StoNits tags custom. 3602 36032005-12-23 Andrey Kiselev <[email protected]> 3604 3605 * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make 3606 WhitePoint tag custom. 3607 3608 * libtiff/{tif_dir.h, tiff.h}: More EXIF tags added. 3609 36102005-12-23 Joris Van Damme <[email protected]> 3611 3612 * libtiff/tiffio.h: fixed typo that potentially resulted in 3613 redefininition of USE_WIN32_FILEIO 3614 3615 * libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning 3616 calls in core LibTiff. 3617 36182005-12-21 Andrey Kiselev <[email protected]> 3619 3620 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC, 3621 Photoshop and ICCProfile tags custom. 3622 36232005-12-21 Joris Van Damme <[email protected]> 3624 3625 * libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling 3626 newer code to get context indicator in error handler and still 3627 remain compatible with older code: Done TIFFError calls everywhere 3628 except in tools 3629 36302005-12-20 Andrey Kiselev <[email protected]> 3631 3632 * tools/tiffcp.c: Added many error reporting messages; fixed integer 3633 overflow as per bug 3634 3635 http://bugzilla.remotesensing.org/show_bug.cgi?id=789 3636 36372005-12-16 Frank Warmerdam <[email protected]> 3638 3639 * contrib/addtiffo/*: Major upgrade by Joris to support subsampled 3640 YCbCr images in jpeg compressed TIFF files. 3641 36422005-12-14 Andrey Kiselev <[email protected]> 3643 3644 * tools/tiffcp.c: Return non-zero status when reading fails (again). 3645 36462005-12-13 Andrey Kiselev <[email protected]> 3647 3648 * tools/tiffcp.c: Return non-zero status when reading fails. 3649 36502005-12-12 Andrey Kiselev <[email protected]> 3651 3652 * libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags. 3653 36542005-12-09 Andrey Kiselev <[email protected]> 3655 3656 * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag 3657 custom. 3658 3659 * tools/tiffinfo.c: Print EXIF directory contents if exist. 3660 3661 * libtiff/tiff.h: Few EXIF tag numbers added. 3662 3663 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c, 3664 tiffio.h}: Preliminary support to read custom directories. New 3665 functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory(). 3666 36672005-12-07 Andrey Kiselev <[email protected]> 3668 3669 * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}: 3670 More work to implement custom directory read support. 3671 3672 * libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h, 3673 tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite 3674 tags custom. 3675 36762005-12-05 Andrey Kiselev <[email protected]> 3677 3678 * libtiff/tif_dirread.c: One more workaround for broken 3679 StripByteCounts tag. Handle the case when StripByteCounts array filled 3680 with completely wrong values. 3681 36822005-11-30 Andrey Kiselev <[email protected]> 3683 3684 * libtiff/tif_dirinfo.c: Release file descriptor in case of failure 3685 in the TIFFOpenW() function as per bug 3686 3687 http://bugzilla.remotesensing.org/show_bug.cgi?id=1003 3688 3689 * libtiff/tif_dirinfo.c: Correctly yse bsearch() and lfind() 3690 functions as per bug 3691 3692 http://bugzilla.remotesensing.org/show_bug.cgi?id=1008 3693 36942005-11-20 Frank Warmerdam <[email protected]> 3695 3696 * tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support 3697 for MS MDI format. 3698 http://bugzilla.remotesensing.org/show_bug.cgi?id=1002 3699 3700 * .cvsignore: many files added, and a few update according 3701 to suggestion of Brad HArds on tiff mailing list. 3702 37032005-11-03 Frank Warmerdam <[email protected]> 3704 3705 * libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory 3706 public. 3707 37082005-10-31 Andrey Kiselev <[email protected]> 3709 3710 * tools/fax2tiff.c: Properly calculate sizes of temporary arrays 3711 as per bug 3712 3713 http://bugzilla.remotesensing.org/show_bug.cgi?id=943 3714 3715 * tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter 3716 as per bug 3717 3718 http://bugzilla.remotesensing.org/show_bug.cgi?id=944 3719 3720 * tools/tiffdump.c: Fixed typeshift and typemask arrays initialization 3721 problem as per bug 3722 3723 http://bugzilla.remotesensing.org/show_bug.cgi?id=946 3724 3725 * tools/bmp2tiff.c: Fixed possible integer overflow error as per bug 3726 3727 http://bugzilla.remotesensing.org/show_bug.cgi?id=965 3728 3729 * libtiff/tif_dirinfo.c: Make XResolution, YResolution and 3730 ResolutionUnit tags modifiable during write process. As per bug 3731 3732 http://bugzilla.remotesensing.org/show_bug.cgi?id=977 3733 3734 * tools/tiffsplit.c: Copy fax related fields over splitted parts 3735 as per bug 3736 3737 http://bugzilla.remotesensing.org/show_bug.cgi?id=983 3738 37392005-10-21 Frank Warmerdam <[email protected]> 3740 3741 * tif_dirread.c: Don't try and split single strips into "0" strips 3742 in ChopUpSingleUncompressedStrip. This happens in some degenerate 3743 cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff) 3744 37452005-10-20 Joris Van Damme <[email protected]> 3746 3747 * tif_fax3.c: changed 'at scanline ...' style warning/errors 3748 with incorrect use of tif_row, to 'at line ... of 3749 strip/tile ...' style 3750 37512005-10-15 Frank Warmerdam <[email protected]> 3752 3753 * tif_write.c: fixed setting of planarconfig as per bug report 3754 on the mailing list from Joris. 3755 37562005-10-07 Andrey Kiselev <[email protected]> 3757 3758 * configure.ac, configure, nmake.opt, libtiff/{tif_config.h, 3759 tif_dirread.c}: Make the default strip size configurable via the 3760 --with-default-strip-size and STRIP_SIZE_DEFAULT options. 3761 37622005-09-30 Bob Friesenhahn <[email protected]> 3763 3764 * html/support.html: Fixed link to documentation on Greg Ward's 3765 LogLuv TIFF format. 3766 37672005-09-28 Andrey Kiselev <[email protected]> 3768 3769 * tools/tiffdump.c: Fixed crash when reading malformed tags. 3770 37712005-09-20 Andrey Kiselev <[email protected]> 3772 3773 * tools/tiff2pdf.c: Added missed 'break' statement as per bug 3774 http://bugzilla.remotesensing.org/show_bug.cgi?id=932 3775 37762005-09-12 Andrey Kiselev <[email protected]> 3777 3778 * libtiff 3.7.4 released. 3779 3780 * {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch 3781 from Patrick Welche (all scripts moved in the 'config' and 'm4' 3782 directories). 3783 37842005-09-12 Frank Warmerdam <[email protected]> 3785 3786 * libtiff/tif_open.c: reintroduce seek to avoid problem on solaris. 3787 37882005-09-05 Frank Warmerdam <[email protected]> 3789 3790 * libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV 3791 also set it to NULL to avoid double free when re-setting custom 3792 string fields as per: 3793 3794 http://bugzilla.remotesensing.org/show_bug.cgi?id=922 3795 37962005-08-12 Frank Warmerdam <[email protected]> 3797 3798 * libtiff/tif_print.c: avoid signed/unsigned warning. 3799 3800 * libtiff/tif_dirread.c: removed unused variable. 3801 38022005-07-30 Frank Warmerdam <[email protected]> 3803 3804 * libtiff/tif_dir.c: Fixed up support for swapping "double complex" 3805 values (128 bits as 2 64 bits doubles). GDAL gcore tests now 3806 pass on bigendian (macosx) system. 3807 38082005-07-28 Andrey Kiselev <[email protected]> 3809 3810 * libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename 3811 CheckMalloc() function to _TIFFCheckMalloc() and make it available 3812 globally as an internal helper routine. 3813 38142005-07-27 Andrey Kiselev <[email protected]> 3815 3816 * libtiff/tif_dir.c: More improvements in the "pass by value" part of 3817 the custom tags handling code. 3818 38192005-07-26 Andrey Kiselev <[email protected]> 3820 3821 * libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to 3822 SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples() 3823 function, use TIFFFetchNormalTag() instead as per bug 3824 3825 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3826 3827 Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag() 3828 instead. 3829 3830 * libtiff/tiffconf.h.in: One more attempt to fix the AIX bug 3831 3832 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 3833 38342005-07-25 Andrey Kiselev <[email protected]> 3835 3836 * libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays. 3837 3838 * tools/tiffdump.c: Added support for TIFF_IFD datatype. 3839 38402005-07-21 Andrey Kiselev <[email protected]> 3841 3842 * libtiff/tif_write.c: Do not check the PlanarConfiguration field in 3843 the TIFFWriteCheck() function in case of single band images (as per 3844 TIFF spec). 3845 38462005-07-12 Andrey Kiselev <[email protected]> 3847 3848 * SConstruct, libtiff/SConstruct: Added the first very preliminary 3849 support for SCons software building tool (http://www.scons.org/). 3850 This is experimental infrastructure and it will exist along with the 3851 autotools mechanics. 3852 38532005-07-07 Andrey Kiselev <[email protected]> 3854 3855 * port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from 3856 the NetBSD source tree (the old 4-clause BSD license changed to 3857 the new 3-clause one). 3858 3859 * configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind() 3860 replacement module. 3861 3862 * port/dummy.c: Make the dummy function static. 3863 38642005-07-06 Andrey Kiselev <[email protected]> 3865 3866 * tools/tiffcp.c: Fixed WhitePoint tag copying. 3867 3868 * libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}: 3869 Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera, 3870 ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom. 3871 38722005-07-04 Andrey Kiselev <[email protected]> 3873 3874 * libtiff 3.7.3 released. 3875 3876 * configure, configure.ac: Do not use empty -R option when linking 3877 with --enable-rpath. 3878 38792005-07-01 Andrey Kiselev <[email protected]> 3880 3881 * libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid 3882 reading the first IFD when needed. As per bug 3883 3884 http://bugzilla.remotesensing.org/show_bug.cgi?id=875 3885 3886 * libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side 3887 effects. 3888 38892005-06-23 Andrey Kiselev <[email protected]> 3890 3891 * tools/tiff2pdf.c: Print two characters per loop in the 3892 t2p_write_pdf_trailer(). As per bug 3893 3894 http://bugzilla.remotesensing.org/show_bug.cgi?id=594 3895 3896 * tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As 3897 per bug 3898 3899 http://bugzilla.remotesensing.org/show_bug.cgi?id=844 3900 3901 * acinclude.m4: Updated to latest OpenGL test macros versions. 3902 3903 * libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler 3904 platform. As per bug 3905 3906 http://bugzilla.remotesensing.org/show_bug.cgi?id=855 3907 39082005-06-14 Andrey Kiselev <[email protected]> 3909 3910 * libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits 3911 and YClipPathUnits tags. 3912 39132005-06-07 Andrey Kiselev <[email protected]> 3914 3915 * contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size; 3916 use pixel sized shift in contigous case. 3917 39182005-06-06 Andrey Kiselev <[email protected]> 3919 3920 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}: 3921 Make overviews working for contiguos images. 3922 39232005-06-03 Andrey Kiselev <[email protected]> 3924 3925 * libtiff/tif_open.c: Replace runtime endianess check with the compile 3926 time one. 3927 3928 * libtiff/tif_predict.c: Floating point predictor now works on 3929 big-endian hosts. 3930 39312005-06-01 Andrey Kiselev <[email protected]> 3932 3933 * libtiff/tif_dir.c: Use _TIFFsetString() function when read custom 3934 ASCII values. 3935 3936 * libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make 3937 DocumentName, Artist, HostComputer, ImageDescription, Make, Model, 3938 Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and 3939 TargetPrinter tags custom. 3940 3941 * libtiff/tif_jpeg.c: Cleanup the codec state depending on 3942 TIFF_CODERSETUP flag (to fix memry leaks). 3943 3944 * libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after 3945 allocating. 3946 39472005-05-26 Andrey Kiselev <[email protected]> 3948 3949 * configure.ac, libtiff/Makefile.am: Added workaround for 3950 OpenBSD/MirOS soname problem as per bug 3951 3952 http://bugzilla.remotesensing.org/show_bug.cgi?id=838 3953 3954 * libtiff/tif_dirwrite.c: Use tdir_count when calling 3955 TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as 3956 per bug 3957 3958 http://bugzilla.remotesensing.org/show_bug.cgi?id=845 3959 39602005-05-25 Andrey Kiselev <[email protected]> 3961 3962 * tools/ppm2tiff.c: Fixed format string when read PPM file header with 3963 the fscanf() function. As per bug 3964 3965 http://bugzilla.remotesensing.org/show_bug.cgi?id=861 3966 3967 * libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns 3968 uint16 array when fetching the BYTE and SBYTE filds, so we should 3969 consider result as pointer to uint16 array and not as array of chars. 3970 As per bug 3971 3972 http://bugzilla.remotesensing.org/show_bug.cgi?id=831 3973 3974 * libtiff/tif_dir.c: More efficient custom tags retrieval as per bug 3975 3976 http://bugzilla.remotesensing.org/show_bug.cgi?id=830 3977 3978 * libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share 3979 mode in CreateFile() call as per bug 3980 3981 http://bugzilla.remotesensing.org/show_bug.cgi?id=829 3982 3983 * libtiff/Makefile.am: Fixed parallel compilation of the libtiff and 3984 libtiffxx libraries as per bug 3985 3986 http://bugzilla.remotesensing.org/show_bug.cgi?id=826 3987 3988 * contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with 3989 GDAL. 3990 39912005-05-23 Frank Warmerdam <[email protected]> 3992 3993 * libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with 3994 JPEG encoded TIFF files. Pre-allocate lots of space for jpegtables 3995 in directory. 3996 39972005-05-22 Frank Warmerdam <[email protected]> 3998 3999 * libtiff/tif_dirread.c: Changed the code that computes 4000 stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is 4001 zero. This is a common case with GDAL indicating a "null" tile/strip. 4002 40032005-05-17 Andrey Kiselev <[email protected]> 4004 4005 * tools/tiffsplit.c: Check for JPEGTables tag presence before copying. 4006 40072005-05-06 Frank Warmerdam <[email protected]> 4008 4009 * libtiff/tif_dirread.c: Applied similar change to 4010 TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys. 4011 4012 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 4013 4014 * libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw(). 4015 40162005-05-06 Andrey Kiselev <[email protected]> 4017 * tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly; 4018 added new option '-b' to use interpolation in output PDF files (Bruno 4019 Ledoux). 4020 40212005-05-05 Frank Warmerdam <[email protected]> 4022 4023 * libtiff/tif_dirread.c: Ensure that broken files with too many 4024 values in PerSampleShorts work ok instead of crashing. 4025 4026 http://bugzilla.remotesensing.org/show_bug.cgi?id=843 4027 40282005-04-27 Andrey Kiselev <[email protected]> 4029 4030 * tools/tiffdither.c: Copy the PhotometricInterpretation tag from the 4031 input file. 4032 40332005-04-15 Andrey Kiselev <[email protected]> 4034 4035 * libtiff/tif_predict.c: Added ability to encode floating point 4036 predictor, as per TIFF Technical Note 3. 4037 40382005-04-14 Andrey Kiselev <[email protected]> 4039 4040 * libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode 4041 floating point predictor, as per TIFF Technical Note 3. 4042 40432005-04-13 Andrey Kiselev <[email protected]> 4044 4045 * libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}: 4046 Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to 4047 swap 24-bit floating point values. 4048 4049 * libtiff/tiff.h: Added predictor constants. 4050 40512005-04-08 Andrey Kiselev <[email protected]> 4052 4053 * libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate 4054 values in _TIFFVSetField() function. Inspired by the bug 4055 4056 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 4057 4058 * man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag 4059 as per bug 4060 4061 http://bugzilla.remotesensing.org/show_bug.cgi?id=816 4062 40632005-03-30 Andrey Kiselev <[email protected]> 4064 4065 * libtiff/tif_open.c: Do not read header in case the output file 4066 should be truncated (Ron). 4067 4068 * libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead 4069 of bsearch() in _TIFFFindFieldInfoByName() function (Ron). 4070 4071 * libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron). 4072 40732005-03-22 Andrey Kiselev <[email protected]> 4074 4075 * configure.ac, libtiff/Makefile.am: Use libtool machinery to pass 4076 rpath option. 4077 40782005-03-21 Andrey Kiselev <[email protected]> 4079 4080 * libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom 4081 tags. 4082 40832005-03-18 Andrey Kiselev <[email protected]> 4084 4085 * libtiff/dirinfo.c: Added DNG tags. 4086 4087 * libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag 4088 handling code. 4089 4090 * libtiff/tiff.h: More comments; added missed DNG tag (LensInfo); 4091 added DNG 1.1.0.0 tags. 4092 4093 * tools/tif2pdf.c: Fixed problem with alpha channel handling as per 4094 bug 4095 4096 http://bugzilla.remotesensing.org/show_bug.cgi?id=794 4097 4098 * man/TIFFGetField.3tiff: Add a note about autoregistered tags. 4099 41002005-03-17 Andrey Kiselev <[email protected]> 4101 4102 * nmake.opt: Build with Win32 CRT library by default. 4103 4104 * tools/tiff2ps.c: Fixed typo in page size handling code. 4105 4106 * libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed 4107 by value. 4108 4109 * libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags. 4110 41112005-03-15 Andrey Kiselev <[email protected]> 4112 4113 * libtiff 3.7.2 released. 4114 41152005-03-09 Andrey Kiselev <[email protected]> 4116 4117 * tools/tiffcmp.c: Added ability to compare the 32-bit integer and 4118 floating point data; complain on unsupported bit depths. 4119 41202005-03-05 Andrey Kiselev <[email protected]> 4121 4122 * tif_stream.cxx: Use ios namespace instead of ios_base to support 4123 GCC 2.95. 4124 4125 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from 4126 Lee Howard for HylaFax DCS tag 4127 (see http://bugzilla.remotesensing.org/show_bug.cgi?id=771) 4128 41292005-03-04 Andrey Kiselev <[email protected]> 4130 4131 * configure, configure.ac: Use -rpath option instead of -R as per bug 4132 4133 http://bugzilla.remotesensing.org/show_bug.cgi?id=732 4134 4135 * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee 4136 Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax 4137 software. As per bug 4138 4139 http://bugzilla.remotesensing.org/show_bug.cgi?id=771 4140 4141 * nmake.opt, html/build.html: Add more comments, change the config 4142 file organization a bit as per bug 4143 4144 http://bugzilla.remotesensing.org/show_bug.cgi?id=764 4145 4146 * tools/tiffcmp.c: Use properly sized buffer in short arrays comparison 4147 as per bug 4148 4149 http://bugzilla.remotesensing.org/show_bug.cgi?id=785 4150 41512005-03-03 Andrey Kiselev <[email protected]> 4152 4153 * libtiff/tif_dirread.c: More logic to guess missed strip size as per 4154 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705 4155 4156 * tools/fax2ps.c: Replace insecure mktemp() function with the 4157 tmpfile() as per bug 4158 4159 http://bugzilla.remotesensing.org/show_bug.cgi?id=786 4160 41612005-02-04 Andrey Kiselev <[email protected]> 4162 4163 * libtiff/tiff.h: Changed the int8 definition to be always signed char 4164 as per bug 4165 4166 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 4167 4168 * libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{} 4169 block as per bug 4170 4171 http://bugzilla.remotesensing.org/show_bug.cgi?id=763 4172 41732005-02-03 Bob Friesenhahn <[email protected]> 4174 4175 * tools/tiffgt.c: Fix problem on big-endian CPUs so that images 4176 display more correctly. Images display brighter than they should 4177 on a Sun workstation. 4178 41792005-02-03 Andrey Kiselev <[email protected]> 4180 4181 * libtiff/tif_dirread.c: Estimate strip size in case of wrong or 4182 suspicious values in the tags. As per bugs 4183 4184 http://bugzilla.remotesensing.org/show_bug.cgi?id=705 4185 4186 and 4187 4188 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 4189 4190 * tools/tiff2ps.c: Fixed problem with page sizes as per bug 4191 4192 http://bugzilla.remotesensing.org/show_bug.cgi?id=742 4193 41942005-01-31 Bob Friesenhahn <[email protected]> 4195 4196 * libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description. 4197 (TIFFTAG_TILELENGTH): Corrected description. 4198 41992005-01-30 Andrey Kiselev <[email protected]> 4200 4201 * configure.ac: Fixes for --with-docdir option as per bug 4202 4203 http://bugzilla.remotesensing.org/show_bug.cgi?id=759 4204 4205 * libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per 4206 bug 4207 4208 http://bugzilla.remotesensing.org/show_bug.cgi?id=756 4209 4210 * libtiff/tif_stream.cxx: Fixes for C++ stream interface from 4211 Michael Rinne and Edward Lam. 4212 42132005-01-15 Andrey Kiselev <[email protected]> 4214 4215 * configure.ac: Make the documentation directory location configurable 4216 via the --with-docdir option (as suggested by Jeremy C. Reed). 4217 4218 * libtiff/tif_color.c: Use double as the second argument of pow() 4219 function in TIFFCIELabToRGBInit(). As per bug 4220 4221 http://bugzilla.remotesensing.org/show_bug.cgi?id=741 4222 4223 * libtiff/tif_pixarlog.c: Avoid warnings when converting float to 4224 integer as per bug 4225 4226 http://bugzilla.remotesensing.org/show_bug.cgi?id=740 4227 4228 * libtiff/tif_getimage.c: Always fill the error message buffer in 4229 TIFFRGBAImageBegin() as per bug 4230 4231 http://bugzilla.remotesensing.org/show_bug.cgi?id=739 4232 42332005-01-12 Andrey Kiselev <[email protected]> 4234 4235 * libtiff/tif_jpeg.c: Added ability to read/write the fax specific 4236 TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME 4237 tags as per bug 4238 4239 http://bugzilla.remotesensing.org/show_bug.cgi?id=736 4240 4241 * libtiff/tif_win32.c: Fixed message formatting in functions 4242 Win32WarningHandler() and Win32ErrorHandler() as per bug 4243 4244 http://bugzilla.remotesensing.org/show_bug.cgi?id=735 4245 4246 * tools/tiff2ps.c: Interpret the -w and -h options independently. As 4247 per bug 4248 4249 http://bugzilla.remotesensing.org/show_bug.cgi?id=689 4250 42512005-01-11 Andrey Kiselev <[email protected]> 4252 4253 * libtiff/tiffio.h: Move the color conversion routines in the 'extern 4254 "C"' section as per bug 4255 4256 http://bugzilla.remotesensing.org/show_bug.cgi?id=727 4257 4258 * libtiff/tiff.h: Restore back the workaround for AIX Visual Age C 4259 compiler to avoid double definition of BSD types as per bug 4260 4261 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 4262 4263 * libtiff/Makefile.am: Place the C++ stream API in the separate 4264 library called libtiffxx to avoid unneeded dependencies. Probably 4265 there will be more C++ API in the future. As per bugs 4266 4267 http://bugzilla.remotesensing.org/show_bug.cgi?id=733 4268 4269 and 4270 4271 http://bugzilla.remotesensing.org/show_bug.cgi?id=730 4272 42732005-01-05 Andrey Kiselev <[email protected]> 4274 4275 * tools/tiffdump.c: Fixed problem when read broken TIFFs with the 4276 wrong tag counts (Dmitry V. Levin, Martin Pitt). 4277 4278 * configure.ac: Replace --disable-c++ with the --disable-cxx option as 4279 per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730 4280 42812004-12-25 Andrey Kiselev <[email protected]> 4282 4283 * libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled 4284 RGB-images as per bug 4285 4286 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 4287 4288 4289 * tools/tiffset.c: Convert character option to integer value as per 4290 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725 4291 42922004-12-20 Andrey Kiselev <[email protected]> 4293 4294 * libtiff 3.7.1 released. 4295 4296 * html/tiffset.1.html: Add missed manual page as per bug 4297 4298 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 4299 4300 * libtiff/tiff.h: Revert back libtiff data type definitions as per 4301 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687 4302 43032004-12-19 Andrey Kiselev <[email protected]> 4304 4305 * libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when 4306 checking for tag count in TIFFReadDirectory() function. As per bug 4307 4308 http://bugzilla.remotesensing.org/show_bug.cgi?id=713 4309 4310 * libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in 4311 CheckMallock() function. 4312 4313 * libtiff/tif_getimage.c: Support for multiple-alpha-channelled 4314 RGB-images as per bug 4315 4316 http://bugzilla.remotesensing.org/show_bug.cgi?id=718 4317 43182004-12-15 Frank Warmerdam <[email protected]> 4319 4320 * libtiff/tif_getimage.c: #define A1 bracketing for clean build on 4321 SunPro compiler. 4322 43232004-12-11 Bob Friesenhahn <[email protected]> 4324 4325 * autogen.sh: aclocal and autoheader should be executed after 4326 libtoolize. Also add '-I .' to aclocal invocation to check 4327 current directory for macros. 4328 43292004-12-10 Andrey Kiselev <[email protected]> 4330 4331 * libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type 4332 as per bugs 4333 4334 http://bugzilla.remotesensing.org/show_bug.cgi?id=703 4335 4336 and 4337 4338 http://bugzilla.remotesensing.org/show_bug.cgi?id=704 4339 43402004-12-04 Andrey Kiselev <[email protected]> 4341 4342 * nmake.opt: Link with the user32.lib in windowed mode. As per bug 4343 4344 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 4345 4346 * libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed 4347 mode as per bug 4348 4349 http://bugzilla.remotesensing.org/show_bug.cgi?id=697 4350 4351 * libtiff/tif_config.in.vc: Removed unneded definitions for 4352 read/open/close/lseek functions to fix the 4353 4354 http://bugzilla.remotesensing.org/show_bug.cgi?id=680 4355 43562004-12-03 Andrey Kiselev <[email protected]> 4357 4358 * libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore() 4359 call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore 4360 must be removed in the future, as it was never used properly. As per 4361 bug 4362 4363 http://bugzilla.remotesensing.org/show_bug.cgi?id=692 4364 43652004-11-30 Bob Friesenhahn <[email protected]> 4366 4367 * libtiff/tif_jpeg.c: Added a work-around in order to allow 4368 compilation with the heavily modified version of libjpeg delivered 4369 with Cygwin. 4370 43712004-11-29 Andrey Kiselev <[email protected]> 4372 4373 * libtiff/tif_dir.c: Properly handle tags, which have the uint32 4374 counts. As per bug 4375 4376 http://bugzilla.remotesensing.org/show_bug.cgi?id=693 4377 4378 * tools/fax2ps.c: Be able to extract the first page (#0). As per bug 4379 4380 http://bugzilla.remotesensing.org/show_bug.cgi?id=690 4381 43822004-11-28 Andrey Kiselev <[email protected]> 4383 4384 * libtiff/tif_unix.c: Make UNIX module compilable (and usable) 4385 on Windows. 4386 4387 * nmake.opt: Add missed DLLNAME variable. 4388 43892004-11-26 Frank Warmerdam <[email protected]> 4390 4391 * libtiff/makefile.vc: make it easier to rename the libtiff DLL. 4392 43932004-11-24 Andrey Kiselev <[email protected]> 4394 4395 * man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as 4396 per bug 4397 4398 http://bugzilla.remotesensing.org/show_bug.cgi?id=545 4399 4400 * man/tiffset.1: Added manual page for tiffset tool written by Jay 4401 Berkenbilt. As per bug 4402 4403 http://bugzilla.remotesensing.org/show_bug.cgi?id=678 4404 44052004-11-23 Frank Warmerdam <[email protected]> 4406 4407 * libtiff/tif_error.c: fixed TIFFerror call to be TIFFError. 4408 44092004-11-21 Frank Warmerdam <[email protected]> 4410 4411 * html/document.html: Updated Adobe web links as per email from Joris. 4412 44132004-11-21 Andrey Kiselev <[email protected]> 4414 4415 * libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new 4416 file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to 4417 use C++ streams should #include <tiffio.hxx>. 4418 44192004-11-13 Andrey Kiselev <[email protected]> 4420 4421 * libtiff/tiff.h: Added Adobe DNG tags. 4422 4423 * libtiff/tif_win32.c: Typo fixed. 4424 4425 * libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to 4426 be compliant with the latest standard. Appropriate additions in 4427 makefiles now completed. 4428 44292004-11-11 Andrey Kiselev <[email protected]> 4430 4431 * tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the 4432 different tag types. As per bug 4433 4434 http://bugzilla.remotesensing.org/show_bug.cgi?id=600 4435 44362004-11-10 Andrey Kiselev <[email protected]> 4437 4438 * libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for 4439 YCbCr image which lacks that tag (noted by Hans Petter Selasky). 4440 44412004-11-09 Andrey Kiselev <[email protected]> 4442 4443 * libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky). 4444 44452004-11-07 Andrey Kiselev <[email protected]> 4446 4447 * libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface 4448 contributed by Edward Lam (see 4449 http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details). 4450 Though no changes in any makefiles yet. 4451 44522004-11-05 Frank Warmerdam <[email protected]> 4453 4454 * libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file 4455 is bad. This is the callers responsibility. 4456 http://bugzilla.remotesensing.org/show_bug.cgi?id=651 4457 44582004-11-05 Andrey Kiselev <[email protected]> 4459 4460 * libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW() 4461 function to work with the double byte strings (used to represent 4462 filenames in some locales). As per bug 4463 4464 http://bugzilla.remotesensing.org/show_bug.cgi?id=625 4465 4466 * libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and 4467 Compression tags of type LONG from broken TIFFS as per bug 4468 4469 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4470 4471 * libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC, 4472 the writecount should have uint32 type. As per bug 4473 4474 http://bugzilla.remotesensing.org/show_bug.cgi?id=662 4475 4476 * libtiff/tif_write.c: Fixed wrong if() statement in 4477 TIFFAppendToStrip() function as per bug 4478 4479 http://bugzilla.remotesensing.org/show_bug.cgi?id=660 4480 44812004-11-04 Andrey Kiselev <[email protected]> 4482 4483 * libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES 4484 field. The caller should supply a count when setting this field. As 4485 per bug 4486 4487 http://bugzilla.remotesensing.org/show_bug.cgi?id=648 4488 4489 * libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have 4490 uint32 count. Use this type everywhere. 4491 44922004-11-03 Frank Warmerdam <[email protected]> 4493 4494 * libtiff/tif_next.c: avoid use of u_long and u_char types. Bug 653. 4495 44962004-11-02 Frank Warmerdam <[email protected]> 4497 4498 * tools/tiff2rgba.c: removed extra newlines in usage message. 4499 45002004-10-30 Andrey Kiselev <[email protected]> 4501 4502 * libtiff/tif_dirwrite.c: Improvements in tag writing code. 4503 4504 * tools/tiff2ps.c: Fixed wrong variable data type when read Position 4505 tags (Tristan Hill). 4506 45072004-10-30 Frank Warmerdam <[email protected]> 4508 4509 * libtiff/tiffiop.h: added fallback definition of assert() if we 4510 don't have assert.h. 4511 45122004-10-29 Andrey Kiselev <[email protected]> 4513 4514 * libtiff/tif_fax3.c: Fixed case with the wrong decode routines 4515 choosing when the incorrect Group4Options tag set. As per bug 4516 4517 http://bugzilla.remotesensing.org/show_bug.cgi?id=323 4518 4519 * libtiff/tif_dirwrite.c: Fixed problem with passing count variable of 4520 wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in 4521 TIFFWriteNormalTag(). 4522 45232004-10-28 Andrey Kiselev <[email protected]> 4524 4525 * tools/tiff2ps.c: Fixed wrong variable data type when read Resolution 4526 tags (Peter Fales). 4527 4528 * tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions. 4529 45302004-10-28 Frank Warmerdam <[email protected]> 4531 4532 * tools/tiff2pdf.c: added casts to avoid warnings. 4533 4534 * libtiff/libtiff.def: Added several more entry points required 4535 to link fax2tiff.c against the DLL on windows. 4536 45372004-10-27 Andrey Kiselev <[email protected]> 4538 4539 * configure, configure.ac: Added --enable-rpath option to embed linker 4540 paths into library binary. 4541 45422004-10-26 Andrey Kiselev <[email protected]> 4543 4544 * tools/tiffset.c: Check the malloc return value (Dmitry V. Levin). 4545 4546 * libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed 4547 (Vladimir Nadvornik, Dmitry V. Levin). 4548 45492004-10-16 Andrey Kiselev <[email protected]> 4550 4551 * libtiff 3.7.0 released. 4552 45532004-10-15 Bob Friesenhahn <[email protected]> 4554 4555 * libtiff/tif_jpeg.c: There seems to be no need to include stdio.h 4556 in this file so its inclusion is removed. Including stdio.h 4557 sometimes incurs an INT32 typedef conflict between MinGW's 4558 basetsd.h and libjpeg's jmorecfg.h. 4559 45602004-10-15 Andrey Kiselev <[email protected]> 4561 4562 * man/bmp2tiff.1: Added manual page for bmp2tiff utility. 4563 45642004-10-13 Bob Friesenhahn <[email protected]> 4565 4566 * tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid 4567 conflict noticed under MinGW. 4568 * ltmain.sh: Fix for MinGW compilation. 4569 45702004-10-13 Frank Warmerdam <[email protected]> 4571 4572 * man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz. 4573 http://bugzilla.remotesensing.org/show_bug.cgi?id=635 4574 45752004-10-12 Andrey Kiselev <[email protected]> 4576 4577 * libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c, 4578 tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes 4579 properly (Dmitry V. Levin, Marcus Meissner). 4580 45812004-10-11 Andrey Kiselev <[email protected]> 4582 4583 * libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed 4584 to TIFF_IFD. 4585 45862004-10-10 Andrey Kiselev <[email protected]> 4587 4588 * tools/bmp2tif.c: Check the space allocation results. 4589 45902004-10-09 Andrey Kiselev <[email protected]> 4591 4592 * libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields 4593 of the TIFFDirectory structure with the 0 instead of -1 to avoid 4594 confusing integer overflows in TIFFTileRowSize() for striped images. 4595 4596 * tools/tiff2pdf.c: Fixed TransferFunction tag handling reported 4597 by Ross A. Finlayson. 4598 4599 * libtiff/tif_dir.c: Fixed custom tags handling as per bug 4600 4601 http://bugzilla.remotesensing.org/show_bug.cgi?id=629 4602 46032004-10-08 Frank Warmerdam <[email protected]> 4604 4605 * libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation 4606 of tif_fieldinfo. 4607 4608 http://bugzilla.remotesensing.org/show_bug.cgi?id=630 4609 46102004-10-04 Bob Friesenhahn <[email protected]> 4611 4612 * contrib/iptcutil/README: Added the missing README which goes 4613 along with iptcutil. 4614 46152004-10-03 Andrey Kiselev <[email protected]> 4616 4617 * libtiff/tif_compress.c: Improved error reporting in 4618 TIFFGetConfiguredCODECs() (Dmitry V. Levin). 4619 46202004-10-02 Andrey Kiselev <[email protected]> 4621 4622 * libtiff 3.7.0beta2 released. 4623 4624 * libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c, 4625 tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c, 4626 tif_pixarlog.c, tif_write.c}: Added checks for failed memory 4627 allocations and integer overflows (Dmitry V. Levin). 4628 4629 * libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added. 4630 46312004-10-01 Frank Warmerdam <[email protected]> 4632 4633 * libtiff/tif_open.c: added a more informative message if a BigTIFF 4634 file is opened. 4635 46362004-09-30 Frank Warmerdam <[email protected]> 4637 4638 * libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to 4639 TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info 4640 in the Adobe XMP Specification. 4641 46422004-09-29 Andrey Kiselev <[email protected]> 4643 4644 * libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of 4645 memset(). 4646 4647 * libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches 4648 from Dmitry V. Levin to fix possible integer overflow problems. 4649 46502004-09-28 Andrey Kiselev <[email protected]> 4651 4652 * libtiff/tif_getimage.c: Check for allocated buffers before clearing 4653 (Dmitry V. Levin). 4654 46552004-09-26 Andrey Kiselev <[email protected]> 4656 4657 * libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}: 4658 Optimize checking for the strip bounds. 4659 4660 * libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and 4661 TIFFRasterScanlineSize() functions report zero in the case of integer 4662 overflow now. Properly handle this case in TIFFReadDirectory() 4663 (patches from Dmitry V. Levin). 4664 46652004-09-25 Andrey Kiselev <[email protected]> 4666 4667 * libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8() 4668 macro where appropriate. 4669 4670 * tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as 4671 noted by Gennady Khokhorin. 4672 4673 * libtiff/tif_dirread.c: Always check the return values, returned 4674 by the _TIFFmalloc() (Dmitry V. Levin). 4675 4676 * libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array() 4677 functions (Dmitry V. Levin). 4678 4679 * libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}: 4680 Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(), 4681 TIFFGrowStrips() (found by Dmitry V. Levin). 4682 46832004-09-24 Andrey Kiselev <[email protected]> 4684 4685 * libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs() 4686 to get the list of configured codecs. 4687 4688 * libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from 4689 Dmitry V. Levin. 4690 46912004-09-23 Andrey Kiselev <[email protected]> 4692 4693 * libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix 4694 possible integer overflow in CheckMalloc() function. 4695 46962004-09-22 Andrey Kiselev <[email protected]> 4697 4698 * libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead 4699 of plain TIFFhowmany() where appropriate. 4700 47012004-09-21 Andrey Kiselev <[email protected]> 4702 4703 * libtiff/tif_getimage.c: Initialize arrays after space allocation. 4704 47052004-09-19 Andrey Kiselev <[email protected]> 4706 4707 * libtiff 3.7.0beta released. 4708 4709 * libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer 4710 overruns fixed, as noted by Chris Evans. 4711 47122004-09-14 Bob Friesenhahn <[email protected]> 4713 4714 * commit: Added a script to make it more convenient to commit 4715 updates. The CVS commit message is extracted from this ChangeLog 4716 file. 4717 47182004-09-14 Andrey Kiselev <[email protected]> 4719 4720 * configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c, 4721 tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c, 4722 tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c, 4723 tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c, 4724 tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h, 4725 tif_config.h.in, tiffiop.h}: 4726 Get rid of BSD data types (u_char, u_short, u_int, u_long). 4727 47282004-09-13 Bob Friesenhahn <[email protected]> 4729 4730 * libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP 4731 specification. Reference libtiff bug tracking system to submit 4732 private tag additions. 4733 47342004-09-12 Bob Friesenhahn <[email protected]> 4735 4736 * tools/tiffgt.c: Include "tif_config.h". 4737 4738 * configure.ac: Use AM_PROG_CC_C_O since it is now needed to build 4739 tiffgt. This results in the 'compile' script being added to the 4740 project. 4741 4742 * tools/Makefile.am (tiffgt_CFLAGS): Add extra build options 4743 required to find OpenGL headers necessary to build tiffgt. Also 4744 ensure that the libtiff that we built is used rather than some other 4745 libtiff installed on the system. 4746 47472004-09-12 Andrey Kiselev <[email protected]> 4748 4749 * configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT 4750 libraries. 4751 47522004-09-11 Bob Friesenhahn <[email protected]> 4753 4754 * configure.ac: Pass library configuration defines via 4755 tif_config.h rather than extending CPPFLAGS. Configure a 4756 libtiff/tiffconf.h in order to satisfy application requirements 4757 (not used by library build). Do not define _POSIX_C_SOURCE=2 since 4758 this causes failure to build on systems which properly respect 4759 this request. 4760 4761 * libtiff/tiffconf.h.in: New file to act as the template for the 4762 configured tiffconf.h 4763 4764 * libtiff/files.lst (HDRS): Install the configured tiffconf.h. 4765 47662004-09-10 Frank Warmerdam <[email protected]> 4767 4768 * html/internals.html: Split off a discussion of adding new tags 4769 into addingtags.html. 4770 47712004-09-10 Andrey Kiselev <[email protected]> 4772 4773 * test/{ascii_tag.c, long_tag.c}: Preliminary test suite added. 4774 4775 * tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug 4776 4777 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4778 4779 * libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting. 4780 4781 * libtiff/tif_dirread.c: Don't reject to read tags of the 4782 SamplesPerPixel size when the tag count is greater than number of 4783 samples as per bug 4784 4785 http://bugzilla.remotesensing.org/show_bug.cgi?id=576 4786 4787 * libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off 4788 defining int8/uint8/... etc. types. As per bug 4789 4790 http://bugzilla.remotesensing.org/show_bug.cgi?id=607 4791 47922004-09-09 Frank Warmerdam <[email protected]> 4793 4794 * tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files 4795 to avoid compile warnings about getopt() and a few other things. 4796 47972004-09-02 Andrey Kiselev <[email protected]> 4798 4799 * libtiff/tif_dirread.c: Use memcpy() function instead of pointer 4800 assigning magic in TIFFFetchFloat(). 4801 48022004-09-01 Andrey Kiselev <[email protected]> 4803 4804 * libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme 4805 to avoid requirement for tiffiop.h inclusion in some applications. See 4806 here 4807 4808 http://www.asmail.be/msg0054799560.html 4809 4810 for details. 4811 4812 * tools/fax2tiff.c: Use the new functions in the code. 4813 48142004-08-25 Andrey Kiselev <[email protected]> 4815 4816 * tools/tiff2pdf.c: Initialize arrays properly. 4817 4818 * tools/tiff2ps.c: Avoid zero division in setupPageState() function; 4819 properly initialize array in PSDataBW(). 4820 48212004-08-24 Andrey Kiselev <[email protected]> 4822 4823 * tools/tiff2pdf.c: More fixes for bug 4824 4825 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4826 4827 from Ross Finlayson. 4828 48292004-08-23 Andrey Kiselev <[email protected]> 4830 4831 * tools/tiff2ps.c: Fixed problem with uninitialized values. 4832 4833 * libtiff/tif_dir.c: Initialize tif_foundfield data member in the 4834 TIFFDefaultDirectory() (in addition to 2004-08-19 fix). 4835 4836 * tools/tiff2pdf.c: Fixed a bunch of problems as per bug 4837 4838 http://bugzilla.remotesensing.org/show_bug.cgi?id=590 4839 48402004-08-20 Andrey Kiselev <[email protected]> 4841 4842 * tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks 4843 that the input file has compression, photometric interpretation, 4844 etcetra, tags or if not than a more descriptive error is returned. 4845 4846 * libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the 4847 code, responsible for tag data type checking. 4848 48492004-08-19 Andrey Kiselev <[email protected]> 4850 4851 * libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static 4852 variable as per bug 4853 4854 http://bugzilla.remotesensing.org/show_bug.cgi?id=593 4855 48562004-08-16 Andrey Kiselev <[email protected]> 4857 4858 * tools/ras2tiff.c: Fixed issue with missed big-endian checks as per 4859 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586 4860 48612004-08-01 Andrey Kiselev <[email protected]> 4862 4863 * libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and 4864 config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc. 4865 48662004-07-24 Andrey Kiselev <[email protected]> 4867 4868 * libtiff/tif_lzw.c: LZW compression code is merged back from the 4869 separate package. All libtiff tools are updated to not advertise an 4870 abcence of LZW support. 4871 48722004-07-12 Andrey Kiselev <[email protected]> 4873 4874 * libtiff/tiffio.h: Revert thandle_t back to void* type. 4875 48762004-07-11 Andrey Kiselev <[email protected]> 4877 4878 * libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error 4879 messages, as suggested by Bernd Herd. 4880 48812004-07-03 Andrey Kiselev <[email protected]> 4882 4883 * libtiff/tif_dir.c: Call TIFFError() instead of producing warnings 4884 when setting custom tags by value. Reported by Eric Fieleke. 4885 48862004-06-14 Andrey Kiselev <[email protected]> 4887 4888 * tools/bmp2tiff.c: Add missed RawsPerStrip setting. 4889 48902004-06-08 Andrey Kiselev <[email protected]> 4891 4892 * tools/bmp2tiff.c: Added new utility to convert Windows BMP files 4893 into TIFFs. 4894 48952004-06-07 Andrey Kiselev <[email protected]> 4896 4897 * libtiff 3.7.0alpha released. 4898 48992004-06-06 Andrey Kiselev <[email protected]> 4900 4901 * libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid 4902 of ugly 64-bit hacks, replace them with the clever (autoconf based ) 4903 ones :-). 4904 4905 * libtiff/tiffio.h: Define thandle_t as int, not void* (may cause 4906 problems in 64-bit environment). 4907 49082004-06-05 Andrey Kiselev <[email protected]> 4909 4910 * tools/tiffset.c: tiffset now can set any libtiff supported tags. 4911 Tags can be supplied by the mnemonic name or number. 4912 4913 * libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new 4914 functions TIFFFindFieldInfoByName() and TIFFFieldWithName(). 4915 49162004-05-27 Andrey Kiselev <[email protected]> 4917 4918 * libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF 4919 markers as per bug 4920 4921 http://bugzilla.remotesensing.org/show_bug.cgi?id=581 4922 49232004-05-24 Andrey Kiselev <[email protected]> 4924 4925 * tools/tiffsplit.c: Don't forget to copy Photometric 4926 Interpretation tag. 4927 49282004-05-20 Andrey Kiselev <[email protected]> 4929 4930 * libtiff/{tif_open.c, tiffio.h}: New function added: 4931 TIFFIsBigEndian(). Function returns nonzero if given was file written 4932 in big-endian order. 4933 4934 * tools/tiffsplit.c: Fixed problem with unproperly written multibyte 4935 files. Now output files will be written using the same byte order 4936 flag as in the input image. See 4937 4938 http://bugzilla.remotesensing.org/show_bug.cgi?id=574 4939 4940 for details. 4941 49422004-05-19 Frank Warmerdam <[email protected]> 4943 4944 * libtiff/tif_print.c: added (untested) support for printing 4945 SSHORT, SLONG and SRATIONAL fields. 4946 4947 * tools/tiffcp.c: close output file on normal exit. 4948 49492004-05-17 Andrey Kiselev <[email protected]> 4950 4951 * libtiff/tif_fax3.c: Avoid reading CCITT compression options 4952 if compression type mismatches. See 4953 4954 http://bugzilla.remotesensing.org/show_bug.cgi?id=565 4955 49562004-04-30 Andrey Kiselev <[email protected]> 4957 4958 * libtiff/tif_strip.c: Never return 0 from the 4959 TIFFNumberOfStrips(). 4960 49612004-04-29 Andrey Kiselev <[email protected]> 4962 4963 * libtiff/tif_dirread.c: Workaround for broken TIFF writers which 4964 store single SampleFormat value for multisampled images. See 4965 4966 http://bugzilla.remotesensing.org/show_bug.cgi?id=562 4967 49682004-04-25 Andrey Kiselev <[email protected]> 4969 4970 * configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8, 4971 int16 and int32 types to avoid complains on some compilers. Details at 4972 4973 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 4974 49752004-04-20 Andrey Kiselev <[email protected]> 4976 4977 * tools/tiff2pdf.c: Fixed problem with unaligned access as per bug 4978 4979 http://bugzilla.remotesensing.org/show_bug.cgi?id=555 4980 49812004-04-14 Andrey Kiselev <[email protected]> 4982 4983 * libtiff/tif_write.c: Allow in-place updating of the compressed 4984 images (don't work properly with all codecs). For details see GDAL bug 4985 4986 http://bugzilla.remotesensing.org/show_bug.cgi?id=534 4987 49882004-04-06 Andrey Kiselev <[email protected]> 4989 4990 * libtiff/tif_jpeg.c: Workaround for wrong sampling factors used 4991 in the Intergarph JPEG compressed TIFF images as per bug: 4992 4993 http://bugzilla.remotesensing.org/show_bug.cgi?id=532 4994 49952004-04-04 Frank Warmerdam <[email protected]> 4996 4997 * libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails 4998 via bad2. 4999 50002004-03-26 Andrey Kiselev <[email protected]> 5001 5002 * tools/tiffcp.c: Properly set Photometric Interpretation in case of 5003 JPEG compression of grayscale images. 5004 5005 * tools/tiffcp.c: Don't emit warnings when Orientation tag does not 5006 present in the input image. 5007 50082004-03-19 Andrey Kiselev <[email protected]> 5009 5010 * {many}: The first attempt to switch to autotools. 5011 50122004-03-03 Andrey Kiselev <[email protected]> 5013 5014 * libtiff/tif_open.c: Use dummy mmap/munmap functions in 5015 TIFFClientOpen() when the appropriate client functions was not 5016 supplied by user. 5017 50182004-03-02 Frank Warmerdam <[email protected]> 5019 5020 * tools/ycbcr.c: fixed main() declaration as per: 5021 http://bugzilla.remotesensing.org/show_bug.cgi?id=513 5022 50232004-02-26 Andrey Kiselev <[email protected]> 5024 5025 * tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed 5026 images. Reported by Artem Mirolubov. 5027 5028 * libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED 5029 tag type in TIFFFetchNormalTag() as per bug 5030 5031 http://bugzilla.remotesensing.org/show_bug.cgi?id=508 5032 50332004-02-17 Frank Warmerdam <[email protected]> 5034 5035 * libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per: 5036 http://bugzilla.remotesensing.org/show_bug.cgi?id=494 5037 50382004-02-05 Andrey Kiselev <[email protected]> 5039 5040 * libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per 5041 bug 5042 5043 http://bugzilla.remotesensing.org/show_bug.cgi?id=483 5044 5045 But we need more work on fax codec to support update mode. 5046 50472004-01-30 Frank Warmerdam <[email protected]> 5048 5049 * libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck, 5050 TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by 5051 Scott Reynolds. 5052 50532004-01-29 Andrey Kiselev <[email protected]> 5054 5055 * libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS 5056 and TIFFTAG_INDEXED as per bug 5057 5058 http://bugzilla.remotesensing.org/show_bug.cgi?id=475 5059 5060 * libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is 5061 NULL before proceeding further as per bug 5062 5063 http://bugzilla.remotesensing.org/show_bug.cgi?id=474 5064 5065 Check results, returned by the TIFFFdOpen() before returning and close 5066 file if TIFFFdOpen() failed as per bug 5067 5068 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 5069 5070 * libtiff/tif_open.c: More fixes for 5071 5072 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 5073 50742004-01-28 Andrey Kiselev <[email protected]> 5075 5076 * libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate 5077 TIFFCleanup() from the TIFFClose() in order to fix the bug 5078 5079 http://bugzilla.remotesensing.org/show_bug.cgi?id=468 5080 5081 * tools/tiffcp.c: Fixed problem with wrong interpretation of the 5082 InkNames tag as per bug 5083 5084 http://bugzilla.remotesensing.org/show_bug.cgi?id=466 5085 5086 Memory leak fixed. 5087 50882004-01-21 Frank Warmerdam <[email protected]> 5089 5090 * libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that 5091 are field_passcount=TRUE properly. Arguably anonymous custom tags 5092 should be declared as passcount=FALSE, but I don't want to change 5093 that without a careful review. 5094 50952004-01-20 Andrey Kiselev <[email protected]> 5096 5097 * libtiff/tif_write.c: Fixed reporting size of the buffer in case of 5098 stripped image in TIFFWriteBufferSetup(). As per bug 5099 5100 http://bugzilla.remotesensing.org/show_bug.cgi?id=460 5101 51022004-01-11 Andrey Kiselev <[email protected]> 5103 5104 * libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(), 5105 patch from Gerben Koopmans. 5106 5107 * libtiff/tif_dirread.c: Check field_passcount value before setting 5108 the value of undefined type, patch from Gerben Koopmans. 5109 51102004-01-02 Andrey Kiselev <[email protected]> 5111 5112 * tools/tiffcp.c: Fixed problem with wrong Photometric setting for 5113 non-RGB images. 5114 51152003-12-31 Andrey Kiselev <[email protected]> 5116 5117 * libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL 5118 pointer passed. Patch supplied by Larry Grill. 5119 5120 * libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as 5121 suggested by Jeremy C. Reed. 5122 51232003-12-26 Andrey Kiselev <[email protected]> 5124 5125 * libtiff 3.6.1 released. 5126 51272003-12-24 Andrey Kiselev <[email protected]> 5128 5129 * config.guess, config.sub: Updated from the recent upstream. 5130 51312003-12-22 Andrey Kiselev <[email protected]> 5132 5133 * libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t: 5134 More cleanups in color conversion interface, added appropriate manual 5135 page. 5136 51372003-12-19 Andrey Kiselev <[email protected]> 5138 5139 * libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as 5140 per bug 5141 5142 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 5143 5144 * tools/tiff2ps.c: Added support for alpha channel. Fixes 5145 5146 http://bugzilla.remotesensing.org/show_bug.cgi?id=428 5147 5148 * libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}: 5149 Interface for Lab->RGB color conversion is finally cleaned up. 5150 Added support for ReferenceBlackWhite tag handling when converted from 5151 YCbCr color space. The latter closes 5152 5153 http://bugzilla.remotesensing.org/show_bug.cgi?id=120 5154 51552003-12-07 Andrey Kiselev <[email protected]> 5156 5157 * libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings. 5158 5159 * libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG 5160 library. 5161 51622003-12-06 Andrey Kiselev <[email protected]> 5163 5164 * libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the 5165 file and properly use it for CIE Lab->RGB transform. 5166 51672003-12-04 Andrey Kiselev <[email protected]> 5168 5169 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB 5170 conversion routines now in the tif_color.c module. New function 5171 TIFFYCbCrtoRGB() available in TIFF API. 5172 5173 * libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly. 5174 51752003-12-03 Andrey Kiselev <[email protected]> 5176 5177 * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in 5178 CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c 5179 module. 5180 5181 * libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t, 5182 TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}: 5183 Finally resolved problems with orientation handling. TIFFRGBAImage 5184 interface now properly supports all possible orientations, i.e. images 5185 will be flipped both in horizontal and vertical directions if 5186 required. 'Known bugs' section now removed from the appropriate manual 5187 pages. Closed bug entry: 5188 5189 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 5190 51912003-12-02 Andrey Kiselev <[email protected]> 5192 5193 * libtiff/tif_dir.c: Fixed order of the parameters in TIFFError() 5194 function calls as per bug 5195 5196 http://bugzilla.remotesensing.org/show_bug.cgi?id=440 5197 51982003-11-28 Ross Finlayson <[email protected]> 5199 5200 * tools/tiff2pdf.c: Some bugs fixed. 5201 52022003-11-27 Andrey Kiselev <[email protected]> 5203 5204 * libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine, 5205 reported by Antonio Scuri. 5206 5207 * man/tiff2pdf.1: Few improvements in page layout. 5208 5209 * Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html: 5210 Added support fpr tiff2pdf manual page. 5211 52122003-11-26 Ross Finlayson <[email protected]> 5213 5214 * /man/tiff2pdf.1: File added to repository. 5215 52162003-11-26 Andrey Kiselev <[email protected]> 5217 5218 * Makefile.in, /tools/{Makefile.in, makefile.vc}: 5219 Added support fpr tiff2pdf utility. 5220 52212003-11-25 Ross Finlayson <[email protected]> 5222 5223 * /tools/tiff2pdf.c: File added to repository. 5224 52252003-11-22 Andrey Kiselev <[email protected]> 5226 5227 * /tools/raw2tiff.c: sqrtf() replaced with sqrt(). 5228 52292003-11-21 Andrey Kiselev <[email protected]> 5230 5231 * /tools/raw2tiff.c: #include <getopt.h> removed. 5232 5233 * tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent 5234 sgigt utility removed and replaced with the completely rewritten 5235 portable tiffgt tool (depend on OpenGL and GLUT). Initial revision, 5236 there is a lot of things to improve. 5237 5238 * libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly 5239 extract the fields from the OJPEG files. Patch supplied by Ross 5240 Finlayson. 5241 5242 * libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}: 5243 Added new function TIFFIsCODECConfigured(), suggested by Ross 5244 Finlayson. 5245 52462003-11-18 Andrey Kiselev <[email protected]> 5247 5248 * libtiff/tif_dirinfo.c: Implemented binary search in 5249 _TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson. 5250 5251 * libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced 5252 with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson. 5253 52542003-11-17 Frank Warmerdam <[email protected]> 5255 5256 * tif_dirread.c: do not mark all anonymously defined tags to be 5257 IGNOREd. 5258 52592003-11-17 Andrey Kiselev <[email protected]> 5260 5261 * contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use 5262 TIFFDataWidth() function insted of tiffDataWidth array. 5263 52642003-11-16 Andrey Kiselev <[email protected]> 5265 5266 * libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13) 5267 datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes". 5268 52692003-11-15 Frank Warmerdam <[email protected]> 5270 5271 * Makefile.in: fixed missing backslash for tif_color.c in list. 5272 52732003-11-13 Andrey Kiselev <[email protected]> 5274 5275 * libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}: 5276 New color space conversion code: CIE L*a*b* 1976 images now supported 5277 by the TIFFRGBAImage interface. All introduced routines go to new 5278 module tif_color.c. Eventually all color conversion functions should 5279 be moved there. 5280 52812003-11-12 Andrey Kiselev <[email protected]> 5282 5283 * tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles 5284 with the reverse byte order (it is reported by the magic header 5285 field). Problem reported by Andreas Wiesmann. 5286 5287 * tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation 5288 calculation function. Guessing mechanics now documented in manual page. 5289 52902003-11-11 Andrey Kiselev <[email protected]> 5291 5292 * tools/raw2tiff.c: Implemented image size guessing using 5293 correlation coefficient calculation between two neighbour lines. 5294 52952003-11-09 Frank Warmerdam <[email protected]> 5296 5297 * libtiff/tif_tile.c: remove spurious use of "s" (sample) in the 5298 planarconfig_contig case in TIFFComputeTile(). 5299 5300 http://bugzilla.remotesensing.org/show_bug.cgi?id=387 5301 53022003-11-09 Andrey Kiselev <[email protected]> 5303 5304 * libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint. 5305 53062003-11-07 Andrey Kiselev <[email protected]> 5307 5308 * libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}: 5309 Added TIFFRawStripSize() function as suggested by Chris Hanson. 5310 53112003-11-03 Andrey Kiselev <[email protected]> 5312 5313 * libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as 5314 per bug 5315 5316 http://bugzilla.remotesensing.org/show_bug.cgi?id=424 5317 53182003-10-29 Andrey Kiselev <[email protected]> 5319 5320 * libtiff/libtiff.def: Added TIFFReadRGBAImageOriented. 5321 5322 * html/build.html: Added note about GNU make requirement. 5323 53242003-10-25 Andrey Kiselev <[email protected]> 5325 5326 * Makefile.in: Fixes in using MAKEFLAGS as per bug 5327 5328 http://bugzilla.remotesensing.org/show_bug.cgi?id=418 5329 5330 * port/install.sh.in: Option -p added to the mkdir command to create 5331 all directory tree structure before installing. 5332 53332003-10-18 Andrey Kiselev <[email protected]> 5334 5335 * /tools/tiff2ps.c: #include <strings.h> replaced with the 5336 #include <string.h>. 5337 53382003-10-16 Andrey Kiselev <[email protected]> 5339 5340 * Makefile.in: Add an absolute path to the test_pics.sh call. 5341 53422003-10-12 Andrey Kiselev <[email protected]> 5343 5344 * libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD 5345 typedefs. 5346 53472003-10-09 Andrey Kiselev <[email protected]> 5348 5349 * configure, libtiff/{Makefile.in, mkversion.c}: 5350 Relative buildings fixed. 5351 5352 * tools/Makefile.in: Added "-I../libtiff" to the tiffset building 5353 rule. 5354 53552003-10-07 Andrey Kiselev <[email protected]> 5356 5357 * Makefile.in: Added missed v3.6.0.html. 5358 5359 * libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with 5360 ORIENTATION_BOTLEFT. 5361 53622003-10-04 Andrey Kiselev <[email protected]> 5363 5364 * 3.6.0 final release. 5365 53662003-10-03 Andrey Kiselev <[email protected]> 5367 5368 * libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New 5369 function TIFFReadRGBAImageOriented() implemented to retrieve raster 5370 array with user-specified origin position as suggested by Jason Frank. 5371 See 5372 5373 http://bugzilla.remotesensing.org/show_bug.cgi?id=322 5374 5375 for details. 5376 5377 * tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented() 5378 instead of TIFFReadRGBAImage(). 5379 5380 * tools/tiff2ps.c: Fixed possible endless loop as per bug 5381 5382 http://bugzilla.remotesensing.org/show_bug.cgi?id=404 5383 53842003-09-30 Andrey Kiselev <[email protected]> 5385 5386 * libtiff/tif_dirread.c: Check field counter against number of fields 5387 in order to fix 5388 5389 http://bugzilla.remotesensing.org/show_bug.cgi?id=366 5390 5391 * libtiff/tif_fax3.c: Fix wrong line numbering as per bug 5392 5393 http://bugzilla.remotesensing.org/show_bug.cgi?id=342 5394 53952003-09-25 Andrey Kiselev <[email protected]> 5396 5397 * libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c, 5398 tif_close.c}: Store a list of opened IFD to prevent looping as per bug 5399 5400 http://bugzilla.remotesensing.org/show_bug.cgi?id=383 5401 54022003-09-23 Andrey Kiselev <[email protected]> 5403 5404 * libtiff/tif_dirread.c: More fixes for EstimateStripByteCounts(). See 5405 5406 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 5407 54082003-08-21 Andrey Kiselev <[email protected]> 5409 5410 * tools/tiffmedian.c: int declaration replaced with the uint32 to 5411 support large images as per bug 5412 5413 http://bugzilla.remotesensing.org/show_bug.cgi?id=382 5414 54152003-08-12 Andrey Kiselev <[email protected]> 5416 5417 * libtiff/Makefile.in: Fixed problem with building in different 5418 directory. 5419 5420 * tools/tiff2ps.c: Added missing #include <strings.h>. 5421 5422 * libtiff/tif_dirwrite.c: More fixes for custom tags code 5423 from Ashley Dreier. 5424 54252003-08-07 Andrey Kiselev <[email protected]> 5426 5427 * tools/tiff2ps.c: Added page size setting when creating PS Level 2. 5428 Patch submitted by Balatoni Denes (with corrections from Tom 5429 Kacvinsky). 5430 5431 * tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is 5432 being used. Reported by Tom Kacvinsky. 5433 5434 * libtiff/tif_dirwrite.c: Fixed problem with custom tags writing, 5435 reported by Ashley Dreier. 5436 5437 * libtiff/tif_print.c: Fixed problem with float tags reading, support 5438 for printing RATIONAL and BYTE tags added. 5439 54402003-08-05 Andrey Kiselev <[email protected]> 5441 5442 * libtiff/tif_lzw.c: Move LZW codec state block allocation back to 5443 TIFFInitLZW(), because its initialization in LZWSetupDecode() cause 5444 problems with predictor initialization. Remove O_RDONLY check during 5445 state block allocation to be able open LZW compressed files in update 5446 mode. 5447 5448 Problem exist for libtiff version of the tif_lzw.c module. One from 5449 lzw-compression-kit hasn't such troubles. 5450 54512003-08-04 Frank Warmerdam <[email protected]> 5452 5453 * libtiff/tif_write.c: modified tif_write.c so that the various 5454 encoded write functions use tif_postdecode() to apply byte order 5455 swapping (swab) to the application passed data buffer if the same 5456 would be done when reading. This allows us to write pixel data with 5457 more than 8 bits per sample to existing files of a non-native byte 5458 order. One side effect of this change is the applications buffer 5459 itself is altered in this case by the act of writing. 5460 5461 http://bugzilla.remotesensing.org/show_bug.cgi?id=171 5462 54632003-07-25 Frank Warmerdam <[email protected]> 5464 5465 * libtiff/tif_open.c: avoid signed/unsigned casting warning 5466 initializing typemask as per patch from J.A. Strother. 5467 5468 * tools/tiffcp.c: fixed signed/unsigned casting warning. 5469 5470 * libtiff/tif_print.c: dos2unix conversion. 5471 5472 * tools/tiffsplit.c: increased the maximum number of pages that 5473 can be split. Patch provided by Andrew J. Montalenti. 5474 54752003-07-11 Andrey Kiselev <[email protected]> 5476 5477 * tools/raw2tiff.c: Added option `-p' to explicitly select color 5478 space of input image data. Closes 5479 5480 http://bugzilla.remotesensing.org/show_bug.cgi?id=364 5481 54822003-07-08 Frank Warmerdam <[email protected]> 5483 5484 * tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c, 5485 tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c, 5486 tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c: 5487 avoid casting warning at /W4. 5488 54892003-07-03 Andrey Kiselev <[email protected]> 5490 5491 * tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel. 5492 54932003-06-30 Andrey Kiselev <[email protected]> 5494 5495 * libtiff/tif_pixarlog.c: Unused variables removed. 5496 5497 * libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with 5498 EstimateStripByteCounts() as per bug 5499 5500 http://bugzilla.remotesensing.org/show_bug.cgi?id=358 5501 5502 * libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on 5503 64-bit architectures as per bug 5504 5505 http://bugzilla.remotesensing.org/show_bug.cgi?id=357 5506 5507 * libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of 5508 unknown data type. 5509 55102003-06-19 Frank Warmerdam <[email protected]> 5511 5512 * libtiff/tif_print.c: fixed some serious bugs when printing 5513 custom tags ... almost certain to crash. 5514 5515 * libtiff/tif_dirread.c: Don't ignore custom fields that are 5516 autodefined. Not sure how this got to be like this. 5517 55182003-06-18 Andrey Kiselev <[email protected]> 5519 5520 * 3.6.0 Beta2 released. 5521 5522 * tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data 5523 comparing as per bug 5524 5525 http://bugzilla.remotesensing.org/show_bug.cgi?id=349 5526 5527 `-z' option now can be used to set the number of reported different 5528 bytes. 5529 55302003-06-09 Andrey Kiselev <[email protected]> 5531 5532 * tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1 5533 to -r option to get the entire image as one strip. See 5534 5535 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5536 5537 for details. 5538 55392003-06-04 Andrey Kiselev <[email protected]> 5540 5541 * tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber 5542 values as per bug 5543 5544 http://bugzilla.remotesensing.org/show_bug.cgi?id=343 5545 55462003-05-27 Frank Warmerdam <[email protected]> 5547 5548 * libtiff/tif_jpeg.c: modified segment_height calculation to always 5549 be a full height tile for tiled images. Also changed error to just 5550 be a warning. 5551 55522003-05-25 Andrey Kiselev <[email protected]> 5553 5554 * tools/fax2tiff.c: Page numbering fixed, as per bug 5555 5556 http://bugzilla.remotesensing.org/show_bug.cgi?id=341 5557 55582003-05-20 Andrey Kiselev <[email protected]> 5559 5560 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5561 configure, Makefile.in: Switched back to the old behaviour. Likely 5562 better solution should be found for OJPEG support. 5563 55642003-05-11 Andrey Kiselev <[email protected]> 5565 5566 * libtiff/mkversion.c: Fixed problem with wrong string size when 5567 reading RELEASE-DATE file. 5568 55692003-05-07 Andrey Kiselev <[email protected]> 5570 5571 * tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array 5572 index was out of range. 5573 55742003-05-06 Andrey Kiselev <[email protected]> 5575 5576 * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README}, 5577 configure, Makefile.in: Improved libtiff compilation with OJPEG 5578 support. Now no need for patching IJG JPEG library, hack requred by 5579 libtiff will be compiled and used in-place. Implemented with 5580 suggestion and help from Bill Allombert, Debian's libjpeg maintainer. 5581 5582 * libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in 5583 TIFFVGetFieldDefaulted() function. 5584 55852003-05-05 Andrey Kiselev <[email protected]> 5586 5587 * tools/ppm2tiff.c: PPM header parser improved: now able to skip 5588 comments. 5589 5590 * tools/tiffdither.c: Fixed problem with bit fill order tag setting: 5591 was not copied from source image. 5592 5593 * libtiff/getimage.c: Workaround for some images without correct 5594 info about alpha channel as per bug 5595 5596 http://bugzilla.remotesensing.org/show_bug.cgi?id=331 5597 55982003-04-29 Andrey Kiselev <[email protected]> 5599 5600 * tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3. 5601 It basically allows one to use the /flateDecode filter for ZIP 5602 compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes 5603 5604 http://bugzilla.remotesensing.org/show_bug.cgi?id=328 5605 5606 * tools/tiff2ps.c: Force deadzone printing when EPS output specified 5607 as per bug 5608 5609 http://bugzilla.remotesensing.org/show_bug.cgi?id=325 5610 56112003-04-17 Andrey Kiselev <[email protected]> 5612 5613 * libtiff/tif_dirread.c: Removed additional check for StripByteCounts 5614 due to problems with multidirectory images. Quality of error messages 5615 improved. 5616 56172003-04-16 Andrey Kiselev <[email protected]> 5618 5619 * tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG 5620 encoded images. See bug entries 5621 5622 http://bugzilla.remotesensing.org/show_bug.cgi?id=275 5623 5624 and 5625 5626 http://bugzilla.remotesensing.org/show_bug.cgi?id=23 5627 5628 * libtiff/tif_dirread.c: Additional check for StripByteCounts 5629 correctness. Fixes 5630 5631 http://bugzilla.remotesensing.org/show_bug.cgi?id=320 5632 56332003-03-12 Andrey Kiselev <[email protected]> 5634 5635 * tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c, 5636 ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c, 5637 tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c, 5638 tiffmedian.c}: Added library version reporting facility to all tools. 5639 56402003-03-06 Frank Warmerdam <[email protected]> 5641 5642 * port/install.sh.in: Fixed problems with install producing paths 5643 like ///usr/local/lib on cygwin. 5644 56452003-02-27 Andrey Kiselev <[email protected]> 5646 5647 * tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of 5648 raw input page. Patch supplied by Julien Gaulmin. See 5649 5650 http://bugzilla.remotesensing.org/show_bug.cgi?id=293 5651 5652 for details. 5653 56542003-02-26 Frank Warmerdam <[email protected]> 5655 5656 * libtiff/tif_dir.c: fixed up the tif_postdecode settings 5657 responsible for byte swapping complex image data. 5658 5659 * libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till 5660 LZWSetupDecode(). Needed to read LZW files in "r+" mode. 5661 56622003-02-07 Andrey Kiselev <[email protected]> 5663 5664 * tools/ppm2tiff.c: Fixed problem with too many arguments. 5665 56662003-02-04 Andrey Kiselev <[email protected]> 5667 5668 * tools/raw2tiff.c: Memory leak fixed. 5669 56702003-02-03 Andrey Kiselev <[email protected]> 5671 5672 * tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin 5673 (thanks, Julien!). More switches for fax2tiff tool for better control 5674 of input and output. Details at 5675 5676 http://bugzilla.remotesensing.org/show_bug.cgi?id=272 5677 56782003-02-03 Frank Warmerdam <[email protected]> 5679 5680 * libtiff/tif_jpeg.c: Modified to defer initialization of jpeg 5681 library so that we can check if there is already any tile/strip data 5682 before deciding between creating a compressor or a decompressor. 5683 56842003-01-31 Frank Warmerdam <[email protected]> 5685 5686 * libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is 5687 a pre-existing compressed image. That is, image writing to 5688 pre-existing compressed images is not allowed. 5689 5690 * libtiff/tif_open.c: Removed error if opening a compressed file 5691 in update mode. 5692 5693 http://bugzilla.remotesensing.org/show_bug.cgi?id=198 5694 56952003-01-31 Andrey Kiselev <[email protected]> 5696 5697 * config.guess, config.sub: Updated to recent upstream versions. 5698 56992003-01-15 Frank Warmerdam <[email protected]> 5700 5701 * cut 3.6.0 Beta release. 5702 57032002-12-20 Andrey Kiselev <[email protected]> 5704 5705 * tools/fax2ps.c, man/fax2ps.1: Page size was determined 5706 in wrong way as per bug 5707 5708 http://bugzilla.remotesensing.org/show_bug.cgi?id=239 5709 57102002-12-17 Frank Warmerdam <[email protected]> 5711 5712 * libtiff/tif_dirread.c: Allow wrong sized arrays in 5713 TIFFFetchStripThing(). 5714 5715 http://bugzilla.remotesensing.org/show_bug.cgi?id=49 5716 57172002-12-02 Frank Warmerdam <[email protected]> 5718 5719 * libtiff/tif_dir.c: fix problem with test on td_customValueCount. 5720 Was using realloc even first time. Fix by Igor Venevtsev. 5721 57222002-11-30 Frank Warmerdam <[email protected]> 5723 5724 * libtiff/tif_dir.c: fixed bug with resetting an existing custom 5725 field value. 5726 5727 * libtiff/tif_dir.c: Fixed potential problem with ascii "custom" 5728 tags in TIFFVGetField() ... added missing break. 5729 57302002-10-14 Frank Warmerdam <[email protected]> 5731 5732 * tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make 5733 the scanline buffer long enough when writing rgb triplets. 5734 The scanline needs to be 3 X the number of dots or else it will 5735 contain an incomplete triplet and programs that try to separate 5736 the eps by redefining the colorimage operator will get messed up. 5737 Patch supplied by William Bader. 5738 5739 * Makefile.in: added tif_extension.c to file list as per 5740 http://bugzilla.remotesensing.org/show_bug.cgi?id=218. 5741 57422002-10-11 Andrey Kiselev <[email protected]> 5743 5744 * configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for 5745 large files (>2GiB) supporting. New option in the config.site: 5746 LARGEFILE="yes". Should be enough for I/O of the large files. 5747 57482002-10-10 Frank Warmerdam <[email protected]> 5749 5750 * libtiff/html/v3.6.0.html: new release notes. 5751 5752 * libtiff/index.html: removed faq, cvs snapshot cruft. Added email 5753 link for Andrey. Pointer to v3.6.0.html. 5754 5755 * libtiff/Makefile.in: added direct rule for tiffvers.h for release. 5756 57572002-10-07 Andrey Kiselev <[email protected]> 5758 * tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken 5759 (thanks, Sebastian!). New switches: 5760 -b # for a bottom margin of # inches 5761 -c center image 5762 -l # for a left margin of # inches 5763 -r rotate the image by 180 degrees 5764 New features merged with code for shrinking/overlapping. 5765 Previously added -c and -n switches (for overriding PS units) renamed 5766 in -x and -y respectively. 5767 5768 http://bugzilla.remotesensing.org/show_bug.cgi?id=200 5769 5770 * html/man/*.html: Updated from actual manual pages. 5771 57722002-10-06 Frank Warmerdam <[email protected]> 5773 5774 * libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong 5775 size on windows. Use #define boolean hack. 5776 5777 http://bugzilla.remotesensing.org/show_bug.cgi?id=188 5778 5779 * libtiff/tiff.h: Don't do special type handling in tiff.h unless 5780 USING_VISUALAGE is defined. 5781 5782 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 5783 57842002-10-03 Frank Warmerdam <[email protected]> 5785 5786 * libtiff/tiff.h: added COMPRESSION_JP2000. 5787 57882002-10-02 Andrey Kiselev <[email protected]> 5789 5790 * libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays 5791 by the TIFFFetchByteArray() function. Should finally resolve 5792 5793 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5794 5795 * configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT 5796 5797 * html/Makefile.in: New targets added: html and groffhtml for 5798 producing HTML representations of the manual pages automatically. 5799 html target uses man2html tool, groffhtml uses groff tool. 5800 58012002-09-29 Frank Warmerdam <[email protected]> 5802 5803 * configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support 5804 from John H. DuBois III. 5805 58062002-09-15 Andrey Kiselev <[email protected]> 5807 5808 * Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added 5809 manual page for raw2tiff(1) tool. 5810 58112002-09-12 Andrey Kiselev <[email protected]> 5812 5813 * /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to 5814 the tiffio.h header file. 5815 5816 * Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added 5817 manual page for TIFFDataWidth() function 5818 58192002-09-08 Frank Warmerdam <[email protected]> 5820 5821 * libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair() 5822 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196. 5823 5824 * tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments 5825 since we are unable to properly include the amount to skip. 5826 5827 http://bugzilla.remotesensing.org/show_bug.cgi?id=80 5828 58292002-09-02 Andrey Kiselev <[email protected]> 5830 5831 * /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching 5832 in TIFFFetchByteArray(). Problem described at 5833 http://bugzilla.remotesensing.org/show_bug.cgi?id=52 5834 58352002-08-22 Andrey Kiselev <[email protected]> 5836 5837 * /libtiff/tif_dirinfo.c: Further additions to free custom fields 5838 in _TIFFSetupFieldInfo() function. 5839 See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details. 5840 5841 * /libtiff/tif_lzw.c: Additional consistency checking added in 5842 LZWDecode() and LZWDecodeCompat(). 5843 Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190 5844 and http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5845 5846 * /libtiff/tif_lzw.c: 5847 Added check for valid code lengths in LZWDecode() and 5848 LZWDecodeCompat(). Fixes 5849 http://bugzilla.remotesensing.org/show_bug.cgi?id=115 5850 58512002-08-16 Andrey Kiselev <[email protected]> 5852 5853 * /libtiff/{Makefile.vc, libtiff.def}: 5854 Missed declarations added. 5855 58562002-08-15 Frank Warmerdam <[email protected]> 5857 5858 * tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the 5859 return code from the underlying pick function. 5860 5861 http://bugzilla.remotesensing.org/show_bug.cgi?id=177 5862 5863 * tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap 5864 with FIELD_CUSTOM as mentioned in bug 169. 5865 5866 * tif_close.c: added logic to free dynamically created anonymous 5867 field definitions to correct a small memory leak. 5868 5869 http://bugzilla.remotesensing.org/show_bug.cgi?id=169 5870 58712002-08-10 Andrey Kiselev <[email protected]> 5872 5873 * /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}: 5874 New tool: raw2tiff --- raw images to TIFF converter. No manual page yet. 5875 58762002-07-31 Frank Warmerdam <[email protected]> 5877 5878 * libtiff/tif_jpeg.c: Fixed problem with setting of nrows in 5879 JPEGDecode() as per bugzilla bug (issue 1): 5880 5881 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5882 5883 * libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to 5884 fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't 5885 present in the tiff tags. 5886 5887 http://bugzilla.remotesensing.org/show_bug.cgi?id=168 5888 5889 * libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and 5890 TIFFWriteScanline() now set tif_row explicitly in case the codec has 5891 fooled with the value. 5892 5893 http://bugzilla.remotesensing.org/show_bug.cgi?id=129 5894 58952002-06-22 Andrey Kiselev <[email protected]> 5896 5897 * /tools/tiff2ps.c: Added workaround for some software that may crash 5898 when last strip of image contains fewer number of scanlines than 5899 specified by the `/Height' variable. See 5900 http://bugzilla.remotesensing.org/show_bug.cgi?id=164 5901 for explanation. 5902 59032002-06-21 Andrey Kiselev <[email protected]> 5904 5905 * tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility: 5906 splitting long images in several pages. See 5907 http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation. 5908 Patch granted by John Williams <[email protected]>. 5909 59102002-06-11 Frank Warmerdam <[email protected]> 5911 5912 * libtiff/contrib/win95: renamed to contrib/win_dib. Added new 5913 Tiffile.cpp example of converting TIFF files into a DIB on Win32. 5914 This one is described in: 5915 5916 http://bugzilla.remotesensing.org/show_bug.cgi?id=143 5917 5918 * libtiff/tif_ojpeg.c: Major upgrade from Scott. See details at: 5919 5920 http://bugzilla.remotesensing.org/show_bug.cgi?id=156 5921 59222002-05-10 Andrey Kiselev <[email protected]> 5923 5924 * tools/tiff2ps: New commandline switches to override resolution 5925 units obtained from the input file. Closes 5926 http://bugzilla.remotesensing.org/show_bug.cgi?id=131 5927 59282002-04-26 Andrey Kiselev <[email protected]> 5929 5930 * libtiff/libtiff.def: Added missed declaration. 5931 59322002-04-22 Andrey Kiselev <[email protected]> 5933 5934 * tools/fax2tiff.c: Updated to reflect latest changes in libtiff. 5935 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125 5936 59372002-04-20 Andrey Kiselev <[email protected]> 5938 5939 * libtiff/tif_open.c: Pointers to custom procedures 5940 in TIFFClientOpen() are checked to be not NULL-pointers. 5941 59422002-04-18 Andrey Kiselev <[email protected]> 5943 5944 * libtiff/libtiff.def: Added missed declarations. 5945 5946 * libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure. 5947 59482002-04-16 Andrey Kiselev <[email protected]> 5949 5950 * libtiff/tif_lzw.c: Additional checks for data integrity introduced. 5951 Should finally close 5952 http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5953 59542002-04-10 Andrey Kiselev <[email protected]> 5955 5956 * tools/tiff2ps: Division by zero fixed. 5957 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88 5958 59592002-04-09 Andrey Kiselev <[email protected]> 5960 5961 * libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h: 5962 TIFFCheckpointDirectory() routine added. 5963 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124 5964 5965 * man/: TIFFWriteDirectory.3t, Makefile.in: Added description 5966 for the new function. 5967 59682002-04-08 Andrey Kiselev <[email protected]> 5969 5970 * libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced 5971 additional members tif->tif_decodestatus and tif->tif_encodestatus 5972 for correct handling of unconfigured codecs (we should not try to read 5973 data or to define data size without correct codecs). 5974 5975 * libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK 5976 changed. Now it has used tif->tif_decodestatus and 5977 tif->tif_encodestatus. 5978 Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in 5979 case of __cvs_8.tif test image). 5980 5981 * libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in 5982 tif_dirread.c when TIFFCreateAnonFieldInfo was introduced. 5983 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case 5984 of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif. 5985 59862002-04-04 Andrey Kiselev <[email protected]> 5987 5988 * libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat 5989 replaced by warnings. Now libtiff should read corrupted LZW-compressed 5990 files by skipping bad strips. 5991 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100 5992 59932002-04-03 Frank Warmerdam <[email protected]> 5994 5995 * libtiff/tif_dirwrite.c: Removed some dead code. 5996 5997 * libtiff/*: Cleanup some warnings. 5998 5999 * libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField() 6000 for variable length FIELD_CUSTOM values. Was int * but should be 6001 u_short *. 6002 60032002-04-01 Andrey Kiselev <[email protected]> 6004 6005 * tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp 6006 utility (at cpStripToTile routine). 6007 60082002-03-27 Frank Warmerdam <[email protected]> 6009 6010 * tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func. 6011 6012 http://bugzilla.remotesensing.org/show_bug.cgi?id=111 6013 6014 * tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with 6015 passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE). 6016 6017 * libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so 6018 that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example. 6019 60202002-03-26 Dwight Kelly <[email protected]> 6021 6022 * libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 6023 tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined 6024 in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec 6025 INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes: 6026 CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and 6027 INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9). 6028 60292002-03-26 Andrey Kiselev <[email protected]> 6030 6031 * libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile 6032 now also uses TIFFRGBAImageOK before reading. This is additional fix 6033 for http://bugzilla.remotesensing.org/show_bug.cgi?id=110 6034 60352002-03-25 Andrey Kiselev <[email protected]> 6036 6037 * libtiff/: tif_getimage.c: Additional check for supported 6038 codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses 6039 TIFFRGBAImageOK before reading. 6040 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110 6041 60422002-03-15 Andrey Kiselev <[email protected]> 6043 6044 * libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c, 6045 tif_dirwrite.c: Added routine TIFFDataWidth for detrmining 6046 TIFFDataType sizes instead of working with tiffDataWidth array 6047 directly. Should prevent out-of-borders bugs in case of unknown or 6048 broken data types. EstimateStripByteCounts routine modified, so it 6049 won't work when tags with uknown sizes founded. 6050 Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109 6051 60522002-03-13 Andrey Kiselev <[email protected]> 6053 6054 * libtiff/tif_getimage.c: Added support for correct handling 6055 `Orientation' tag in gtTileContig. Should be added in other gt* 6056 functions as well, but I have not images for testing yet. Partially 6057 resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23 6058 60592002-03-10 Andrey Kiselev <[email protected]> 6060 6061 * libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to 6062 read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION, 6063 TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC. Closes 6064 http://bugzilla.remotesensing.org/show_bug.cgi?id=99 6065 60662002-03-08 Andrey Kiselev <[email protected]> 6067 6068 * libtiff/Makefile.in, tools/Makefile.in: Shared library will not 6069 be stripped when installing, utility binaries will do. Closes 6070 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 6071 60722002-02-28 Frank Warmerdam <[email protected]> 6073 6074 * man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT. 6075 6076 * man/libtiff.3t: added copyright tag info. 6077 60782002-02-11 Frank Warmerdam <[email protected]> 6079 6080 * libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__. 6081 6082 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 6083 6084 * man/Makefile.in: Patch DESTDIR handling 6085 6086 http://bugzilla.remotesensing.org/show_bug.cgi?id=95 6087 6088 * configure: OpenBSD changes for Sparc64 and DSO version. 6089 6090 http://bugzilla.remotesensing.org/show_bug.cgi?id=96 6091 60922002-02-05 Frank Warmerdam <[email protected]> 6093 6094 * config.site/configure: added support for OJPEG=yes option to enable 6095 OJPEG support from config.site. 6096 60972002-01-27 Frank Warmerdam <[email protected]> 6098 6099 * html/document.html: fixed links for TIFf 6 docs. 6100 61012002-01-18 Frank Warmerdam <[email protected]> 6102 6103 * config.guess, config.sub: Updated from ftp.gnu.org/pub/config. 6104 6105 * libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the 6106 decodestrip function returns anything not greater than zero as per 6107 http://bugzilla.remotesensing.org/show_bug.cgi?id=97 6108 6109 * configure: Modify CheckForBigEndian so it can work in a cross 6110 compiled situation. 6111 61122002-01-16 Frank Warmerdam <[email protected]> 6113 6114 * tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list. 6115 6116 * tools/tiffset.c: fix bug in error reporting. 6117 6118 * tools/tiffcp.c: fix several warnings that show up with -Wall. 6119 61202002-01-04 Frank Warmerdam <[email protected]> 6121 6122 * libtiff/tif_jpeg.c: fixed computation of segment_width for 6123 tiles files to avoid error about it not matching the 6124 cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile 6125 size.") for ITIFF files. Apparently the problem was incorporated since 6126 3.5.5, presumably during the OJPEG/JPEG work recently. 6127 61282001-12-15 Frank Warmerdam <[email protected]> 6129 6130 * configure, libtiff/Makefile.in: Changes for building on MacOS 10.1. 6131 6132 http://bugzilla.remotesensing.org/show_bug.cgi?id=94 6133 6134 * libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1 6135 (defined in tiffconf.h - 1 by default) then the RGBA interface 6136 will assume that a fourth extra sample is ASSOCALPHA if the 6137 EXTRASAMPLE value isn't set for it. This changes the behaviour of 6138 the library, but makes it work better with RGBA files produced by 6139 lots of applications that don't mark the alpha values properly. 6140 6141 http://bugzilla.remotesensing.org/show_bug.cgi?id=93 6142 http://bugzilla.remotesensing.org/show_bug.cgi?id=65 6143 61442001-12-12 Frank Warmerdam <[email protected]> 6145 6146 * libtiff/tif_jpeg.c: allow jpeg data stream sampling values to 6147 override those from tiff directory. This makes this work with 6148 ImageGear generated files. 6149 61502001-12-07 Frank Warmerdam <[email protected]> 6151 6152 * html/Makefile.in: added missing images per bug 92. 6153 6154 * port/Makefile.in: fixed clean target per bug 92. 6155 61562001-11-28 Frank Warmerdam <[email protected]> 6157 6158 * Reissue 3.5.7 release. 6159 6160 * libtiff/mkversion.c: Fix output of TIFF_VERSION to be 6161 YYYYMMDD so that it is increasing over time. 6162 6163 * Makefile.in: Ensure that tiffvers.h is regenerated in the 6164 make release target. 6165 6166 * Makefile.in: added libtiff/tiffvers.h to the release file list. 6167 61682001-11-23 Frank Warmerdam <[email protected]> 6169 6170 * added html/v3.5.7.html, updated html/index.html. 6171 6172 * Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}. 6173 61742001-11-15 Frank Warmerdam <[email protected]> 6175 6176 * configure: fixed test for -lm. 6177 61782001-11-02 Frank Warmerdam <[email protected]> 6179 6180 * Added PHOTOMETRIC_ITULAB as per bug 90. 6181 6182 http://bugzilla.remotesensing.org/show_bug.cgi?id=90 6183 61842001-10-10 Frank Warmerdam <[email protected]> 6185 6186 * libtiff/tiff.h: I have created COMPRESSION_CCITT_T4, 6187 COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases 6188 in keeping with TIFF 6.0 standard in tiff.h 6189 6190 http://bugzilla.remotesensing.org/show_bug.cgi?id=83 6191 61922001-09-26 Frank Warmerdam <[email protected]> 6193 6194 * libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function. 6195 Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory. 6196 61972001-09-24 Frank Warmerdam <[email protected]> 6198 6199 * libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug. 6200 6201 http://bugzilla.remotesensing.org/show_bug.cgi?id=78 6202 6203 * libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an 6204 error about LZW not being available. 6205 6206 * libtiff/tif_dir.c: propagate failure to initialize compression 6207 back from TIFFSetField() as an error status, so applications can 6208 detect failure. 6209 6210 * libtiff/tif_dir.c: removed the auto replacement of 6211 COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField(). 6212 6213 * Removed Makefile, tools/Makefile, port/install.sh, man/Makefile 6214 from CVS as they are all supposed to be auto-generated by configure. 6215 62162001-09-22 Frank Warmerdam <[email protected]> 6217 6218 * libtiff/tif_ojpeg.c: new update from Scott. 6219 62202001-09-09 Frank Warmerdam <[email protected]> 6221 6222 * libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to 6223 always use the "safe" version, even if there is a very slight 6224 cost in performance. 6225 6226 http://bugzilla.remotesensing.org/show_bug.cgi?id=54 6227 6228 * libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@ 6229 in two places. 6230 6231 * libtiff/tif_getimage.c: Fixed problem with reading strips or 6232 tiles that don't start on a tile boundary. Fix contributed by 6233 Josep Vallverdu (from HP), and further described in bug 47. 6234 6235 http://bugzilla.remotesensing.org/show_bug.cgi?id=47 6236 6237 * tools/tiff2ps.c: added OJPEG YCbCr to RGB support. 6238 6239 * libtiff/tif_ojpeg.c: Applied substantial patch from Scott. 6240 62412001-09-06 Frank Warmerdam <[email protected]> 6242 6243 * libtiff/tif_packbits.c: fixed memory overrun error. 6244 6245 http://bugzilla.remotesensing.org/show_bug.cgi?id=77 6246 62472001-08-31 Frank Warmerdam <[email protected]> 6248 6249 * libtiff/tif_getimage.c: relax handling of contig case where 6250 there are extra samples that are supposed to be ignored. This 6251 should now work for 8bit greyscale or palletted images. 6252 6253 http://bugzilla.remotesensing.org/show_bug.cgi?id=75 6254 62552001-08-28 Frank Warmerdam <[email protected]> 6256 6257 * libtiff/tif_getimage.c: Don't complain for CMYK (separated) 6258 images with more than four samples per pixel. See: 6259 6260 http://bugzilla.remotesensing.org/show_bug.cgi?id=73 6261 62622001-08-10 Frank Warmerdam <[email protected]> 6263 6264 * libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy() 6265 in TIFFReadRGBATile() to avoid issues in cases of overlapping 6266 buffers. See Bug 69 in Bugzilla. 6267 6268 http://bugzilla.remotesensing.org/show_bug.cgi?id=69 6269 6270 * tools/tiff2rgba.c: fixed getopt() call so that -b works again. 6271 62722001-08-09 Frank Warmerdam <[email protected]> 6273 6274 * libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__ 6275 when checking for 64 bit architectures as per bugzilla bug 67. 6276 62772001-07-27 Frank Warmerdam <[email protected]> 6278 6279 * man/Makefile.in: add TIFFClientOpen link as per debian submitted 6280 bug 66. 6281 62822001-07-20 Frank Warmerdam <[email protected]> 6283 6284 * libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H 6285 has been included. 6286 62872001-07-19 Frank Warmerdam <[email protected]> 6288 6289 * libtiff/tif_open.c: Seek back to zero after failed read, 6290 before writing header. 6291 62922001-07-18 Frank Warmerdam <[email protected]> 6293 6294 * libtiff/tif_ojpeg.c: updates from Scott. Handles colors 6295 much better. Now depends on having patched libjpeg as per 6296 patch in contrib/ojpeg/*. 6297 62982001-07-17 Frank Warmerdam <[email protected]> 6299 6300 * */Makefile.in: added DESTDIR support. 6301 6302 http://bugzilla.remotesensing.org/show_bug.cgi?id=60 6303 63042001-07-16 Frank Warmerdam <[email protected]> 6305 6306 * configure, libtiff/Makefile.in: applied OpenBSD patches 6307 as per: 6308 6309 http://bugzilla.remotesensing.org/show_bug.cgi?id=61 6310 63112001-06-28 Frank Warmerdam <[email protected]> 6312 6313 * libtiff/tif_getimage.c: Fixed so that failure is properly 6314 reported by gtTileContig, gtStripContig, gtTileSeparate and 6315 gtStripSeparate. 6316 6317 See http://bugzilla.remotesensing.org/show_bug.cgi?id=51 6318 6319 * tiffcmp.c: Fixed multi samples per pixel support for ContigCompare. 6320 Updated bug section of tiffcmp.1 to note tiled file issues. 6321 6322 See http://bugzilla.remotesensing.org/show_bug.cgi?id=53 6323 63242001-06-22 Frank Warmerdam <[email protected]> 6325 6326 * configure: Changes for DSO generation on AIX provided by 6327 John Marquart <[email protected]>. 6328 6329 * configure, libtiff/Makeifle.in: Modified to build DSOs properly 6330 on Darwin thanks to Robert Krajewski ([email protected]) and 6331 Keisuke Fujii ([email protected]). 6332 63332001-06-13 Frank Warmerdam <[email protected]> 6334 6335 * tools/tiff2rgba.c: added -n flag to avoid emitting alpha component. 6336 6337 * man/tiff2rgba.1: new 6338 63392001-05-22 Frank Warmerdam <[email protected]> 6340 6341 * Added tiffset and tif_ojpeg to the dist lists in Makefile.in. 6342 63432001-05-13 Frank Warmerdam <[email protected]> 6344 6345 * libtiff/tools/thumbnail.c: changed default output compression 6346 to packbits from LZW since LZW isn't generally available. 6347 63482001-05-12 Frank Warmerdam <[email protected]> 6349 6350 * libtiff/tif_ojpeg.c: New. 6351 libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related 6352 to OJPEG support. 6353 6354 Scott Marovich <[email protected]> supplied OJPEG support. 6355 63562001-05-11 Frank Warmerdam <[email protected]> 6357 6358 * tiff.h: removed, it duplicates libtiff/tiff.h. 6359 63602001-05-08 Frank Warmerdam <[email protected]> 6361 6362 * libtiff/tif_dirinfo.c: moved pixar and copyright flags to 6363 ensure everything is in order. 6364 6365 * libtiff/libtiff.def: added TIFFCreateDirectory and 6366 TIFFDefaultStripSize as per: 6367 6368 http://bugzilla.remotesensing.org/show_bug.cgi?id=46 6369 63702001-05-02 Frank Warmerdam <[email protected]> 6371 6372 * libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for 6373 TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to 6374 force use of uint32 counts instead of short counts. 6375 6376 * libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the 6377 case of writing TIFF_BYTE/TIFF_SBYTE fields. 6378 6379 http://bugzilla.remotesensing.org/show_bug.cgi?id=43 6380 63812001-05-01 Frank Warmerdam <[email protected]> 6382 6383 * libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per 6384 bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44 6385 63862001-04-05 Frank Warmerdam <[email protected]> 6387 6388 * tiffio.h: removed C++ style comment. 6389 6390 * configure: fixed up SCRIPT_SH/SHELL handling. 6391 6392 * Makefile.in: Fixed SCRIPT_SH/SHELL handling. 6393 6394 * config.guess: documented more variables as per bug 40. 6395 63962001-04-03 Frank Warmerdam <[email protected]> 6397 6398 * configure, *Makefile.in: Various changes to improve configuration 6399 for HP/UX specifically, and also in general. They include: 6400 - Try to handle /usr/bin/sh instead of /bin/sh where necessary. 6401 - Upgrade to HP/UX 10.x+ compiler, linker and dso options. 6402 - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP 6403 - Use -${MAKEFLAGS} in sub makes from makefiles. 6404 6405 http://bugzilla.remotesensing.org/show_bug.cgi?id=40 6406 64072001-04-02 Frank Warmerdam <[email protected]> 6408 6409 * libtiff/tiff.h: Applied hac to try and resolve the problem 6410 with the inttypes.h include file on AIX. 6411 6412 See http://bugzilla.remotesensing.org/show_bug.cgi?id=39 6413 6414 * VERSION: update to 3.5.7 beta in preparation for release. 6415 6416 * configure/config.site: modified to check if -lm is needed for 6417 MACHDEPLIBS if not supplied by config.site. Needed for Darwin. 6418 6419 * config.guess: updated wholesale to an FSF version apparently 6420 from 1998 (as opposed to 1994). This is mainly inspired by 6421 providing for MacOS X support. 6422 64232001-03-29 Frank Warmerdam <[email protected]> 6424 6425 * configure, Makefile.in, etc: added support for OPTIMIZER being 6426 set from config.site. 6427 64282001-03-28 Frank Warmerdam <[email protected]> 6429 6430 * fax2ps.c: Helge (libtiff at oldach.net) submitted fix: 6431 6432 Here's a fix for fax2ps that corrects behaviour for non-Letter paper 6433 sizes. It fixes two problems: 6434 6435 Without scaling (-S) the fax is now centered on the page size specified 6436 with -H and/or -W. Before, fax2ps was using an obscure and practially 6437 useless algorithm to allocate the image relative to Letter sized paper 6438 which sometime sled to useless whitespace on the paper, while at the 6439 same time cutting of the faxes printable area at the opposite border. 6440 6441 Second, scaling now preserves aspect ratio, which makes unusual faxes 6442 (in particular short ones) print properly. 6443 6444 See http://bugzilla.remotesensing.org/show_bug.cgi?id=35 6445 6446 * tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by 6447 Bruce A. Mallett. See check message for detailed information 6448 on all the changes, including a faster encoder, fixes for level 6449 2 PostScript, and support for the imagemask operator. 6450 64512001-03-27 Frank Warmerdam <[email protected]> 6452 6453 * libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to 6454 "#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX. 6455 6456 http://bugzilla.remotesensing.org/show_bug.cgi?id=39 6457 64582001-03-16 Frank Warmerdam <[email protected]> 6459 6460 * tif_dirinfo.c: moved definition of copyright tag in field list. 6461 Apparently they have to be in sorted order by tag id. 6462 64632001-03-13 Frank Warmerdam <[email protected]> 6464 6465 * tif_getimage.c: Added support for 16bit minisblack/miniswhite 6466 images in RGBA interface. 6467 64682001-03-02 Frank Warmerdam <[email protected]> 6469 6470 * Added TIFFTAG_COPYRIGHT support. 6471 64722001-02-19 Frank Warmerdam <[email protected]> 6473 6474 * Brent Roman contributed updated tiffcp utility (and tiffcp.1) 6475 with support for extracting subimages with the ,n syntax, and also 6476 adding the -b bias removal flag. 6477 64782001-02-16 Frank Warmerdam <[email protected]> 6479 6480 * libtiff/libtiff.def: Brent Roman submitted new version adding 6481 serveral missing entry points. 6482 6483 * libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS. 6484 Some sort of weird VMS thing. 6485 6486 http://bugzilla.remotesensing.org/show_bug.cgi?id=31 6487 6488 * tif_luv.c/tiff.h/tiffio.h: 6489 New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward 6490 ([email protected]). He writes: 6491 6492 1) I improved the gamut-mapping function in tif_luv.c for imaginary 6493 colors, because some images were being super-saturated on the input 6494 side and this resulted in some strange color shifts in the output. 6495 6496 2) I added a psuedotag in tiff.h to control random dithering during 6497 LogLuv encoding. This is turned off by default for 32-bit LogLuv and 6498 on for 24-bit LogLuv output. Dithering improves the average color 6499 accuracy over the image. 6500 6501 3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in 6502 tiffio.h, to expose internal routines for converting between LogLuv and 6503 XYZ coordinates. This is helpful for writing more efficient, 6504 specialized conversion routines, especially for reading LogLuv files. 6505 6506 Changes applied with minor edits. 6507 65082001-01-23 Frank Warmerdam <[email protected]> 6509 6510 * tif_fax3.c: keep rw_mode flag internal to fax3 state to remember 6511 whether we are encoding or decoding. This is to ensure graceful 6512 recovery if TIFFClientOpen() discovers an attempt to open a compressed 6513 file for "r+" access, and subsequently close it, as it resets the 6514 tif_mode flag to O_RDONLY in this case to avoid writes, confusing the 6515 compressor's concept of whether it is in encode or decode mode. 6516 65172001-01-08 Mike Welles <[email protected]> 6518 6519 * Makefile.in: Now cleaning up after itself after creating the .tar.gz and .zip 6520 65212001-01-07 Frank Warmerdam <[email protected]> 6522 6523 * html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet() 6524 as per bug report by Patrick Connor. 6525 65262000-12-28 Frank Warmerdam <[email protected]> 6527 6528 * Added RELEASE-DATE file to release file list. 6529 6530 * Fixed libtiff/makefile.vc to make tiffvers.h not version.h. 6531 65322000-12-22 Mike Welles <[email protected]> 6533 * added link to CVS mirror from index.html 6534 6535 * updated html/internals.html to note that LZW compression is 6536 not supported by default. 6537 65382000-12-22 Frank Warmerdam <[email protected]> 6539 6540 * updated html/libtiff.html to not point at Niles' old JPL web site 6541 for the man pages, point at www.libtiff.org. 6542 65432000-12-21 Frank Warmerdam <[email protected]> 6544 6545 * libtiff/tif_apple.c: Applied "Carbon" support patches supplied by 6546 Leonard Rosenthol <[email protected]>. May interfere 6547 with correct building on older systems. If so, please let me know. 6548 65492000-12-19 Mike Welles <[email protected]> 6550 6551 * Took out LZW Encoding from tif_lzw.c 6552 6553 * Created HOWTO-RELEASE 6554 6555 * Created html/v3.5.6.html 6556 6557 * updated index.html 6558 65592000-12-01 Frank Warmerdam <[email protected]> 6560 6561 * Added patches for EOFB support in tif_fax3.c and tif_fax3.h. 6562 Patches supplied by Frank Cringle <[email protected]> 6563 Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif 6564 65652000-11-24 Frank Warmerdam <[email protected]> 6566 6567 * libtiff/Makefile.in: Added an installPrivateHdrs and install-private 6568 target so that the private headers required by libgeotiff can be 6569 installed with the others. They are not installed by default. 6570 6571 * libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso 6572 targets so libtiff.so will be built with an explicit dependency 6573 on libm.so. 6574 6575 * libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to 6576 libtiff.so.3.5.5. 6577 6578 * libtiff/Makefile.in & configure: Remove all references to the ALPHA 6579 file, or ALPHA version logic. Added stuff about DIST_POINT in 6580 place of DIST_TYPE and the alpha release number stuff. 6581 65822000-11-22 Frank Warmerdam <[email protected]> 6583 6584 * I have applied a patch from Steffen Moeller <[email protected]> to 6585 the configure script so that it now accepts the --prefix, and 6586 --exec-prefix directives. 6587 65882000-11-13 Frank Warmerdam <warmerda@cs46980-c> 6589 6590 * I have made a variety of modifications in an effort to ensure the 6591 TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE 6592 file which seems to be updated regularly. 6593 6594 o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in 6595 version include file. 6596 o renamed version.h to tiffvers.h because we now have to install it 6597 with the public libtiff include files. 6598 o include tiffvers.h in tiffio.h. 6599 o updated tif_version.c to use tiffvers.h. 6600 o Updated Makefile.in accordingly. 6601 6602 * As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25 6603 I have updated the win32 detection rules in tiffcomp.h. 6604 66052000-10-20 Frank Warmerdam <warmerda@cs46980-c> 6606 6607 * tif_getimage.c: Fixed RGBA translation for YCbCr images for which 6608 the strip/tile width and height aren't multiples of the sampling size. 6609 See http://bugzilla.remotesensing.org/show_bug.cgi?id=20 6610 Some patches from Rick LaMont of Dot C Software. 6611 6612 * Modified tif_packbits.c encoder to avoid compressing more 6613 data than provided if rowsize doesn't factor into provided data 6614 (such as occurs for YCbCr). 6615 66162000-10-19 Frank Warmerdam <warmerda@cs46980-c> 6617 6618 * tools/rgb2ycbcr.c: fixed output strip size to account for vertical 6619 roundup if rows_per_strip not a multiple of vertical sample size. 6620 66212000-10-16 Frank Warmerdam <warmerda@cs46980-c> 6622 6623 * tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory 6624 as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6625 from [email protected]. 6626 6627 * Modified tif_packbits.c decoding to avoid overrunning the 6628 output buffer, and to issue a warning if data needs to be 6629 discarded. See http://bugzilla.remotesensing.org/show_bug.cgi?id=18 6630 66312000-10-12 Frank Warmerdam <warmerda@cs46980-c> 6632 6633 * Modified tiff2bw to ensure portions add to 100%, and that 6634 white is properly recovered. 6635 6636 See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15 6637 Patch c/o Stanislav Brabec <[email protected]> 6638 66392000-09-30 Frank Warmerdam <warmerda@cs46980-c> 6640 6641 * Modified TIFFClientOpen() to emit an error on an attempt to 6642 open a comperessed file for update (O_RDWR/r+) access. This is 6643 because the compressor/decompressor code gets very confused when 6644 the mode is O_RDWR, assuming this means writing only. See 6645 bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13 6646 66472000-09-27 Frank Warmerdam <warmerda@cs46980-c> 6648 6649 * Added GNULDdso target an`d switched linux and freebsd to use it. 6650 66512000-09-26 Frank Warmerdam <warmerda@cs46980-c> 6652 6653 * Applied patch for 0x0000 sequences in tif_fax3.h's definition 6654 of EXPAND1D() as per bug 11 (from Roman). 6655 66562000-09-25 Frank Warmerdam <warmerda@cs46980-c> 6657 * Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve 6658 cygwin compatibility. 6659 6660 * Applied patch from Roman Shpount to tif_fax3.c. This seems to 6661 be a proper fix to the buffer sizing problem. See 6662 http://bugzilla.remotesensing.org/show_bug.cgi?id=11 6663 6664 * Fixed tif_getimage.c to fix overrun bug with YCbCr images without 6665 downsampling. http://bugzilla.remotesensing.org/show_bug.cgi?id=10 6666 Thanks to Nick Lamb <[email protected]> for reporting the 6667 bug and proving the patch. 6668 66692000-09-18 Frank Warmerdam <warmerda@cs46980-c> 6670 6671 * Fixed tif_jpeg.c so avoid destroying the decompressor before 6672 we are done access data thanks to bug report from: 6673 Michael Eckstein <[email protected]>. 6674 6675 * Reverted tif_flush change. 6676 66772000-09-14 Frank Warmerdam <warmerda@cs46980-c> 6678 6679 * tif_flush.c: Changed so that TIFFFlushData() doesn't return an 6680 error when TIFF_BEENWRITING is not set. This ensures that the 6681 directory contents can still be flushed by TIFFFlush(). 6682 66832000-08-14 Frank Warmerdam <[email protected]> 6684 6685 * tif_open.c: Don't set MMAP for O_RDWR files. 6686 6687 * tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY 6688 so that files opened for update can be strip chopped too. 6689 6690 * tif_read.c: fixed up bug with files missing rowsperstrip and 6691 the strips per separation fix done a few weeks ago. 6692 66932000-07-17 Frank Warmerdam <warmerda@cs46980-c> 6694 6695 * Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and 6696 SAMPLEFORMAT_COMPLEXINT. 6697 66982000-07-13 Mike Welles <[email protected]> 6699 6700 * index.html, bugs.html: added bugzilla info. 6701 67022000-07-12 Frank Warmerdam <[email protected]> 6703 6704 * tif_read.c: fix subtle bug with determining the number of 6705 rows for strips that are the last strip in a separation but 6706 not the last strip of all in TIFFReadEncodedStrip(). 6707 6708 * Applied 16/32 bit fix to tif_fax3.c. Fix supplied by 6709 Peter Skarpetis <[email protected]> 6710 67112000-06-15 Frank Warmerdam <[email protected]> 6712 6713 * Modified tiffio.h logic with regard to including windows.h. It 6714 won't include it when building with __CYGWIN__. 6715 67162000-05-11 Frank Warmerdam <warmerda@cs46980-c> 6717 6718 * README: update to mention www.libtiff.org, don't list Sam's old 6719 email address. 6720 6721 * configure: Fixed DSO test for Linux as per patch from 6722 Jan Van Buggenhout <[email protected]>. 6723 67242000-04-21 Frank Warmerdam <[email protected]> 6725 6726 * libtiff/tif_dirread.c: Don't use estimate strip byte count for 6727 one tile/strip images with an offset, and byte count of zero. These 6728 could be "unpopulated" images. 6729 67302000-04-18 Frank Warmerdam <[email protected]> 6731 6732 * contrib/addtiffo: Added "averaging" resampling option. 6733 6734 * tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT. 6735 6736Tue Apr 18 16:18:08 2000 Frank Warmerdam <[email protected]> 6737 6738 * tools/Makefile.in: Modified to install properly on SGI. 6739 67402000-04-12 Mike Welles <[email protected]> 6741 * configure: Fixed stupid mistake in libc6 test on Linux 6742 67432000-04-04 Mike Welles <[email protected]> 6744 * tif_win32.c: Applied patch to fix overreads and ovverwrites 6745 caught by BoundsChecker. From Arvan Pritchard 6746 <[email protected]> (untested). 6747 6748 * tif_getimage.c: Applied patch to silence VC6 warnings. From 6749 Arvan Pritchard <[email protected]> 6750 6751 * tif_lzw.c: Applied patch to silence VC6 warnings. From 6752 Arvan Pritchard <[email protected]> 6753 67542000-03-28 Frank Warmerdam <warmerda@cs46980-c> 6755 6756 * Added contrib/stream (stream io) code submitted by Avi Bleiweiss. 6757 67582000-03-28 Frank Warmerdam <warmerda@cs46980-c> *** 3.5.5 release *** 6759 6760 * fax2ps: Fixed mixup of width and height in bounding box statement 6761 as per submission by Nalin Dahyabhai <[email protected]>. 6762 67632000-03-27 Mike Welles <[email protected]> 6764 6765 * fax2ps: Modified printruns to take uint32 instead of uint16. 6766 Patch courtesy of Bernt Herd <[email protected]> 6767 67682000-03-20 Mike Welles <[email protected]> 6769 6770 * configure: added test for libc6 for linux targets. Bug reported by 6771 Stanislav Brabec <[email protected]> 6772 6773 * Added 3.5 docs to html/Makefile.in. 6774 Thanks to Stanislav Brabec <[email protected]> 6775 6776 * configure: fixed bugs in sed scripts 6777 (applied sed script s:/@:s;@:;s:/s;;:;: to configure). 6778 fix submitted to Stanislav Brabec <[email protected]> 6779 6780 * tools/iptcutil was not in files list, and wasn't being 6781 added to tar archive. Updated Makefile.in. 6782 67832000-03-17 Frank Warmerdam <warmerda@cs46980-c> 6784 6785 * tif_fax3.c: Fixed serious bug introduced during the uint16->uint32 6786 conversion for the run arrays. 6787 67882000-03-03 Frank Warmerdam <[email protected]> 6789 6790 * Set td_sampleformat default to SAMPLEFORMAT_UINT instead of 6791 SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c. 6792 67932000-03-02 Frank Warmerdam <[email protected]> 6794 6795 * Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c. 6796 6797 * Patched tif_fax3.c so that dsp->runs is allocated a bit bigger 6798 to avoid overruns encountered with frle_bug.tif. 6799 6800Tue Feb 15 22:01:05 2000 Frank Warmerdam <[email protected]> 6801 6802 * Fixed tools/tiffcmp so that stopondiff testing works. 6803 Patch care of Joseph Orost <[email protected]>. 6804 68052000-01-28 <warmerda@CS46980-B> 6806 6807 * Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is 6808 set to 1, and added default (off) setting in tiffconf.h. This 6809 should eventually be set by the configure script somehow. 6810 6811 The original work on all these 2-4GB changes was done by 6812 Peter Smith ([email protected]). 6813 6814 * Modified tif_win32.c to support 2-4GB seeks. 6815 6816 * tentatively changed toff_t to be unsigned instead of signed to 6817 facilitate support for 2-4GB files. 6818 6819 * Updated a variety of files to use toff_t. Fixed some mixups 6820 between toff_t and tsize_t. 6821 6822Fri Jan 28 10:13:49 2000 Frank Warmerdam <[email protected]> 6823 6824 * Largely reimplemented contrib/addtiffo to avoid temp files, 6825 updating the TIFF file in place. Fixed a few other bugs to. 6826 6827 * Set tif_rawdatasize to zero when freeing raw data buffer in 6828 TIFFWriteDirectory(). 6829 6830 * Enabled "REWRITE_HACK" in tif_write.c by default. 6831 6832 * Fix bug in tif_write.c when switching between reading one directory 6833 and writing to another. 6834 6835 * Made TIFFWriteCheck() public, and added TIFFCreateDirectory() 6836 6837Wed Jan 5 12:37:48 2000 Frank Warmerdam <[email protected]> 6838 6839 * Added TIFFmemory(3t) functions to libtiff.def. 6840 6841Tue Jan 4 13:39:00 2000 Frank Warmerdam <[email protected]> 6842 6843 * Added libtiff/libtiff.def to TIFFILES distribution list. 6844 6845Mon Dec 27 12:13:39 EST 1999 Mike Welles <[email protected]> 6846 6847 * Created lzw compression kit, as a new module (libtiff-lzw-compression-kit). 6848 6849 * Altered descriptions in tools to reflect "by default" lzw not supported 6850 6851 * Updated index.html to note lzw compression kit. 6852 6853Tue Dec 21 14:01:51 1999 Frank Warmerdam <[email protected]> 6854 6855 * Added fax3sm_winnt.c to distribution list in Makefile.in. 6856 6857Tue Dec 21 11:04:45 EST 1999 Mike Welles <[email protected]> *** 3.5.4 release *** 6858 6859 * Aadded Pixar tag support. Contributed by Phil Beffery <[email protected]> 6860 6861 * Made one more change to tif_dir.c for removal of LZW compression. Also added notice 6862 when LZW compression invoked. 6863 6864 * Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions 6865 in tools to reflect removal of LZW compression 6866 6867Mon Dec 20 18:39:02 EST 1999 Mike Welles <[email protected]> 6868 6869 * Fixed bug that caused LZW (non) compression to segfault. Added 6870 warning about LZW compression removed being removed, and why. 6871 6872 * Added nostrip to install in tools/Makefile.in so that debugging 6873 symbols are kept. 6874 6875Tue Dec 7 12:04:47 EST 1999 Mike Welles <[email protected]> 6876 6877 * Added patch from Ivo Penzar <[email protected]>, 6878 supporting Adobe ZIP deflate. Untested. 6879 6880Sat Dec 4 15:47:11 1999 Frank Warmerdam <[email protected]> 6881 6882 * Made Packbits the default compression in tools/tiff2rgba.c instead 6883 of LZW. 6884 6885Tue Nov 30 14:41:43 1999 Frank Warmerdam <[email protected]> *** 3.5.3. release *** 6886 6887 * Added tif_luv to contrib/djgpp/Makefile.lib. 6888 6889Tue Nov 30 14:15:32 EST 1999 Mike Welles <[email protected]> 6890 6891 * Added zip creation to relase makefile target 6892 6893 * Added html for TIFFWriteTile.3t man page. 6894 6895Tue Nov 30 09:20:16 1999 Frank Warmerdam <[email protected]> 6896 6897 * Added some changes to tif_write.c to support rewriting existing 6898 fixed sized tiles and strips. Code mods disabled by default, only 6899 enabled if REWRITE_HACK is defined for now. 6900 6901Mon Nov 29 11:43:42 1999 Frank Warmerdam <[email protected]> 6902 6903 * Added TIFFWriteTile.3t man page. 6904 6905Sun Nov 28 20:36:18 1999 Frank Warmerdam <[email protected]> 6906 6907 * Added notes on use of makefile.vc in build.html, and fixed 6908 email subscription address. 6909 6910199-11-28 Mike Welles <[email protected]> 6911 6912 * Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c 6913 6914 * Did some casts cleaning up to reduce compiler warnings in tif_fax3.c, 6915 from Bruce Carmeron <[email protected]> -- modifications of 6916 changes made by Frank (sun cc still complained on cast). 6917 6918 * Added tiffconf.h to install target per request from Bill 6919 Radcliffe <[email protected]>: "We need a way for ImageMagick to 6920 know features have been compiled into the TIFF library in order to 6921 handle things properly". 6922 6923Sat Nov 27 16:49:21 1999 Frank Warmerdam <[email protected]> 6924 6925 * fixed various VC++ warnings as suggested by Gilles Vollant 6926 <[email protected]>. 6927 6928Wed Nov 24 12:08:16 1999 Frank Warmerdam <[email protected]> 6929 6930 * Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to 6931 not imply applications are responsible for image data swapping. 6932 69331999-11-22 Mike Welles <[email protected]> 6934 * HTML-ized the man pages, added to html/man 6935 6936 * Removed LZW Compression to comply with Unisys patent extortion. 6937 69381999-09-29 Mike Welles <[email protected]> 6939 * Corrected one remaining 16 -> 32 bit value in tif_fax3.c, 6940 From Ivo Penzar <[email protected]. 6941 6942 * Added patch from Ivo Penzar to have TiffAdvanceDirectory handle 6943 memory mapped files. <[email protected]> 6944 69451999-09-26 Mike Welles <[email protected]> *** 3.5.2 release *** 6946 * Corrected alpha versioning. 6947 6948 * Removed distinction between alpha and release targets in Makefile.in. 6949 6950 * added release.stamp target, which tags cvs tree, and updates 6951 "RELEASE-DATE" 6952 6953 * added releasediff target, which diffs tree with source as of 6954 date in "RELEASE-DATE" 6955 6956 * Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving 6957 away from alpha/non-alpha distinctions). 6958 6959 * updated html to reflect release 6960 69611999-09-23 <warmerda@CS46980-B> 6962 6963 * Set O_BINARY for tif_unix.c open() ... used on cygwin for instance. 6964 6965 * Added CYGWIN case in configure. 6966 6967Fri Sep 17 00:13:51 CEST 1999 Mike Welles <[email protected]> 6968 6969 * Applied Francois Dagand's patch to handle fax decompression bug. 6970 (sizes >= 65536 were failing) 6971 6972Tue Sep 14 21:31:43 1999 Frank Warmerdam <[email protected]> 6973 6974 * Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested 6975 by Christopher Lawton <[email protected]> 6976 6977Wed Sep 8 08:19:18 1999 Frank Warmerdam <[email protected]> 6978 6979 * Added IRIX/gcc, and OSF/1 4.x support on behalf of 6980 Albert Chin-A-Young <[email protected]> 6981 6982 * Added TIFFReassignTagToIgnore() API on behalf of 6983 Bruce Cameron <[email protected]>. Man page still pending. 6984 6985Wed Aug 25 11:39:07 1999 Frank Warmerdam <[email protected]> 6986 6987 * Added test target in Makefile, test_pics.sh script and pics/*.rpt 6988 files to provide for a rudimentary testsuite. 6989 6990 * Added contrib/tags back from old distribution ... fixed up a bit. 6991 69921999-08-16 <warmerda@CS46980-B> 6993 6994 * Added simple makefile.vc makefiles for building with MS VC++ 6995 on Windows NT/98/95 in console mode. Stuff in contrib/win* make give 6996 better solutions for some users. 6997 6998Mon Aug 16 21:52:11 1999 Frank Warmerdam <[email protected]> 6999 7000 * Added addtiffo (add overviews to a TIFF file) in contrib. Didn't 7001 put it in tools since part of it is in C++. 7002 70031999-08-16 Michael L. Welles <[email protected]> 7004 7005 * Updated html/index.html with anon CVS instructions. 7006 7007Mon Aug 16 13:18:41 1999 Frank Warmerdam <[email protected]> 7008 7009 * pre-remove so link before softlink in LINUXdso action in 7010 libtiff/Makefile.in to avoid failure on LINUXdso builds other than 7011 the first. 7012 7013 * Fixed problem with cvtcmap() in tif_getimage.c modifying the 7014 colormaps owned by the TIFF handle itself when trying to fixup wrong 7015 (eight bit) colormaps. Corrected by maintaining a private copy of 7016 the colormap. 7017 7018 * Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in 7019 tif_getimage.c. 7020 7021 * CVS Repository placed at remotesensing.org. ChangeLog added. 7022